/* Flora design tokens. Values are final; see README "Design tokens". */

/* Self-hosted fonts (SIL OFL 1.1). Files live in /public/fonts with their OFL.txt. */
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/SourceSerif4-Variable.woff2') format('woff2'); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/SourceSerif4-Italic-Variable.woff2') format('woff2'); font-weight: 300 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  /* Surfaces */
  --cream: #F5F2EB;
  --parchment: #E7E0D1;
  --ink: #1A1F2A;

  /* Type on light surfaces */
  --text: #1A1F2A;
  --text-secondary: #3F4854;
  --text-muted: #5C6A7A;          /* on cream only; on parchment use --text-secondary */
  --stone: #6B5D48;               /* accent: step numerals, separators */

  /* Type on ink */
  --on-ink: #EDE8DE;
  --on-ink-meta: #C8CDD4;
  --on-ink-secondary: #AEB6C0;

  /* Rules and borders */
  --rule: #DFD9CC;                /* hairlines on cream */
  --rule-parchment: #C6BFB0;      /* hairlines on parchment; secondary button border on light */
  --rule-ink: rgba(237, 232, 222, 0.24);
  --border-on-ink: rgba(237, 232, 222, 0.4);

  /* Families */
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  /* Type scale */
  --fs-display: clamp(44px, 6.4vw, 76px);
  --fs-section: clamp(30px, 3.6vw, 44px);
  --fs-lede: clamp(22px, 2.6vw, 28px);      /* also paper titles, in serif */
  --fs-subtitle: clamp(18px, 1.8vw, 22px);
  --fs-label: 18px;
  --fs-body: 16px;
  --fs-caption: 13px;
  --fs-eyebrow: 12px;

  /* Spacing: nothing between steps */
  --s-8: 8px; --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-40: 40px;
  --s-48: 48px; --s-56: 56px; --s-64: 64px; --s-88: 88px;

  /* Layout */
  --page-max: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-pad: clamp(56px, 8vh, 88px);
  --footer-pad: clamp(48px, 7vh, 80px);
  --label-col: 360px;             /* label/content rows */
  --label-gap: 64px;
  --measure: 34em;
  --radius: 2px;                  /* buttons only */
  --header-h: 80px;               /* confirm against build; used for scroll-margin */
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text-muted); }
[id] { scroll-margin-top: var(--header-h); }

/* Focus is required and always visible. Never remove outlines. */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.surface-ink :focus-visible { outline-color: var(--on-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
