/* America Is The People: white page, one centred column in Times, a flag of words waving behind. */

@font-face { font-family: "ATP Serif"; src: url("../fonts/serif-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ATP Serif"; src: url("../fonts/serif-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "ATP Serif"; src: url("../fonts/serif-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --serif: "Times New Roman", Times, "ATP Serif", serif;
  --ink: #111;
  --muted: #555;
  --paper: #fff;
  --line: #111;
  --field: #fafafa;
  --flag: #d9d9d9;          /* 15% grey */
  --top-h: 38px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  font-family: var(--serif);
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: #000; color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Shared studio top bar (same as Spread Media Studios / RWS Films) */
.topbar {
  position: relative; z-index: 5;
  height: var(--top-h);
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  background: #000; color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.topbar nav { height: 100%; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.topbar a { display: flex; align-items: center; height: 100%; text-decoration: none; color: #fff; }
.topbar .logo-svg { display: block; height: 17px; width: auto; color: #fff; }
.topbar .tb-text { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.topbar a:hover { opacity: .75; }

/* The flag of words sits behind everything */
.flag {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

main {
  flex: 1;
  width: 100%; max-width: 680px;
  margin: 0 auto;
  padding: clamp(36px, 9vh, 96px) var(--gutter) 48px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.logo { margin: 0; width: min(560px, 100%); }
.logo img { display: block; width: 100%; height: auto; }

.lede {
  margin: clamp(28px, 5vh, 48px) 0 0;
  max-width: 34ch;
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.45;
  text-wrap: pretty;
  text-shadow: 0 0 6px #fff, 0 0 14px #fff;
}

.join { width: 100%; max-width: 520px; margin-top: clamp(32px, 6vh, 56px); text-align: left; }
.join h2, .field label, .fine, .status { text-shadow: 0 0 5px #fff, 0 0 10px #fff; }
.join h2 {
  margin: 0 0 14px; text-align: center;
  font-weight: 400; font-style: italic; font-size: 26px;
}
.form { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-style: italic; }
.field input {
  width: 100%;
  font: 18px/1.2 var(--serif);
  color: var(--ink); background: rgba(255,255,255,.92);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
}
.field input:focus { outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.12); }
.field input[aria-invalid="true"] { border-color: #b00020; box-shadow: 0 0 0 4px rgba(176,0,32,.12); }
.check {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  font-size: 16px; line-height: 1.4;
  background: rgba(255,255,255,.85); border-radius: 8px; padding: 4px 6px 4px 0;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #111; }
.check.invalid span { color: #b00020; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.submit {
  justify-self: center;
  font: 700 18px/1 var(--serif); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: #111;
  border: 1.5px solid #111; border-radius: 10px;
  padding: 15px 30px 14px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.submit:hover { background: #fff; color: #111; }
.submit[disabled] { opacity: .6; cursor: progress; }
.status { margin: 0; min-height: 1px; text-align: center; font-size: 16px; }
.status.error { color: #b00020; }
.fine { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.fine a { color: var(--ink); }
.done {
  text-align: center;
  background: #fff; border: 1.5px solid #111; border-radius: 12px;
  padding: 22px 22px 20px;
}
.done h3 { margin: 0 0 8px; font-weight: 400; font-style: italic; font-size: 28px; }
.done p { margin: 0; font-size: 17px; line-height: 1.5; }
.done .note { margin-top: 10px; font-size: 14px; color: var(--muted); }

.foot {
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center; font-size: 14px; color: var(--muted);
}
.foot p { margin: 0; }
.foot a { color: var(--ink); }

/* Plain text pages (privacy, confirmation) */
.page main { max-width: 70ch; text-align: left; align-items: stretch; }
.page h1 { margin: 0 0 6px; font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.page .meta { margin: 0 0 28px; color: var(--muted); font-style: italic; }
.page h2 { margin: 32px 0 6px; font-size: 22px; font-weight: 700; }
.page p, .page li { font-size: 18px; line-height: 1.6; }
.page p, .page ul { margin: 0 0 14px; }
.page .card { background: rgba(255,255,255,.9); }
.page .back { margin-top: 24px; }

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.page main p, .page main li, .page main h1, .page main h2 { text-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 18px #fff; }
