@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #03111f;
  --bg-deep: #071a2b;
  --panel: rgba(18, 31, 49, 0.96);
  --panel-strong: rgba(15, 25, 39, 0.98);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f4f6;
  --muted: #c7d0db;
  --subtle: #8d99aa;
  --gold: #e0b453;
  --gold-soft: #edd59d;
  --gold-deep: #c48e1f;
  --ink: #19212c;
  --paper: #f4ead7;
  --paper-deep: #ead8ba;
  --paper-line: rgba(89, 70, 37, 0.16);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1180px;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(28, 59, 94, 0.35), transparent 28%),
    linear-gradient(180deg, #001225 0%, #031120 44%, #04162a 100%);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 999;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(16px);
  background: rgba(2, 12, 24, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22));
}

.brand-text {
  display: grid;
  gap: 0.08rem;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.83rem;
}

.site-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: #ffffff;
}

.hero {
  padding: 2.25rem 0 3rem;
}

.hero-stack {
  display: grid;
  gap: 1.75rem;
}

.section-heading {
  max-width: 920px;
}

.section-heading-light h1,
.section-heading-light h2,
.section-heading-light p {
  color: #f6f7fb;
}

.hero-heading h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 4.8vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-heading p {
  margin: 1rem 0 0;
  max-width: 940px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-status {
  display: grid;
  gap: 0.45rem;
}

.status-label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 800;
}

.timeline-status strong {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.4;
}

.timeline-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-small {
  min-height: 52px;
  padding: 0 1.3rem;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-weight: 800;
}

.button-primary {
  background: linear-gradient(135deg, #ebc161 0%, #d8a838 100%);
  color: #121212;
  box-shadow: 0 16px 30px rgba(224, 180, 83, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: #f8fafc;
}

.button-large {
  width: 100%;
  min-height: 84px;
  padding: 1rem 1.15rem;
  border-radius: 22px;
  justify-content: flex-start;
  text-align: left;
}

.button-large img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.button-large span {
  display: grid;
  gap: 0.25rem;
}

.button-large strong {
  font-size: 1rem;
  font-weight: 800;
}

.button-large small {
  color: inherit;
  opacity: 0.78;
  font-size: 0.9rem;
}

.timeline-shell {
  display: grid;
  gap: 1.3rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(17, 31, 49, 0.95), rgba(15, 26, 41, 0.95));
  box-shadow: var(--shadow);
}

.timeline-range-shell {
  display: grid;
  gap: 1rem;
  padding: 0.65rem 0.15rem 0;
}

.timeline-slider {
  width: 100%;
  appearance: none;
  background: transparent;
  height: 22px;
  margin: 0;
}

.timeline-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, #67d5c0 100%);
}

.timeline-slider::-webkit-slider-thumb {
  appearance: none;
  margin-top: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: #f7f2e7;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
}

.timeline-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, #67d5c0 100%);
}

.timeline-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: #f7f2e7;
}

.timeline-points {
  display: grid;
  grid-template-columns: repeat(9, minmax(120px, 1fr));
  gap: 0.7rem;
}

.timeline-point {
  min-height: 158px;
  padding: 0.9rem 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(36, 49, 67, 0.75), rgba(24, 35, 51, 0.9));
  color: var(--text);
  display: grid;
  align-content: start;
  gap: 0.7rem;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.timeline-point:hover,
.timeline-point:focus-visible {
  border-color: rgba(224, 180, 83, 0.5);
  transform: translateY(-1px);
}

.timeline-point.is-active {
  background: linear-gradient(180deg, #ecd08d 0%, #e0b75e 100%);
  color: #1c1c1c;
  border-color: rgba(255, 241, 207, 0.9);
}

.timeline-point-year {
  font-weight: 800;
  font-size: 1.06rem;
}

.timeline-point-title {
  font-weight: 800;
  line-height: 1.25;
  font-size: 0.88rem;
}

.timeline-point-phase {
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.75;
}

.event-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 1rem;
}

.event-card,
.creative-stage,
.source-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(18, 31, 49, 0.98), rgba(15, 27, 43, 0.95));
  box-shadow: var(--shadow);
}

.event-card {
  padding: 1.25rem;
}

.event-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.event-phase {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(224, 180, 83, 0.12);
  border: 1px solid rgba(224, 180, 83, 0.25);
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.event-year {
  color: #cfd8e3;
  font-weight: 800;
  font-size: 1.15rem;
}

.event-title-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.event-icon-shell,
.event-side-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.event-icon,
.event-side-icon img {
  width: 28px;
  height: 28px;
}

.event-title-row h2,
.event-side-top h3,
.creative-stage h2,
.newspaper-sheet h3,
.diary-header h2,
.sources-hero h1,
.source-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.event-title-row h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.25rem);
  line-height: 1.06;
}

.event-date {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.event-summary,
.creative-prompt,
.source-card p,
.sources-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.event-summary {
  margin: 1rem 0 0;
  font-size: 1.02rem;
}

.event-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.event-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #edf2f8;
  font-size: 0.9rem;
}

