html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --paper: #f4ecd9;
  --paper-deep: #e8dcc0;
  --ink: #171411;
  --muted: #62584c;
  --rule: rgba(23, 20, 17, 0.18);
  --accent: #7a261f;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.45), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05)),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.68;
  letter-spacing: 0;
}

.progress {
  display: none;
}

header {
  color: var(--ink);
  background: var(--paper);
  border-bottom: 0;
}

.hero,
main,
footer {
  width: min(820px, calc(100% - 34px));
}

.hero {
  position: relative;
  padding: 58px 0 26px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.hero::before,
.hero::after {
  position: absolute;
  top: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero::before {
  content: "✒ First Citizen.";
  left: 0;
}

.hero::after {
  content: "We drink coffee, damn it.";
  right: 0;
}

.kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
.shout,
.finale {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  color: var(--ink);
  font-size: clamp(2.55rem, 7vw, 4.95rem);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.dek {
  max-width: 660px;
  margin-top: 16px;
  color: #3f362f;
  font-size: 1.08rem;
  line-height: 1.52;
  font-style: italic;
}

.meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dot::before {
  color: var(--muted);
}

main {
  padding: 28px 0 74px;
}

section {
  margin-bottom: 56px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(23,20,17,0.08);
}

section:last-of-type {
  border-bottom: 0;
}

h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.95rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2::after {
  content: "";
  display: block;
  width: 100%;
  margin-top: 16px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(23,20,17,0.16);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

section:nth-of-type(1) h2::after {
  background-image: url("art-tavern.svg");
}

section:nth-of-type(2) h2::after {
  background-image: url("art-washington.svg");
}

section:nth-of-type(3) h2::after {
  background-image: url("art-cage.svg");
}

section.appendix h2::after {
  display: none;
}

p {
  margin: 0 0 1.08em;
}

section:first-of-type > p:first-of-type::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font-size: 3.2em;
  line-height: 0.86;
  font-weight: 700;
}

.beat {
  margin: 1.3em 0;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.42);
  border-left: 4px solid var(--ink);
  font-size: 1.04em;
  line-height: 1.58;
  font-style: italic;
}

.quote {
  margin: 1.25em 0;
  padding: 1rem 1.05rem;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(23,20,17,0.14);
  font-size: 1.02em;
  line-height: 1.56;
  font-style: italic;
}

.shout {
  margin: 1.25em 0;
  color: var(--ink);
  font-size: 1.16em;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 700;
}

.stack {
  margin: 1.18em 0 1.3em 0.3rem;
  padding-left: 0.92rem;
  border-left: 2px solid rgba(23,20,17,0.18);
  font-weight: 700;
  line-height: 1.5;
}

.stack span {
  display: block;
}

.stack span + span {
  margin-top: 0.16em;
}

.finale {
  margin-top: 1.9em;
  padding: 1.2rem 0;
  color: var(--ink);
  background: transparent;
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
  border-radius: 0;
  box-shadow: none;
  font-size: 1.24em;
  line-height: 1.48;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.gallery {
  display: grid;
  gap: 24px;
  margin: 26px 0 10px;
}

.gallery figure {
  margin: 0;
  padding: 12px;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(23,20,17,0.12);
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(23,20,17,0.16);
  background: #eadfc7;
}

.gallery figcaption {
  margin-top: 12px;
  color: #3f362f;
  font-size: 0.92rem;
  line-height: 1.45;
}

.poster-full {
  padding: 16px;
  background: rgba(255,255,255,0.36);
}

.actions {
  margin-top: 28px;
}

button {
  border-radius: 4px;
  padding: 13px 18px;
  color: var(--paper);
  background: var(--ink);
  font: 700 0.9rem/1 system-ui, sans-serif;
}

button.secondary {
  color: var(--ink);
  background: transparent;
  outline: 1px solid rgba(23,20,17,0.35);
}

footer {
  color: var(--muted);
  font: 600 0.78rem/1.5 system-ui, sans-serif;
}

@media (max-width: 700px) {
  body {
    font-size: 21px;
    line-height: 1.65;
  }

  .hero,
  main,
  footer {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 48px 0 20px;
  }

  .hero::before,
  .hero::after {
    top: 10px;
    font-size: 0.68rem;
  }

  .hero::after {
    max-width: 46%;
    text-align: right;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.03;
  }

  .dek {
    font-size: 1rem;
  }

  .meta {
    display: block;
    font-size: 0.68rem;
  }

  .meta span {
    display: block;
    margin-top: 6px;
  }

  .dot::before {
    display: none;
  }

  main {
    padding-top: 22px;
  }

  section {
    margin-bottom: 48px;
  }

  h2 {
    margin-bottom: 14px;
    font-size: 1.78rem;
  }

  h2::after {
    margin-top: 12px;
  }

  .beat,
  .quote {
    padding: 0.82rem 0.88rem;
  }

  .shout {
    font-size: 1.08em;
  }

  .finale {
    font-size: 1.12em;
  }

  .gallery {
    gap: 18px;
  }

  .actions {
    display: grid;
  }

  button {
    width: 100%;
    padding: 15px 18px;
  }
}