:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #ded8cf;
  --accent: #9f2434;
  --accent-dark: #751827;
  --blue: #315f72;
  --green: #3f6d51;
  --gold: #8a6a2d;
  --shadow: 0 16px 40px rgba(32, 33, 36, 0.08);
  --radius: 8px;
  --wrap: min(1120px, calc(100vw - 32px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 10;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  min-height: 104px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 740;
  line-height: 1.15;
  text-decoration: none;
}

.brand-text {
  display: grid;
  gap: 4px;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  font-size: 13px;
  letter-spacing: 0;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: flex-end;
  align-items: center;
  gap: 12px 20px;
  font-size: 14px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
}

.hero,
.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 56px;
  align-items: center;
  min-height: 560px;
  padding: 72px 0;
}

.page-hero {
  padding: 72px 0 54px;
}

.page-hero-inner h1,
.page-hero-inner .lede {
  max-width: 780px;
}

.eyebrow,
.panel-label,
.meta {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
  line-height: 1.12;
}

h1 {
  max-width: 900px;
  font-size: clamp(40px, 5vw, 64px);
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
}

h3 {
  font-size: 24px;
}

.lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: #34373a;
  font-size: 21px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  background: var(--accent-dark);
  color: #fff;
}

.button.secondary {
  color: var(--accent-dark);
}

.radar-panel {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow);
}

.radar-panel h2 {
  font-size: 30px;
}

.radar-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.radar-list li {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.radar-list span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 72px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-top: 48px;
}

.topic-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-card,
.article-card,
.featured-article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.topic-card {
  min-height: 156px;
  color: var(--ink);
  text-decoration: none;
}

.topic-card span {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.2;
}

.topic-card p,
.article-card p,
.featured-article p {
  margin: 0;
  color: var(--muted);
}

.article-card {
  display: grid;
  gap: 12px;
}

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

.article-card h3 a:hover,
.featured-article h3 a:hover {
  color: var(--accent-dark);
}

.featured-band {
  border-block: 1px solid var(--line);
  background: #f4f0eb;
}

.featured-article {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  white-space: nowrap;
  font-weight: 740;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  font-size: 12px;
}

.article-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.article-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 780px);
  gap: 48px;
  align-items: start;
  padding: 56px 0 80px;
}

.article-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  font-size: 14px;
}

.toc,
.source-box,
.summary-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.toc-title {
  margin: 0 0 10px;
  font-weight: 760;
}

.toc ul,
.source-box ul {
  padding-left: 18px;
  margin: 0;
}

.prose {
  color: #292c2f;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  font-size: 32px;
}

.prose h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.prose p,
.prose li {
  max-width: 72ch;
}

.prose blockquote {
  margin: 28px 0;
  border-left: 4px solid var(--accent);
  padding: 12px 0 12px 18px;
  color: #34373a;
  background: #fff;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: #f3eee7;
}

.summary-box {
  margin-bottom: 30px;
  border-top: 4px solid var(--blue);
}

.summary-box h2 {
  margin-top: 0;
  font-size: 26px;
}

.term-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.term-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #202124;
  color: #f8f5ef;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 28px;
}

.footer-title {
  margin: 0 0 8px;
  font-weight: 780;
}

.site-footer p {
  max-width: 560px;
  margin-top: 0;
  color: #d8d2ca;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 900px) {
  .header-inner {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    padding: 8px 10px;
    color: var(--ink);
    font: inherit;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    right: 16px;
    left: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 10px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero-grid,
  .article-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 54px 0;
  }

  .article-aside {
    position: static;
  }

  .topic-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(100% - 24px, 1120px);
  }

  .topic-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .featured-article {
    display: grid;
  }

  .text-link {
    white-space: normal;
  }
}
