/*
 * The Shareholders Board — homepage styles (index.html only; home.css).
 * Standalone on purpose: the secondary pages (founding statement, why-verified,
 * FAQ, privacy) keep styles.css. Same tokens as styles.css; same CSP posture
 * (external file only, no inline style/style= anywhere, system font stacks so
 * font-src stays closed).
 *
 * Concept: "the broadsheet front page."
 *  - masthead with dateline + double rule, then a full-measure splash headline
 *  - AGM seats fade to ghosts on scroll
 *  - a specimen board assembles post by post
 * All motion is once-only and disabled under prefers-reduced-motion.
 */

:root {
  --navy: #16243f;
  --navy-strong: #0f1a30;
  --cream: #f6f1e7;
  --cream-deep: #efe7d6;
  --paper-raised: #fdfaf3;
  --ink: #1c2330;
  --muted: #5b6473;
  --brass: #c89b3c;
  --brass-strong: #a87f24;
  --brass-bright: #d8b65c;
  --line: rgba(22, 36, 63, 0.14);
  --line-strong: rgba(22, 36, 63, 0.32);
  --maxw-wide: 74rem;
  --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;
}

* { box-sizing: border-box; }

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

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); }

::selection { background: var(--brass); color: var(--navy); }

.wrap-wide {
  width: 100%;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* 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; }

/* Shared editorial kicker (small caps, brass) */
.kicker {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-strong);
  font-weight: 600;
  margin: 0 0 0.6rem;
}

/* ============================== Masthead ============================== */
.masthead { padding-top: 0.4rem; }

.dateline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Existing members' way in, and now the only thing in the dateline. Deliberately
   the quietest thing in the masthead so it never competes with "Sign up here". */
.dateline-signin {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.dateline-signin:hover { color: var(--navy); border-bottom-color: currentColor; }
.dateline-signin:focus-visible {
  color: var(--navy);
  outline: 2px solid var(--brass-strong);
  outline-offset: 3px;
}

/* Trimmed vertical padding (was 2.4rem/1.8rem) so the hero CTA clears the fold
   on short laptop viewports. */
.masthead-title { text-align: center; padding: 1.6rem 0 1.2rem; }

.wordmark-grand {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0;
}
.wordmark-grand .article { color: var(--brass); font-style: italic; font-weight: 500; }

/* Classic newspaper double rule: thick over thin. */
.rule-double {
  height: 7px;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

/* ====== Hero: a centred, full-measure splash headline under the masthead ====== */
.hero {
  text-align: center;
  padding-top: 2.75rem;
  padding-bottom: 3.25rem;
}

.hero h1 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0.6rem auto 1.4rem;
  max-width: 24ch;
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--ink);
  max-width: 42rem;
  margin: 0 auto;
  text-wrap: balance;
}

.cta-row { margin-top: 2rem; }
.waitlist-mode .cta-row { display: none; }

/* Editorial CTA: a solid navy, serif "print advert" box rather than an app pill.
   Filled at rest so it is the strongest element above the fold (it mirrors the
   navy closing band); hover deepens. The brass arrow nudges on hover, echoing
   the reading-list arrows. */
