@font-face { font-family: Fraunces; src: url(/fonts/fraunces-latin-600-normal.woff2?v=3a1de7711d) format('woff2'); font-weight: 600; }
@font-face { font-family: Fraunces; src: url(/fonts/fraunces-latin-800-normal.woff2?v=daf58e7501) format('woff2'); font-weight: 800; }
@font-face { font-family: Literata; src: url(/fonts/literata-latin-400-normal.woff2?v=a60c193b55) format('woff2'); font-weight: 400; }
@font-face { font-family: Literata; src: url(/fonts/literata-latin-700-normal.woff2?v=1f2985e0fc) format('woff2'); font-weight: 700; }
:root { --paper: #f3e9db; --sky: #eadccb; --ink: #2d241c; --muted: #6f5d4b; --red: #c8402f; --blue: #3046a8; --wheat: #e2b65c; --grass: #6aa84f; --card: #fbf6ee; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 Literata, Georgia, serif; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; }
a { color: var(--blue); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 5vw; }
.brand { font: 800 1.35rem Fraunces, serif; color: var(--ink); text-decoration: none; display: flex; gap: 10px; align-items: center; }
.brand img { display: block; }
nav { display: flex; gap: 26px; align-items: center; font-size: .95rem; }
nav a { color: var(--ink); text-decoration: none; }
.pill { background: var(--ink); color: var(--paper) !important; padding: 8px 18px; border-radius: 999px; }
.hero { display: grid; grid-template-columns: 1fr 1.35fr; gap: 3vw; align-items: center; padding: 3vw 5vw 1vw; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--red); font-weight: 700; margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-art img { border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(70,40,10,.45); }
.ctas, .dl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 12px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 4px 0 #8f2a1e; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 4px 0 #d8c7b0; }
.card-strip { display: flex; justify-content: center; padding: 2vw 5vw 4vw; }
.moment { background: var(--card); border-radius: 14px; padding: 20px 26px; max-width: 640px; box-shadow: 0 10px 30px -18px rgba(70,40,10,.4); }
.moment p { margin: 0; }
.moment-title { font: 600 1.4rem Fraunces, serif; }
.tag { font: 700 .75rem Literata, serif; color: #6b4fa0; margin-left: 8px; vertical-align: middle; }
.moment-when { color: #a0612c; margin: 2px 0 6px !important; }
section { padding: 4vw 5vw; }
.scenes .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.scenes article { background: var(--card); border-radius: 16px; overflow: hidden; padding-bottom: 18px; }
.scenes article .clip { display: block; aspect-ratio: 16/10; object-fit: cover; width: 100%; height: auto; background: var(--card); }
.scenes article > :not(.clip) { margin-left: 20px; margin-right: 20px; }
.year { font: 800 2rem Fraunces, serif; color: var(--wheat); margin: 14px 20px 0; }
.scene-play { font-weight: 600; }
.how ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.how li { counter-increment: s; }
.how li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; background: var(--grass); color: #fff; font: 800 1.3rem Fraunces, serif; border-radius: 8px; margin-bottom: 12px; box-shadow: inset -6px -6px 0 rgba(0,0,0,.15); }
.wide img { border-radius: 16px; margin-top: 24px; }
.teachers { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: center; background: var(--sky); }
.teachers img { border-radius: 16px; }
.teachers li { margin: .3em 0; }
.play, .faq { text-align: center; }
.play .dl { justify-content: center; }
details { max-width: 640px; margin: 32px auto 0; text-align: left; background: var(--card); border-radius: 14px; padding: 18px 26px; }
summary { font: 600 1.15rem Fraunces, serif; cursor: pointer; }
footer { padding: 30px 5vw; color: var(--muted); font-size: .9rem; border-top: 1px solid #e0d2bf; }
@media (max-width: 800px) {
  nav a:not(.pill) { display: none; }
  .hero, .teachers { grid-template-columns: 1fr; }
  .scenes .grid, .how ol { grid-template-columns: 1fr; }
}
.hero-art { margin: 0; }
.wide { margin: 0; }
.note, .small { font-size: .85rem; color: var(--muted); }
.note { margin-top: 18px; font-style: italic; }
.free { color: var(--muted); margin: 0; }
.steps { max-width: 680px; margin: 32px auto 0; display: grid; gap: 14px; }
.steps details { margin: 0; }
.steps li { margin: .35em 0; }
.prose { max-width: 720px; margin: 0 auto; padding: 4vw 5vw 6vw; min-height: 55vh; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { font-size: 1.4rem; margin-top: 1.4em; }
.prose li { margin: .3em 0; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 800px) {
  .hero { padding-top: 6vw; }
  .ctas .btn, .dl .btn { flex: 1 1 100%; text-align: center; }
}
.stories, .story { max-width: 760px; margin: 0 auto; padding: 4vw 5vw 6vw; min-height: 55vh; }
.stories h1, .story h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.story-list { list-style: none; padding: 0; margin: 2.2em 0 0; display: grid; gap: 20px; }
.story-list a { display: block; background: var(--card); border-radius: 16px; padding: 22px 26px; color: var(--ink); text-decoration: none; box-shadow: 0 10px 30px -22px rgba(70,40,10,.45); border-left: 6px solid var(--wheat); }
.story-list a:hover h2, .story-list a:focus-visible h2 { color: var(--red); }
.story-list time, .byline { color: var(--muted); font-size: .9rem; }
.story-list h2 { font-size: 1.5rem; margin: .25em 0 .35em; }
.story-list p { margin: 0 0 .6em; color: var(--muted); }
.more { font-weight: 700; color: var(--blue); font-size: .95rem; }
.empty { margin-top: 2em; color: var(--muted); font-style: italic; }
.crumb { margin: 0 0 1em; font-size: .9rem; }
.crumb a { color: var(--red); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.byline { margin: 0 0 1em; }
.story-body { margin-top: 1.6em; }
.story-body h2 { font-size: 1.6rem; margin-top: 1.5em; }
.story-body h3 { margin-top: 1.3em; }
.story-body img { border-radius: 14px; margin: 1.4em 0; }
.story-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--wheat); color: var(--muted); font-style: italic; }
.story-body li { margin: .3em 0; }
.story-cta { margin-top: 3em; background: var(--sky); border-radius: 16px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.story-cta p { margin: 0; font: 600 1.2rem Fraunces, serif; max-width: 26em; }
.story-list a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* /watch: every scene start to end, from the latest release */
.watch { max-width: 980px; margin: 0 auto; padding: 3vw 5vw 6vw; }
.watch h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.build { display: flex; flex-wrap: wrap; gap: 6px 22px; background: var(--card); border-radius: 14px; padding: 14px 22px; border-left: 6px solid var(--wheat); font-size: .95rem; margin: 1.4em 0 2.4em; }
.build b { font-family: Fraunces, serif; }
.build span { color: var(--muted); }
.reel { display: grid; gap: 34px; }
.watch .part { font-size: 1.5rem; margin: 1.6em 0 .7em; }
.reel article { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px -22px rgba(70,40,10,.45); }
.reel video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: #2d241c; }
.reel .meta { padding: 16px 22px 20px; }
.reel .head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.reel .year { margin: 0; font-size: 1.6rem; }
.reel h2 { font-size: 1.6rem; margin: 0; }
.reel .len { color: var(--muted); font-size: .9rem; margin-left: auto; }
.reel p { margin: .4em 0; }
.links { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: .95rem; }

/* /compare/...: the comparison table, one card per tool on a phone */
.cmp-intro .lede { max-width: 44em; }
.checked { color: var(--muted); font-size: .9rem; margin: 0; }
.cmp-intro { padding-top: 2vw; }
.cmp-table table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; font-size: .95rem; line-height: 1.45; }
.cmp-table caption { text-align: left; color: var(--muted); font-size: .9rem; padding-bottom: 10px; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-top: 1px solid #e0d2bf; }
.cmp-table thead th { font: 600 .95rem Fraunces, serif; border-top: 0; }
.cmp-table tbody th { font: 600 1.05rem Fraunces, serif; }
.cmp-table thead th:first-child { width: 16%; }
.cmp-table tbody th span { display: block; font: 400 .85rem Literata, serif; color: var(--muted); margin-top: 2px; }
.cmp-tools .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cmp-tools article { background: var(--card); border-radius: 16px; padding: 20px 22px; font-size: .95rem; line-height: 1.5; }
.cmp-tools h3 { font-size: 1.15rem; }
.cmp-tools article p { margin: .6em 0; }
.cmp-which ul { padding: 0; list-style: none; display: grid; gap: 10px; max-width: 46em; }
.cmp-which li { background: var(--card); border-radius: 14px; padding: 12px 22px; border-left: 6px solid var(--wheat); }
.cmp-which p { max-width: 46em; color: var(--muted); }
@media (max-width: 1100px) { .cmp-tools .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) {
  .cmp-tools .grid { grid-template-columns: 1fr; }
  .cmp-table table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; }
  .cmp-table caption { display: block; }
  .cmp-table thead { position: absolute; left: -9999px; }
  .cmp-table table { background: none; }
  .cmp-table tr { background: var(--card); border-radius: 14px; margin-bottom: 16px; padding: 6px 0; }
  .cmp-table th, .cmp-table td { border-top: 0; padding: 6px 18px; }
  .cmp-table td::before { content: attr(data-label); display: block; font: 700 .75rem Literata, serif; letter-spacing: .08em; text-transform: uppercase; color: #a0612c; }
}
.stories .intro { margin-top: 1.2em; }
.story-more { margin-top: 2.4em; border-top: 2px solid var(--wheat); padding-top: 1.2em; }
.story-more h2 { font-size: 1.3rem; margin: 0 0 .6em; }
.story-more ul { padding-left: 1.2em; margin: 0; }
.story-more li { margin: .45em 0; }
.tl-guides { padding-top: 0; padding-bottom: 0; max-width: calc(680px + 10vw); margin: 0 auto; }
.tl-guides .story-more { max-width: 640px; margin: 0; }
@media (max-width: 640px) { .tl-guides { padding-top: 1.5rem; } }

/* Home: a compact row of links to the stories */
.stories-row { padding-top: 0; padding-bottom: 2vw; }
.stories-row h2 { font-size: 1.5rem; margin-bottom: .3em; }
.stories-row p { margin: 0 0 .6em; color: var(--muted); }
.stories-row ul { list-style: none; padding: 0; margin: 0 0 .6em; display: grid; gap: 10px; }
.stories-row li { background: var(--card); border-radius: 12px; border-left: 6px solid var(--wheat); padding: 12px 20px; }
.stories-row li a { font: 600 1.1rem Fraunces, Georgia, serif; }
.stories-row li span { display: block; color: var(--muted); font-size: .95rem; }
.stories-row .all { margin: 0; }
.stories-row a { display: inline-block; padding: 4px 0; }
.stories-row .all a { padding: 10px 0; }

/* Scene guides: /timelines/* and /maps/* (layouts/SceneGuide.astro). The scene in a frame beside its steps, the dated list, and a print view of the dates only. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.timeline h1 { text-wrap: balance; }
.timeline a:focus-visible, .timeline button:focus-visible, .timeline summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.tl-intro { padding-bottom: 1.5vw; }
.tl-intro .lede { max-width: 44em; }
.key { color: var(--muted); font-size: .95rem; max-width: 50em; margin: 1em 0 0; }
/* The intro beside its quick facts (components/QuickFacts.astro), and the history sections below the scene. */
.tl-lead { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.tl-lead .facts { margin-top: 8px; }
.facts { background: var(--card); border-radius: 14px; padding: 16px 22px 18px; box-shadow: 0 4px 0 #d8c7b0; }
.facts h2 { font-size: 1.2rem; margin: 0 0 .5em; }
.facts dl { margin: 0; display: grid; gap: 8px; }
.facts dt { font: 700 .75rem/1.3 Literata, serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .1em 0 0; font-size: .95rem; line-height: 1.45; }
@media (max-width: 999px) { .tl-lead { grid-template-columns: 1fr; } .facts dl { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 24px; } }
.tl-history { padding-top: 1vw; }
.tl-history > * { max-width: 46em; }
.tl-history h3 { margin: 1.4em 0 .4em; }
.tl-history .people { padding-left: 1.2em; }
.tl-history .people li { margin: .4em 0; }
.chip { display: inline-block; font: 700 .75rem/1 Literata, serif; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1.5px solid currentColor; background: var(--card); white-space: nowrap; }
.chip.established { color: #2f6a3a; }
.chip.likely { color: #7a5209; }
.chip.reconstructed { color: #5e4d80; }
.tl-scene { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 28px; align-items: stretch; padding-top: 1vw; padding-bottom: 3vw; }
.tl-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 16px; background: var(--ink); box-shadow: 0 6px 0 #d8c7b0; }
.tl-full { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.tl-full a { display: inline-block; padding: 12px 0; }
/* The step list is as tall as the frame and its caption, and scrolls inside that; the fade at the bottom says there is more. */
.tl-side { display: flex; flex-direction: column; height: 0; min-height: 100%; }
.tl-count { margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.tl-steps { list-style: none; margin: 0; display: grid; gap: 6px; align-content: start; flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 40px 0; scrollbar-color: var(--muted) var(--sky); -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent); }
.tl-steps a { display: grid; grid-template-columns: 3.2em 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; min-height: 52px; background: var(--card); border-radius: 12px; color: var(--ink); text-decoration: none; border-left: 5px solid transparent; }
.tl-steps a:hover { border-left-color: var(--red); }
.tl-steps a:focus-visible { border-left-color: var(--red); outline-offset: -3px; }
.tl-steps .t { font: 600 .95rem Fraunces, serif; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-steps b { display: block; font: 600 1rem/1.25 Fraunces, serif; }
.tl-steps .when { display: block; font-size: .85rem; color: var(--muted); line-height: 1.3; }
.tl-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between; }
.tl-head .btn { font: inherit; font-weight: 700; border: 0; cursor: pointer; }
.tl-dates .note { margin: 0 0 1.4em; max-width: 46em; }
/* The dates, in runs that share a scene moment: the moment and its label show once above the run. */
.tl-list { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.tl-group { break-inside: avoid; margin: 0 0 1.4em; }
.tl-list .in { margin: 0 0 .7em; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; }
.tl-list .in a { padding: 12px 0; }
.tl-dated { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--wheat); }
.tl-dated li { position: relative; padding: 0 0 .9em 26px; }
.tl-dated li:last-child { padding-bottom: 0; }
.tl-dated li::before { content: ''; position: absolute; left: -8px; top: .45em; width: 13px; height: 13px; border-radius: 50%; background: var(--red); border: 3px solid var(--paper); }
.tl-dated time { font: 600 1.1rem Fraunces, serif; }
.tl-dated p { margin: .15em 0 0; }
.tl-sources p, .tl-sources ul { max-width: 46em; }
.tl-sources li { margin: 0; padding: 6px 0; }
@media (min-width: 1000px) {
  .timeline .faq .steps { max-width: 1100px; grid-template-columns: 1fr 1fr; align-items: start; }
  .tl-sources ul { max-width: 1100px; columns: 2; column-gap: 40px; }
  .tl-sources li { break-inside: avoid; }
}
.tl-full .free-line { white-space: nowrap; }
/* Maps: /maps/battle-of-lexington-and-concord. The moments in order under the map, each with its time of day, a link that plays it, and its label. */
.tl-moments { max-width: 46em; }
.tl-moments .at { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.tl-moments .tod { font: 600 .95rem Fraunces, serif; color: var(--muted); }
.tl-moments .at a { font: 600 1.1rem Fraunces, serif; padding: 8px 0; }
.tl-moments .unknown { font-size: .95rem; }
.print-only { display: none; }
@media (max-width: 900px) {
  /* On a phone the frame stays at the top while the steps scroll under it, so a press is seen. */
  .tl-scene { display: block; }
  .tl-frame { display: contents; }
  .tl-full a { padding: 12px 0; }
  .tl-side { height: auto; margin-top: 12px; }
  .tl-steps { overflow: visible; padding: 0; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 600px) {
  .tl-frame iframe { position: sticky; top: 8px; z-index: 2; }
  .tl-full .dot { display: none; }
  .tl-full .free-line { display: block; white-space: normal; }
}
@media print {
  @page { margin: 16mm; }
  body { background: #fff; font-size: 11pt; line-height: 1.45; }
  .top, footer, .tl-scene, .faq, .tl-close, .print, .no-print, .facts, .tl-history { display: none !important; }
  .tl-lead { display: block; }
  section { padding: 0 0 12pt; }
  h1 { font-size: 22pt; } h2 { font-size: 15pt; }
  .tl-intro .lede, .key { font-size: 10.5pt; color: #000; max-width: none; }
  .key { margin-top: 6pt; }
  .chip { border-width: 1px; padding: 2px 5px; font-size: 8pt; color: #000 !important; background: #fff; }
  .tl-group { margin-bottom: 8pt; break-inside: auto; }
  .tl-list .in { break-after: avoid; }
  .tl-list .in { margin: 0 0 3pt; font-size: 10pt; color: #000; }
  .tl-list .in { display: block; }
  .tl-list .in a { padding: 0; }
  .tl-dated { border-left-color: #999; }
  .tl-dated li { break-inside: avoid; padding-bottom: 5pt; }
  .tl-dated li::before { background: #000; border-color: #fff; }
  .tl-sources { break-inside: avoid; }
  .tl-sources a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; word-break: break-all; }
  a { color: #000; text-decoration: none; }
  .print-only { display: block; font-weight: 700; margin: 0; }
}

/* Maps: /maps/columbus-voyage-1492. The route in legs, below the scene (the rest is the timelines' scene guide). */
.cv-route { padding-top: 0; padding-bottom: 2vw; }
.cv-legs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cv-legs li { display: flex; flex-direction: column; background: var(--card); border-radius: 14px; padding: 16px 18px 6px; border-top: 5px solid var(--wheat); }
.cv-legs h3 { margin: 0; font: 600 1.15rem/1.25 Fraunces, serif; }
.cv-legs p { margin: .3em 0; line-height: 1.5; }
.cv-legs .leg-n { margin: 0 0 4px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cv-legs .leg-when { font: 600 .95rem Fraunces, serif; color: var(--red); }
.cv-legs .in { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0 10px; align-items: center; font-size: .9rem; }
.cv-legs .in a { padding: 10px 0; }
.cv-legs .leg-course { color: var(--muted); }
.cv-known { max-width: 64em; margin-top: 1em; }
.cv-route a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
@media print {
  .cv-legs { display: block; }
  .cv-legs li { break-inside: avoid; background: #fff; border: 0; border-left: 2px solid #999; border-radius: 0; padding: 0 0 6pt 10pt; margin-bottom: 6pt; }
  .cv-legs .in a { padding: 0; }
  .cv-legs .leg-when { color: #000; }
  .cv-known { font-size: 10pt; color: #000; }
}
@media (max-width: 1000px) { .cv-legs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cv-legs { grid-template-columns: 1fr; } .cv-route { padding-top: 28px; } }
