/* GENERATED by build-tokens.cjs from tokens.json v0.8.0 (2026-09-28). Do not edit. */
:root {
  --m-paper-0: #FBF8F2;
  --m-paper-1: #FFFDF9;
  --m-paper-2: #F4EFE7;
  --m-paper-3: #ECE5DA;
  --m-line-1: #EEE8DE;
  --m-line-2: #DFD7C9;
  --m-line-3: #C4BAA9;
  --m-ink-0: #17140F;
  --m-ink-1: #24201B;
  --m-ink-2: #5B554C;
  --m-ink-3: #746C5F;
  --m-ink-4: #948C7E;
  --m-working-fg: #1B6F45;
  --m-working-bg: #E1F2E7;
  --m-working-line: #9CD1B3;
  --m-working-dot: #22A35F;
  --m-person-fg: #7E4B06;
  --m-person-bg: #FBEACF;
  --m-person-line: #EFC98A;
  --m-person-dot: #C87C0C;
  --m-error-fg: #A0261C;
  --m-error-bg: #FBE5E1;
  --m-error-line: #EFACA4;
  --m-error-dot: #CF3327;
  --m-focus: #24201B;
  --m-scrim: rgba(23,20,15,0.5);
  --m-content-blue-bg: #DCE8F2;
  --m-content-blue-fg: #245C82;
  --m-content-blue-dot: #337EA9;
  --m-content-brick-bg: #F6DEDB;
  --m-content-brick-fg: #8E3A34;
  --m-content-brick-dot: #C4554D;
  --m-content-ochre-bg: #F7E7C6;
  --m-content-ochre-fg: #7A5414;
  --m-content-ochre-dot: #CB912F;
  --m-content-sage-bg: #DCEADF;
  --m-content-sage-fg: #345842;
  --m-content-sage-dot: #548164;
  --m-content-plum-bg: #E8E0EE;
  --m-content-plum-fg: #553D6B;
  --m-content-plum-dot: #7E5F98;
  --m-content-lavender-bg: #E6DDF5;
  --m-content-lavender-fg: #4B3A78;
  --m-content-lavender-dot: #8E7AC2;
  --m-content-mint-bg: #DCEBD8;
  --m-content-mint-fg: #2F5A3A;
  --m-content-mint-dot: #6FA57C;
  --m-content-peach-bg: #FBD9C2;
  --m-content-peach-fg: #8A3F12;
  --m-content-peach-dot: #E8833A;
  --m-content-sun-bg: #FFE3C4;
  --m-content-sun-fg: #A0461A;
  --m-content-sun-dot: #E8833A;
  --m-content-teal-bg: #D3E7EA;
  --m-content-teal-fg: #0F3F4A;
  --m-content-teal-dot: #1E6F7E;
  --m-content-violet-bg: #EDE4FF;
  --m-content-violet-fg: #4A2C8F;
  --m-content-violet-dot: #8B5CF6;
  --m-content-camas-bg: #E2EFED;
  --m-content-camas-fg: #075B44;
  --m-content-camas-dot: #007A5A;
  --m-rail-bg: #ECE5DA;
  --m-rail-fg: #24201B;
  --m-rail-muted: #5B554C;
  --m-rail-active: #FFFDF9;
  --m-rail-activeFg: #24201B;
  --m-rail-deep: #ECE5DA;
  --m-on-color: #FFFFFF;
  --m-hover-tint: rgba(23,20,15,0.035);
  --m-rail-hover: rgba(255,255,255,0.10);
  --m-paper-veil: rgba(255,255,255,0.70);
  --m-logo-word: #24201B;
  --m-logo-reverse: #FFFFFF;
  --m-logo-olive-light: #6E6A12;
  --m-logo-olive-dark: #A8A23A;
  --m-logo-orange-light: #C6702A;
  --m-logo-orange-dark: #E8944A;
  --m-logo-violet-light: #8B5CF6;
  --m-logo-violet-dark: #C9B3FF;
  --m-logo-purple-light: #3B183B;
  --m-logo-purple-dark: #CFC3CF;
  /* accent in force: camas-green (LF-177) */
  --m-accent: #007A5A;
  --m-accent-hover: #00654A;
  --m-accent-fg: #FFFFFF;
  --m-link: #5A5610;
  /* type in force: inter (LF-116) */
  --m-font-display: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --m-font-body: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --m-font-mono: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --m-font-wordmark: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --m-text-xs: 12px;
  --m-leading-xs: 16px;
  --m-text-sm: 13px;
  --m-leading-sm: 18px;
  --m-text-base: 14px;
  --m-leading-base: 20px;
  --m-text-md: 15px;
  --m-leading-md: 22px;
  --m-text-lg: 17px;
  --m-leading-lg: 24px;
  --m-text-xl: 20px;
  --m-leading-xl: 28px;
  --m-text-2xl: 24px;
  --m-leading-2xl: 30px;
  --m-text-3xl: 30px;
  --m-leading-3xl: 36px;
  --m-text-4xl: 40px;
  --m-leading-4xl: 44px;
  --m-text-5xl: 56px;
  --m-leading-5xl: 58px;
  --m-weight-body: 400;
  --m-weight-label: 500;
  --m-weight-heading: 600;
  --m-weight-display: 700;
  --m-weight-wordmark: 800;
  --m-space-1: 4px;
  --m-space-2: 8px;
  --m-space-3: 12px;
  --m-space-4: 16px;
  --m-space-5: 20px;
  --m-space-6: 24px;
  --m-space-8: 32px;
  --m-space-10: 40px;
  --m-space-12: 48px;
  --m-space-16: 64px;
  --m-radius-control: 4px;
  --m-radius-card: 6px;
  --m-radius-dialog: 8px;
  --m-radius-chip: 999px;
  --m-radius-soft: 20px;
  --m-radius-tile: 16px;
  --m-radius-pill: 999px;
  --m-radius-glyph: 10px;
  --m-topbar-bg: transparent;
  --m-topbar-fg: #17140F;
  --m-topbar-field: #F4EFE7;
  --m-card-border: transparent;
  --m-border-width: 1px;
  --m-shadow-card: 0 1px 2px rgba(23,20,15,0.04);
  --m-shadow-lifted: 0 1px 2px rgba(23,20,15,0.05), 0 10px 24px -14px rgba(23,20,15,0.28);
  --m-shadow-floating: 0 8px 24px -12px rgba(23,20,15,0.28);
  --m-dur-micro: 120ms;
  --m-dur-state: 200ms;
  --m-dur-enter: 320ms;
  --m-dur-settle: 600ms;
  --m-dur-breath: 2400ms;
  --m-ease-enter: cubic-bezier(0.2, 0.8, 0.2, 1);
  --m-ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --m-ease-state: ease-in-out;

  /* shadcn/ui variables, derived so src/components/ui keeps working. HSL triplets. */
  --background: 40 53% 97%;
  --foreground: 33 14% 12%;
  --card: 40 100% 99%;
  --card-foreground: 33 14% 12%;
  --popover: 40 100% 99%;
  --popover-foreground: 33 14% 12%;
  --primary: 164 100% 24%;
  --primary-foreground: 0 0% 100%;
  --secondary: 37 37% 93%;
  --secondary-foreground: 33 14% 12%;
  --muted: 37 37% 93%;
  --muted-foreground: 36 9% 33%;
  --accent: 37 32% 89%;
  --accent-foreground: 33 14% 12%;
  --destructive: 4 68% 48%;
  --destructive-foreground: 0 0% 100%;
  --border: 38 26% 83%;
  --input: 38 19% 72%;
  --ring: 33 14% 12%;
  --radius: 6px;

  /* ground in force: slack (LF-114). Overrides the base paper/line values above. */
  --m-paper-0: #F3F0F5; --m-paper-1: #FEFDFF; --m-paper-2: #EAE5EE; --m-paper-3: #DED6E3; --m-line-1: #E6E1EA; --m-line-2: #D9D2DE; --m-line-3: #B9AEC1; --m-rail-bg: #3B183B; --m-rail-fg: #FFFFFF; --m-rail-muted: #CFC3CF; --m-rail-active: #FFFFFF; --m-rail-activeFg: #1D1C1D; --m-rail-deep: #311232; --m-rail-top: #311232; --m-rail-sky: linear-gradient(180deg, #311232 0%, #3B183B 100%); --m-topbar-bg: #311232; --m-topbar-fg: #FFFFFF; --m-topbar-field: #5A3A5B; --m-radius-soft: 8px; --m-radius-tile: 8px; --m-radius-pill: 4px; --m-radius-glyph: 6px; --m-card-border: #DDDDDD; --m-content-teal-bg: #D2F3E8; --m-content-teal-fg: #0B5C47; --m-content-teal-dot: #1BAF8A; --m-content-mint-bg: #D2F3E8; --m-content-mint-fg: #0B5C47; --m-content-mint-dot: #1BAF8A; --m-content-peach-bg: #FFE3CC; --m-content-peach-fg: #9A4A00; --m-content-peach-dot: #F5841F; --m-content-sun-bg: #F4EACA; --m-content-sun-fg: #6E5400; --m-content-sun-dot: #B99F33; --m-content-lavender-bg: #ECEBC9; --m-content-lavender-fg: #4D480A; --m-content-lavender-dot: #8A7A12; --m-content-violet-bg: #EDE4FF; --m-content-violet-fg: #4A2C8F; --m-content-violet-dot: #8B5CF6; --m-content-camas-bg: #E2EFED; --m-content-camas-fg: #075B44; --m-content-camas-dot: #007A5A; --background: 276 20% 95%; --card: 270 100% 100%; --popover: 270 100% 100%; --secondary: 273 21% 92%; --muted: 273 21% 92%; --border: 275 15% 85%; --input: 275 13% 72%;
}

