:root {
  --ink: #202124;
  --muted: #69706d;
  --paper: #f8f6f0;
  --panel: #ffffff;
  --line: #ded8ca;
  --red: #7b2d26;
  --teal: #1f5d62;
  --gold: #d19a3f;
  --green: #526d40;
  --shadow: 0 18px 50px rgba(30, 24, 18, .13);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  left: 1rem;
  position: absolute;
  top: -3rem;
}

.skip-link:focus {
  background: var(--ink);
  color: white;
  padding: .75rem;
  top: 1rem;
  z-index: 20;
}

.site-header {
  background: rgba(248, 246, 240, .9);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: .65rem;
  padding: .75rem clamp(1rem, 4vw, 3rem) .65rem;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.header-main {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-width: 0;
}

.header-left {
  align-items: center;
  display: flex;
  gap: .75rem;
  min-width: 0;
}

.menu-toggle {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  display: grid;
  flex: 0 0 42px;
  gap: 4px;
  height: 42px;
  padding: 10px;
  width: 42px;
}

.menu-toggle span {
  background: white;
  display: block;
  height: 2px;
  width: 100%;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--teal);
  border-color: var(--teal);
}

.drawer-menu {
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: .85rem;
  left: clamp(1rem, 4vw, 3rem);
  max-height: min(72vh, 680px);
  overflow: auto;
  padding: 1rem;
  position: absolute;
  top: calc(100% + .5rem);
  width: min(520px, calc(100vw - 2rem));
  z-index: 30;
}

.drawer-menu[hidden] {
  display: none;
}

.drawer-menu-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: .8rem;
}

.drawer-menu-head strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.drawer-menu-head span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.drawer-civilizations {
  display: grid;
  gap: .65rem;
}

.drawer-civilization {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: .35rem;
  padding: .9rem;
}

.drawer-civilization:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(30, 24, 18, .08);
}

.drawer-civilization-title {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.05;
}

