/* SeaHen: base.css. Fonts, tokens, reset, type, layout, buttons, utilities.
   Concept: a neon sign on a dark brick wall. Every graphic is one clean line, the way a
   laser traces a vector path. Glow is kept for signs and accents; reading text stays crisp. */

/* Fonts (self-hosted, SIL Open Font License: see assets/fonts/OFL-*.txt) */
@font-face {
  font-family: "Josefin Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("../fonts/josefin-sans-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: "Josefin Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("../fonts/josefin-sans-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;
}
@font-face {
  font-family: "Neonderthaw"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/neonderthaw-latin.woff2") format("woff2");
}

/* Tokens: dark is the brand default; light is the logo's light version, chosen with the toggle. */
:root {
  --wall: #17131F;
  --brick: #211A2B;
  --panel: #1E1828;
  --panel-2: #251E31;
  --ink: #FFF2F8;
  --ink-2: #C8C0D4;
  --pink: #FF4FA3;
  --orange: #FF7A3D;
  --yellow: #FFD23F;
  --cyan: #3EF0E8;
  --mint: #C8FBF8;
  --on-pink: #17131F;
  --line: rgba(255, 242, 248, .14);
  --field: #9387A6;            /* form borders: 4.9:1 on panel */
  --error: #FF7A3D;
  --glow: 1;
  --script: "Neonderthaw", "Brush Script MT", cursive;
  --font: "Josefin Sans", "Futura", "Century Gothic", "Avenir Next", Arial, sans-serif;
  --max: 1240px;
  --header-h: 80px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --wall: #EDE8F0; --brick: #E2DBE8; --panel: #F7F3F9; --panel-2: #F1ECF4;
  --ink: #3B2A4F; --ink-2: #5E4F72;
  --pink: #B8136A; --orange: #B33F0E; --yellow: #8A4300; --cyan: #006B6E; --mint: #5E4F72;
  --on-pink: #FFFFFF; --line: rgba(59, 42, 79, .16); --field: #7A6C8E; --error: #B33F0E; --glow: 0;
  color-scheme: light;
}

*, *::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(--wall); 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(--wall); }
main:focus { outline: none; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: .01em; line-height: 1.02; text-wrap: balance; text-transform: uppercase; }
h3 { font-weight: 700; line-height: 1.2; }
img, svg { max-width: 100%; }
a { color: var(--cyan); text-underline-offset: .25em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }
.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(--ink); color: var(--wall); padding: 12px 16px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); color: var(--wall); }

/* Type helpers */
.tracked { font-size: .8125rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mint); }
.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); }
.glow-pink { color: var(--pink); text-shadow: 0 0 calc(12px * var(--glow)) rgba(255, 79, 163, calc(.6 * var(--glow))); }
.glow-cyan { color: var(--cyan); text-shadow: 0 0 calc(12px * var(--glow)) rgba(62, 240, 232, calc(.55 * var(--glow))); }
.glow-yellow { color: var(--yellow); text-shadow: 0 0 calc(12px * var(--glow)) rgba(255, 210, 63, calc(.5 * var(--glow))); }
.glow-orange { color: var(--orange); text-shadow: 0 0 calc(12px * var(--glow)) rgba(255, 122, 61, calc(.5 * var(--glow))); }
.block { display: block; }

/* Brick wall: the logo's mortar pattern. */
.bricks {
  background-color: var(--wall);
  background-image: linear-gradient(var(--brick) 2px, transparent 2px), linear-gradient(90deg, var(--brick) 2px, transparent 2px);
  background-size: 60px 26px, 60px 52px;
  background-position: 0 0, 30px 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  font-family: inherit; font-weight: 700; font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; line-height: 1;
  transition: background-color .15s, box-shadow .15s, color .15s;
}
.btn-neon { color: var(--on-pink); background: var(--pink); box-shadow: 0 0 calc(18px * var(--glow)) rgba(255, 79, 163, calc(.5 * var(--glow))); }
.btn-neon:hover { background: var(--ink); color: var(--wall); }
.btn-tube { color: var(--cyan); background: transparent; box-shadow: inset 0 0 0 2px var(--cyan), 0 0 calc(12px * var(--glow)) rgba(62, 240, 232, calc(.35 * var(--glow))); }
.btn-tube:hover { background: rgba(62, 240, 232, .1); color: var(--cyan); }
.btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Sections */
.sec { padding-block: 88px; }
@media (min-width: 900px) { .sec { padding-block: 120px; } }
.sec-tight { padding-top: 0; }
.head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 66ch; }
.head h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); }
.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); }

/* 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; }

@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 { border: 1px solid ButtonText; } .glow-pink, .glow-cyan, .glow-yellow, .glow-orange { text-shadow: none; } }
.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; } }
