@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

/* ─── Custom Properties ─── */
:root {
  --bg: #FAFAF8;
  --ink: #1A1A1A;
  --accent-blue: #1d4ed8;
  --accent-amber: #C17A2A;
  --border: #DEDEDA;
  --font-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --content-width: 720px;
  --wide-width: 1160px;
  --nav-height: 56px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-height);
}

/* ─── Typography Scale ─── */
h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

/* ─── Layout Utilities ─── */
.container {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ─── Navigation ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

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

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-brand:hover {
  text-decoration: none;
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--accent-blue);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent-blue);
  font-weight: 500;
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 2px;
}

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
}

/* ─── Hero ─── */
.hero {
  background: var(--ink);
  color: var(--bg);
  padding: 96px 24px;
}

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

.hero h1 {
  color: var(--bg);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  margin-bottom: 28px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-style: italic;
  color: #999;
  max-width: 580px;
  line-height: 1.65;
}

/* ─── Section Marker ─── */
.section-marker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 10px;
}

/* ─── Featured Articles Grid ─── */
.featured-section {
  padding: 48px 0 0;
}

.featured-section-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 16px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  margin: 0 0 0;
}

.article-card {
  padding: 32px;
  border-right: 1px solid var(--border);
  transition: background 0.15s;
}

.article-card:last-child {
  border-right: none;
}

.article-card:hover {
  background: rgba(0,0,0,0.02);
}

.article-card .section-marker {
  display: block;
  margin-bottom: 6px;
}

.article-card h2 {
  margin-top: 0;
  font-size: 1.35rem;
  margin-bottom: 6px;
  line-height: 1.25;
}

.article-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.article-card h2 a:hover {
  color: var(--accent-blue);
}

.article-card-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 14px;
}

.article-card p {
  font-size: 0.975rem;
  line-height: 1.65;
  color: #555;
  margin-bottom: 0;
  font-family: var(--font-sans);
}

/* ─── Section Cards Grid ─── */
.topics-section {
  padding: 48px 0 64px;
}

.topics-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 16px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.section-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: background 0.12s;
}

.section-card:hover {
  background: rgba(0,0,0,0.025);
  text-decoration: none;
}

/* 3-col grid, 5 items: cards 3 and 5 end their rows */
.section-card:nth-child(3n) { border-right: none; }
.section-card:nth-child(5) { border-right: none; }
/* Cards 4 and 5 are in the last row */
.section-card:nth-child(4),
.section-card:nth-child(5) { border-bottom: none; }

.section-card-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 8px;
}

.section-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-card-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #666;
  line-height: 1.55;
  margin-bottom: 14px;
}

.section-card-count {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
}

.section-card-count.coming-soon {
  color: #CCC;
  font-style: italic;
  font-weight: 400;
}

/* ─── AI Disclosure Band ─── */
.ai-disclosure {
  background: var(--ink);
  padding: 48px 24px;
  margin: 48px 0 0;
}

.ai-disclosure-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.ai-disclosure p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.85;
  color: #AAA;
  margin-bottom: 0.75rem;
}

.ai-disclosure p:last-child {
  margin-bottom: 0;
}

/* ─── Stat Strip ─── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  margin: 40px 0;
}

.stat-item {
  padding: 24px 20px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number.amber {
  color: var(--accent-amber);
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.73rem;
  color: #777;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* ─── Pull Quote ─── */
.pull-quote {
  border-left: 3px solid var(--accent-amber);
  padding: 12px 28px;
  margin: 40px 0;
}

.pull-quote p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 0;
}

