/* Have You Had Some Water? holding page
   Low-stimulation: no animation, no autoplay, no pure white on pure black. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #041F33;        /* deep navy, darker than brand navy */
  --panel: #0A2C45;     /* slightly lifted navy for the sign-up panel */
  --text: #E8E4DA;      /* warm off-white: avoids glare of pure white */
  --muted: #C3CCD6;     /* secondary text */
  --accent: #A9BCD6;    /* pale blue, shared with the tracker */
  --focus: #FFD27A;     /* warm yellow focus ring, plus a thick outline shape */
  --line: #3A5872;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.1875rem;        /* 19px */
  line-height: 1.65;
  letter-spacing: 0.01em;
  word-spacing: 0.04em;
}

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

.visually-hidden {
  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: 1rem; top: -4rem;
  background: var(--text); color: var(--bg);
  padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1.5rem; }

header.masthead { padding-top: 3.5rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: 1.25rem; margin: 0; }
.brand svg { fill: currentColor; color: var(--text); }
.brand .mark { width: 4.25rem; height: auto; flex: none; }
.brand .logotype { width: min(100%, 22rem); height: auto; display: block; }

.subhead {
  font-size: 1.3rem; line-height: 1.5; color: var(--accent);
  margin: 1.5rem 0 0; max-width: 34ch;
}

main section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
main section:first-child { border-top: 0; }

h2 {
  font-family: "Nunito", "Atkinson Hyperlegible", system-ui, sans-serif;
  font-weight: 800; font-size: 1.6rem; line-height: 1.25;
  margin: 0 0 1rem; letter-spacing: 0;
}

p { margin: 0 0 1.1rem; max-width: 62ch; }
.lede { font-size: 1.35rem; font-weight: 700; }

.host { display: grid; gap: 1.5rem; align-items: start; }
.host img {
  width: 11rem; height: auto; border-radius: 1rem;
  filter: brightness(0.92); /* softens the white shirt against the dark page */
}
@media (min-width: 40rem) {
  .host { grid-template-columns: 1fr 11rem; }
}

ul.expect { list-style: none; padding: 0; margin: 0; }
ul.expect li {
  padding: 1rem 0 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  margin-bottom: 1rem;
}
ul.expect strong { display: block; font-size: 1.2rem; }

.signup {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  margin: 2.5rem 0;
}
.signup h2 { margin-top: 0; }
label { display: block; font-weight: 700; margin: 1.25rem 0 0.5rem; }
input[type="email"] {
  width: 100%; font: inherit; color: #0B1A26;
  background: #F2EFE8;
  border: 2px solid #8FA6BF; border-radius: 0.5rem;
  padding: 0.8rem 0.9rem; min-height: 3rem;
}
button {
  font: inherit; font-weight: 700; cursor: pointer;
  margin-top: 1rem; min-height: 3rem; width: 100%;
  padding: 0.8rem 1.25rem;
  background: var(--accent); color: #041F33;
  border: 2px solid var(--accent); border-radius: 0.5rem;
}
button:hover { background: #C4D3E6; border-color: #C4D3E6; text-decoration: underline; }
@media (min-width: 40rem) { button { width: auto; } }

.small { font-size: 1rem; color: var(--muted); margin-top: 1rem; }

a { color: var(--text); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

footer { padding-top: 0; padding-bottom: 3rem; color: var(--muted); font-size: 1rem; }
footer p { max-width: 60ch; }
footer > p:first-child { border-top: 1px solid var(--line); padding-top: 2rem; max-width: none; }
footer nav ul { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer .company { font-size: 0.9375rem; }

/* Long-form pages (privacy, accessibility) */
.doc h1 { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 2rem; line-height: 1.2; margin: 0 0 1rem; }
.doc h2 { font-size: 1.35rem; margin-top: 2rem; }
.doc ul { padding-left: 1.25rem; max-width: 62ch; }
.doc li { margin-bottom: 0.5rem; }
.back { display: inline-block; margin: 2rem 0 0; }

/* Users who ask for more contrast get it */
@media (prefers-contrast: more) {
  :root { --bg: #000814; --text: #FFFFFF; --muted: #E6E6E6; --accent: #CFE0F5; --line: #8FA6BF; }
  .host img { filter: none; }
}

/* Windows high contrast / forced colours */
@media (forced-colors: active) {
  ul.expect li { border-left-color: CanvasText; }
  .signup { border-color: CanvasText; }
}

@media print {
  body { background: #fff; color: #000; }
  .signup, .skip { display: none; }
}
footer .safety { color: var(--text); font-weight: 700; }