.drawer-civilization-meta {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-civilization-periods {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.drawer-all-topics {
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-weight: 900;
  padding-top: .85rem;
}

.drawer-folder {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: .85rem;
}

.drawer-folder-title {
  color: var(--red);
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: .7rem;
}

.drawer-folder ul {
  display: grid;
  gap: .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-folder li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: .2rem;
  padding-top: .65rem;
}

.drawer-folder li a {
  font-weight: 800;
  line-height: 1.25;
}

.drawer-folder li span {
  color: var(--muted);
  font-size: .85rem;
}

.brand {
  align-items: center;
  display: flex;
  gap: .8rem;
}

.brand-mark {
  align-items: center;
  background: var(--red);
  color: white;
  display: grid;
  font-family: Georgia, serif;
  font-size: .9rem;
  font-weight: 700;
  height: 42px;
  place-items: center;
  width: 42px;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: .78rem;
  margin-top: .1rem;
}

.top-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  font-size: .95rem;
}

.top-nav a {
  border-bottom: 2px solid transparent;
  padding: .4rem .1rem;
}

.top-nav a:hover {
  border-color: var(--gold);
}

.site-timeline {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.timeline-scale {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: .7rem;
  font-weight: 900;
  gap: .5rem;
  grid-template-columns: auto 1fr auto;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.timeline-scale strong {
  color: var(--teal);
  justify-self: center;
}

.timeline-track {
  background: linear-gradient(90deg, rgba(123, 45, 38, .12), rgba(31, 93, 98, .12));
  border: 1px solid var(--line);
  display: flex;
  min-height: 42px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.timeline-segment {
  align-items: center;
  border-right: 1px solid rgba(32, 33, 36, .13);
  display: grid;
  flex: 0 0 max(calc(var(--span) * 1%), 7.2rem);
  gap: .1rem;
  min-width: 0;
  padding: .45rem .55rem;
  position: relative;
}

.timeline-segment::before {
  background: var(--gold);
  content: "";
  height: 100%;
  left: 0;
  opacity: .7;
  position: absolute;
  top: 0;
  width: 3px;
}

.timeline-segment:hover,
.timeline-segment:focus-visible {
  background: white;
  color: var(--red);
  outline: none;
}

.timeline-segment span {
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-segment small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  min-height: calc(100vh - 132px);
  padding: clamp(2rem, 5vw, 5rem);
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 .8rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 7.4rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-copy > p:not(.eyebrow),
.page-hero p,
.article-hero p,
.section-heading p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.share-panel {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .75rem;
  margin: .9rem 0 1rem;
}

.share-panel-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.share-link {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  font-size: .84rem;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  padding: .45rem .7rem;
}

.share-link:hover {
  border-color: var(--gold);
  color: var(--red);
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 0 1rem;
}

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

.button.secondary {
  background: transparent;
}

.hero-feature {
  align-self: end;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-height: min(680px, calc(100vh - 130px));
  overflow: hidden;
}

.hero-feature img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-feature span,
.hero-feature strong {
  padding: 0 1.1rem;
}

.hero-feature span {
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  margin-top: 1rem;
  text-transform: uppercase;
}

.hero-feature strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: .4rem 0 1.2rem;
}

.hero-slider {
  align-self: end;
  background: var(--panel);
  box-shadow: var(--shadow);
  min-height: min(680px, calc(100vh - 130px));
  overflow: hidden;
  position: relative;
}

.hero-slide {
  display: grid;
  grid-template-rows: 1fr auto auto;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(24px);
  transition: opacity .45s ease, transform .45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 1;
}

.hero-slide img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.slide-badge,
.hero-slide strong {
  padding: 0 1.1rem;
}

.slide-badge {
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  margin-top: 1rem;
  text-transform: uppercase;
}

.hero-slide strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: .4rem 0 1.2rem;
}

.slider-controls {
  display: flex;
  gap: .35rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 3;
}

.slider-controls button {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(32, 33, 36, .22);
  cursor: pointer;
  height: 12px;
  padding: 0;
  width: 28px;
}

.slider-controls button.is-active {
  background: var(--gold);
  border-color: var(--gold);
}

.author-page,
.topic-band,
.section-heading,
.article-grid,
.archive-section,
.topic-list,
.related {
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.author-page {
  padding-top: 0;
}

.author-drawer {
  background: white;
  border: 1px solid var(--line);
}

.author-drawer summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 76px;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
}

.author-drawer summary::-webkit-details-marker {
  display: none;
}

.author-drawer summary::after {
  align-items: center;
  background: var(--teal);
  color: white;
  content: "+";
  display: grid;
  flex: 0 0 34px;
  font-size: 1.4rem;
  font-weight: 800;
  height: 34px;
  place-items: center;
  width: 34px;
}

.author-drawer[open] summary::after {
  content: "-";
}

.author-drawer strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
}

.author-drawer em {
  color: var(--muted);
  display: block;
  font-style: normal;
  font-weight: 800;
  margin-top: .35rem;
}

.author-copy {
  border-top: 1px solid var(--line);
  display: grid;
  gap: .8rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.author-copy p {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  line-height: 1.7;
  margin: 0;
  max-width: 900px;
}

.topic-band {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.pill {
  border: 1px solid var(--line);
  font-weight: 800;
  padding: .7rem .9rem;
}

.pill:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.search-box {
  color: var(--muted);
  display: grid;
  font-size: .8rem;
  font-weight: 800;
  gap: .35rem;
  min-width: min(320px, 100%);
  text-transform: uppercase;
}

.search-box input {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  min-height: 44px;
  padding: 0 .8rem;
  text-transform: none;
}

.article-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr;
}

.article-card[hidden] {
  display: none;
}

.card-media {
  aspect-ratio: 16 / 10;
  background: #ddd;
  overflow: hidden;
}

.card-media img {
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
  width: 100%;
}

.article-card:hover img {
  transform: scale(1.035);
}

.card-copy {
  display: grid;
  gap: .7rem;
  padding: 1rem;
}

.card-copy p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.meta-row {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .88rem;
  gap: .85rem;
}

.archive-section {
  border-top: 1px solid var(--line);
}

.archive-drawer {
  background: white;
  border: 1px solid var(--line);
}

.archive-drawer summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  min-height: 86px;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
}

.archive-drawer summary::-webkit-details-marker {
  display: none;
}

.archive-drawer summary::after {
  align-items: center;
  background: var(--teal);
  color: white;
  content: "+";
  display: grid;
  flex: 0 0 38px;
  font-size: 1.6rem;
  font-weight: 700;
  height: 38px;
  place-items: center;
  width: 38px;
}

.archive-drawer[open] summary::after {
  content: "-";
}

.archive-drawer summary strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
}

.archive-drawer summary em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  margin-left: auto;
}

.archive-folders {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem;
}

.archive-folder {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: .9rem;
  padding: 1rem;
}

.folder-head {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.folder-head a {
  color: var(--red);
  flex: 0 0 auto;
  font-size: .85rem;
  font-weight: 800;
}

.archive-folder ul {
  display: grid;
  gap: .8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-folder li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: .25rem;
  padding-top: .8rem;
}

.archive-folder li a {
  font-weight: 800;
  line-height: 1.25;
}

.archive-folder li span {
  color: var(--muted);
  font-size: .88rem;
}

.page-hero,
.article-hero {
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.page-hero.compact {
  min-height: 340px;
}

.article-hero {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr minmax(300px, 520px);
}

.article-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
}

.article-hero img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.article-hero-image {
  cursor: zoom-in;
  display: block;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 250px minmax(0, 760px);
  justify-content: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 5rem);
}

