*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #141009;
  --ink-50: #1c1610;
  --ink-100: #241d17;
  --ink-200: #2e261f;
  --ink-300: #3a3028;
  --gold: #c49a2e;
  --gold-light: #e8c96d;
  --gold-muted: #c9a84c;
  --gold-dim: #8a6d1f;
  --cream: #fdf8ef;
  --cream-dark: #f5edd9;
  --muted: #8b8070;
  --surface: #1a1510;
  --surface-card: #1e1912;
  --border: #2e2820;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-headline: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', Menlo, monospace;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: rgba(196,154,46,0.3); color: var(--cream); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* ── MASTHEAD ── */
.masthead {
  background: var(--ink);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}
.masthead-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
  display: inline-block;
}
.masthead-title .gold { color: var(--gold); }
.masthead-title:hover .gold { color: var(--gold-light); }
.masthead-tagline {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ── PHASE NAV ── */
.phase-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 3rem;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  overflow-x: auto;
}
.phase-nav a {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.phase-nav a:hover { color: var(--cream); }
.phase-nav a.active { color: var(--gold); }
.phase-nav .spacer { flex: 1; }
.phase-nav .join {
  font-size: 0.68rem;
  padding: 0.35rem 1rem;
  background: rgba(196,154,46,0.1);
  color: var(--gold);
  border: 1px solid rgba(196,154,46,0.2);
  border-radius: 4px;
  text-decoration: none;
}
.phase-nav .join:hover { background: rgba(196,154,46,0.2); }

/* ── PAGE CONTAINER ── */
.page-container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* ── CARD SURFACE ── */
.card-surface {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: all 0.3s;
}
.card-surface:hover {
  border-color: rgba(196,154,46,0.3);
  box-shadow: 0 0 20px rgba(196,154,46,0.05);
}

/* ── PHASE BADGE ── */
.phase-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 999px;
  background: rgba(196,154,46,0.1);
  color: var(--gold-muted);
  border: 1px solid rgba(196,154,46,0.2);
}

/* ── PHASE BADGE HERO (dark red) ── */
.phase-badge-hero {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 4px;
  background: #7d1f1f;
  color: #f0d8b0;
}

/* ── ARTICLE HERO ── */
.article-hero {
  background: var(--ink);
  padding: 4rem 1.5rem;
  text-align: center;
}
.hero-inner { max-width: 52rem; margin: 0 auto; }
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.kicker-line { display: none; align-items: center; gap: 0; }
@media (min-width: 640px) { .kicker-line { display: flex; } }
.kicker-rule { width: 2rem; height: 1px; background: rgba(196,154,46,0.3); }
.kicker-text {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding: 0 0.75rem;
}
.hero-headline {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 2rem;
}
.hero-deck {
  font-family: var(--font-headline);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.diamond-ornament { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2rem; }
.diamond-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(196,154,46,0.4); }
.diamond-rule { width: 4rem; height: 1px; background: rgba(196,154,46,0.25); margin: 0 0.25rem; }
.diamond-shape { width: 10px; height: 10px; transform: rotate(45deg); background: rgba(196,154,46,0.6); }
.hero-byline {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.hero-byline .gold { color: var(--gold); }

/* ── ARTICLE CONTENT ── */
.article-content { max-width: 780px; margin: 0 auto; padding: 4rem 1.5rem; }
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.meta-left { display: flex; align-items: center; gap: 1rem; font-family: var(--font-ui); font-size: 0.875rem; color: var(--muted); }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.meta-reading { font-family: var(--font-mono); font-size: 0.75rem; }
.meta-right { font-family: var(--font-ui); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }

/* ── BODY COPY ── */
.body p { color: rgba(253,248,239,0.9); line-height: 1.85; margin-bottom: 1.5rem; }
.body::after { content: ""; display: table; clear: both; }

/* ── DROP CAP ── */
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-headline);
  color: var(--gold);
  font-size: 4.5rem;
  line-height: 1;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

/* ── FLOATING PULL QUOTE ── */
.floating-pull-quote { clear: right; margin: 2rem 0; padding-left: 1.5rem; border-left: 4px solid var(--gold); }
@media (min-width: 640px) { .floating-pull-quote { float: right; width: 45%; margin: 0.5rem 0 1.5rem 2rem; } }
.floating-pull-quote p { font-family: var(--font-headline); font-size: 1.25rem; font-style: italic; color: var(--gold-muted); line-height: 1.4; margin-bottom: 0.5rem !important; }
@media (min-width: 640px) { .floating-pull-quote p { font-size: 1.4rem; } }
.floating-pull-quote cite { display: block; font-family: var(--font-ui); font-size: 0.75rem; font-style: normal; color: var(--muted); margin-top: 0.75rem; }

/* ── SECTION DIVIDER ── */
.section-divider { display: flex; align-items: center; gap: 1.5rem; margin: 4rem 0; }
.section-divider .rule { flex: 1; height: 1px; background: rgba(196,154,46,0.2); }
.section-divider .label { font-family: var(--font-ui); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-muted); white-space: nowrap; }

