

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/bodoni-moda-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/bodoni-moda-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cinzel-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
}

:root {
  --ground: #142219;
  --surface: #1b2c22;
  --line: #3b4b40;
  --frame-inner: #5c5638;
  --leader: #6e6440;
  --text: #efe7d4;
  --muted: #c3baa2;
  --gold: #c9a55c;
  --gold-hover: #e2c98c;

  --font-display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --font-caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "EB Garamond", Garamond, Georgia, serif;

  --width-wide: 1120px;
  --width-text: 880px;
  --width-hero: 760px;
  --width-narrow: 640px;
  --width-article: 700px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:hover {
  color: var(--gold-hover);
}

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

h1,
h2,
h3 {
  font-weight: 500;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ground);
  font-family: var(--font-caps);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  color: var(--gold);
}

.container {
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: calc(var(--width-wide) + 2 * var(--gutter));
}

.container--hero {
  max-width: calc(var(--width-hero) + 2 * var(--gutter));
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 32px var(--gutter);
  text-align: center;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand__name {
  margin: 0;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  text-transform: uppercase;
}

.seal {
  color: var(--gold);
}

.seal text {
  font-family: var(--font-display);
  font-weight: 500;
}

.article {
  padding: 88px var(--gutter) 112px;
}

.article__head,
.article__body,
.article__foot {
  margin: 0 auto;
  max-width: var(--width-article);
}

.article__head {
  text-align: center;
}

.article__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
  text-wrap: balance;
}

.article__lead {
  margin: 24px auto 0;
  max-width: var(--width-narrow);
  color: var(--muted);
  font-size: 25px;
  line-height: 1.5;
  text-wrap: balance;
}

.ornament {
  position: relative;
  overflow: visible;
  max-width: 220px;
  height: 1px;
  margin: 56px auto;
  border: 0;
  background: var(--line);
}

.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.article__body {
  font-size: 22px;
  line-height: 1.65;
  counter-reset: section;
}

.article__body p {
  margin: 0 0 24px;
  text-wrap: pretty;
}

.article__body h2 {
  margin: 80px 0 32px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 44px);
  line-height: 1.1;
  text-wrap: balance;
}

.article__body h2::before {
  counter-increment: section;
  content: counter(section, upper-roman);
  content: counter(section, upper-roman) / "";
  display: block;
  margin-bottom: 14px;
  padding-left: 0.32em;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--gold);
}

.article__body h3 {
  margin: 48px 0 14px;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article__body h4 {
  margin: 36px 0 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 25px;
  line-height: 1.3;
}

.article a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--leader);
  text-underline-offset: 0.18em;
}

.article a:hover {
  color: var(--gold-hover);
  text-decoration-color: currentColor;
}

.article .link-pending {
  color: var(--gold);
  text-decoration: underline dotted var(--leader);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: help;
}

.article__body ul,
.article__body ol {
  margin: 0 0 28px;
  padding-left: 1.3em;
}

.article__body li {
  margin-bottom: 10px;
  padding-left: 0.4em;
}

.article__body li::marker {
  color: var(--gold);
}

.article__body li > ul,
.article__body li > ol {
  margin: 10px 0 0;
}

.article__body blockquote {
  margin: 48px 0 56px;
  padding: 0 var(--gutter);
  text-align: center;
}

.article__body blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(30px, 3.4vw, 38px);
  line-height: 1.25;
  text-wrap: balance;
}

.article__body blockquote footer {
  margin-top: 16px;
  padding-left: 0.2em;
  font-family: var(--font-caps);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts {
  margin: 0 0 8px;
}

.facts figcaption {
  text-align: center;
}

.facts .ledger-scroll {
  background: var(--surface);
}

.photo {
  margin: 48px 0;
}

.photo--header {
  max-width: var(--width-article);
  margin: 56px auto 0;
}

.photo__frame {
  border: 1px solid var(--gold);
  padding: 8px;
}

.photo__link,
.photo picture {
  display: block;
}

.photo__link {
  cursor: zoom-in;
}

.photo--header img {
  aspect-ratio: auto 4 / 3;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--frame-inner);
}

