/* ==========================================================================
   Vissuteraapia — Base & Typography Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-cream);
  color: var(--ink-primary);
}

@media (min-width: 769px) {
  html {
    zoom: 1.25;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-primary);
  background-color: var(--bg-cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a,
button,
summary,
[role="button"],
.hero-illustration-slot,
.hero-illustration-slot * {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--forest-deep);
  margin: 0 0 0.65em;
  font-variation-settings: "SOFT" 80, "WONK" 1;
}

h1 {
  font-size: var(--text-h1);
  line-height: 1.1;
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--forest-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) ease;
}

a:hover {
  color: var(--blush-ink);
}

/* Accessible focus ring */
:focus-visible {
  outline: 3px solid var(--forest-mid);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 1000;
  background: var(--forest-deep);
  color: var(--ink-on-dark);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
}

/* Visually hidden utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container & Section rhythm */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-py);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section--cream {
  background-color: var(--bg-cream);
}

.section--sage {
  background-color: var(--bg-sage);
}

.section--blush {
  background-color: var(--bg-blush);
}

.section--forest {
  background-color: var(--forest-deep);
  color: var(--ink-on-dark);
}

.section--forest h1,
.section--forest h2,
.section--forest h3,
.section--forest .section-eyebrow {
  color: var(--ink-on-dark);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blush-ink);
  background: var(--bg-blush);
  border: 1px solid rgba(140, 59, 67, 0.16);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.9rem;
}

.section--blush .section-eyebrow {
  background: var(--surface-card);
}

.section--forest .section-eyebrow {
  background: rgba(250, 247, 240, 0.12);
  border-color: rgba(244, 222, 150, 0.35);
  color: var(--butter-accent);
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--ink-muted);
}

.section--forest .lead {
  color: var(--ink-on-dark-muted);
}

.text-muted {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
