:root {
  --bg: #0f1419;
  --surface: #f7f4ef;
  --text: #1c2430;
  --muted: #5c6773;
  --accent: #2d6a9f;
  --accent-hover: #1d4e79;
  --line: #e2ddd4;
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}
.container { width: min(1120px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 25, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 4vw;
  max-width: 1120px;
  margin: 0 auto;
}
.logo {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--accent); margin-left: 0.2em; }
.nav { display: flex; gap: 1rem 1.25rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a:not(.btn) { color: rgba(255,255,255,0.88); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-pill { padding: 0.55rem 1rem; font-size: 0.92rem; }

.featured-hero {
  position: relative;
  min-height: min(68vh, 560px);
  display: grid;
  align-items: end;
  color: #fff;
  background: linear-gradient(135deg, #1a222c 0%, #2a3544 55%, #1e2836 100%);
}
.featured-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.featured-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,20,25,0.92), rgba(15,20,25,0.35));
}
.featured-hero-inner { position: relative; z-index: 1; padding: 3rem 0 2.5rem; }
.featured-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0.4rem 0 0.8rem;
  max-width: 18ch;
}
.featured-hero h1 a { color: inherit; text-decoration: none; }
.featured-hero .lead { max-width: 52ch; color: rgba(255,255,255,0.9); font-size: 1.05rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.section { padding: 3rem 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.35rem;
}
.section-lead { color: var(--muted); margin: 0 0 1.5rem; max-width: 60ch; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.topic-card {
  display: block;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.topic-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(28,36,48,0.08);
}
.topic-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.topic-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.topic-meta { display: inline-block; margin-top: 0.5rem; font-size: 0.8rem; color: var(--muted); }

.post-rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.post-rail li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.post-rail a { font-weight: 600; color: var(--text); text-decoration: none; }
.post-rail a:hover { color: var(--accent); }
.post-rail time { color: var(--muted); font-size: 0.88rem; }
.rail-more { margin-top: 1rem; }
.rail-more a { color: var(--accent); font-weight: 600; text-decoration: none; }

.promo-strip { background: #fff; border-block: 1px solid var(--line); }
.promo-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

.newsletter {
  background: var(--bg);
  color: #fff;
}
.newsletter-inner { text-align: center; max-width: 640px; }
.newsletter h2 { font-family: var(--display); margin: 0 0 0.5rem; }
.newsletter p { color: rgba(255,255,255,0.85); }
.newsletter-note { color: rgba(255,255,255,0.65); font-size: 0.92rem; }

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .nav a:not(.header-cta) { display: none; }
  .featured-hero { min-height: 52vh; }
}