:root {
  --color-brand: #B85C33;
  --color-cta: #E8A33D;
  --bg-page: #17110B;
  --bg-surface: #20180F;
  --line: #3A2B1C;
  --ink: #F4EDE3;
  --muted: #B7A692;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: Consolas, 'Courier New', monospace;
}

::selection {
  background: var(--color-brand);
  color: var(--bg-page);
}

.category-main {
  margin: 0 260px 0 auto;
  max-width: 1160px;
  padding: 64px;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero {
  font-family: var(--font-sans);
  line-height: 1.65;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.65;
  color: var(--ink);
}

.hero-line1 {
  display: block;
}

.hero-line2 {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--color-cta);
}

.marker {
  display: inline-block;
  margin-bottom: -8px;
  border-bottom: 8px solid var(--color-cta);
}

.hero-meta {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--muted);
}

.hero-sub {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
}

.btn {
  display: inline-block;
  margin-top: 40px;
  background: var(--color-cta);
  color: var(--bg-page);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  padding: 16px 32px;
  text-decoration: none;
  box-shadow: 6px 6px 0 #0E0A05;
  transition: transform 150ms, box-shadow 150ms;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #0E0A05;
}

.btn:focus-visible,
.timeline-card-title a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.section {
  margin-bottom: 96px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-head {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.65;
  color: var(--ink);
}

.title-line1 {
  display: block;
}

.title-line2 {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--color-cta);
}

.section-intro {
  margin: 0 0 48px;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
}

.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  min-width: 0;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 8px;
  width: 11px;
  height: 11px;
  background: var(--color-brand);
}

.timeline-item--featured::before {
  left: -50px;
  top: 6px;
  width: 15px;
  height: 15px;
}

.timeline-meta {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--muted);
}

.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: 24px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  transition: border-color 150ms;
}

.timeline-card:hover {
  border-color: var(--color-brand);
}

.timeline-item--featured .timeline-card {
  grid-template-columns: minmax(0, 1fr);
  padding: 32px;
  gap: 24px;
}

.timeline-card-media {
  min-width: 0;
  overflow: hidden;
}

.timeline-card-media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: 12px 12px 0 var(--color-brand);
}

.timeline-item--featured .timeline-card-media img {
  box-shadow: 16px 16px 0 var(--color-brand);
}

.timeline-card-body {
  min-width: 0;
}

.timeline-card-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.65;
}

.timeline-item--featured .timeline-card-title {
  font-size: 28px;
}

.timeline-card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 150ms;
}

.timeline-card-title a:hover {
  color: var(--color-brand);
}

.timeline-card-excerpt {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.empty-note {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: 24px;
  min-width: 0;
}

.stat-number {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.65;
  color: var(--color-brand);
}

.stat-label {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table,
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--line);
}

.compare-table th,
.matrix-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  text-align: left;
  padding: 16px;
  border-bottom: 2px solid var(--color-brand);
}

.compare-table td,
.matrix-table td {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table td:first-child,
.matrix-table td:first-child {
  font-weight: 700;
}

.compare-table tbody tr:last-child td,
.matrix-table tbody tr:last-child td {
  border-bottom: 0;
}

.sq {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  background: var(--color-brand);
}

.sq-empty {
  background: transparent;
  border: 1px solid var(--line);
}

.legend {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--muted);
}

.table-note {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.faq-section h3 {
  margin: 32px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.65;
  color: var(--ink);
}

.faq-section p {
  margin: 0;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
}

.cta-band {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: 48px;
  text-align: center;
}

.cta-band .btn {
  margin-top: 32px;
}

.end-note {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .category-main {
    margin-right: 240px;
    padding: 48px 40px;
  }
}

@media (max-width: 760px) {
  .category-main {
    margin-right: 0;
    padding: 40px 20px;
  }
  .section {
    margin-bottom: 64px;
  }
  .section-head {
    padding: 32px 0 24px;
  }
  .timeline {
    padding-left: 32px;
  }
  .timeline-item::before {
    left: -32px;
  }
  .timeline-item--featured::before {
    left: -34px;
  }
  .timeline-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }
  .timeline-item--featured .timeline-card {
    padding: 24px;
  }
  .timeline-card-media img,
  .timeline-item--featured .timeline-card-media img {
    box-shadow: 10px 10px 0 var(--color-brand);
  }
  .compare-table td,
  .matrix-table td {
    font-size: 15px;
    padding: 12px;
  }
  .compare-table th,
  .matrix-table th {
    font-size: 16px;
    padding: 12px;
  }
  .cta-band {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .hero-meta,
  .timeline-meta,
  .stat-label,
  .legend {
    font-size: 12px;
  }
  .stat-number {
    font-size: 36px;
  }
  .stats-grid {
    gap: 16px;
  }
  .btn {
    padding: 14px 24px;
  }
}