.event-side-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.impact-list,
.diary-reveal-card ul,
#newspaperSidebarPoints,
.source-list {
  margin: 0;
  padding-left: 1.2rem;
}

.diary-reveal-card ul,
#newspaperSidebarPoints {
  display: grid;
  gap: 0.9rem;
}

.impact-list {
  display: grid;
  gap: 1rem;
}

.impact-list li,
.source-list li,
.image-credit-item p {
  color: #eef2f7;
  line-height: 1.7;
}

#newspaperSidebarPoints li,
.diary-reveal-card li {
  color: #5a4938;
  line-height: 1.8;
}

#newspaperSidebarPoints li::marker,
.diary-reveal-card li::marker {
  color: #9c7a49;
}

.creative-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 1rem;
  padding: 1.25rem;
}

.creative-stage-copy {
  display: grid;
  align-content: start;
}

.creative-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.event-image-card {
  display: grid;
  gap: 0.9rem;
}

.event-image-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  min-height: 260px;
}

.event-image-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.event-image-card figcaption {
  display: grid;
  gap: 0.35rem;
}

.event-image-card figcaption strong {
  font-size: 0.98rem;
  line-height: 1.6;
}

.source-link {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover,
.source-link:focus-visible,
.source-list a:hover,
.source-list a:focus-visible,
.image-credit-item a:hover,
.image-credit-item a:focus-visible {
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 18, 0.72);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1120px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  margin: 1rem auto;
  border-radius: 28px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.48);
}

.modal-close {
  position: sticky;
  top: 1rem;
  margin-left: auto;
  margin-right: 1rem;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(249, 245, 236, 0.92);
  color: #181818;
  font-size: 1.7rem;
  line-height: 1;
  z-index: 2;
}

.modal-close-dark {
  background: rgba(22, 15, 8, 0.88);
  color: #fef7ea;
  border-color: rgba(255, 255, 255, 0.1);
}

.modal-newspaper {
  background:
    radial-gradient(circle at top right, rgba(126, 90, 22, 0.08), transparent 24%),
    linear-gradient(180deg, #f6eddc 0%, #f0e4d0 100%);
}

.newspaper-sheet {
  position: relative;
  padding: 1rem 2rem 2.2rem;
  color: var(--ink);
}

.newspaper-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.012), rgba(0, 0, 0, 0.012)),
    radial-gradient(circle at 20% 25%, rgba(0, 0, 0, 0.03) 0, transparent 28%),
    radial-gradient(circle at 80% 72%, rgba(0, 0, 0, 0.022) 0, transparent 22%);
  pointer-events: none;
}

.newspaper-toolbar,
.newspaper-masthead,
.newspaper-hero-block,
.newspaper-grid {
  position: relative;
  z-index: 1;
}

.newspaper-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #5f5140;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0 1rem;
  border-bottom: 1px solid rgba(56, 42, 15, 0.18);
}

.newspaper-masthead {
  padding: 1.2rem 0 1rem;
  text-align: center;
  border-bottom: 3px double rgba(56, 42, 15, 0.26);
}

.newspaper-kicker {
  margin: 0;
  color: #7a5a1d;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 800;
}

.newspaper-nameplate {
  margin: 0.25rem 0;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
}

.newspaper-tagline {
  margin: 0.4rem 0 0;
  color: #61513d;
  font-size: 0.95rem;
}

.newspaper-hero-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  padding: 1.4rem 0 1.2rem;
  border-bottom: 1px solid rgba(56, 42, 15, 0.18);
}

.newspaper-hero-block h3 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.03;
}

.newspaper-deck {
  margin: 0.9rem 0 0;
  color: #463728;
  font-size: 1.08rem;
  line-height: 1.7;
}

.newspaper-photo {
  margin: 0;
}

.newspaper-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(56, 42, 15, 0.18);
}

.newspaper-photo figcaption {
  margin-top: 0.6rem;
  color: #62523f;
  font-size: 0.85rem;
  line-height: 1.6;
}

.newspaper-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 1.5rem;
  padding-top: 1.2rem;
}

.newspaper-story {
  column-count: 2;
  column-gap: 1.8rem;
  column-rule: 1px solid rgba(56, 42, 15, 0.12);
}

.newspaper-story p {
  margin: 0 0 1rem;
  break-inside: avoid;
  color: #221b14;
  line-height: 1.85;
  text-align: justify;
  font-size: 1rem;
}

.newspaper-notes {
  display: grid;
  gap: 1rem;
}

.news-note-card {
  padding: 1rem;
  border: 1px solid rgba(56, 42, 15, 0.16);
  background: rgba(255, 249, 238, 0.72);
  border-radius: 18px;
}

.news-note-card h4 {
  margin: 0 0 0.7rem;
  font-family: var(--font-heading);
  color: #2a2119;
  font-size: 1.2rem;
}

.note-muted {
  background: rgba(255, 245, 225, 0.8);
}