.btn-primary {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  background: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.05s ease;
}
.btn-arrow { transition: transform 0.18s ease, color 0.18s ease; }
.btn-primary .btn-arrow { color: var(--brass-bright); }
.btn-primary:hover { background: var(--navy-strong); border-color: var(--navy-strong); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible { outline: 2px solid var(--brass-strong); outline-offset: 3px; }

.cta-note { margin: 0.85rem 0 0; font-size: 0.92rem; color: var(--muted); }

.post header {
  display: flex;
  flex-wrap: wrap; /* narrow phones: the chip drops to its own line instead of clipping */
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.avatar {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
}
.avatar-sm { width: 1.7rem; height: 1.7rem; font-size: 0.85rem; }
.avatar.alt { background: var(--brass-strong); }

.handle { font-weight: 600; color: var(--navy); font-size: 0.95rem; }

.chip {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-strong);
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(200, 155, 60, 0.1);
  white-space: nowrap;
}

@media (min-width: 62rem) {
  .hero {
    padding-top: 3rem; /* with the masthead trim, keeps the CTA clear of a 720px fold */
    padding-bottom: 4rem;
  }
}

/* ======================= Bands (full-bleed sections) ======================= */
.band {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ====================== Why we are building this ====================== */
.problem-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3.75rem;
  text-align: center;
}

.problem h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

.chairs {
  display: block;
  width: 100%;
  max-width: 34rem;
  margin: 2.2rem auto;
  color: var(--navy);
}
.chairs use {
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  transition: opacity 1.1s ease;
}
.problem.in .chairs use.fade { opacity: 0.13; }
.problem.in .chairs use:nth-of-type(1)  { transition-delay: 0.15s; }
.problem.in .chairs use:nth-of-type(2)  { transition-delay: 0.55s; }
.problem.in .chairs use:nth-of-type(4)  { transition-delay: 0.9s; }
.problem.in .chairs use:nth-of-type(5)  { transition-delay: 0.3s; }
.problem.in .chairs use:nth-of-type(6)  { transition-delay: 0.75s; }
.problem.in .chairs use:nth-of-type(7)  { transition-delay: 0.45s; }
.problem.in .chairs use:nth-of-type(8)  { transition-delay: 1.05s; }
.problem.in .chairs use:nth-of-type(10) { transition-delay: 0.6s; }
.problem.in .chairs use:nth-of-type(11) { transition-delay: 0.2s; }
.problem.in .chairs use:nth-of-type(12) { transition-delay: 0.85s; }
.problem.in .chairs use:nth-of-type(13) { transition-delay: 0.4s; }
.problem.in .chairs use:nth-of-type(14) { transition-delay: 0.7s; }

/* The mini-read: serif body, like the Founding Statement. */
.problem-read {
  max-width: 38rem;
  margin: 0 auto;
  text-align: left;
}
.problem-read p {
  font-family: var(--serif);
  font-size: 1.13rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1.2rem;
}
.problem-read p:last-child {
  margin-bottom: 0;
  color: var(--navy);
  font-weight: 600;
}

/* ============================ The principles ============================ */
.principles { padding-top: 3.5rem; padding-bottom: 3.75rem; }

/* The Founding Statement line, set as a standfirst over the four principles. */
.epigraph {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.3;
  color: var(--navy);
  border-left: 3px solid var(--brass);
  padding-left: 1.1rem;
  margin: 0.9rem 0 0;
  max-width: 34rem;
}

.principles-grid {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.9rem 2.5rem;
}
.principles-grid li {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.05rem;
}
.numeral {
  font-family: var(--serif);
  color: var(--brass-strong);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.principles-grid h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0.4rem 0 0.5rem;
}
.principles-grid p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

@media (min-width: 48rem) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .principles-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* ========================= A board, illustrated ========================= */
.specimen .specimen-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
}
.specimen h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}

.board-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 44rem;
  margin: 2.2rem auto 0;
  padding: 1.6rem 1.6rem 1.5rem;
  text-align: left;
}

.board-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
}
.board-head h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0;
}
.board-head .tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

/* The product's "Key investment questions" card: cream, navy left edge. */
.keyq {
  background: var(--cream);
  border-left: 3px solid var(--navy);
  border-radius: 6px;
  padding: 0.95rem 1.15rem 1rem;
  margin: 1.2rem 0 0.4rem;
}
.keyq h4 {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-strong);
  margin: 0 0 0.5rem;
}
.keyq ul { list-style: none; margin: 0; padding: 0; }
.keyq li {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0.3rem 0;
}

