/* Doubt First public site. Colours and fonts follow the logo files
   (files.zip → README.txt): cream, ink, red; Fraunces + Inter. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f2ede3;
  --surface: #fbf8f2;
  --ink: #1b1b1b;
  --muted: #5a544c;
  --line: #dcd4c6;
  --red: #de4632;
  --red-text: #b8321f;   /* darker red for small text on cream (contrast) */
  --on-red: #ffffff;
  --focus: #1b1b1b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1b1b;
    --surface: #242322;
    --ink: #f2ede3;
    --muted: #c9c1b4;
    --line: #3a3835;
    --red: #de4632;
    --red-text: #f07a66;
    --on-red: #ffffff;
    --focus: #f2ede3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1b1b;
  --surface: #242322;
  --ink: #f2ede3;
  --muted: #c9c1b4;
  --line: #3a3835;
  --red-text: #f07a66;
  --focus: #f2ede3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Inter", system-ui, sans-serif;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { padding: 18px 0; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: block; width: 96px; }
.brand img { width: 100%; height: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; gap: 20px; font-weight: 600; font-size: 0.95rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
@media (max-width: 520px) { .nav .hide-sm { display: none; } }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 700px) { section { padding: 80px 0; } }
section + section { border-top: 1px solid var(--line); }
.eyebrow {
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red-text); margin-bottom: 12px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; }

/* Hero */
.hero { padding-top: 48px; }
.hero h1 .doubt { font-family: "Fraunces", serif; font-style: italic; color: var(--red-text); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }

/* Sign-up card */
.signup {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: 0 1px 0 var(--line);
}
.signup h2, .signup h3 { margin-bottom: 0.3em; }
.signup ul { margin: 0 0 16px; padding-left: 1.2em; color: var(--muted); }
.signup ul li { margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .field { flex-direction: row; } }
label.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
input[type="email"] {
  flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
input[type="email"]:focus { border-color: var(--ink); outline: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1.2 "Inter", sans-serif; text-decoration: none; cursor: pointer;
  background: var(--red); color: var(--on-red); border: 0; border-radius: 10px; padding: 14px 20px;
}
.btn:hover { color: var(--on-red); filter: brightness(0.94); }
.btn.secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.secondary:hover { color: var(--ink); background: var(--surface); }
.fine { font-size: 0.85rem; color: var(--muted); margin: 12px 0 0; }
.form-note { margin: 12px 0 0; font-weight: 600; }
.form-note:empty { display: none; }

/* Steps */
.steps { display: grid; gap: 16px; margin-top: 32px; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  counter-increment: step;
}
.steps li::before {
  content: "Step " counter(step); display: block; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-text); margin-bottom: 8px;
}
.steps h3 { font-size: 1.8rem; }
.steps p { color: var(--muted); margin: 0; }

/* Videos */
.videos { display: grid; gap: 16px; margin: 32px 0; }
@media (min-width: 760px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video { display: block; text-decoration: none; }
.video .thumb {
  aspect-ratio: 16 / 9; border-radius: 12px; background: var(--ink); color: var(--bg);
  display: flex; align-items: flex-end; padding: 16px; margin-bottom: 10px;
  font: 800 1.25rem/1.15 "Fraunces", serif;
}
.video .thumb span { border-left: 4px solid var(--red); padding-left: 10px; }
.video .meta { font-size: 0.9rem; color: var(--muted); }
.video strong { display: block; font-weight: 650; }

/* Report steps */
.report-all {
  margin-top: 32px; padding: 20px 24px; background: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 12px;
}
.report-all h3 { margin: 0 0 12px; }
.report-all ol { margin: 0; padding-left: 1.4em; }
.report-all li { margin-bottom: 10px; }
.countries-title { margin: 32px 0 0; }
.countries { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 760px) { .countries { grid-template-columns: repeat(2, 1fr); } }
.country { padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.country h4 { margin: 0 0 10px; font-size: 1.1rem; }
.country ul { margin: 0; padding-left: 1.2em; }
.country li { margin-bottom: 8px; }
.callout {
  margin-top: 24px; padding: 16px 20px; border-left: 4px solid var(--red);
  background: var(--surface); border-radius: 0 12px 12px 0;
}

/* Trust */
.trust { background: var(--ink); color: var(--bg); }
.trust .eyebrow { color: #f07a66; }
.trust .rules { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .trust .rules { grid-template-columns: repeat(3, 1fr); } }
.trust .rules li { border-top: 2px solid var(--red); padding-top: 12px; font-weight: 600; }
.trust p { color: #c9c1b4; max-width: 40em; }
section.trust + section { border-top: 0; }

/* Follow */
.follow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 0.9rem; color: var(--muted); }
.site-footer .cols { display: grid; gap: 16px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 2fr 1fr; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer p { margin: 0 0 8px; }

/* Simple pages (checklist, privacy) */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 1.5rem; margin-top: 1.6em; }
.page ul { padding-left: 1.2em; }
.note { font-size: 0.9rem; color: var(--muted); }
