/*
 * The Shareholders Board — shared styles for all Phase 0 pages.
 * Single source of truth for design tokens + components. Linked from
 * index.html (body.page-home), confirmed.html (body.page-confirm) and
 * privacy.html (body.page-doc). Page-specific rules are scoped by the
 * <body> class so the three pages share this one file without collisions
 * (e.g. .back and the column width differ between pages). Kept as an
 * external stylesheet with no inline <style>/style= anywhere, so the CSP
 * can use style-src 'self' with no 'unsafe-inline'. See netlify.toml.
 */

:root {
  --navy: #16243f;
  --cream: #f6f1e7;
  --cream-deep: #efe7d6;
  --ink: #1c2330;
  --muted: #5b6473;
  /* Gold accent — aligned to the app's refreshed palette (luminous, not olive-brown).
     `--brass` = marks / fills / borders (decorative, paired with text); `--brass-strong`
     = the deeper gold for TEXT and focus rings, so contrast holds on cream. */
  --brass: #c89b3c;       /* warm gold accent, used sparingly */
  --brass-strong: #a87f24; /* deeper gold for text/focus (>= 3:1 on cream) */
  --brass-bright: #d8b65c; /* gold for marks on navy/dark surfaces */
  --line: rgba(22, 36, 63, 0.14);
  --maxw: 40rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light; /* design is light-only; stop dark-mode UA styling of native controls */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--navy); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
/* Header / footer column padding (previously inline style= attributes; moved
   here so the CSP can drop 'unsafe-inline'). Longhands placed after .wrap so
   they win the top/bottom values while keeping .wrap's 1.5rem sides. */
.wrap--header { padding-top: 2rem; padding-bottom: 1.5rem; }
.wrap--footer { padding-top: 1.5rem; padding-bottom: 2rem; }

/* Skip link for keyboard / screen-reader users */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 0 0 6px 0;
  z-index: 10;
}
.skip:focus { left: 0; }

header { border-bottom: 1px solid var(--line); }

.wordmark {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  margin: 0;
  font-weight: 600;
}
.wordmark .article { color: var(--brass); font-style: italic; font-weight: 500; }

main { flex: 1 0 auto; }

footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
footer a { color: var(--navy); }
footer .legal { margin: 0.3rem 0 0; }

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

/* ============================ Home (body.page-home) ============================ */
.hero h1 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}
.page-home .lead {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--ink);
  margin: 0 0 2rem;
  max-width: 34rem;
}

.points {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brass);
  border-radius: 50%;
}
.points strong { color: var(--navy); font-weight: 600; }

/* "Read our Founding Statement" link, sitting between the points and the waitlist card. */
.read-founding-statement { margin: 0 0 2.5rem; }
.read-founding-statement a {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
.read-founding-statement a:hover { color: var(--brass-strong); }
.read-founding-statement a:focus-visible { outline: 2px solid var(--brass-strong); outline-offset: 3px; }

/* Waitlist card */
.signup {
  background: var(--navy);
  color: var(--cream);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
}
.signup h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
  color: #fff;
}
.signup p.sub { margin: 0 0 1.25rem; color: var(--cream-deep); font-size: 0.98rem; }

.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--cream-deep);
}
.field input[type="email"],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(246, 241, 231, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.field textarea { resize: vertical; min-height: 2.75rem; }
.field input[type="email"]::placeholder,
.field textarea::placeholder { color: rgba(246, 241, 231, 0.55); }
.field input[type="email"]:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--brass-strong);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.field label .optional {
  letter-spacing: 0;
  text-transform: none;
  color: rgba(246, 241, 231, 0.6);
  font-weight: 400;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--cream-deep);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}
.consent input { margin-top: 0.25rem; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; accent-color: var(--brass); }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

button.submit {
  width: 100%;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--cream);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
button.submit:hover { background: #fff; }
button.submit:active { transform: translateY(1px); }
button.submit:focus-visible { outline: 2px solid var(--brass-strong); outline-offset: 2px; }
button.submit[disabled] { opacity: 0.6; cursor: default; }

.form-note { margin: 0.9rem 0 0; font-size: 0.78rem; color: rgba(246, 241, 231, 0.7); }

.status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.status.ok { color: #d8e8c8; }
.status.err { color: #f3c9b8; }

/* ========================= Confirm (body.page-confirm) ========================= */
.page-confirm main { display: flex; align-items: center; }
.confirm { padding-top: 3rem; padding-bottom: 3.5rem; }

.badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.4rem;
}
.badge svg { width: 1.5rem; height: 1.5rem; display: block; }

.confirm h1 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.page-confirm .lead {
  font-size: clamp(1.02rem, 2.4vw, 1.15rem);
  color: var(--ink);
  margin: 0 0 2rem;
  max-width: 32rem;
}

.page-confirm .back {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
}
.page-confirm .back:hover { color: var(--brass-strong); }
.page-confirm .back:focus-visible { outline: 2px solid var(--brass-strong); outline-offset: 3px; }

/* =========================== Privacy (body.page-doc) =========================== */
.page-doc { line-height: 1.65; }
.page-doc .wrap { max-width: 42rem; }
.page-doc main { padding-bottom: 4rem; }
.page-doc h1 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 1.5rem 0 0.25rem;
}
.page-doc h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 2rem 0 0.4rem;
}
.page-doc .updated { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.5rem; }
.page-doc .back { font-size: 0.85rem; letter-spacing: 0.04em; text-decoration: none; color: var(--muted); }
.page-doc .back:hover { color: var(--navy); }
.page-doc ul { padding-left: 1.2rem; }
.page-doc li { margin: 0.3rem 0; }

/* ======================= Founding Statement (body.page-founding-statement) ======================= */
/* Wordmark links home from secondary pages without changing its look. */
.wordmark a { color: inherit; text-decoration: none; }
.wordmark a:hover { color: var(--brass-strong); }
.wordmark a:focus-visible { outline: 2px solid var(--brass-strong); outline-offset: 3px; }

.founding-statement {
  max-width: 38rem;
  padding-top: 2rem;
  padding-bottom: 4.5rem;
}

.page-founding-statement .back {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 2.2rem;
}
.page-founding-statement .back:hover { color: var(--navy); }
.page-founding-statement .back:focus-visible { outline: 2px solid var(--brass-strong); outline-offset: 3px; }

.founding-statement .kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-strong);
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.founding-statement h1 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

.founding-statement .standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

/* Editorial body: serif, generous measure — this page is "the read". */
.founding-statement p {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.72;
  color: var(--ink);
  margin: 0 0 1.3rem;
}

/* Broadsheet drop cap on the opening paragraph. */
.founding-statement .lede::first-letter {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  float: left;
  font-size: 3.4rem;
  line-height: 0.78;
  padding: 0.18rem 0.6rem 0 0;
}

.founding-statement .cue {
  font-style: italic;
  color: var(--muted);
}

.founding-statement .principle strong { color: var(--navy); font-weight: 600; }

.founding-statement .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  line-height: 1.32;
  color: var(--navy);
  margin: 2.2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--brass);
}

.founding-statement .cta {
  background: var(--navy);
  color: var(--cream);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  margin-top: 3rem;
  text-align: center;
}
.founding-statement .cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: #fff;
}
.founding-statement .cta p {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--cream-deep);
  margin: 0 auto 1.4rem;
  max-width: 26rem;
}
.cta-button {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  background: var(--cream);
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}
.cta-button:hover { background: #fff; }
.cta-button:active { transform: translateY(1px); }
.cta-button:focus-visible { outline: 2px solid var(--brass-strong); outline-offset: 2px; }
