/* Earful site v1: /, /privacy, /support. Plain CSS. No web fonts, no third-party requests.
   Colours and sizes come from EARFUL-HANDOFF/01-foundations/tokens.json via web/TOKENS-WEB.md. */

:root {
  color-scheme: light dark;
  --ground: #F6F5F2;
  --raised: #FFFFFF;
  --fill: #EBEAE6;
  --ink: #0E0E10;
  --ink2: #66666C;
  --nontext: #A3A3A8;
  --hairline: rgba(0, 0, 0, 0.07);
  --tangerine: #F25A0F;
  --signal: #2D6BFF;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --margin: 20px;
  --measure: 40ch;           /* 7–10 words a line */
  --radius-card: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B0B0C;
    --raised: #1A1A1D;
    --fill: #252529;
    --ink: #F4F3EF;
    --ink2: #9C9CA3;
    --nontext: #5E5E66;
    --hairline: rgba(255, 255, 255, 0.08);
    --signal: #5B8CFF;
  }
}

@media (min-width: 768px) { :root { --margin: 32px; } }
@media (min-width: 1280px) { :root { --margin: 64px; } }

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;      /* 17 */
  line-height: 1.53;         /* 26 */
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1280px) { body { font-size: 1.125rem; line-height: 1.556; } } /* 18/28 */

p, li { text-wrap: pretty; }
.lead { text-wrap: balance; }
h1, h2, h3 { text-wrap: balance; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: var(--margin);
  top: -100px;
  padding: 8px 16px;
  background: var(--raised);
  border-radius: 999px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* Header and footer */
.site-header, .site-footer, main {
  width: 100%;
  max-width: calc(1120px + 2 * var(--margin));
  margin: 0 auto;
  padding-left: var(--margin);
  padding-right: var(--margin);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { display: block; height: 28px; width: auto; }

.site-nav ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9375rem;      /* 15 */
}
.site-nav a:hover { background: var(--fill); }
.site-nav a[aria-current="page"] { font-weight: 600; background: var(--fill); }

.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--hairline);
  color: var(--ink2);
  font-size: 0.8125rem;      /* 13 */
  line-height: 1.54;
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 8px; padding: 0; list-style: none; }
.site-footer a { color: var(--ink2); display: inline-block; min-height: 24px; }
.site-footer p { margin: 0; }

/* Draft banner: delete the element when the text is final. */
.draft {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--fill);
  color: var(--ink);
  font-size: 0.9375rem;
  max-width: var(--measure);
}

/* Home */
.hero {
  display: grid;
  gap: 40px;
  padding: 40px 0 64px;
}
.hero-text { max-width: 36rem; }
@media (min-width: 768px) { .hero { padding: 64px 0 96px; } }
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 26rem) auto;
    justify-content: center;
    align-items: center;
    gap: 64px;
    padding: 80px 0 112px;
  }
}
@media (min-width: 1280px) { .hero { gap: 96px; } }
@media (min-width: 1024px) { .hero-shot { width: 360px; } }

.hero-shot { margin: 0; justify-self: center; width: 100%; max-width: 320px; }
@media (min-width: 1024px) { .hero-shot { max-width: 360px; justify-self: end; } }
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 44px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}
@media (prefers-color-scheme: dark) {
  .hero-shot img { box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); }
}

.display {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 2.07vw + 2.015rem, 5.25rem);   /* 40 → 84 */
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  text-wrap: balance;
  max-width: 24em;           /* 7–10 words a line at every size */
  color: var(--ink2);
  font-size: clamp(1.1875rem, 0.28vw + 1.12rem, 1.375rem); /* 19 → 22 */
  line-height: 1.45;
}

.sent { display: inline-block; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { text-decoration: none; box-shadow: inset 0 0 0 999px rgba(127, 127, 127, 0.12); }
@media (min-width: 1280px) { .button { min-height: 48px; } }

.points {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) { .points { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1280px) { .points { gap: 24px; } }

.points li {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--raised);
}
.points h2 {
  margin: 0 0 8px;
  font-size: 1.375rem;       /* 22 */
  line-height: 1.27;
  font-weight: 600;
}
.points p { margin: 0; color: var(--ink2); }

/* Long-form pages: one centred reading column (AD fix 2) */
main.page { max-width: calc(680px + 2 * var(--margin)); font-size: 1.0625rem; line-height: 1.6; }
.page { padding-top: 32px; }
@media (min-width: 768px) { .page { padding-top: 64px; } }

.page h1 {
  margin: 0 0 8px;
  font-size: 2.125rem;       /* 34 */
  line-height: 1.2;
  font-weight: 700;
}
.page .meta { margin: 0 0 32px; color: var(--ink2); font-size: 0.9375rem; }

.page h2 {
  margin: 48px 0 12px;
  font-size: 1.375rem;
  line-height: 1.27;
  font-weight: 600;
}
.page h3 {
  margin: 32px 0 8px;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 600;
}
.page p, .page ul, .page ol { margin: 0 0 16px; }
.page ul, .page ol { padding-left: 1.25em; }
.page li { margin-bottom: 6px; }
.page .intro { font-size: 1.1875rem; line-height: 1.47; }

.summary {
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: var(--raised);
}
.summary p { margin: 0 0 8px; }
.summary ul { margin: 0; }
.summary li:last-child { margin-bottom: 0; }

kbd {
  font-family: var(--font);
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fill);
}

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

@media (forced-colors: active) {
  .points li, .summary, .draft { border: 1px solid CanvasText; }
}
