:root {
  --cream: #fdfbf7;
  --ink: #030712;
  --gold: #d5b775;
  --gold-label: #9a7a3a;
  --neutral-200: rgba(229, 229, 229, 0.8);
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .wrap { padding-inline: 2.5rem; }
}
.serif { font-family: Georgia, "Times New Roman", Times, serif; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
header { background: transparent; }
.header-inner { display: flex; align-items: center; padding-block: 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; }
.brand img, .brand svg { width: 26px; height: 26px; color: var(--ink); display: block; }
.brand-name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }

/* Main */
main { flex: 1; }
.page { padding-block: 3rem 6rem; }
@media (min-width: 768px) {
  .page { padding-block: 4rem 6rem; }
}

/* Tabs */
.tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: 3rem; padding-bottom: 0;
}
.tab {
  position: relative;
  appearance: none; background: transparent; border: 1px solid transparent;
  padding: 0.75rem 1.25rem; font: inherit; font-size: 0.875rem;
  letter-spacing: 0.02em; color: var(--neutral-600); cursor: pointer;
  margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  border-color: var(--neutral-200);
  border-bottom-color: var(--cream);
  background: var(--cream);
  font-weight: 600; color: var(--ink);
}
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 1.25rem; right: 1.25rem;
  bottom: -1px; height: 2px; background: var(--gold);
}
.panel[hidden] { display: none; }
.placeholder {
  border: 1px solid var(--neutral-200);
  background: rgba(255,255,255,0.4);
  padding: 2rem; color: var(--neutral-600); font-size: 0.9375rem; line-height: 1.7;
}

/* Hero */
h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.25rem; font-weight: 500; letter-spacing: -0.02em;
  margin: 0; line-height: 1.15;
}
@media (min-width: 768px) {
  h1 { font-size: 56px; line-height: 1.1; }
}
.sum-mark {
  position: relative; display: inline-block;
}
.sum-mark::after {
  content: ""; position: absolute; left: 0; bottom: -0.25rem;
  height: 3px; width: 2.4ch; background: var(--gold);
}

.standfirst {
  margin: 2.5rem 0 0; max-width: 42rem;
  font-size: 1rem; font-weight: 600; line-height: 1.75; color: var(--ink);
}
@media (min-width: 768px) {
  .standfirst { font-size: 1.0625rem; }
}
.secondary {
  margin: 1.25rem 0 0; max-width: 42rem;
  font-size: 0.9375rem; line-height: 1.75; color: var(--neutral-600);
}
.history {
  margin: 1rem 0 0; max-width: 42rem;
  font-size: 0.875rem; line-height: 1.7; color: var(--neutral-500);
}

/* Next strip */
.next-strip {
  margin-top: 2.5rem;
  border: 1px solid var(--neutral-200);
  background: rgba(255,255,255,0.5);
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 768px) {
  .next-strip {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 1.5rem 1.75rem;
  }
}
.next-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-label); margin: 0 0 0.35rem;
}
.next-date {
  margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
}
.next-meta {
  margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--neutral-600); line-height: 1.5;
}
.next-flag {
  margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--neutral-500);
}

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--ink);
  padding: 0.75rem 1.25rem; font-size: 0.875rem; letter-spacing: 0.02em;
  border: 0; cursor: pointer; font-family: inherit; text-align: center;
  transition: filter 0.15s ease;
}
.btn-gold:hover { filter: brightness(0.97); }
.btn-gold:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-gold.full { width: 100%; padding: 0.75rem 1rem; white-space: normal; }
.btn-soft {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 0.75rem 1rem; white-space: normal;
  background: transparent; color: var(--ink);
  border: 1px solid var(--neutral-200);
  font-size: 0.875rem; letter-spacing: 0.02em;
  cursor: pointer; font-family: inherit; text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-soft:hover { border-color: var(--gold); background: rgba(213,183,117,0.12); }
.btn-soft:disabled { opacity: 0.6; cursor: not-allowed; }
.card-featured {
  border-color: rgba(213, 183, 117, 0.85);
  background: rgba(213, 183, 117, 0.12);
  box-shadow: 0 0 0 1px rgba(213, 183, 117, 0.25);
  position: relative;
}
.card-featured::before {
  content: "Primary path";
  position: absolute; top: 0.85rem; right: 0.85rem;
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-label);
}
.card-featured h2 { padding-right: 6.5rem; }

/* Join sequence */
.join-seq {
  margin-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  font-size: 0.875rem; color: var(--neutral-600); line-height: 1.5;
}
.join-step { display: flex; align-items: baseline; gap: 0.5rem; }
.join-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font-size: 0.75rem; font-weight: 600; flex-shrink: 0;
}

