@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Printed like the logo: black ink on one ground. Beige by default, a colour per city. */
:root {
  --ink: #f5f0e6;
  --black: #111;
  --gutter: clamp(16px, 3vw, 32px);
  /* Everything big is sized from the content width, so nothing grows past it on wide screens. */
  --page: 64rem;
  --cw: min(100vw - 2 * var(--gutter), var(--page));
  --read: 38rem;
  --band: max(var(--gutter), calc((100% - var(--page)) / 2));
  --grain: url("assets/grain.png");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  /* Clip does the same without making the body a scroll box, which would stop the history page's years from sticking. */
  overflow-x: clip;
  background: var(--ink);
  color: var(--black);
  font: 500 1.125rem/1.5 "Jost", "Century Gothic", "Trebuchet MS", sans-serif;
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
svg { display: block; fill: currentColor; }
h1, h2, h3, p { margin: 0; }
/* A heading only gets focus from script, when the page changes. */
h1:focus { outline: none; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Stamped ink, taken from the flecks in the logo's letters. */
.big, .town, .day, .clock, .page-head h1 {
  -webkit-mask: var(--grain) 0 0 / 520px;
  mask: var(--grain) 0 0 / 520px;
}

.spaced {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 14px var(--gutter) 0;
}
.top-mark svg { width: 74px; height: 74px; }
.top-links { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 2px 28px; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 20px; }
.lang { padding: 8px 0; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; }
.lang:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.top nav a {
  padding: 8px 0;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}
.top nav a:hover, .top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }

.ring { transform: rotate(var(--turn)); transform-origin: 50% 50%; }

/* Forside */
.hero {
  position: relative;
  z-index: 2;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 8px var(--gutter) 7.25rem;
}
.hero h1 {
  position: relative;
  z-index: 1;
  z-index: 2;
  font-size: calc(var(--cw) * 0.232);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}
/* "Shall we" is wider than "Skal vi", so the English headline is a little smaller to stay on the page. */
html[lang="en"] .hero h1 { font-size: calc(var(--cw) * 0.19); }
.hero h1 span { display: block; white-space: nowrap; }
/* Only the letters get the fleck mask, so the couple's shadow can leave the line. */
.hero h1 b {
  display: inline-block;
  font-weight: inherit;
  -webkit-mask: var(--grain) 0 0 / 520px;
  mask: var(--grain) 0 0 / 520px;
}
.a {
  display: inline-block;
  width: 0.668em;
  height: 0.7em;
  margin: 0 0.012em;
  overflow: visible;
  vertical-align: baseline;
}
/* The film sits right under the headline, so the couple's shadow falls onto the dance floor. */
.film { position: relative; z-index: 1; margin-top: 10px; }
.film video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--black); }
.film-print {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slow into the print at the end, a little quicker out of it at the start. */
  transition: opacity 3s ease-in-out;
}
.film video, .film-print { cursor: pointer; }
.film-print.is-hidden { opacity: 0; transition: opacity 2s ease-in-out; }
.film-controls { position: absolute; left: 0; bottom: 0; display: flex; gap: 2px; }
.film-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.film-controls button:hover { text-decoration: underline; }

/* On a phone the stamp hangs under the film and only touches its corner, so it stays solid. */
.stamp {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 0.5rem;
  display: grid;
  place-items: center;
  width: 9.5rem;
  height: 9.5rem;
  text-align: center;
}
.stamp { transition: opacity 0.8s ease-in-out; }
.stamp::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; background: var(--ink); }
.stamp .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp-text { position: relative; display: block; padding: 0 0.75rem; font-size: 0.9375rem; font-weight: 700; line-height: 1.1; }
.stamp-text > span { display: block; }
.stamp-label { margin-bottom: 2px; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; }
.stamp-when { margin-bottom: 2px; font-size: 1.375rem; font-weight: 800; line-height: 1; }

