*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:      #111111;
  --white:      #ffffff;
  --gray-light: #f5f5f3;
  --gray-mid:   #e0deda;
  --gray-text:  #666660;
  --gold:       #c9a84c;
  --gold-dark:  #9a7a2e;
  --font-sans:  'Georgia', serif;
  --font-ui:    system-ui, -apple-system, sans-serif;
  --nav-height: 56px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-ui);
  background: var(--gray-light);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 2px solid var(--gold);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span { color: var(--gold); }

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}

nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
nav a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--black);
  border-bottom: 1px solid #333;
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #222;
}

.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--white); }
.nav-drawer a.active { color: var(--gold); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: normal;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-dark);
}

.hero-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0.75rem auto;
}

.hero p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ── Main ─────────────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 0.75rem;
}

/* ── Topics grid ──────────────────────────────────────────────────────────── */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 1.5rem;
}

.topic-col {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topic-head {
  padding: 10px 12px 9px;
  border-bottom: 1px solid var(--gray-mid);
}

.topic-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.topic-empty {
  padding: 1.5rem 12px;
  font-size: 0.78rem;
  color: var(--gray-text);
  font-style: italic;
  flex: 1;
}

/* ── News items ───────────────────────────────────────────────────────────── */
.news-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-mid);
  flex: 1;
}

.news-item:last-of-type {
  border-bottom: none;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.news-date {
  font-size: 0.7rem;
  color: var(--gray-text);
}

.stage-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stage-problem  { background: #FAECE7; color: #993C1D; }
.stage-solution { background: #E1F5EE; color: #0F6E56; }
.stage-result   { background: #E6F1FB; color: #185FA5; }

a.news-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 5px;
}

a.news-title:hover { color: var(--gold-dark); }

.news-excerpt {
  font-size: 0.73rem;
  color: var(--gray-text);
  line-height: 1.5;
}

.topic-footer {
  padding: 7px 12px;
  border-top: 1px solid var(--gray-mid);
  background: var(--gray-light);
  margin-top: auto;
}

.topic-footer a {
  font-size: 0.72rem;
  color: var(--gray-text);
  text-decoration: none;
  font-weight: 500;
}

.topic-footer a:hover { color: var(--black); }

/* ── Bottom grid ──────────────────────────────────────────────────────────── */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1.5rem;
}

.bottom-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.bottom-card h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-mid);
}

.link-group {
  margin-bottom: 0.85rem;
}

.link-group:last-child { margin-bottom: 0; }

.link-group-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-list a {
  font-size: 0.8rem;
  color: var(--black);
  text-decoration: none;
}

.link-list a:hover { color: var(--gold-dark); text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  border-top: 2px solid var(--gold);
  padding: 1rem 1.5rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--gold-dark);
  text-decoration: none;
}

.site-footer a:hover { color: var(--gold); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .topics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
  nav { display: none; }
  .nav-toggle { display: flex; }
}