[data-ground="paper"] { --m-paper-0: #FBF8F2; --m-paper-1: #FFFDF9; --m-paper-2: #F4EFE7; --m-paper-3: #ECE5DA; --m-line-1: #EEE8DE; --m-line-2: #DFD7C9; --m-line-3: #C4BAA9; --m-rail-bg: #ECE5DA; --m-rail-fg: #24201B; --m-rail-muted: #5B554C; --m-rail-active: #FFFDF9; --m-rail-activeFg: #24201B; --m-rail-deep: #ECE5DA;      --background: 40 53% 97%; --card: 40 100% 99%; --popover: 40 100% 99%; --secondary: 37 37% 93%; --muted: 37 37% 93%; --border: 38 26% 83%; --input: 38 19% 72%; }
[data-ground="sage"] { --m-paper-0: #F0F3EA; --m-paper-1: #FBFCF8; --m-paper-2: #E2E8D7; --m-paper-3: #CFD9C0; --m-line-1: #DFE5D5; --m-line-2: #CDD6C0; --m-line-3: #ABB79D; --m-rail-bg: #CFD9C0; --m-rail-fg: #24201B; --m-rail-muted: #5B554C; --m-rail-active: #FBFCF8; --m-rail-activeFg: #24201B; --m-rail-deep: #CFD9C0;      --background: 80 27% 94%; --card: 75 40% 98%; --popover: 75 40% 98%; --secondary: 81 27% 88%; --muted: 81 27% 88%; --border: 85 21% 80%; --input: 88 15% 67%; }
[data-ground="sky"] { --m-paper-0: #ECF1F5; --m-paper-1: #FAFCFD; --m-paper-2: #DCE5EC; --m-paper-3: #C4D3E0; --m-line-1: #D9E2EA; --m-line-2: #C5D2DD; --m-line-3: #A1B5C4; --m-rail-bg: #C4D3E0; --m-rail-fg: #24201B; --m-rail-muted: #5B554C; --m-rail-active: #FAFCFD; --m-rail-activeFg: #24201B; --m-rail-deep: #C4D3E0;      --background: 207 31% 94%; --card: 200 43% 99%; --popover: 200 43% 99%; --secondary: 206 30% 89%; --muted: 206 30% 89%; --border: 208 26% 82%; --input: 206 23% 70%; }
[data-ground="plum"] { --m-paper-0: #F0EEF4; --m-paper-1: #FCFBFD; --m-paper-2: #E6E1ED; --m-paper-3: #D0C9DD; --m-line-1: #E0DBE8; --m-line-2: #CDC6DA; --m-line-3: #ABA1BE; --m-rail-bg: #D0C9DD; --m-rail-fg: #24201B; --m-rail-muted: #5B554C; --m-rail-active: #FCFBFD; --m-rail-activeFg: #24201B; --m-rail-deep: #D0C9DD;      --background: 260 21% 95%; --card: 270 33% 99%; --popover: 270 33% 99%; --secondary: 265 25% 91%; --muted: 265 25% 91%; --border: 261 21% 82%; --input: 261 18% 69%; }
[data-ground="rose"] { --m-paper-0: #F5EEEC; --m-paper-1: #FDFBFA; --m-paper-2: #EDE2DE; --m-paper-3: #DFCBC5; --m-line-1: #E9DCD8; --m-line-2: #DAC7C2; --m-line-3: #C0A6A0; --m-rail-bg: #DFCBC5; --m-rail-fg: #24201B; --m-rail-muted: #5B554C; --m-rail-active: #FDFBFA; --m-rail-activeFg: #24201B; --m-rail-deep: #DFCBC5;      --background: 13 31% 94%; --card: 20 43% 99%; --popover: 20 43% 99%; --secondary: 16 29% 90%; --muted: 16 29% 90%; --border: 13 24% 81%; --input: 11 20% 69%; }
[data-ground="sunrise"] { --m-paper-0: #FCEEE2; --m-paper-1: #FFFFFF; --m-paper-2: #F7E0CC; --m-paper-3: #EFCFB4; --m-line-1: #F3DECB; --m-line-2: #E8CDB6; --m-line-3: #D1AE92; --m-rail-bg: #123F4B; --m-rail-fg: #FFFFFF; --m-rail-muted: #A9C6CC; --m-rail-active: #1C5461; --m-rail-activeFg: #FFFFFF; --m-rail-deep: #123F4B;      --background: 28 81% 94%; --card: 0 0% 100%; --popover: 0 0% 100%; --secondary: 28 73% 88%; --muted: 28 73% 88%; --border: 28 52% 81%; --input: 27 41% 70%; }
[data-ground="slack"] { --m-paper-0: #F3F0F5; --m-paper-1: #FEFDFF; --m-paper-2: #EAE5EE; --m-paper-3: #DED6E3; --m-line-1: #E6E1EA; --m-line-2: #D9D2DE; --m-line-3: #B9AEC1; --m-rail-bg: #3B183B; --m-rail-fg: #FFFFFF; --m-rail-muted: #CFC3CF; --m-rail-active: #FFFFFF; --m-rail-activeFg: #1D1C1D; --m-rail-deep: #311232; --m-rail-top: #311232; --m-rail-sky: linear-gradient(180deg, #311232 0%, #3B183B 100%); --m-topbar-bg: #311232; --m-topbar-fg: #FFFFFF; --m-topbar-field: #5A3A5B; --m-radius-soft: 8px; --m-radius-tile: 8px; --m-radius-pill: 4px; --m-radius-glyph: 6px; --m-card-border: #DDDDDD; --m-content-teal-bg: #D2F3E8; --m-content-teal-fg: #0B5C47; --m-content-teal-dot: #1BAF8A; --m-content-mint-bg: #D2F3E8; --m-content-mint-fg: #0B5C47; --m-content-mint-dot: #1BAF8A; --m-content-peach-bg: #FFE3CC; --m-content-peach-fg: #9A4A00; --m-content-peach-dot: #F5841F; --m-content-sun-bg: #F4EACA; --m-content-sun-fg: #6E5400; --m-content-sun-dot: #B99F33; --m-content-lavender-bg: #ECEBC9; --m-content-lavender-fg: #4D480A; --m-content-lavender-dot: #8A7A12; --m-content-violet-bg: #EDE4FF; --m-content-violet-fg: #4A2C8F; --m-content-violet-dot: #8B5CF6; --m-content-camas-bg: #E2EFED; --m-content-camas-fg: #075B44; --m-content-camas-dot: #007A5A; --background: 276 20% 95%; --card: 270 100% 100%; --popover: 270 100% 100%; --secondary: 273 21% 92%; --muted: 273 21% 92%; --border: 275 15% 85%; --input: 275 13% 72%; }
[data-accent="ink"] { --m-accent: #17140F; --m-accent-hover: #302A22; --m-accent-fg: #FBF8F2; --m-link: #24201B; --primary: 38 21% 7%; --primary-foreground: 40 53% 97%; }
[data-accent="walnut"] { --m-accent: #6B4A2B; --m-accent-hover: #563A20; --m-accent-fg: #FBF8F2; --m-link: #5A3D22; --primary: 29 43% 29%; --primary-foreground: 40 53% 97%; }
[data-accent="raspberry"] { --m-accent: #B4235F; --m-accent-hover: #961B4E; --m-accent-fg: #FFFFFF; --m-link: #9E1F54; --primary: 335 67% 42%; --primary-foreground: 0 0% 100%; }
[data-accent="marigold"] { --m-accent: #F5B935; --m-accent-hover: #E9A81F; --m-accent-fg: #17140F; --m-link: #24201B; --primary: 41 91% 58%; --primary-foreground: 38 21% 7%; }
[data-accent="worn-blue"] { --m-accent: #2E7099; --m-accent-hover: #256081; --m-accent-fg: #FBF8F2; --m-link: #1F5B7D; --primary: 203 54% 39%; --primary-foreground: 40 53% 97%; }
[data-accent="mark-blue"] { --m-accent: #1E5CC7; --m-accent-hover: #184CA6; --m-accent-fg: #FFFFFF; --m-link: #1A4FAB; --primary: 218 74% 45%; --primary-foreground: 0 0% 100%; }
[data-accent="deep-teal"] { --m-accent: #123F4B; --m-accent-hover: #0D313A; --m-accent-fg: #FFFFFF; --m-link: #0F5566; --primary: 193 61% 18%; --primary-foreground: 0 0% 100%; }
[data-accent="slack-green"] { --m-accent: #007A5A; --m-accent-hover: #00654A; --m-accent-fg: #FFFFFF; --m-link: #1264A3; --primary: 164 100% 24%; --primary-foreground: 0 0% 100%; }
[data-accent="olive"] { --m-accent: #6E6A12; --m-accent-hover: #57540E; --m-accent-fg: #FFFFFF; --m-link: #5A5610; --primary: 57 72% 25%; --primary-foreground: 0 0% 100%; }
[data-accent="camas-green"] { --m-accent: #007A5A; --m-accent-hover: #00654A; --m-accent-fg: #FFFFFF; --m-link: #5A5610; --primary: 164 100% 24%; --primary-foreground: 0 0% 100%; }
[data-type="bricolage-work"] { --m-font-display: "Bricolage Grotesque", "Work Sans", system-ui, sans-serif; --m-font-body: "Work Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
[data-type="fraunces-source"] { --m-font-display: "Fraunces", Georgia, "Times New Roman", serif; --m-font-body: "Source Sans 3", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
[data-type="public"] { --m-font-display: "Public Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --m-font-body: "Public Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
[data-type="hanken-plex"] { --m-font-display: "Hanken Grotesk", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --m-font-body: "Hanken Grotesk", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --m-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
[data-type="lato"] { --m-font-display: "Lato", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --m-font-body: "Lato", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --m-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
[data-type="inter"] { --m-font-display: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --m-font-body: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --m-font-mono: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }

@media (prefers-reduced-motion: reduce) { :root { --m-dur-micro: 0ms; --m-dur-state: 0ms; --m-dur-enter: 0ms; --m-dur-settle: 0ms; } }

/* Monky website prototype. Tokens only: no raw hex (build rule). */
/* Fonts, self-hosted from the design system (LF-199; SIL OFL 1.1, licences in /assets/typefaces/).
   Variable fonts: one file per style covers every weight. */
@font-face { font-family: "Inter"; src: url("/assets/typefaces/inter/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/typefaces/inter/Inter-Italic-latin.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/typefaces/patryck-bricolage-grotesque/BricolageGrotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--m-paper-0); color: var(--m-ink-0); font-family: var(--m-font-body); font-size: var(--m-text-lg); line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--m-link); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--m-focus); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--m-font-display); color: var(--m-ink-0); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: var(--m-weight-display); line-height: 1.05; letter-spacing: -0.03em; margin-block: var(--m-space-3) var(--m-space-6); max-width: 14ch; }
h2 { font-size: clamp(1.75rem, 3vw, var(--m-text-4xl)); font-weight: var(--m-weight-display); letter-spacing: -0.02em; line-height: 1.15; margin-block: 0 var(--m-space-6); }
h3 { font-size: var(--m-text-xl); font-weight: var(--m-weight-heading); margin-block: 0 var(--m-space-2); }
p { margin-block: 0 var(--m-space-4); }
/* No widows (Tim, 2026-09-28): headings wrap into even lines; running text avoids a lone
   last word. Where a browser still leaves one, join the last two words with &nbsp;. */
h1, h2, h3, legend { text-wrap: balance; }
p, li, label, figcaption { text-wrap: pretty; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: clamp(var(--m-space-6), 5vw, var(--m-space-16)); }

/* Wireframe helpers: remove before review builds */
.wf-banner { margin: 0; padding: var(--m-space-2) var(--m-space-4); text-align: center; font-size: var(--m-text-sm); background: var(--m-person-bg); color: var(--m-person-fg); }
.wf-release { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.wf-box { display: grid; place-items: center; min-height: 18rem; padding: var(--m-space-6); border: 2px dashed var(--m-line-3); border-radius: var(--m-radius-tile); background: var(--m-paper-2); color: var(--m-ink-3); font-size: var(--m-text-base); text-align: center; }

/* Pinned top bar, every page (Erin's hero handoff, 2026-09-28).
   Solid purple by default, so it reads without a script. On the home page a script
   clears it over the photo and fades the purple in as you scroll (--bar, 0 to 1). */
.topbar { position: sticky; top: 0; z-index: 10; color: var(--m-topbar-fg); isolation: isolate; }
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--m-topbar-bg); opacity: var(--bar, 1); box-shadow: 0 1px 0 color-mix(in srgb, var(--m-ink-0) 25%, transparent); }
.has-hero .topbar { position: fixed; left: 0; right: 0; }
/* A2 (WCAG 2.4.11): keep keyboard focus, the skip link and anchor jumps clear of the pinned bar.
   --topbar-h is measured by the home page script; 7rem covers the bar elsewhere. */
html { scroll-padding-top: calc(var(--topbar-h, 7rem) + var(--m-space-2)); }
.topbar .wf-banner { position: relative; }
.site-header { color: inherit; }
.site-header .header-row { max-width: 70rem; display: flex; align-items: center; gap: var(--m-space-6); padding: 14px var(--m-space-6); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
/* The official logo (LF-189): the white version on the purple bar and the photo.
   Used as the file, never redrawn. At least 96 px wide; the bar's padding gives the
   quarter-height clear space. */
.site-header .logo { display: block; height: 32px; width: auto; }
.wordmark { font-family: var(--m-font-wordmark); font-weight: var(--m-weight-wordmark); font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1; }
.wordmark.small { font-size: var(--m-text-xl); }
.nav { display: flex; flex-wrap: wrap; gap: var(--m-space-6); margin: 0; padding: 0; list-style: none; }
.site-header .nav a { display: inline-block; padding-block: var(--m-space-1); color: var(--m-topbar-fg); text-decoration: none; font-weight: var(--m-weight-label); font-size: var(--m-text-md); }
.site-header .nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.topbar a:focus-visible, .hero-photo a:focus-visible { outline: 3px solid var(--m-person-line); outline-offset: 3px; }

/* Home page hero: the photo fills the top section, behind the bar and the headline */
.hero-photo { position: relative; min-height: 79vh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; background: var(--m-ink-2); color: var(--m-paper-1); padding-top: var(--topbar-h, 108px); }
.hero-photo::after { content: ""; position: absolute; inset: -40px; z-index: -2; background: url("/assets/hero-moon-wide.jpg") 77.36% 25.44% / cover no-repeat; filter: blur(14px) brightness(1.3) contrast(.78) saturate(.9); }
/* Hero photo from Erin's edited master (2026-09-29). Crops are made so the tip of the crescent's upper
   point sits where Tim marked it (77% across, 25% down; Tim darkened the master's top edge on 2026-09-29 so the menu sits on dark sky); background-position pins that same point, so it
   stays there at any screen shape. Portrait screens get a tall crop with the tip upper right. */
@media (orientation: portrait) {
  .hero-photo::after { background-image: url("/assets/hero-moon-portrait.jpg"); background-position: 65% 25%; }
}
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--m-ink-1) 55%, transparent) 0%, color-mix(in srgb, var(--m-ink-1) 30%, transparent) 45%, transparent 75%); }
.hero-copy { max-width: 70rem; width: 100%; margin: auto; padding: 48px var(--m-space-6) 96px; }
.hero-copy > div { max-width: 46rem; }
.hero-photo .note { max-width: 36rem; }
.hero-photo .eyebrow { color: var(--m-person-line); font-size: var(--m-text-base); margin: 0 0 var(--m-space-4); }
.hero-photo h1 { color: inherit; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 var(--m-space-6); max-width: none; }
.hero-photo .lede { color: color-mix(in srgb, var(--m-paper-1) 82%, transparent); font-size: 19px; line-height: 1.55; max-width: 36rem; margin: 0 0 var(--m-space-6); }
.hero-photo .note { font-size: var(--m-text-md); margin: var(--m-space-12) 0 var(--m-space-5); }
.hero-photo .pilot-callout { width: fit-content; max-width: 100%; margin-top: var(--m-space-12); padding: var(--m-space-4) var(--m-space-6); border-left: 4px solid var(--m-person-line); background: color-mix(in srgb, var(--m-ink-1) 35%, transparent); }
.hero-photo .pilot-callout .note { margin: 0 0 var(--m-space-5); color: var(--m-paper-1); }
.hero-photo .text-link { color: inherit; font-weight: var(--m-weight-label); text-underline-offset: 4px; }

/* Buttons and links */
.button { display: inline-block; white-space: nowrap; padding: var(--m-space-3) 18px; border-radius: var(--m-radius-card); background: var(--m-accent); color: var(--m-accent-fg); font-size: var(--m-text-md); font-weight: var(--m-weight-heading); text-decoration: none; }
.button:hover { background: var(--m-accent-hover); }
.text-link { font-weight: var(--m-weight-heading); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--m-space-6); }

/* Eyebrows and ledes */
.eyebrow { color: var(--m-accent); font-weight: var(--m-weight-heading); font-size: var(--m-text-md); margin: 0; }
.lede { color: var(--m-ink-2); font-size: var(--m-text-xl); line-height: 1.5; max-width: 38ch; margin-bottom: var(--m-space-8); }

/* Bands */
.band { background: var(--m-paper-1); border-block: 1px solid var(--m-line-2); padding-block: var(--m-space-16); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--m-space-6); margin: 0 0 var(--m-space-8); padding: 0; list-style: none; }
.card { background: var(--m-paper-1); border: 1px solid var(--m-line-2); border-radius: var(--m-radius-card); box-shadow: var(--m-shadow-card); padding: var(--m-space-6); }
.card p { color: var(--m-ink-2); font-size: var(--m-text-md); margin: 0; }
.step-no { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: var(--m-space-4); border-radius: var(--m-radius-chip); background: var(--m-content-camas-bg); color: var(--m-content-camas-fg); font-weight: var(--m-weight-heading); font-size: var(--m-text-base); }

.band .split { padding-block: 0; }
.what-if { margin: 0; padding-left: 1.2em; display: grid; gap: var(--m-space-2); color: var(--m-ink-1); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m-space-12); padding-block: var(--m-space-16); }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--m-space-6); }
.points li { padding-left: var(--m-space-5); border-left: 3px solid var(--m-content-camas-dot); }
.points p { color: var(--m-ink-2); font-size: var(--m-text-md); margin: 0; }

.band-pilot { background: var(--m-content-camas-bg); border-color: var(--m-content-camas-bg); }
.pilot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--m-space-8); }
.pilot > div { min-width: 0; }
.pilot p { max-width: 50ch; color: var(--m-ink-1); margin: 0; }
.pilot h2 { margin-bottom: var(--m-space-3); }

/* Home: busywork section, text beside the illustration (Home-002) */
.busywork { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--m-space-12); align-items: center; }
.art { margin: 0; }
.art img { display: block; width: 100%; height: auto; }

/* Inner pages */
.section { padding-block: var(--m-space-16); }
.narrow { max-width: 52rem; }
.feature-band { padding-block: var(--m-space-16); border-top: 1px solid var(--m-line-2); }
.feature-band h2 { max-width: 20ch; }
/* How it works: the band runs the full width of the page (Tim, 2026-09-30) */
.feature-band-wide h2, .feature-band-wide .lede { max-width: none; }
/* Smaller illustration, centred in its column, so tall pictures don't crowd the text (Tim, 2026-09-30) */
.art-compact { width: 75%; margin-inline: auto; }
.page-intro { padding-block: clamp(var(--m-space-12), 8vh, 6rem) var(--m-space-8); }
.page-intro h1 { max-width: 20ch; }
.stack { display: grid; gap: var(--m-space-12); padding-bottom: var(--m-space-16); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m-space-12); align-items: center; }
.row .wf-box { min-height: 12rem; }
.wf-note { color: var(--m-ink-3); font-size: var(--m-text-base); }
.prose { padding-bottom: var(--m-space-16); }
.prose > * { max-width: 44rem; }
.prose ul { padding-left: 1.25em; }
.prose h2 { font-size: var(--m-text-2xl); margin-top: var(--m-space-10); margin-bottom: var(--m-space-3); }
.confirm { background: var(--m-person-bg); color: var(--m-person-fg); padding: 0 var(--m-space-1); border-radius: var(--m-radius-control); font-size: 0.9em; }
.site-header .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--m-line-2); color: var(--m-ink-2); font-size: var(--m-text-base); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--m-space-6); padding-block: var(--m-space-8); }
.footer-row p { margin: 0; }
/* Footer: the main logo (light version, LF-194) paired with "by Tikali" as text beside it, not part of
   the logo (LF-192). The gap keeps the logo's clear space (a quarter of its height). */
/* Baselines: the logo's lettering sits on a baseline 85% of the way down the file (measured
   from monky-logo-light.svg), so the image drops 15% of its height below the text baseline.
   "by Tikali" is sized so its tallest letters (b, T, k, l: 15 px) stay under the tops of the logo's
   "onky" (17 px at a 28 px logo); gap to "b" about 10 px, above the 7 px clear space (Tim, 2026-09-29). */
.footer-brand { display: block; line-height: 1; }
.footer-brand .logo { display: inline-block; height: 28px; width: auto; vertical-align: calc(-0.15 * 28px); margin-right: 6px; }
.footer-brand span { font-size: var(--m-text-xl); color: var(--m-ink-1); }
.site-footer .nav a { color: var(--m-ink-2); display: inline-block; padding-block: var(--m-space-1); min-width: var(--m-space-6); text-align: center; }
/* A5 (WCAG 2.5.8): every link target at least 24 px, not just spaced out. */
.text-link { display: inline-block; padding-block: 2px; }

.skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 100; background: var(--m-paper-1); padding: 1rem; } /* above the pinned bar (WCAG 2.4.7, 2.4.11) */
.skip-link:focus { top: 1rem; }

/* Footer: social links */
.site-footer .social a { color: var(--m-ink-2); }
/* Item 23 (Tim, 2026-09-30): logos instead of names. One colour, the footer link colour; each link is named
   by its aria-label, and the target stays at least 24 px (WCAG 2.5.8). */
.site-footer .social { gap: var(--m-space-5); align-items: center; }
.site-footer .social a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--m-space-6); min-height: var(--m-space-6); }
.site-footer .social a:hover { color: var(--m-ink-1); }
.social-icon { width: 22px; height: 22px; display: block; }
/* Item 22 (Tim, 2026-09-30): footer links never break mid-link or into ragged rows.
   Wide screens: logo and socials on the first row, the page links on one line under them.
   Phones: the page links in two tidy columns. */
.site-footer .nav a { white-space: nowrap; }
.footer-row > nav { order: 3; flex-basis: 100%; }
.footer-row > nav .nav { flex-wrap: nowrap; gap: var(--m-space-2) var(--m-space-5); }
@media (max-width: 47.99rem) {
  .footer-row > nav .nav { display: grid; grid-template-columns: repeat(2, max-content); column-gap: var(--m-space-10); }
  .footer-row > nav .nav a { text-align: left; }
  .site-footer .social { flex-wrap: nowrap; gap: var(--m-space-4); }
}

/* Contact: two doors (board item 21, option A, Tim 2026-09-30) */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m-space-6); padding-bottom: var(--m-space-16); }
.door { background: var(--m-paper-1); border: 1px solid var(--m-line-2); border-radius: var(--m-radius-card); padding: var(--m-space-8); display: grid; gap: var(--m-space-4); align-content: start; }
.door h2 { margin: 0; font-size: var(--m-text-2xl); }
.door p { margin: 0; }
.door-address { font-size: var(--m-text-xl); font-weight: var(--m-weight-heading); }
.door .field-note:empty { display: none; }
@media (max-width: 47.99rem) { .doors { grid-template-columns: 1fr; } .door { padding: var(--m-space-6); } }

/* Request form */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.invite { padding-bottom: var(--m-space-16); }
.invite > * { max-width: 44rem; }  /* boxes start on the headline's left edge, like .prose (Tim, 2026-09-30) */
/* Module names on How it works (board D28): a quiet line under steps 2 and 4 */
.module-name { font-weight: var(--m-weight-label); color: var(--m-ink-2); }
/* Home How it works: module names (board D28, variant B). Bracket row on desktop (4 columns); card tags below that. */
.steps .mod { display: inline-block; margin-left: var(--m-space-3); vertical-align: middle; padding: 2px 10px; border-radius: var(--m-radius-chip); font-size: var(--m-text-sm); font-weight: var(--m-weight-label); background: var(--m-content-camas-bg); color: var(--m-content-camas-fg); }
.steps .mod.you { background: var(--m-person-bg); color: var(--m-person-fg); }
.bracket { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--m-space-6); margin: 0 0 var(--m-space-3); }
.bracket span { border-top: 3px solid var(--m-content-camas-dot); padding-top: var(--m-space-2); font-weight: var(--m-weight-label); color: var(--m-content-camas-fg); }
.bracket .see { grid-column: 1 / 3; }
.bracket .you { border-color: var(--m-person-dot); color: var(--m-person-fg); }
@media (min-width: 64rem) { .steps .mod { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; } }
@media (max-width: 63.99rem) { .bracket { display: none; } }
.invite-form { display: grid; gap: var(--m-space-8); }
.invite-form fieldset { border: 1px solid var(--m-line-2); border-radius: var(--m-radius-card); background: var(--m-paper-1); padding: var(--m-space-6); margin: 0; display: grid; gap: var(--m-space-4); }
/* The group title sits inside the box, not straddling its border (Tim, 2026-09-28).
   Floating the legend takes it out of the border; inside the grid it becomes the first row. */
.invite-form legend { float: left; width: 100%; padding: 0; font-weight: var(--m-weight-heading); font-size: var(--m-text-xl); }
.label-hint { display: block; margin: 0; font-style: italic; font-weight: var(--m-weight-body); color: var(--m-ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m-space-4); align-items: start; }
.field { display: grid; gap: var(--m-space-2); align-content: start; }
.field label { font-weight: var(--m-weight-label); }
/* Form errors: one summary at the top, one message under each field (WCAG 3.3.1, 3.3.3) */
.form-errors { border: 1px solid var(--m-error-line); border-radius: var(--m-radius-card); background: var(--m-error-bg); color: var(--m-ink-1); padding: var(--m-space-4) var(--m-space-6); }
.form-errors h2 { font-size: var(--m-text-lg); margin: 0 0 var(--m-space-2); }
.form-errors ul { margin: 0; padding-left: 1.25em; }
.form-errors a { color: var(--m-error-fg); }
.field-error { color: var(--m-error-fg); font-weight: var(--m-weight-label); margin: 0; }
.invite-form ::placeholder { color: var(--m-ink-3); opacity: 1; }
.invite-form [aria-invalid="true"] { border-color: var(--m-error-fg); border-width: 2px; }
.field-note { color: var(--m-ink-2); font-size: var(--m-text-base); margin: 0; }
/* Privacy checkbox (board item 24): box on the left, label beside it, any error message under the label */
.invite-form .check { grid-template-columns: auto 1fr; column-gap: var(--m-space-3); align-items: start; }
.invite-form .check input { width: 1.375rem; height: 1.375rem; margin: 0.125rem 0 0; padding: 0; accent-color: var(--m-accent); }
.invite-form .check .field-error { grid-column: 2; }
/* Spam trap for the relay: off-screen, never shown */
.invite-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.invite-form input, .invite-form select, .invite-form textarea, .invite-sent textarea { font: inherit; color: var(--m-ink-1); background: var(--m-paper-1); border: 1px solid var(--m-line-3); border-radius: var(--m-radius-control); padding: var(--m-space-2) var(--m-space-3); width: 100%; box-sizing: border-box; }
.invite-form input:focus-visible, .invite-form select:focus-visible, .invite-form textarea:focus-visible, button:focus-visible { outline: 2px solid var(--m-focus); outline-offset: 2px; }
.invite-form button.button { border: 0; font: inherit; font-weight: var(--m-weight-heading); cursor: pointer; }
.button.secondary { background: var(--m-paper-2); color: var(--m-ink-1); border: 1px solid var(--m-line-2); cursor: pointer; font: inherit; }
.invite-sent { display: grid; gap: var(--m-space-3); }
.invite-sent h2 { margin: 0; }
@media (max-width: 39.99rem) { .field-row { grid-template-columns: 1fr; } }

/* Hidden means hidden, even on elements given a display value above */
[hidden] { display: none !important; }

/* Narrow screens. Breakpoints follow the design system's screen widths (LF-198): below lg 1024, md 768, sm 640. */
@media (max-width: 63.99rem) {
  .split, .row, .busywork { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
/* Phones: the page links hide and only the invite button stays in the bar (Erin's mockup) */
@media (max-width: 47.99rem) {
  .site-header nav { display: none; }
  .hero-photo::before { background: color-mix(in srgb, var(--m-ink-1) 45%, transparent); }
}
@media (max-width: 39.99rem) {
  .steps { grid-template-columns: 1fr; }
  /* Phones: roomier footer targets for thumbs */
  .site-footer .nav a { padding-block: var(--m-space-3); }
}
/* A7 (WCAG 1.4.10): on short screens (landscape phones, high zoom) the bar scrolls away
   instead of covering the page. It is then always solid, since it no longer sits on the photo. */
@media (max-height: 31.25rem) {
  .topbar, .has-hero .topbar { position: static; }
  .topbar::before { opacity: 1 !important; }
  .has-hero .hero-photo { padding-top: 0; }
  html { scroll-padding-top: 0; }
}
@media (max-width: 26.25rem) {
  .site-header .header-row { padding: 12px var(--m-space-4); gap: var(--m-space-3); }
  .site-header .logo { height: 28px; }
  .site-header .button { padding: 9px var(--m-space-3); font-size: var(--m-text-base); }
  .hero-copy { padding-inline: var(--m-space-4); }
}