/* ─── Tables ─── */
.table-wrap {
  overflow-x: auto;
  margin: 40px 0 8px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.article-table thead th {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  padding: 9px 13px;
  text-align: left;
  letter-spacing: 0.025em;
  border: 1px solid var(--ink);
  white-space: nowrap;
}

.article-table tbody td {
  padding: 8px 13px;
  border: 1px solid var(--ink);
  color: var(--ink);
  vertical-align: top;
}

.article-table tbody tr:nth-child(even) td {
  background: rgba(0,0,0,0.03);
}

.table-note {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #999;
  margin-top: 8px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  padding: 24px 0 0;
  margin-bottom: 8px;
}

.breadcrumb-nav {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: #999;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--accent-blue);
}

.breadcrumb-sep {
  color: #CCC;
  font-style: normal;
}

/* ─── Article Header ─── */
.article-header {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.article-header h1 {
  margin-top: 4px;
  margin-bottom: 16px;
}

.article-byline {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #999;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.byline-sep {
  color: #CCC;
}

/* ─── Article Article List ─── */
.article-list {
  margin: 0;
}

.article-list-item {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.article-list-item:first-child {
  border-top: 1px solid var(--border);
}

.article-list-num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #CCC;
  padding-top: 6px;
  flex-shrink: 0;
  width: 20px;
}

.article-list-content { flex: 1; }

.article-list-item h2 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.article-list-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.article-list-item h2 a:hover {
  color: var(--accent-blue);
}

.article-list-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 10px;
}

.article-list-item p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ─── Section Page Header ─── */
.section-page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.section-page-header h1 {
  margin-top: 8px;
  margin-bottom: 16px;
}

.section-page-header .section-desc {
  font-size: 1rem;
  color: #666;
  max-width: 620px;
  margin-bottom: 0;
  font-family: var(--font-sans);
  line-height: 1.7;
}

/* ─── Coming Soon ─── */
.coming-soon-block {
  text-align: center;
  padding: 96px 24px;
}

.coming-soon-block p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #BBB;
  margin-bottom: 0;
  font-style: italic;
}

/* ─── About Layout ─── */
.about-header {
  padding: 64px 0 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 48px 0 80px;
  border-bottom: 1px solid var(--border);
}

.about-col h2 {
  font-size: 1.2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.005em;
}

.about-col p {
  font-size: 0.975rem;
  line-height: 1.85;
  font-family: var(--font-sans);
  color: #444;
}

/* ─── Disclosure Box ─── */
.disclosure-box {
  border-left: 4px solid var(--accent-amber);
  padding: 20px 24px;
  margin-top: 40px;
  background: rgba(193, 122, 42, 0.04);
}

.disclosure-box p {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #666;
  margin-bottom: 0;
}

/* ─── Next Article ─── */
.next-article {
  border-top: 1px solid var(--border);
  padding: 32px 0 0;
  margin-top: 64px;
  margin-bottom: 64px;
}

.next-article-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #AAA;
  margin-bottom: 8px;
}

.next-article a {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
}

.next-article a:hover {
  color: var(--accent-blue);
  text-decoration: none;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #AAA;
  max-width: 280px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-link-label {
  font-size: 0.68rem;
  color: #BBB;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-link-value {
  color: var(--ink);
}

.footer-link:hover .footer-link-value {
  color: var(--accent-blue);
  text-decoration: none;
}

.footer-link.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.footer-copy {
  max-width: var(--wide-width);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #CCC;
}

/* ─── Responsive — Mobile First ─── */
@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .nav-links a.active {
    border-bottom: none;
    border-left: 3px solid var(--accent-blue);
    padding-left: 21px;
    color: var(--accent-blue);
  }

  .nav-hamburger {
    display: flex;
  }

  /* Layout */
  .hero {
    padding: 60px 20px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .article-card:last-child {
    border-bottom: none;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-card {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .section-card:last-child {
    border-bottom: none !important;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .stat-number {
    font-size: 1.875rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    gap: 24px;
  }

  .section-page-header {
    padding: 40px 0 32px;
  }

  .article-header {
    padding: 28px 0 24px;
  }

  .pull-quote p {
    font-size: 1.05rem;
  }

  .article-list-item {
    flex-direction: column;
    gap: 4px;
  }

  .article-list-num {
    display: none;
  }
}

@media (min-width: 641px) {
  .nav-links {
    display: flex !important;
  }

  .nav-hamburger {
    display: none !important;
  }
}
