@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 800;
  font-display: block;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: block;
  src: url("fonts/fraunces-italic-560-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url("fonts/source-serif-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 800;
  font-display: block;
  src: url("fonts/source-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f3eadc;
  --paper-deep: #e7dcc8;
  --sheet: #fff8ec;
  --ink: #221812;
  --ink-soft: #4a3c32;
  --muted: #6e5d50;
  --rule: #cbb9a4;
  --burgundy: #7c1d28;
  --burgundy-deep: #5a141c;
  --copper: #b56a2b;
  --sage: #3f5344;
  --max: 1080px;
  --measure: 40rem;
  --display: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Gill Sans", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgb(181 106 43 / 7%), transparent 28%),
    linear-gradient(180deg, #f7f0e3 0%, var(--paper) 18%, #efe4d2 100%);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--burgundy);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--burgundy-deep);
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.skip-folio {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.65rem 0.9rem;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-weight: 700;
}

.skip-folio:focus {
  transform: none;
}

.ribbon {
  background: var(--burgundy);
  color: #f7efe3;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.ribbon p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.2rem;
}

.ribbon a {
  color: #f3c27a;
}

.mast {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: rgb(243 234 220 / 92%);
  backdrop-filter: blur(14px);
}

.mast-row {
  position: relative;
  display: flex;
  max-width: var(--max);
  min-height: 4.6rem;
  margin: 0 auto;
  padding: 0.55rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.mark img {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--rule);
}

.mark strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.mark em {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.folio-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.folio-nav a:not(.seal-link) {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.folio-nav a:not(.seal-link):hover {
  color: var(--burgundy);
}

.menu-key {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--sheet);
  cursor: pointer;
}

.menu-key span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  margin: 0.28rem auto;
  background: var(--ink);
}

.seal-link {
  display: inline-flex;
  min-height: 2.7rem;
  padding: 0.55rem 0.95rem;
  align-items: center;
  justify-content: center;
  background: var(--burgundy);
  color: #f7efe3;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.seal-link:hover {
  background: var(--burgundy-deep);
  color: #f7efe3;
}

.spread {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.2rem 5rem;
}

.hero-plate {
  margin-top: 1.4rem;
  border: 1px solid var(--ink);
  background: var(--sheet);
}

.hero-plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 35%;
}

.hero-plate figcaption {
  padding: 0.7rem 1rem 0.85rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.74rem;
}

.headline-block {
  padding: 0.2rem 0 clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 3px solid var(--ink);
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.headline-block h1 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 4.7rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.headline-block .standfirst {
  max-width: 40rem;
  margin: 1.3rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.dateline {
  display: grid;
  margin: 0;
  padding: 0.9rem 0 1.3rem;
  gap: 0.75rem 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  font-family: var(--sans);
}

.dateline div {
  min-width: 0;
}

.dateline dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dateline dd {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.contents-rule {
  display: grid;
  margin: 2.2rem 0 3rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
}

.contents-rule h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
}

.folio-index {
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1.6rem;
  list-style: none;
}

.folio-index a {
  display: flex;
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--rule);
  color: inherit;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  break-inside: avoid;
}

.folio-index b {
  min-width: 2.2rem;
  color: var(--burgundy);
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
}

.folio-index a:hover {
  color: var(--burgundy);
}

.article-frame {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr) 15.5rem;
}

.prose {
  min-width: 0;
}

.prose > p,
.prose > section,
.prose > figure,
.prose > aside,
.prose > blockquote {
  max-width: var(--measure);
}

.prose > p {
  color: var(--ink-soft);
}

.lead-graf::first-letter {
  float: left;
  margin: 0.12em 0.12em 0 0;
  color: var(--burgundy);
  font-family: var(--display);
  font-size: 4.2rem;
  font-weight: 650;
  line-height: 0.75;
}

.sources {
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--copper);
  color: var(--muted) !important;
  font-family: var(--sans);
  font-size: 0.82rem !important;
  line-height: 1.55;
}

.folio {
  margin-top: 3.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.folio-no {
  display: flex;
  margin: 0 0 0.45rem;
  color: var(--copper);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.folio h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.85rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.folio h3 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.folio p {
  color: var(--ink-soft);
}

.note-card,
.links-card,
.about-card {
  margin: 1.3rem 0;
  padding: 1.15rem 1.2rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.note-card ol,
.note-card ul,
.links-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.note-card li,
.links-card li {
  margin: 0.55rem 0;
}

.chip {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.08rem 0.38rem;
  border: 1px solid var(--rule);
  color: var(--sage);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-partner {
  color: var(--burgundy);
}

.forks {
  display: grid;
  margin: 1.4rem 0;
  gap: 0.75rem;
}

.forks article {
  display: grid;
  padding: 1rem 1.1rem;
  background: var(--paper-deep);
  gap: 0.35rem 1rem;
  grid-template-columns: 8rem minmax(0, 1fr);
}

.forks h3 {
  margin: 0;
  color: var(--burgundy);
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
}

.forks p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.spine {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.spine li {
  position: relative;
  padding: 0 0 1.2rem 1.5rem;
  border-left: 2px solid var(--burgundy);
}

.spine li:last-child {
  padding-bottom: 0;
}

.spine li::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: -0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--sheet);
  border: 2px solid var(--burgundy);
  border-radius: 50%;
}

.spine strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pull {
  margin: 2.2rem 0;
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-left: 4px solid var(--burgundy);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-style: italic;
  font-weight: 560;
  line-height: 1.25;
}

.plate {
  margin: 2.4rem 0;
  border: 1px solid var(--ink);
  background: var(--sheet);
}

.plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.plate figcaption {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.74rem;
}

.tearout {
  margin: 2.8rem 0;
  padding: clamp(1.3rem, 4vw, 2.1rem);
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 8px,
      var(--rule) 8px,
      var(--rule) 9px
    )
    0 0 / 100% 1px no-repeat,
    var(--sheet);
  border: 1px dashed var(--burgundy);
}

.tearout h2 {
  max-width: 16ch;
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.tearout p {
  max-width: 38rem;
  color: var(--ink-soft);
}

.fine {
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-size: 0.76rem !important;
}

.keeper {
  position: sticky;
  top: 6rem;
  align-self: start;
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--sheet);
  border: 1px solid var(--ink);
}

.keeper h2 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: 1.25rem;
}

.keeper ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.keeper li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.82rem;
}

.keeper strong {
  display: block;
  color: var(--burgundy);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.8rem, 6vw, 4.5rem) 1.2rem 5.5rem;
}