.prog {
  position: relative;
  z-index: 1;
  padding: 0 var(--band);
  background: var(--ink);
}
.filter { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 10px; }
.filter button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
}
.filter button:hover { text-decoration: underline; }
.filter button[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 0.2em; }

.month {
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 4px solid var(--black);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-bottom: 2px solid var(--black); }
/* The row is a button that opens the rest. Day, then what, when and where, and a plus at the end. */
.row {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) 28px;
  gap: 4px 12px;
  padding: 14px 4px 12px 0;
  cursor: pointer;
  list-style: none;
}
.row::-webkit-details-marker { display: none; }
.row:hover { background: var(--black); color: var(--ink); }
.row time { grid-row: span 2; }
.row > :not(time, .toggle) { grid-column: 2; }
.wd { display: block; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.day { display: block; font-size: 3.25rem; font-weight: 800; line-height: 0.9; }
.where { display: block; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.title { display: block; font-size: 1.375rem; font-weight: 700; line-height: 1.12; }
/* When and where on one line: the time first, in bold, then the place. */
.meta { font-size: 1rem; line-height: 1.3; }
.hours { font-weight: 700; }
.hours::after { content: " · "; font-weight: 500; }
/* A plus drawn in two strokes, which turns into a cross when the row is open. */
.toggle { position: relative; grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 28px; height: 28px; transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1); }
.toggle::before, .toggle::after { content: ""; position: absolute; top: 50%; left: 3px; right: 3px; height: 3px; margin-top: -1.5px; background: currentColor; }
.toggle::after { transform: rotate(90deg); }
/* With scripts, site.js sets is-open the moment a row is pressed, so the cross turns while the details still slide. */
html:not(.js) .event[open] .toggle, .event.is-open .toggle { transform: rotate(45deg); }
html:not(.js) .event[open] > .row, .event.is-open > .row { border-bottom: 1px solid var(--black); }

/* What opens under the row lines up with the title. */
.event-body { max-width: calc(var(--read) + 4.4rem + 12px); padding: 14px 0 18px calc(4.4rem + 12px); font-size: 1rem; line-height: 1.4; }
.about { max-width: var(--read); font-size: 1.125rem; }
.facts { margin: 12px 0 0; }
.facts > div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 12px; padding: 4px 0; }
.facts dt { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 2px; }
.facts dd { margin: 0; }
.facts dd a { white-space: nowrap; }
.links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 8px; }
.links a { display: flex; align-items: center; min-height: 44px; font-weight: 700; }
/* Works like the city filter: plain words, underlined when chosen. Its links open under it. */
.cal summary {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  cursor: pointer;
  list-style: none;
}
.cal summary::-webkit-details-marker { display: none; }
.cal summary::after { content: "+"; display: inline-block; margin-left: 8px; text-decoration: none; }
html:not(.js) .cal[open] summary, .cal.is-open summary { text-decoration-thickness: 4px; text-underline-offset: 0.2em; }
html:not(.js) .cal[open] summary::after, .cal.is-open summary::after { content: "\2212"; }
.cal ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--black); list-style: none; }
.cal ul a { display: flex; align-items: center; min-height: 44px; }
.more { margin-top: 10px; }
.more button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  cursor: pointer;
}
.more button:hover { text-decoration-thickness: 4px; }
/* Without scripts every date shows, and what only a script can work is left out. */
.js .later { display: none; }
html:not(.js) .more, html:not(.js) .filter, html:not(.js) .film-controls { display: none; }
.none { max-width: var(--read); margin-top: 24px; font-size: 1.375rem; font-weight: 700; line-height: 1.2; }