.post { padding: 1rem 0 0.95rem; border-bottom: 1px solid var(--line); }
.post p {
  margin: 0.5rem 0 0;
  padding-left: 2.3rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

.replybox {
  margin-top: 1.05rem;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ============================= The numbers ============================= */
.numbers { padding-top: 3rem; padding-bottom: 3.25rem; }
.numbers ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.numbers li { text-align: center; padding: 1.4rem 1rem; }
.numbers li + li { border-top: 1px solid var(--line); }
.numbers strong {
  display: block;
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.numbers span {
  display: block;
  max-width: 15rem;
  margin: 0.55rem auto 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (min-width: 48rem) {
  .numbers ul { grid-template-columns: repeat(3, 1fr); }
  .numbers li + li { border-top: 0; border-left: 1px solid var(--line); }
}

/* ============================== CTA bands ============================== */
.cta-band {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 4rem 1.25rem 4.25rem;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
  color: #fff;
}
.cta-band .sub {
  margin: 0 auto 0.45rem;
  color: var(--cream-deep);
  font-size: 1.05rem;
  max-width: 30rem;
}
.cta-band .sub { margin-bottom: 1.6rem; }
.cta-band a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cta-band a:hover { color: var(--brass-bright); }

/* Same editorial button, inverted for the navy band. */
a.submit {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  text-align: center;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 2.2rem;
  border: 1.5px solid rgba(246, 241, 231, 0.75);
  border-radius: 2px;
  background: transparent;
  color: var(--cream);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.05s ease;
}
.cta-band a.submit { color: var(--cream); text-decoration: none; }
a.submit .btn-arrow { color: var(--brass-bright); }
a.submit:hover { background: var(--cream); border-color: var(--cream); }
.cta-band a.submit:hover { color: var(--navy); }
a.submit:hover .btn-arrow { color: var(--brass-strong); transform: translateX(3px); }
a.submit:active { transform: translateY(1px); }
a.submit:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }

.cta-band .form-note {
  margin: 1.2rem auto 0;
  font-size: 0.8rem;
  color: rgba(246, 241, 231, 0.7);
  max-width: 34rem;
}

/* Waitlist form (panic-close fallback) — same look as the live card. */
#waitlist form { max-width: 26rem; margin: 1.4rem auto 0; text-align: left; }

.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 input[type="text"],
.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 input[type="text"]::placeholder,
.field textarea::placeholder { color: rgba(246, 241, 231, 0.55); }
.field input[type="email"]:focus-visible,
.field input[type="text"]: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; }

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

/* ---- Waitlist mode: the card sits under the hero lead, above the fold ---- */
.hero .cta-band {
  border-radius: 14px;
  text-align: left;
  max-width: 30rem;
  margin: 2.25rem auto 0;
  padding: 1.8rem 1.5rem 1.6rem;
}
.hero .cta-band h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.hero .cta-band .sub { margin: 0 0 1.25rem; font-size: 0.98rem; max-width: none; }
.hero #waitlist form { margin: 0; max-width: none; }

/* Foot-of-page return band: only exists in waitlist mode, anchors back up to
   the form in the hero. */
.waitlist-return { display: none; }
.waitlist-mode .waitlist-return { display: block; }
.waitlist-return .sub { margin-bottom: 1.4rem; }

/* ============================== Read more ============================== */
.reading { padding-top: 3rem; padding-bottom: 3.5rem; }
.reading-grid { display: grid; }

.reading-item {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.reading-title {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.15s ease;
}
.reading-note {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0.15rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}
.reading-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--brass);
  font-size: 1.15rem;
  transition: transform 0.15s ease, color 0.15s ease;
}
.reading-item:hover .reading-title { color: var(--brass-strong); }
.reading-item:hover .reading-arrow { transform: translateX(3px); color: var(--brass-strong); }
.reading-item:focus-visible { outline: 2px solid var(--brass-strong); outline-offset: 4px; }

@media (min-width: 48rem) {
  .reading-grid { grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
}

/* ================================ Footer ================================ */
footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
footer a { color: var(--navy); }
/* The mission, colophon-style: a quiet italic line above the imprint. */
footer .motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 44rem;
  margin: 0 0 0.8rem;
}
footer .legal { margin: 0.3rem 0 0; }
.wrap--footer { padding-top: 1.5rem; padding-bottom: 2rem; }

/* ========================== Scroll reveals ========================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.in .reveal { opacity: 1; transform: none; }

/* Stagger within each revealed group. */
.in .reveal:nth-child(2), .in .keyq { transition-delay: 0.1s; }
.in .reveal:nth-child(3) { transition-delay: 0.25s; }
.in .reveal:nth-child(4) { transition-delay: 0.4s; }
.in .post:nth-of-type(1) { transition-delay: 0.35s; }
.in .post:nth-of-type(2) { transition-delay: 0.65s; }
.in .replybox { transition-delay: 0.95s; }

/* ========================== Reduced motion ========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chairs use.fade { opacity: 0.13; }
}