/* ── PROFILE HEADER ── */
.profile-header { position: relative; margin-top: 5rem; margin-bottom: 2.5rem; padding: 3rem 0 2rem; border-top: 1px solid rgba(196,154,46,0.2); border-bottom: 1px solid rgba(196,154,46,0.2); }
.profile-bg-number { position: absolute; top: -2rem; right: 0.5rem; font-family: var(--font-display); font-size: 9rem; line-height: 1; color: rgba(253,248,239,0.04); user-select: none; pointer-events: none; }
@media (min-width: 640px) { .profile-bg-number { right: 2rem; } }
.profile-num-epithet { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; position: relative; }
.profile-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.profile-divider { width: 1px; height: 1.25rem; background: rgba(196,154,46,0.3); }
.profile-epithet { font-family: var(--font-ui); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold-muted); }
.profile-name { font-family: var(--font-headline); font-size: clamp(2rem, 4vw, 2.5rem); color: var(--gold-light); line-height: 1.2; margin-bottom: 0.75rem; position: relative; }
.profile-badge { display: inline-block; padding: 0.3rem 0.75rem; margin-bottom: 0.75rem; font-family: var(--font-ui); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; border-radius: 999px; background: #7d1f1f; color: #f0d8b0; }
.profile-institution { font-family: var(--font-ui); font-size: 0.875rem; color: var(--muted); letter-spacing: 0.03em; }

/* ── STAT BLOCK ── */
.stat-block { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 3rem 0; background: var(--border); border-radius: 0.5rem; overflow: hidden; border: 1px solid var(--border); }
@media (min-width: 1024px) { .stat-block { grid-template-columns: repeat(4, 1fr); } }
.stat-cell { background: var(--ink); padding: 1.5rem; text-align: center; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--gold); letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.stat-label { font-family: var(--font-ui); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); line-height: 1.4; }

/* ── HR / EDITORIAL NOTE ── */
hr { border: none; border-top: 1px solid rgba(196,154,46,0.2); margin: 3rem 0; }
.editorial-note { font-style: italic; color: var(--muted); margin-top: 2rem; }

/* ── ARTICLE FOOTER ── */
.article-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-footer .pub-label { font-family: var(--font-ui); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.5rem; }
.article-footer .pub-detail { font-size: 0.875rem; color: var(--muted); }

/* ── SITE FOOTER ── */
.site-footer { border-top: 1px solid var(--border); margin-top: 6rem; padding: 3rem 1.5rem; text-align: center; }
.site-footer .footer-name { font-family: var(--font-headline); font-size: 1.125rem; color: var(--gold); }
.site-footer .footer-tagline { font-family: var(--font-ui); font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.site-footer .footer-copy { font-family: var(--font-ui); font-size: 0.75rem; color: rgba(139,128,112,0.6); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ── ARTICLE CARD (for index/homepage) ── */
.article-card { display: block; text-decoration: none; }
.article-card .card-surface { padding: 2rem; }
.article-card .card-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.article-card .card-meta .date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.article-card h3 { font-family: var(--font-headline); font-size: 1.35rem; color: var(--cream); line-height: 1.3; margin-bottom: 0.75rem; transition: color 0.2s; }
.article-card:hover h3 { color: var(--gold-light); }
.article-card .excerpt { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }
.article-card .card-title { font-family: var(--font-headline); font-size: 1.25rem; color: var(--cream); margin: 0.6rem 0 0.5rem; line-height: 1.2; }
.article-card .card-footer { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; font-family: var(--font-ui); font-size: 0.75rem; color: var(--muted); }

/* ── FORUM CATEGORY CARD ── */
.forum-card { display: block; text-decoration: none; margin-bottom: 1rem; }
.forum-card .card-surface { padding: 1.5rem; display: flex; align-items: flex-start; gap: 1.25rem; }
.forum-card .icon-box { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: rgba(196,154,46,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.forum-card:hover .icon-box { background: rgba(196,154,46,0.2); }
.forum-card .icon-box svg { width: 1.25rem; height: 1.25rem; color: var(--gold); }
.forum-card h3 { font-family: var(--font-headline); font-size: 1.125rem; color: var(--cream); margin-bottom: 0.25rem; transition: color 0.2s; }
.forum-card:hover h3 { color: var(--gold-light); }
.forum-card .desc { font-size: 0.875rem; color: var(--muted); }
.forum-card .arrow { width: 1.25rem; height: 1.25rem; color: rgba(139,128,112,0.4); margin-left: auto; flex-shrink: 0; margin-top: 0.25rem; transition: color 0.2s; }
.forum-card:hover .arrow { color: rgba(196,154,46,0.6); }

/* ── FILTER PILLS ── */
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.pill {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.pill:hover { border-color: rgba(196,154,46,0.2); color: var(--cream); }
.pill.active { background: rgba(196,154,46,0.15); color: var(--gold); border-color: rgba(196,154,46,0.3); }

/* ── FORM STYLES ── */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-family: var(--font-ui); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.5rem; }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--muted); }
.form-hint { font-family: var(--font-ui); font-size: 0.75rem; color: var(--muted); margin-top: 0.35rem; }
.btn-primary {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover { background: var(--gold-light); }
.gold-link { color: var(--gold); text-decoration: none; }
.gold-link:hover { color: var(--gold-light); }

/* ── CTA BOX ── */
.cta-box { text-align: center; padding: 2.5rem; }
.cta-box h3 { font-family: var(--font-headline); font-size: 1.25rem; color: var(--gold-muted); margin-bottom: 0.75rem; }
.cta-box p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; max-width: 28rem; margin-left: auto; margin-right: auto; }
.cta-box .btn-primary { display: inline-block; width: auto; padding: 0.65rem 2rem; }
