:root {
  --bg: #f5efe2;
  --paper: #fbf7ef;
  --paper-strong: #f1e8d8;
  --ink: #10263b;
  --ink-soft: #486074;
  --line: rgba(16, 38, 59, 0.16);
  --accent: #b44830;
  --accent-strong: #8f3623;
  --olive: #6d7764;
  --shadow: 0 20px 60px rgba(16, 38, 59, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(180, 72, 48, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(109, 119, 100, 0.14), transparent 24%),
    linear-gradient(180deg, #f8f2e6 0%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 38, 59, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 38, 59, 0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration-color: rgba(180, 72, 48, 0.4);
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 247, 239, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(16, 38, 59, 0.08);
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: 214px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(16, 38, 59, 0.06);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 0.95rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.hero,
.article-hero {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  padding: 3.4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    linear-gradient(135deg, rgba(251, 247, 239, 0.95) 0%, rgba(241, 232, 216, 0.86) 100%);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
}

.hero::after,
.article-hero::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -3rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 1px dashed rgba(180, 72, 48, 0.28);
  opacity: 0.8;
}

.eyebrow,
.section-kicker,
.panel-label,
.note-label,
.page-card-tag,
.source-label,
.sidecard-label {
  margin: 0 0 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 600;
}

h1,
h2,
h3,
.footer-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.7rem);
}

h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0;
  color: var(--ink-soft);
}

.lead {
  max-width: 63ch;
  font-size: 1.15rem;
  color: var(--ink);
}

.hero-copy,
.article-hero {
  display: grid;
  gap: 1.1rem;
}

.hero-actions,
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

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

.button-primary:hover {
  background: #0c1c2b;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.meta-strip span {
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(16, 38, 59, 0.12);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.44);
  font-size: 0.92rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.panel-card,
.fact-card,
.page-card,
.source-card,
.article-sidecard,
.checklist-card,
.editorial-note {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
}

.panel-card-accent {
  background: linear-gradient(180deg, rgba(180, 72, 48, 0.12), rgba(255, 255, 255, 0.62));
}

.panel-value {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 1.52rem;
  font-family: "Fraunces", Georgia, serif;
}

.panel-note {
  font-size: 0.97rem;
}

.panel-ticket {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.4rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(16, 38, 59, 0.96), rgba(27, 52, 76, 0.96));
}

.panel-ticket p {
  color: rgba(255, 255, 255, 0.78);
}

.ticket-title {
  color: #fff !important;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
}

.ticket-notch {
  position: absolute;
  top: 50%;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--bg);
  transform: translateY(-50%);
}

.ticket-notch-left {
  left: -0.8rem;
}

.ticket-notch-right {
  right: -0.8rem;
}

.section {
  margin-top: 1.8rem;
  padding: 2.2rem 0 0.2rem;
}

.section-grid {
  display: grid;
  gap: 1.4rem;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
}

.fact-grid,
.page-grid,
.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fact-card,
.page-card,
.source-card,
.timeline-step,
.faq-item,
.checklist-card,
.compare-table-wrap {
  box-shadow: 0 16px 34px rgba(16, 38, 59, 0.06);
}

.fact-card,
.page-card,
.source-card {
  display: grid;
  gap: 0.8rem;
}

.page-card,
.source-card {
  text-decoration: none;
}

.page-card:hover,
.source-card:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

.editorial-note {
  display: grid;
  gap: 0.8rem;
  background: linear-gradient(135deg, rgba(16, 38, 59, 0.95), rgba(41, 68, 91, 0.95));
}

.editorial-note p {
  color: rgba(255, 255, 255, 0.78);
}

.editorial-note .note-label {
  color: #f6cdbf;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
}

.timeline-index {
  color: var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.timeline-step > div {
  display: grid;
  gap: 0.65rem;
}

.checklist {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.65rem;
  color: var(--ink);
}

.checklist-note {
  margin-top: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding-top: 0.8rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  margin: 3rem 0 2.5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.footer-mark {
  width: 44px;
  margin-bottom: 0.8rem;
}

.footer-title {
  font-size: 1.45rem;
}

.footer-copy {
  margin-top: 0.45rem;
  max-width: 46ch;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.article-main {
  margin-top: 1.4rem;
}

.article-disclaimer {
  max-width: 62ch;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.48);
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.4rem;
  margin-top: 1.3rem;
}

.article-sidecard {
  position: sticky;
  top: 6.8rem;
  align-self: start;
  background: linear-gradient(180deg, rgba(16, 38, 59, 0.94), rgba(36, 67, 95, 0.94));
}

.article-sidecard p {
  color: rgba(255, 255, 255, 0.82);
}

.article-sidecard .sidecard-label {
  color: #f8cdbf;
}

.article-body {
  display: grid;
  gap: 1rem;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
}

.article-body h2 {
  max-width: 18ch;
  margin-top: 0.8rem;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.number-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
  color: var(--ink-soft);
}

.source-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.source-block-title {
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-weight: 600;
}

.source-block ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  color: var(--ink);
  background: rgba(16, 38, 59, 0.05);
}

@media (max-width: 980px) {
  .hero,
  .article-layout,
  .fact-grid,
  .page-grid,
  .sources-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .article-sidecard {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max));
  }

  .topbar {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }

  .has-js .site-nav {
    display: none;
  }

  .has-js .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero,
  .article-hero {
    padding: 2rem 1.15rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  h2 {
    max-width: 100%;
  }

  .timeline-step {
    grid-template-columns: 1fr;
  }

  .timeline-index {
    font-size: 2rem;
  }

  .article-body {
    padding: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-card:hover,
  .source-card:hover {
    transform: none;
  }
}
