/* ============================================================
   freedom250.site — Core Stylesheet
   Palette: Navy / Parchment / Iron Red / Weathered Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Source+Sans+3:wght@300;400;600&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --navy:       #1a2438;
  --navy-light: #243252;
  --parchment:  #f0ead6;
  --parchment-dark: #e2d9bc;
  --red:        #8b2635;
  --red-light:  #a83040;
  --gold:       #c9a84c;
  --gold-light: #dbbe6a;
  --ash:        #6b7280;
  --white:      #fafaf8;
  --text-dark:  #1a1a1a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;

  --max-width: 1100px;
  --section-pad: 5rem 2rem;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--text-dark);
  line-height: 1.7;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

p { margin-bottom: 1rem; max-width: 68ch; }

a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--red-light); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

blockquote {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  border-left: 4px solid var(--red);
  padding: 1rem 1.5rem;
  background: var(--parchment-dark);
  margin: 1.5rem 0;
  color: var(--navy);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ash);
  letter-spacing: 0.05em;
}

/* ── NAVIGATION ─────────────────────────────────────────── */

.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--parchment);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--red);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--parchment);
  transition: transform 0.2s;
}

/* ── HERO ────────────────────────────────────────────────── */

.hero {
  background: var(--navy);
  color: var(--parchment);
  padding: 6rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(201,168,76,0.06) 39px,
    rgba(201,168,76,0.06) 40px
  );
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero-year {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 900;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,168,76,0.25);
  position: absolute;
  right: -1rem;
  top: -2rem;
  user-select: none;
  pointer-events: none;
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 55ch;
  color: rgba(240,234,214,0.85);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-light); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-secondary:hover { background: var(--gold); color: var(--navy); }

/* ── GENERAL SECTIONS ───────────────────────────────────── */

.section {
  padding: var(--section-pad);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt { background: var(--parchment-dark); }
.section-dark { background: var(--navy); color: var(--parchment); }
.section-dark p { color: rgba(240,234,214,0.85); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--parchment-dark);
}

.section-dark .section-header {
  border-bottom-color: rgba(201,168,76,0.3);
}

/* ── STAT STRIP ─────────────────────────────────────────── */

.stat-strip {
  background: var(--red);
  padding: 2rem;
}

.stat-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,234,214,0.85);
  margin-top: 0.4rem;
}

/* ── TIMELINE ────────────────────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--red), var(--navy));
}

.timeline-entry {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 3rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.55rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--gold);
  transform: translateX(-50%);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-entry h3 { margin-bottom: 0.5rem; }

.timeline-entry p {
  color: var(--ash);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ── ERA CARDS ───────────────────────────────────────────── */

.era-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.era-card {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-top: 4px solid var(--red);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.era-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,36,56,0.12);
  color: inherit;
}

.era-card .era-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.era-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }

.era-card p {
  font-size: 0.9rem;
  color: var(--ash);
  margin-bottom: 0;
}

/* ── DOCUMENT CALLOUT ───────────────────────────────────── */

.doc-callout {
  background: var(--navy);
  color: var(--parchment);
  padding: 2rem;
  border-left: 5px solid var(--gold);
  margin: 2rem 0;
}

.doc-callout .doc-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.doc-callout p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(240,234,214,0.9);
  margin-bottom: 0.5rem;
}

.doc-callout a {
  font-size: 0.8rem;
  color: var(--gold-light);
}

/* ── INCIDENT CARDS (Foreign Interference) ──────────────── */

.incident-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.incident {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  padding: 1.5rem;
  align-items: start;
}

.incident-year-block {
  text-align: center;
  background: var(--navy);
  padding: 1rem 0.5rem;
  border-radius: 2px;
}

.incident-year-block .year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
}

.incident-year-block .country {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,234,214,0.7);
  margin-top: 0.25rem;
}

.incident h4 { margin-bottom: 0.5rem; }
.incident p { font-size: 0.9rem; color: var(--ash); margin-bottom: 0.25rem; }
.incident .source-tag {
  font-size: 0.75rem;
  color: var(--red);
  font-family: var(--font-mono);
  text-decoration: none;
}

/* ── THEME PILLS ─────────────────────────────────────────── */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.theme-card {
  padding: 1.5rem;
  border: 1px solid var(--parchment-dark);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.theme-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  color: inherit;
}

.theme-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.theme-card h4 { margin-bottom: 0.4rem; font-size: 1rem; }
.theme-card p { font-size: 0.85rem; color: var(--ash); margin-bottom: 0; }

/* ── SOURCES / METHODOLOGY ──────────────────────────────── */

.source-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.source-list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9rem;
}

.source-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: var(--font-mono);
}

.source-list a { color: var(--red); }

/* ── PAGE HEADER (inner pages) ──────────────────────────── */

.page-header {
  background: var(--navy);
  padding: 4rem 2rem 3rem;
  color: var(--parchment);
  border-bottom: 3px solid var(--gold);
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 { color: var(--white); margin-bottom: 1rem; }
.page-header p { color: rgba(240,234,214,0.8); max-width: 60ch; }

/* ── CONTENT BODY ────────────────────────────────────────── */

.content-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.content-main h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--parchment-dark);
}

.content-main h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-box {
  background: var(--navy);
  color: var(--parchment);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--gold);
}

.sidebar-box h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.sidebar-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-box ul a {
  font-size: 0.85rem;
  color: rgba(240,234,214,0.8);
  text-decoration: none;
}

.sidebar-box ul a:hover { color: var(--gold); }

/* ── SVG ILLUSTRATIONS ──────────────────────────────────── */

.illustration-strip {
  width: 100%;
  overflow: hidden;
  background: var(--navy);
  padding: 2rem 0;
}

/* ── FOOTER ──────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: rgba(240,234,214,0.7);
  padding: 3rem 2rem 2rem;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .nav-logo { font-size: 1.2rem; margin-bottom: 0.75rem; display: block; }
.footer-brand p { font-size: 0.85rem; max-width: 36ch; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.85rem; color: rgba(240,234,214,0.7); text-decoration: none; }
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.2);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.methodology-note {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(240,234,214,0.7);
  font-style: italic;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--navy); padding: 1rem; gap: 0.25rem; border-bottom: 2px solid var(--gold); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-year { display: none; }
  .content-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .incident { grid-template-columns: 1fr; }
  .incident-year-block { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; }
}

@media (max-width: 480px) {
  :root { --section-pad: 3rem 1.25rem; }
  .era-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  .site-nav, .site-footer { display: none; }
  body { background: white; color: black; }
}
