/* SeaHen (flat hen): base.css. Fonts, tokens, reset, type, layout, buttons, utilities.
   Concept: the hen's own shapes. Rounded "hen-body" tiles in the logo's four colours, a wave line,
   and one confident blue. Light follows the device; dark is the navy of the hen's eye. */

/* Space Grotesk, self-hosted (SIL Open Font License: see assets/fonts/OFL-SpaceGrotesk.txt) */
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/space-grotesk-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens. Logo colours: hen #2D5BFF, comb #FF5A4E, beak #FFC845, eye #0D1A4A, paper #F5F5F7. */
:root {
  --hen: #2D5BFF;
  --hen-deep: #2449D8;
  --comb: #FF5A4E;
  --beak: #FFC845;
  --eye: #0D1A4A;
  --paper: #F5F5F7;
  --surface: #FFFFFF;
  --ink: #1C2036;
  --ink-2: #4A5068;
  --hen-text: #2449D8;     /* blue text on paper: 6.4:1 */
  --comb-text: #C42A1F;    /* red text on paper: 5.6:1 */
  --line: rgba(13, 26, 74, .13);
  --field: #6B7189;        /* form borders: 4.7:1 on white */
  --error: #C42A1F;
  --focus: #2449D8;
  --font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --r-body: 30px;          /* the hen body's corner */
  --max: 1240px;
  --header-h: 76px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1530; --surface: #172045; --ink: #EEF1F8; --ink-2: #B2B8CC; --hen-text: #9DB1FF; --comb-text: #FF8F86;
    --line: rgba(238, 241, 248, .15); --field: #8189A8; --error: #FF8F86; --focus: #FFC845; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1530; --surface: #172045; --ink: #EEF1F8; --ink-2: #B2B8CC; --hen-text: #9DB1FF; --comb-text: #FF8F86;
  --line: rgba(238, 241, 248, .15); --field: #8189A8; --error: #FF8F86; --focus: #FFC845; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); }
main:focus { outline: none; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; color: var(--hen-text); }
h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
img, svg { max-width: 100%; }
a { color: var(--hen-text); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: 16px; top: -100px; z-index: 60; background: var(--eye); color: #fff; padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); color: #fff; }

/* Type helpers */
.tracked { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--comb-text); }
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); max-width: 44ch; }
.muted { color: var(--ink-2); }
.note { font-size: .875rem; color: var(--ink-2); }
.hl-a { color: var(--hen-text); }
.hl-b { color: var(--ink); }
.block { display: block; }

/* Alternate section background */
.tint { background: var(--surface); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  font-family: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; border: 0; border-radius: 16px;
  cursor: pointer; white-space: nowrap; line-height: 1; transition: background-color .15s, box-shadow .15s, color .15s;
}
.btn-hen { background: var(--hen); color: #fff; }
.btn-hen:hover { background: var(--hen-deep); color: #fff; }
.btn-line { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--line); color: var(--ink); }
.btn-beak { background: var(--beak); color: var(--eye); }
.btn-beak:hover { background: #FFD46A; color: var(--eye); }
.btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
.sec { padding-block: 80px; }
@media (min-width: 900px) { .sec { padding-block: 112px; } }
.sec-tight { padding-top: 0; }
.head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 64ch; }
.head h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.head p { font-size: 1.125rem; color: var(--ink-2); }
.rule-top { border-top: 1px solid var(--line); }
.rule-y { border-block: 1px solid var(--line); }
.wave { display: block; width: 100%; height: 22px; color: var(--hen); }

/* Utilities */
.u-mt-8 { margin-top: 8px; } .u-mt-14 { margin-top: 14px; } .u-mt-24 { margin-top: 24px; } .u-mt-36 { margin-top: 36px; }
.u-pb-96 { padding-bottom: 96px; }
.stack { display: grid; gap: 24px; }
.stack-lg { display: grid; gap: 64px; min-width: 0; }

@media (max-width: 400px) { .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .btn, .panel, .icon-btn, .tile { border: 1px solid ButtonText; } }
