/* The History Decoded — blog theme
   Palette from the logo: navy #0d1222, gold #ffc832, dark gold #785f19, body text white at 82%. */

:root {
  --navy: #0d1222;
  --navy-2: #151c33;
  --gold: #ffc832;
  --gold-dim: #785f19;
  --text: rgba(255, 255, 255, 0.82);
  --white: #ffffff;
  --frame: 3px solid var(--gold);
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--gold-dim);
  padding: 18px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: "Anton", Impact, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 20px;
}
.brand:hover { text-decoration: none; }
.seal {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-family: "Anton", Impact, sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.nav { display: flex; gap: 22px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.nav a { color: var(--text); }
.nav a:hover { color: var(--gold); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  position: relative;
}
.hero .frame {
  border: var(--frame);
  padding: 48px 40px;
  position: relative;
}
.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  color: var(--white);
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.95;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.hero h1 span { color: var(--gold); }
.hero p.lead {
  max-width: 620px;
  margin: 0;
  font-size: 19px;
}
.hero .today {
  position: absolute;
  top: -22px; right: 32px;
  background: var(--navy);
  color: var(--gold);
  padding: 4px 16px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid var(--gold);
}

/* ---------- Section title ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 56px 0 24px;
}
.section-title h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  color: var(--white);
  font-size: 34px;
  margin: 0;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold-dim);
}

/* ---------- Post cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  border: 2px solid var(--gold);
  background: var(--navy-2);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 200, 50, 0.12);
  text-decoration: none;
}
.card .year {
  font-family: "Anton", Impact, sans-serif;
  color: var(--gold);
  font-size: 64px;
  line-height: 1;
  margin: 0 0 10px;
}
.card h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--white);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 12px;
}
.card p { margin: 0 0 16px; font-size: 15px; flex: 1; }
.card .more {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Article ---------- */
.article-head {
  padding: 64px 0 32px;
  border-bottom: 2px solid var(--gold);
}
.article-head .year {
  font-family: "Anton", Impact, sans-serif;
  color: var(--gold);
  font-size: clamp(90px, 16vw, 180px);
  line-height: 0.9;
  margin: 0;
}
.article-head h1 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--white);
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.15;
  margin: 18px 0 16px;
  max-width: 820px;
}
.article-head .dek { font-size: 19px; margin: 0; max-width: 720px; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 16px;
}
.article-body h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--gold);
  font-size: 28px;
  margin: 40px 0 12px;
}
.article-body p { margin: 0 0 18px; }
.article-body blockquote {
  border-left: 4px solid var(--gold);
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 21px;
}
.article-body .fact {
  border: var(--frame);
  padding: 20px 24px;
  margin: 30px 0;
  color: var(--white);
}
.article-body .fact strong {
  display: block;
  font-family: "Anton", Impact, sans-serif;
  color: var(--gold);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sources {
  max-width: 720px;
  margin: 36px auto 0;
  padding: 24px;
  border-top: 1px solid var(--gold-dim);
  font-size: 14px;
}
.sources h3 {
  color: var(--gold);
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: 16px;
}
.sources ol { padding-left: 20px; margin: 0; }
.sources li { margin-bottom: 6px; }

/* ---------- Follow block (required on every post) ---------- */
.follow {
  max-width: 720px;
  margin: 48px auto 0;
  border: var(--frame);
  padding: 28px 28px 24px;
  text-align: center;
}
.follow h3 {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  color: var(--white);
  font-size: 28px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.follow p { margin: 0 0 18px; font-size: 15px; }
.follow ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  font-size: 14px;
}
.follow .tag {
  margin-top: 18px;
  color: var(--gold);
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--gold-dim);
  padding: 28px 0 40px;
  font-size: 13px;
  text-align: center;
}
.site-footer p { margin: 4px 0; }

.back {
  display: inline-block;
  margin: 28px 0 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero .frame { padding: 36px 22px; }
  .hero .today { right: 16px; }
  .nav { gap: 14px; font-size: 12px; }
  .card .year { font-size: 52px; }
}