.looks {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 56px auto 0;
  padding: 0 var(--gutter);
}
.looks-grid { display: grid; gap: 14px; margin-top: 14px; }
.looks figure { margin: 0; }
.looks img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.looks figcaption { margin-top: 6px; font-size: 1.375rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.looks-more { margin-top: 14px; font-size: 1.25rem; }

.first { margin-top: 64px; padding: 40px var(--band) 44px; background: var(--black); color: var(--ink); }
.big { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 0.95; text-transform: uppercase; }
.first-more { max-width: var(--read); margin-top: 16px; font-size: 1.25rem; line-height: 1.35; }
.first-link { margin-top: 10px; font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.first-link a { display: inline-block; padding: 8px 0; }

.towns ul { list-style: none; margin: 0; padding: 0; }
.towns a {
  position: relative;
  display: flex;
  /* Same layout for every city: name above date on small screens, side by side on large. */
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  padding: 10px var(--band) 14px;
  background: var(--ink);
  border-bottom: 2px solid var(--black);
  text-decoration: none;
}
.town { position: relative; font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 800; line-height: 1; text-transform: uppercase; }
.town-next { position: relative; font-size: clamp(1.125rem, 1.6vw, 1.25rem); font-weight: 700; }
.towns .ring { position: absolute; top: 6px; bottom: 6px; left: 50%; width: auto; height: calc(100% - 12px); aspect-ratio: 1; opacity: 0; }
.towns a:hover .ring { opacity: 1; }

.story {
  display: grid;
  gap: 24px;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
}
.round { position: relative; width: min(100%, 26rem); margin: 0; aspect-ratio: 1; }
.round .ring { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.round img {
  position: absolute;
  inset: 3.5%;
  width: 93%;
  height: 93%;
  border-radius: 50%;
  object-fit: cover;
}
.story p { max-width: var(--read); margin-top: 14px; font-size: 1.25rem; line-height: 1.4; }

/* By */
.city-head {
  display: grid;
  gap: 16px;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 32px;
}
.lockup { width: 100%; max-width: 30rem; height: auto; }
.lockup text { font-family: "Jost", sans-serif; font-weight: 800; letter-spacing: 0.14em; }
.lead { max-width: var(--read); font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.18; }
.find { max-width: var(--read); margin-top: 24px; padding-top: 14px; border-top: 4px solid var(--black); font-size: 1.125rem; line-height: 1.4; }
.find p + p { margin-top: 12px; }

/* Kontakt og vedtægter for en by */
.contact, .statutes {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* More air than between two months, so it reads as a new section and not as one more month. */
.contact { margin-top: 80px; }
.contact-links a, #foot-cities a { display: inline-block; padding: 9px 0; }
.contact-lead { max-width: var(--read); margin-top: 16px; font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.18; }
.contact-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; font-size: 1.125rem; font-weight: 700; }
.mail {
  display: inline-block;
  max-width: 100%;
  margin-top: 18px;
  overflow-wrap: anywhere;
  font-size: clamp(1.375rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}
.contact-more { max-width: var(--read); margin-top: 18px; font-size: 1.25rem; line-height: 1.35; }
.statutes-for { max-width: var(--read); padding-top: 14px; border-top: 4px solid var(--black); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.statutes-missing { max-width: var(--read); }
.statutes-missing em { display: inline; padding: 0 6px; background: var(--black); color: var(--ink); font-style: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.statutes-text { max-width: var(--read); }
.statutes-text h3 { margin-top: 32px; font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.statutes-text p { margin-top: 10px; }
.statutes-text .para b { font-weight: 800; }
.statutes-text .sub { margin-top: 14px; font-weight: 700; }
.statutes-text ol { margin: 6px 0 0; padding-left: 1.5em; }

/* Undersider */
.page-head {
  position: relative;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 12px var(--gutter) 40px;
}
.head-ring {
  position: absolute;
  z-index: -1;
  top: calc(var(--cw) * -0.04);
  right: var(--gutter);
  width: calc(var(--cw) * 0.3);
  height: calc(var(--cw) * 0.3);
}
.page-head h1 { font-size: calc(var(--cw) * 0.125); font-weight: 800; line-height: 0.9; text-transform: uppercase; }
.page-head .lead { margin-top: 18px; }
.page-intro { max-width: var(--read); margin-top: 12px; font-size: 1.25rem; line-height: 1.4; }
/* A photo in the ring, like the one on the front page. */
/* An empty ring may ride up behind the menu. A photo may not: it starts level with the top of the heading's letters. */
.head-round { z-index: 0; top: calc(12px + var(--cw) * 0.012); margin: 0; }
/* And the words keep to their own side of it, so a longer heading breaks instead of running under the photo. */
@media (min-width: 800px) {
  .head-round ~ :is(h1, .lead) { max-width: calc(var(--cw) * 0.66); }
}
.head-round .ring { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.head-round img { position: absolute; inset: 3.5%; width: 93%; height: 93%; border-radius: 50%; object-fit: cover; }
.page-head--about h1 { font-size: max(2.4rem, calc(var(--cw) * 0.095)); }
.crumb { margin-bottom: 8px; font-weight: 600; }

.evening, .faq, .videos, .small, .onward {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.evening ol { list-style: none; margin: 14px 0 56px; padding: 0; border-top: 4px solid var(--black); }
.evening li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; border-bottom: 2px solid var(--black); }
.clock { font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 800; line-height: 1; }
.evening p { max-width: var(--read); font-size: 1.25rem; line-height: 1.35; }
.faq dl { margin: 14px 0 0; border-top: 4px solid var(--black); }
.faq dt { padding-top: 14px; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.faq dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 2px solid var(--black); }

.videos { display: grid; gap: 18px; list-style: none; margin-block: 0; }
.video {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.video .ring { position: absolute; top: 50%; left: 50%; width: auto; height: 92%; aspect-ratio: 1; margin: 0; translate: -50% -50%; }
.video:hover { background: var(--black); color: var(--ink); }
.videos iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.small { margin-top: 20px; }
/* The way back to the dates, so these pages don't end in nothing. */
.onward { width: 100%; margin-top: 40px; font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.onward a { display: inline-block; padding: 8px 0; }
.small > * { max-width: var(--read); }

/* Historien. A long read: years in the logo's ring down the left, running text beside them. */
.story-more { font-weight: 700; }
.hist-head h1 { text-wrap: balance; }
.hist-intro, .chapter, .hist-end, .hist-about {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hist-intro p, .chapter-text > p, .hist-after, .hist-about p { max-width: var(--read); font-size: 1.25rem; line-height: 1.45; }
.hist-intro p + p, .chapter-text > p, .hist-after { margin-top: 14px; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 64px; }
.chapter::before, .hist-end::before { content: ""; display: block; grid-column: 1 / -1; margin-bottom: 14px; border-top: 4px solid var(--black); }
/* An earlier "næste gang": the year stands in the ring, as the next date does on the front page. */
.year { position: relative; display: grid; place-items: center; width: 7.5rem; height: 7.5rem; text-align: center; }
.year .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.year span {
  position: relative;
  font-size: 2.125rem;
  font-weight: 800;
  line-height: 0.95;
  white-space: nowrap;
  -webkit-mask: var(--grain) 0 0 / 520px;
  mask: var(--grain) 0 0 / 520px;
}
/* Only a word like "1700-tallet" needs the narrow box, to break inside the ring. A year must never be wider
   than its own box, because the grain mask cuts off whatever sticks out. */
.year--long span { max-width: 68%; white-space: normal; font-size: 1.0625rem; line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; }
.chapter h2 {
  max-width: var(--read);
  margin-top: 10px;
  font-size: clamp(1.875rem, 4.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.02;
  text-wrap: balance;
}
/* Our own interpretation is set apart from what the sources say, and says so. */
.reading { max-width: var(--read); margin-top: 22px; padding-left: 16px; border-left: 4px solid var(--black); }
.reading-label, .sources-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.reading p + p { margin-top: 4px; font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.sources, .chapter-text > .sources { max-width: var(--read); margin-top: 22px; font-size: 0.9375rem; line-height: 1.5; }
.sources-label { margin-right: 6px; }
.sources a { text-decoration-thickness: 1px; }
.hist-fig { max-width: var(--read); margin: 26px 0 0; }
/* A tall picture would fill a phone screen and more at full width. */
.hist-fig--tall img { max-width: 21rem; }
.hist-fig img { display: block; width: 100%; height: auto; }
/* Old black and white prints take the page's own ground as their paper. */
.hist-fig--mono img { mix-blend-mode: multiply; }
.hist-fig figcaption { margin-top: 8px; font-size: 1rem; line-height: 1.4; }
.credit { display: block; font-size: 0.875rem; }
.credit a { text-decoration-thickness: 1px; }

.hist-end { margin-top: 80px; }
.hist-big { margin-top: 12px; font-size: calc(var(--cw) * 0.105); line-height: 0.9; }
/* The explanation comes first, so the big line lands and leads straight on to the next date. */
.hist-end .hist-after { margin-top: 0; }
.hist-before { margin-top: 48px; }
.hist-next { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 48px; }
.hist-stamp { display: block; text-decoration: none; }
.hist-stamp .stamp { position: relative; right: auto; bottom: auto; }
.hist-last { max-width: 22rem; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.08; }
.hist-link { margin-top: 6px; font-size: 1.375rem; font-weight: 700; }
.hist-link a { display: inline-block; padding: 8px 0; }
.hist-about { margin-top: 64px; }
.hist-about p { margin-top: 10px; font-size: 1.0625rem; }
main:has(> .hist-about) > .first { margin-top: 56px; }

@media (min-width: 800px) {
  .chapter { grid-template-columns: 14rem minmax(0, 1fr); column-gap: 24px; }
  /* The year stays in sight while its chapter is read, and turns as the page moves. */
  .year { position: sticky; top: 18px; align-self: start; width: 11rem; height: 11rem; }
  .year span { font-size: 3.125rem; }
  .year--long span { font-size: 1.5rem; }
  .chapter h2 { margin-top: 0; }
  /* Pictures may run past the text column, out to the edge of the page. */
  .chapter-text { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(0, 1fr); }
  .chapter-text > * { grid-column: 1; }
  .chapter-text > .hist-fig--wide { grid-column: 1 / -1; max-width: none; }
  .hist-end, .hist-about { padding-left: calc(var(--gutter) + 14rem + 24px); }
  .hist-end::before { margin-left: calc(-14rem - 24px); }
  .hist-big { font-size: calc(var(--cw) * 0.088); }
  .hist-stamp .stamp { width: 12rem; height: 12rem; }
}

/* Keep the footer at the bottom on short pages, and joined to a black band above it. */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
main:has(> .first:last-child) + .foot { margin-top: 0; padding-top: 0; }

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 64px;
  padding: 36px var(--band);
  background: var(--black);
  color: var(--ink);
}
.foot-mark { flex: none; width: 130px; height: 130px; }
.foot-line { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
#foot-cities { display: flex; flex-wrap: wrap; gap: 2px 16px; list-style: none; margin: 8px 0 0; padding: 0; }

@media (max-width: 799px) {
  /* The language gets its own line above the menu, as the menu fills the phone's width. */
  .top-links { flex-direction: column-reverse; align-items: flex-end; gap: 0; }
  .lang { padding: 6px 0 6px 16px; font-size: 0.8125rem; }
  .top nav { gap: 0 12px; }
  .top nav a { padding: 12px 0; font-size: 0.8125rem; letter-spacing: 0.08em; }
  .top-mark svg { width: 62px; height: 62px; }
  .head-ring { top: 0; }
  /* No room beside the heading on a phone, and a photo can't sit behind the type like an empty ring can. */
  .head-round { display: none; }
}

/* The menu doesn't fit beside the logo on a phone, so the menu gets the full width under it. */
@media (max-width: 479px) {
  .top { flex-wrap: wrap; gap: 0 16px; }
  .top-links { display: contents; }
  .lang { order: 2; margin-left: auto; }
  .top nav { order: 3; flex: 0 0 100%; justify-content: space-between; gap: 0 8px; margin-top: -6px; }
  .top nav a { letter-spacing: 0.06em; }
}

@media (min-width: 800px) {
  .towns a { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; }
  .town-next { white-space: nowrap; }
  /* One line of headline on desktop, so the film is on the first screen. */
  .hero { padding-bottom: 5.5rem; }
  .hero h1 { font-size: calc(var(--cw) * 0.119); white-space: nowrap; }
  html[lang="en"] .hero h1 { font-size: calc(var(--cw) * 0.1035); }
  .hero h1 span { display: inline; }
  .film { margin-top: 14px; }
  .film video { aspect-ratio: 1920 / 842; }
  .stamp { right: calc(var(--gutter) + 2rem); bottom: 1rem; width: 14rem; height: 14rem; }
  /* Here the stamp lies on the film, so it steps back while the film plays. */
  .is-playing .stamp { opacity: 0.3; }
  .is-playing .stamp:hover { opacity: 1; }
  .stamp-text { font-size: 1.125rem; padding: 0 1.25rem; }
  .stamp-label { font-size: 0.75rem; }
  .stamp-when { font-size: 2rem; }

  .looks-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); grid-template-rows: auto auto; }
  .look-a { grid-row: span 2; }
  .look-a img { aspect-ratio: auto; height: calc(100% - 2.1rem); }

  /* Day, then when (weekday over the time), then what and where. The weekday lines up with the
     first line of the event and the time with the second. */
  .row { grid-template-columns: 4.9rem 9.5rem minmax(0, 1fr) 36px; align-items: start; gap: 0; padding: 12px 8px 10px 0; }
  .row time, .meta { display: contents; }
  /* Numbers line up on their right edge, so a single digit still sits next to its weekday. */
  .day { grid-column: 1; grid-row: 1 / span 3; width: 4.9rem; font-size: 3.75rem; font-variant-numeric: tabular-nums; text-align: right; }
  .wd { grid-column: 2; grid-row: 1; padding: 4px 0 0 10px; }
  .hours { grid-column: 2; grid-row: 2; padding-left: 10px; font-size: 1.0625rem; line-height: 1.3; }
  .hours::after { content: none; }
  .row > .what { grid-column: 3; grid-row: 1; }
  .row > .meta > .place { grid-column: 3; grid-row: 2; font-size: 1.0625rem; line-height: 1.3; }
  /* With a city above the title, the event takes two lines before the place. */
  .row:has(.where) > .what { grid-row: 1 / span 2; }
  .row:has(.where) > .meta > .place { grid-row: 3; }
  .toggle { grid-column: 4; grid-row: 1 / span 3; justify-self: end; }
  .event-body { max-width: calc(var(--read) + 14.4rem); padding-left: 14.4rem; }
  .title { font-size: 1.5rem; }

  /* The way on to the first-time page gets the right half of the band to itself. */
  .first { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(0, 1fr); align-items: end; gap: 0 32px; }
  .first .big { grid-column: 1 / -1; }
  .first-link { justify-self: end; margin-top: 0; font-size: 1.5rem; text-align: right; }

  .story { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); align-items: center; gap: 48px; }

  .city-head { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); align-items: center; gap: 48px; }

  .evening li { grid-template-columns: 14rem minmax(0, 1fr); align-items: baseline; gap: 24px; }
  .faq dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 0 32px; }
  .faq dt { padding: 14px 0; border-bottom: 2px solid var(--black); }
  .faq dd { margin: 0; padding: 14px 0; }

  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-mark { width: 150px; height: 150px; }
  .foot-line { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .film-print, .film-print.is-hidden, .stamp { transition: none; }
  * { transition: none; scroll-behavior: auto; }
}