.modal-diary {
  background:
    radial-gradient(circle at top left, rgba(166, 115, 34, 0.18), transparent 28%),
    linear-gradient(180deg, #2c2015 0%, #16100a 100%);
}

.diary-sheet-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  min-height: calc(100vh - 6rem);
}

.diary-spine {
  background:
    linear-gradient(180deg, #6a4721 0%, #4a2f12 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.diary-sheet {
  padding: 1.4rem 2rem 2rem;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(247, 238, 222, 0.98)),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 35px,
      rgba(86, 114, 174, 0.12) 35px,
      rgba(86, 114, 174, 0.12) 36px
    );
  color: #2d241b;
}

.diary-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(130, 95, 40, 0.18);
}

.diary-kicker {
  margin: 0 0 0.45rem;
  color: #7c5820;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 800;
}

.diary-header h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.05;
}

.diary-meta {
  margin: 0.5rem 0 0;
  color: #655240;
  font-size: 1rem;
}

.diary-perspective {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(125, 88, 27, 0.1);
  border: 1px solid rgba(125, 88, 27, 0.2);
  color: #6d4d1d;
  font-weight: 800;
  white-space: nowrap;
}

.diary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 1.35rem;
  padding-top: 1.3rem;
}

.diary-paper {
  position: relative;
  padding-left: 1.7rem;
}

.diary-paper::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(180, 54, 40, 0.28);
}

.diary-paper p {
  margin: 0 0 1.2rem;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.08rem;
  line-height: 2;
  color: #2f261f;
}

.diary-reveal-card {
  align-self: start;
  padding: 1.1rem 1rem;
  border-radius: 18px;
  background: rgba(120, 84, 25, 0.08);
  border: 1px solid rgba(120, 84, 25, 0.15);
}

.diary-reveal-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #2a2119;
}

.sources-hero {
  padding: 2.4rem 0 2rem;
}

.sources-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.sources-grid {
  display: grid;
  gap: 1rem;
  padding-bottom: 2.4rem;
}

.source-card {
  padding: 1.4rem;
}

.source-card h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.source-list {
  display: grid;
  gap: 0.75rem;
}

.source-list a,
.image-credit-item a {
  color: var(--gold-soft);
  line-height: 1.6;
  word-break: break-word;
}

.image-credit-list {
  display: grid;
  gap: 1rem;
}

.image-credit-item {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.image-credit-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

@media (max-width: 1320px) {
  .timeline-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .event-grid,
  .creative-stage,
  .newspaper-hero-block,
  .newspaper-grid,
  .diary-grid {
    grid-template-columns: 1fr;
  }

  .event-image-frame {
    min-height: auto;
  }

  .newspaper-story {
    column-count: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 1.6rem;
  }

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

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    min-width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(10, 18, 31, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
  }

  .timeline-toolbar {
    align-items: stretch;
  }

  .timeline-status,
  .timeline-controls {
    width: 100%;
  }

  .timeline-controls {
    justify-content: flex-start;
  }

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

  .event-title-row h2 {
    font-size: 1.6rem;
  }

  .diary-header {
    flex-direction: column;
  }

  .modal-panel {
    width: min(100% - 1rem, 1120px);
    margin: 0.5rem auto;
    max-height: calc(100vh - 1rem);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 1rem, var(--content-width));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .hero-heading h1,
  .sources-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }

  .timeline-shell,
  .event-card,
  .creative-stage,
  .source-card {
    padding: 1rem;
  }

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

  .timeline-point {
    min-height: 132px;
  }

  .event-meta-row {
    flex-direction: column;
    align-items: start;
  }

  .event-title-row {
    grid-template-columns: 1fr;
  }

  .event-icon-shell {
    width: 52px;
    height: 52px;
  }

  .event-highlights span {
    width: 100%;
    justify-content: flex-start;
  }

  .creative-actions {
    gap: 0.75rem;
  }

  .button-large {
    min-height: 78px;
    padding: 0.95rem;
  }

  .newspaper-sheet {
    padding: 0.9rem 1rem 1.4rem;
  }

  .newspaper-toolbar {
    font-size: 0.7rem;
  }

  .newspaper-nameplate {
    letter-spacing: 0.03em;
  }

  .diary-sheet-wrap {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .diary-sheet {
    padding: 1rem;
  }

  .diary-paper {
    padding-left: 1.2rem;
  }

  .diary-paper::before {
    left: 0.35rem;
  }

  .diary-paper p {
    font-size: 1rem;
    line-height: 1.9;
  }
}

@media (max-width: 480px) {
  .button-small {
    min-height: 48px;
    padding: 0 1rem;
  }

  .timeline-controls {
    width: 100%;
  }

  .timeline-controls .button {
    flex: 1 1 calc(50% - 0.4rem);
  }

  .timeline-controls .button-primary {
    flex-basis: 100%;
  }

  .newspaper-kicker,
  .eyebrow,
  .status-label {
    letter-spacing: 0.14em;
  }
}