/* Cards */
.cards {
  margin-top: 4rem;
  display: grid; gap: 1.5rem;
}
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--neutral-200);
  background: rgba(255,255,255,0.5);
  padding: 1.75rem;
}
@media (min-width: 768px) {
  .card { padding: 2rem; }
}
.card h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em;
  margin: 0;
}
.card-body {
  margin: 1.25rem 0 0; flex: 1;
  font-size: 0.875rem; line-height: 1.75; color: var(--neutral-600);
}
.card-body p { margin: 0 0 0.75rem; }
.card-body p:last-child { margin-bottom: 0; }
.card-date {
  margin: 1rem 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink);
}
.card-meta { margin: 0.25rem 0 0; font-size: 0.8125rem; color: var(--neutral-600); }
.card-flag { margin: 0.35rem 0 0; font-size: 0.75rem; color: var(--neutral-500); }
.card-steps {
  margin: 1rem 0 0; padding: 0; list-style: none;
  font-size: 0.8125rem; color: var(--neutral-600); line-height: 1.6;
}
.card-steps li { display: flex; gap: 0.4rem; margin-bottom: 0.25rem; }
.card-steps .n { color: var(--gold); font-weight: 600; min-width: 1rem; }
.card-form { margin-top: 2.5rem; }

/* Forms */
.field {
  width: 100%;
  border: 1px solid var(--neutral-200);
  background: #fff;
  padding: 0.75rem 0.875rem;
  font: inherit; font-size: 0.875rem; color: var(--ink);
  outline: none;
}
.field::placeholder { color: var(--neutral-400); }
.field:focus { border-color: var(--gold); }
.field.error { border-color: #b45309; }
.form-error {
  margin: 0.4rem 0 0; font-size: 0.75rem; color: #b45309; display: none;
}
.form-error.show { display: block; }
.form-success {
  display: none; margin-top: 0.75rem;
  font-size: 0.875rem; line-height: 1.6; color: var(--ink);
  border-left: 3px solid var(--gold); padding-left: 0.75rem;
}
.form-success.show { display: block; }
.form-stack { display: flex; flex-direction: column; gap: 0.875rem; }
.mailto-fallback {
  margin-top: 0.75rem; font-size: 0.75rem; color: var(--neutral-500); line-height: 1.5;
}
.mailto-fallback a { text-decoration: underline; text-underline-offset: 2px; }
.mailto-fallback a:hover { color: var(--neutral-600); }

/* Stay informed */
.stay {
  margin-top: 4rem;
  border: 1px solid var(--neutral-200);
  background: rgba(255,255,255,0.4);
  padding: 2.5rem 1.5rem;
}
@media (min-width: 768px) {
  .stay { padding: 2.5rem; }
}
.stay-label {
  margin: 0; font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-label);
}
.stay-copy {
  margin: 1rem 0 0; font-size: 0.9375rem; line-height: 1.75; color: var(--neutral-600);
}
.stay-form-row {
  margin-top: 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
@media (min-width: 640px) {
  .stay-form-row { flex-direction: row; align-items: stretch; }
  .stay-form-row .field-wrap { flex: 1; min-width: 0; }
  .stay-form-row .btn-gold { height: 2.75rem; flex-shrink: 0; }
  .stay-form-row .field { height: 2.75rem; padding-block: 0; }
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--neutral-200);
}
.footer-inner {
  padding-block: 2rem;
  font-size: 12px; line-height: 1.5; color: var(--neutral-500);
  text-align: center;
}
.footer-inner a:hover { color: var(--neutral-600); }
.draft-banner {
  background: #030712; color: #fdfbf7;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 0.4rem 1rem;
}

.layout {
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--cream); color: var(--ink);
}

/* Privacy / legal line under forms */
.privacy-line {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--neutral-500);
}
.privacy-line a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-line a:hover { color: var(--neutral-600); }

.footer-links {
  margin: 0.75rem 0 0;
}
.footer-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-links a:hover { color: var(--neutral-600); }

.footer-imprint { margin: 0; }

/* Inline-style replacements (CSP: no style=) */
.mt-075 { margin-top: 0.75rem; }
.btn-notify { width: auto; min-width: 8rem; }
.placeholder-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.placeholder-copy { margin: 0; }

/* Privacy + 404 pages */
.legal-page h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}
.legal-page h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
}
.legal-page p, .legal-page li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--neutral-600);
  margin: 0 0 0.75rem;
  max-width: 42rem;
}
.legal-page ul { padding-left: 1.25rem; margin: 0 0 0.75rem; }
.legal-page a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page a:hover { color: var(--ink); }
.legal-meta {
  font-size: 0.8125rem;
  color: var(--neutral-500);
  margin: 0 0 2rem;
}
.notfound {
  text-align: center;
  padding-block: 4rem 6rem;
}
.notfound h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.5rem;
  font-weight: 500;
  margin: 0 0 1rem;
}
.notfound p {
  color: var(--neutral-600);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

/* Honeypot — off-screen (no inline style; CSP) */
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Intake (SPEC v1) */
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--neutral-500);
}
.optin-label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--neutral-600);
}
.optin-label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
[data-intake-status] {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: 0.75rem;
  min-height: 0;
}
[data-intake-status]:empty {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
}
[data-intake-status] a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