.crumbs {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-head {
  margin-bottom: 2.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 3px solid var(--ink);
}

.legal-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.legal-head p {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.legal-columns {
  display: grid;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
  gap: 1rem 2rem;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
}

.legal-columns h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
}

.legal-copy {
  color: var(--ink-soft);
}

.legal-copy > :first-child {
  margin-top: 0;
}

.legal-copy a {
  color: var(--burgundy);
}

.facts {
  max-width: 40rem;
  margin: 0;
  padding: 1.2rem 1.3rem;
  background: var(--sheet);
  border: 1px solid var(--ink);
}

.facts div {
  display: grid;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  gap: 0.8rem;
  grid-template-columns: 10rem 1fr;
}

.facts dt {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
}

.stamp {
  margin-top: 2rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
}

.colophon {
  border-top: 3px solid var(--ink);
  background: #eadfcb;
}

.colophon-row {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.2rem 1.8rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.75rem;
  gap: 1.2rem;
  grid-template-columns: 1fr auto;
}

.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

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

.consent-card {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 720px;
  margin-left: auto;
  padding: 1rem 1.1rem;
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 0 16px 40px rgb(34 24 18 / 16%);
}

.consent-row {
  display: grid;
  align-items: center;
  gap: 1rem;
  grid-template-columns: 1fr auto;
}

.consent-row p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
}

.consent-row button {
  min-width: 6rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
}

.consent-row button:last-child {
  background: var(--burgundy);
  color: #f7efe3;
  border-color: var(--burgundy);
}

.consent-actions {
  display: flex;
  gap: 0.55rem;
}

@media (max-width: 1100px) {
  .folio-nav a:not(.seal-link):nth-child(-n + 2) {
    display: none;
  }
}

@media (max-width: 920px) {
  .article-frame,
  .contents-rule,
  .dateline,
  .forks article,
  .legal-columns,
  .colophon-row,
  .consent-row {
    grid-template-columns: 1fr;
  }

  .folio-index {
    columns: 1;
  }

  .keeper {
    position: static;
    max-width: var(--measure);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 5.6rem;
  }

  .menu-key {
    display: block;
  }

  .folio-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0.4rem 1.2rem 1rem;
    border-bottom: 1px solid var(--rule);
    background: #f6eee0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .folio-nav[data-open="true"] {
    display: flex;
  }

  .folio-nav a,
  .folio-nav a:not(.seal-link):nth-child(-n + 2) {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .folio-nav .seal-link {
    margin-top: 0.75rem;
    border-bottom: 0;
  }

  .spread {
    padding: 0.9rem 0.85rem 3.5rem;
  }

  .headline-block h1 {
    max-width: none;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .consent-card {
    right: 0.7rem;
    bottom: 0.7rem;
    left: 0.7rem;
    padding: 0.85rem 0.9rem;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