.photo figcaption {
  margin-top: 14px;
  text-align: center;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

.sources {
  max-width: var(--width-article);
  margin: 80px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.sources__title {
  margin: 0 0 24px;
  padding-left: 0.32em;
  text-align: center;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.sources ol {
  margin: 0;
  padding-left: 1.6em;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.sources li {
  margin-bottom: 10px;
  padding-left: 0.5em;
}

.sources li::marker {
  font-family: var(--font-caps);
  font-size: 14px;
  color: var(--gold);
}

.article sup.ref {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: super;
  scroll-margin-top: 96px;
}

.article sup.ref a,
.sources .backrefs a {
  text-decoration: none;
}

.article sup.ref:target a {
  color: var(--gold-hover);
}

.sources li {
  scroll-margin-top: 48px;
}

.sources li:target {
  color: var(--text);
}

.sources .backrefs {
  margin-right: 0.3em;
  color: var(--gold);
}

.article__foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.section {
  padding: 96px 0;
}

.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.05;
}

.section__intro {
  margin: 18px auto 0;
  max-width: var(--width-narrow);
  color: var(--muted);
  font-size: 21px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--gold);
}

.eyebrow--centred {
  padding-left: 0.32em;
}

.ledger-frame {
  border: 1px solid var(--gold);
  padding: 8px;
}

.ledger-scroll {
  border: 1px solid var(--frame-inner);
  overflow-x: auto;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ledger th {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--frame-inner);
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.ledger td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
}

.ledger tbody tr:last-child td,
.ledger tbody tr:last-child th {
  border-bottom: 0;
}

.ledger th:first-child,
.ledger td:first-child {
  padding-left: 20px;
}

.ledger th:last-child,
.ledger td:last-child {
  padding-right: 20px;
}

.ledger--facts th {
  width: 34%;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom-color: var(--line);
  vertical-align: baseline;
  line-height: 1.6;
}

.ledger--facts td {
  padding-top: 18px;
  padding-bottom: 18px;
  vertical-align: baseline;
  font-size: 20px;
  line-height: 1.5;
}

.ledger-note {
  margin: 0;
  font-style: italic;
  font-size: 19px;
  color: var(--muted);
}

.boroughs,
.featured {
  margin: 56px 0;
}

.boroughs figcaption,
.featured figcaption {
  text-align: center;
}

.boroughs .ledger-scroll {
  background: var(--surface);
}

.ledger--boroughs th,
.ledger--boroughs td {
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.ledger--boroughs .boroughs__numeral {
  width: 3.2em;
  font-family: var(--font-caps);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.ledger--boroughs th {
  width: 32%;
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}

.ledger--boroughs th a,
.ledger--boroughs th .link-pending {
  color: inherit;
}

.ledger--boroughs td {
  font-size: 19px;
  line-height: 1.55;
}

.boroughs__area {
  white-space: nowrap;
}

.boroughs__dot {
  color: var(--muted);
}

.boroughs__none {
  color: var(--muted);
  font-style: italic;
}

.featured__frame {
  padding: 8px;
  border: 1px solid var(--gold);
}

.featured__photo {
  display: block;
  border: 1px solid var(--frame-inner);
  border-bottom: 0;
}

.featured__photo picture,
.featured__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.featured__photo img {
  aspect-ratio: auto 4 / 3;
}

.featured__text {
  padding: 30px 34px 32px;
  border: 1px solid var(--frame-inner);
  background: var(--surface);
  text-align: center;
}

.featured .featured__category {
  margin: 0 0 12px;
  padding-left: 0.32em;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--gold);
}

.featured .featured__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.15;
  text-wrap: balance;
}

.article .featured__title a {
  color: var(--text);
  text-decoration: none;
}

.article .featured__title a:hover {
  color: var(--gold-hover);
}

.featured .featured__summary {
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.6;
  text-align: left;
}

.featured .featured__more {
  margin: 0;
  padding-left: 0.24em;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.recent {
  margin: 56px 0;
}

.recent figcaption {
  text-align: center;
}

.recent .ledger-scroll {
  background: var(--surface);
}

.ledger--recent th,
.ledger--recent td {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.ledger--recent th {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--text);
}

.recent__category {
  display: block;
  margin-top: 4px;
  font-family: var(--font-caps);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.ledger--recent td {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  font-size: 17px;
  font-style: italic;
  color: var(--muted);
}

.random-article {
  margin: 56px 0;
}

.random-article figcaption {
  text-align: center;
}

.random-article__frame {
  padding: 8px;
  border: 1px solid var(--gold);
}

.random-article__inner {
  padding: 30px 28px 34px;
  border: 1px solid var(--frame-inner);
  background: var(--surface);
  text-align: center;
}

.random-article .random-article__text {
  margin: 0 auto 24px;
  max-width: 30em;
  font-size: 20px;
  line-height: 1.6;
  text-wrap: balance;
}

.random-article .random-article__action {
  margin: 0;
}

.article .button {
  display: inline-block;
  padding: 14px 28px 14px calc(28px + 0.22em);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.article .button:hover,
.article .button:focus-visible {
  background: var(--gold);
  color: var(--ground);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 48px;
  text-align: center;
}

.site-footer__name {
  margin: 0 0 8px;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.36em;
  padding-left: 0.36em;
}

.site-footer__small {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.site-footer__small a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--leader);
  text-underline-offset: 0.18em;
}

.site-footer__small a:hover {
  color: var(--gold-hover);
  text-decoration-color: currentColor;
}

@media (max-width: 600px) {
  body {
    font-size: 18px;
  }

  .ledger--boroughs .boroughs__numeral {
    width: 2.4em;
  }

  .ledger--boroughs tr {
    display: grid;
    grid-template-columns: 2.4em 1fr;
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .ledger--boroughs tbody tr:last-child {
    border-bottom: 0;
  }

  .ledger.ledger--boroughs tbody tr > th,
  .ledger.ledger--boroughs tbody tr > td {
    width: auto;
    padding: 0 0 0 16px;
    border-bottom: 0;
  }

  .ledger.ledger--boroughs tbody tr > td:last-child {
    grid-column: 2;
    padding-top: 6px;
    font-size: 18px;
  }

  .featured__text {
    padding: 24px 20px 26px;
  }

  .ledger--recent tr {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }

  .ledger--recent tbody tr:last-child {
    border-bottom: 0;
  }

  .ledger.ledger--recent tbody tr > th,
  .ledger.ledger--recent tbody tr > td {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: 0;
    text-align: left;
  }

  .ledger.ledger--recent tbody tr > td {
    padding-top: 4px;
  }

  .featured .featured__title {
    font-size: 30px;
  }

  .section {
    padding: 72px 0;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .article {
    padding: 56px var(--gutter) 80px;
  }

  .article__lead {
    font-size: 21px;
  }

  .ornament {
    margin: 40px auto;
  }

  .article__body {
    font-size: 19px;
  }

  .article__body h2 {
    margin-top: 56px;
    padding-top: 48px;
  }

  .article__body h4 {
    font-size: 22px;
  }

  .ledger th,
  .ledger td {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ledger th:first-child,
  .ledger td:first-child {
    padding-left: 16px;
  }

  .ledger th:last-child,
  .ledger td:last-child {
    padding-right: 16px;
  }

  .ledger--facts td {
    font-size: 18px;
  }

  .photo__frame {
    padding: 6px;
  }

  .photo figcaption,
  .sources ol {
    font-size: 17px;
  }

  .sources {
    margin-top: 64px;
    padding-top: 40px;
  }
}
