@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --navy:      #0f2545;
  --navy-mid:  #1a3a6b;
  --gold:      #c9973a;
  --gold-lt:   #e8b96a;
  --cream:     #faf7f2;
  --cream-dk:  #f0ebe0;
  --ink:       #1c1a17;
  --ink-mid:   #3d3830;
  --ink-lt:    #7a7060;
  --rule:      #d8d0c0;
  --white:     #ffffff;
  --red-alert: #b33a2a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'DM Mono', monospace;

  --max-w: 1180px;
  --col-gap: 2rem;
}

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

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

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

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── TOP BANNER ── */
.top-banner {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 1rem;
  border-bottom: 2px solid var(--gold);
}
.top-banner strong { color: var(--gold-lt); }

/* ── HEADER ── */
header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1.5rem;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-title span { color: var(--gold); }
.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-lt);
  margin-top: 0.2rem;
}
nav { display: flex; gap: 1.75rem; align-items: center; }
nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.2s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}
nav a:hover { color: var(--navy); }
nav a:hover::after { right: 0; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,151,58,0.12) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.03) 39px,
      rgba(255,255,255,0.03) 40px
    );
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-lt);
}
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── SECTION HEADERS ── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-mid);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.section-link:hover { color: var(--gold); }

/* ── ARTICLE CARDS ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--col-gap);
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(15,37,69,0.12);
  transform: translateY(-2px);
  border-color: rgba(201,151,58,0.4);
}
.card:hover::before { transform: scaleX(1); }

.card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.card h2, .card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 0.85rem;
  transition: color 0.2s;
}
.card:hover h2, .card:hover h3 { color: var(--navy-mid); }
.card p {
  font-size: 0.9rem;
  color: var(--ink-lt);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dk);
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ink-lt);
}
.card-read {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.card:hover .card-read { color: var(--gold); }

/* ── CATEGORY GRID ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1rem;
  margin-bottom: 5rem;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.cat-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}
.cat-card:hover .cat-icon,
.cat-card:hover .cat-name { color: var(--white); }
.cat-card:hover .cat-count { color: var(--gold-lt); }
.cat-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.cat-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.cat-count {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ink-lt);
  transition: color 0.2s;
}

/* ── FEATURED STRIP (hero card) ── */
.featured-strip {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  margin: 3rem 0;
}
.featured-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.featured-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1rem;
}
.featured-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.featured-excerpt {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  font-weight: 300;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }

.featured-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.mini-card {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.mini-card:hover { border-color: var(--gold-lt); }
.mini-cat {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 0.3rem;
}
.mini-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}
.mini-card:hover .mini-title { color: var(--gold-lt); }

/* ── ARTICLE PAGE ── */
.article-layout {
  max-width: var(--max-w);
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.article-cat-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.article-cat-link:hover { border-color: var(--gold); }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.article-summary {
  font-size: 1.1rem;
  color: var(--ink-mid);
  line-height: 1.7;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--ink-lt);
}
.article-byline span { display: flex; align-items: center; gap: 0.4rem; }

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-mid);
  margin: 2rem 0 0.75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--cream-dk);
  font-style: italic;
  color: var(--ink-mid);
}
.article-body strong { color: var(--navy); font-weight: 600; }

/* Sidebar */
.article-sidebar { position: sticky; top: 5rem; }
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.related-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--cream-dk);
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-cat {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.related-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  transition: color 0.2s;
}
.related-item:hover .related-title { color: var(--gold); }

/* Disclaimer box */
.disclaimer-box {
  background: #fff8ee;
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-mid);
  line-height: 1.6;
}
.disclaimer-box strong {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

/* ── MAIN SECTIONS ── */
.section { padding: 4rem 1.5rem; }
.section:nth-child(even) { background: var(--cream-dk); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo-title { color: var(--white); font-size: 1.3rem; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-disclaimer {
  max-width: var(--max-w);
  margin: 0 auto 1.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--cream-dk);
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 1.5rem;
}
.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--ink-lt);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.breadcrumb-inner a { color: var(--navy-mid); transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--gold); }
.breadcrumb-inner span { color: var(--rule); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}
.pagination a, .pagination span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule);
  color: var(--navy);
  background: var(--white);
  transition: all 0.2s;
}
.pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .featured-inner { grid-template-columns: 1fr; gap: 2rem; }
  .featured-aside { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 1rem; }
  nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col:nth-child(3), .footer-col:nth-child(4) { display: none; }
}
