/* ETA — shared base: fonts, palette, type, buttons, forms. Calm "tide" palette; motif: arrival rings. */
@font-face { font-family: "Funnel Display"; src: url("/assets/fonts/funnel-display.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Reddit Sans"; src: url("/assets/fonts/reddit-sans.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Reddit Sans"; src: url("/assets/fonts/reddit-sans-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --paper: #F5F2EB;
  --paper-2: #ECE6DA;
  --card: #FFFDF8;
  --ink: #18202C;
  --ink-soft: #485365;
  --line: #D8D1C2;
  --lagoon: #1D6B73;
  --lagoon-deep: #124A50;
  --lagoon-pale: #D6E9E6;
  --lilac: #625A9C;
  --lilac-pale: #E6E3F2;
  --amber: #E9A23B;
  --amber-pale: #FBEBD0;
  --danger: #A8321E;
  --ok: #1F6B3A;
  --focus: #6A4FD6;
  --radius: 18px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(24, 32, 44, .06), 0 8px 24px rgba(24, 32, 44, .07);
  --font-body: "Reddit Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Funnel Display", "Reddit Sans", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--font-body); color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.012em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--lagoon-deep); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--lilac); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 10px 22px; border: 2px solid var(--lagoon); border-radius: 999px; background: var(--lagoon); color: #fff; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--lagoon-deep); border-color: var(--lagoon-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--lagoon-deep); }
.btn.ghost:hover { background: var(--lagoon-pale); color: var(--lagoon-deep); }
.btn.lilac { background: var(--lilac); border-color: var(--lilac); }
.btn.lilac:hover { background: #4D4683; border-color: #4D4683; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.small { min-height: 40px; padding: 6px 16px; font-size: .95rem; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--lagoon-deep); font: inherit; text-decoration: underline; cursor: pointer; }

/* forms */
label { font-weight: 600; }
.field { margin: 0 0 18px; }
.field > label { display: block; margin-bottom: 6px; }
.hint { display: block; color: var(--ink-soft); font-size: .92rem; font-weight: 400; margin-top: 4px; }
input[type=text], input[type=email], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #9A9384; border-radius: var(--radius-s); background: #fff; color: var(--ink); font: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0 0 12px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--lagoon); flex: none; }
.error-box { background: #FBE4DF; border-left: 5px solid var(--danger); padding: 12px 16px; border-radius: var(--radius-s); margin: 0 0 18px; }
.flash { padding: 12px 16px; border-radius: var(--radius-s); margin: 0 0 18px; background: var(--lagoon-pale); border-left: 5px solid var(--lagoon); }
.flash.error { background: #FBE4DF; border-left-color: var(--danger); }
.note { background: var(--lilac-pale); border-radius: var(--radius-s); padding: 14px 16px; margin: 0 0 18px; }
.note.amber { background: var(--amber-pale); }
.note > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
