/* ============================================================
   Biohma — base element defaults
   ============================================================ */

@view-transition { navigation: auto; }

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

/* overflow-x:clip, never :hidden — hidden would also disable
   position:sticky, and the header relies on it. The Challenge section's
   crescent bleeds past the right edge on purpose; this is what stops that
   from creating horizontal scroll. */
html, body { overflow-x: clip; }
html { color-scheme: light; background: var(--paper); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--text-body);
  font-variant-numeric: tabular-nums;
  /* Blob centres are tuned to index.html's paper stretches (~34–64% and
     ~70–88% of document height at 2880px viewport) so each blob actually
     lands on paper instead of being wasted under an opaque section. */
  background:
    radial-gradient(900px 620px at 12% 40%,
      color-mix(in oklab, var(--green-400) 7%, transparent), transparent 62%),
    radial-gradient(760px 540px at 88% 49%,
      color-mix(in oklab, var(--turq-500) 6%, transparent), transparent 66%),
    radial-gradient(1100px 720px at 26% 58%,
      color-mix(in oklab, var(--green-600) 5%, transparent), transparent 64%),
    radial-gradient(820px 560px at 82% 79%,
      color-mix(in oklab, var(--turq-500) 5%, transparent), transparent 62%),
    var(--surface-page);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--mark-on-dark); text-decoration-thickness: 2px; text-underline-offset: 4px; }

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

h1, h2, h3, p, blockquote, figure { margin: 0; }

:focus-visible { outline: 2px solid var(--turq-500); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.container--text { max-width: var(--container-text); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.eyebrow--dark { color: var(--paper); }
.eyebrow--light { color: var(--stone-600); }
.eyebrow-line { width: 24px; height: 2px; flex: none; background: currentColor; }
.eyebrow--dark .eyebrow-line { background: var(--mark-on-dark); }
.eyebrow--light .eyebrow-line { background: var(--mark-on-light); }

/* Standard gap from an eyebrow/title to the content block right below
   it — one fixed rhythm (--space-10) instead of a magic-number inline
   margin-top hand-picked per section, so it can't silently drift when
   a section is copied or edited. Applied as a class, not an
   `.eyebrow + *` sibling rule, because not every eyebrow on the site
   wants this exact rhythm (e.g. a hero title sitting directly under a
   dark photo eyebrow) — opt in per block instead of changing every
   eyebrow everywhere. */
.title-gap { margin-top: var(--space-10); }

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tighter);
  text-wrap: pretty;
}
/* Section headings wrap onto multiple lines at body scale; 1.04 is a
   display-only value tuned for the hero's single-line treatment. */
h2.h-display, h3.h-display { line-height: var(--lh-heading-wrap); }

p { max-width: var(--measure-body); }

.source-note {
  font-size: var(--text-xs);
  color: var(--stone-500);
  margin-top: var(--space-5);
  max-width: 80ch;
}
.source-note--on-dark { color: var(--stone-on-dark); font-weight: var(--fw-semibold); opacity: .85; }

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green-950); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top var(--dur-base) var(--ease-standard);
}
.skip-link:focus { top: 12px; }