.toc {
  border-left: 4px solid var(--teal);
  display: grid;
  gap: .65rem;
  padding-left: 1rem;
  position: sticky;
  top: 100px;
}

.toc a {
  color: var(--muted);
  font-size: .95rem;
}

.article-content {
  background: white;
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.article-content h2,
.article-content h3 {
  margin-top: 2rem;
}

.article-content p,
.article-content li,
.article-content blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.8;
}

.article-content p {
  margin: 1rem 0;
}

.article-content blockquote {
  border-left: 5px solid var(--gold);
  color: var(--muted);
  margin: 1.5rem 0;
  padding-left: 1rem;
}

.article-content a {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-figure {
  margin: 2rem 0;
}

.image-zoom {
  cursor: zoom-in;
  display: block;
}

.article-figure img {
  border: 1px solid var(--line);
  height: auto;
  width: 100%;
}

.article-figure figcaption {
  color: var(--muted);
  font-size: .95rem;
  font-style: italic;
  line-height: 1.5;
  margin-top: .55rem;
  text-align: center;
}

.lightbox {
  align-items: center;
  background: rgba(20, 20, 18, .88);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  position: fixed;
  z-index: 100;
}

.lightbox img {
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  max-height: calc(100vh - 6rem);
  max-width: min(1200px, 96vw);
  object-fit: contain;
}

.lightbox-close {
  background: white;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 700;
  height: 44px;
  line-height: 1;
  position: fixed;
  right: 1rem;
  top: 1rem;
  width: 44px;
}

.topic-list {
  display: grid;
  gap: .7rem;
}

.topic-row {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.topic-row span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.timeline-hero h1 {
  max-width: 1000px;
}

.timeline-browser,
.timeline-list,
.popular-section {
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.timeline-browser {
  display: grid;
  gap: .7rem;
  padding-top: 0;
}

.timeline-period-row,
.timeline-article-row {
  background: white;
  border: 1px solid var(--line);
  display: grid;
  gap: .45rem;
  padding: 1rem;
}

.timeline-period-row {
  grid-template-columns: minmax(220px, .35fr) 1fr;
}

.timeline-period-row:hover,
.timeline-article-row:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(30, 24, 18, .08);
}

.timeline-period-row span,
.timeline-article-row span {
  display: grid;
  gap: .25rem;
}

.timeline-period-row strong,
.timeline-article-row strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.timeline-period-row em,
.timeline-article-row time {
  color: var(--red);
  font-style: normal;
  font-weight: 900;
}

.timeline-period-row small,
.timeline-article-row small {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.4;
}

.timeline-rows {
  display: grid;
  gap: .65rem;
}

.timeline-article-row {
  align-items: start;
  grid-template-columns: 110px 1fr;
}

.popular-section {
  padding-top: 0;
}

.popular-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.popular-controls button {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 900;
  min-height: 42px;
  padding: 0 .85rem;
}

.popular-controls button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.popular-note {
  color: var(--muted);
  font-weight: 800;
  margin: 0 0 1rem;
}

.popular-list {
  display: grid;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.popular-item {
  align-items: start;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 48px 180px 1fr;
  padding: 1rem;
}

.popular-rank {
  align-items: center;
  background: var(--red);
  color: white;
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 900;
  height: 44px;
  place-items: center;
  width: 44px;
}

.popular-thumb {
  aspect-ratio: 16 / 10;
  background: #ddd;
  display: block;
  overflow: hidden;
}

.popular-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.popular-item h3 {
  margin-bottom: .5rem;
}

.popular-item p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 .7rem;
}

.site-footer {
  align-items: start;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
}

.site-footer p {
  color: var(--muted);
  max-width: 600px;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.ad-slot {
  margin: 1rem auto 2rem;
  max-width: 980px;
  min-height: 120px;
}

@media (max-width: 920px) {
  .hero,
  .article-hero,
  .article-layout,
  .archive-folders {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-feature {
    min-height: 420px;
  }

  .hero-slider {
    min-height: 520px;
  }

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

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

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-main,
  .section-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    gap: .55rem;
    padding: .65rem .75rem;
  }

  .top-nav {
    justify-content: space-between;
  }

  .brand small {
    display: none;
  }

  .drawer-menu {
    left: .75rem;
    right: .75rem;
    width: auto;
  }

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

  .timeline-track {
    min-height: 48px;
  }

  .hero {
    padding: 1.25rem;
  }

  h1 {
    font-size: 3.2rem;
  }

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

  .archive-folders {
    grid-template-columns: 1fr;
  }

  .timeline-period-row,
  .timeline-article-row,
  .popular-item {
    grid-template-columns: 1fr;
  }

  .archive-drawer summary {
    align-items: start;
    flex-wrap: wrap;
  }

  .article-content {
    border-left: 0;
    border-right: 0;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
}
