/* Site-wide type, colours and page frame; loaded on every page except the full-screen map. */
:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #272724;
  --muted: #77756f;
  --rule: #dcd7cb;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}
::selection {
  background: #edd2c8;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 19px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration-color: #b4a690;
  text-underline-offset: 4px;
  transition:
    color 150ms ease,
    text-decoration-color 150ms ease;
}
a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  cursor: pointer;
}
.site-shell {
  width: min(1060px, calc(100% - 80px));
  margin: auto;
}
.wordmark {
  font-size: 25px;
  letter-spacing: -1px;
  text-decoration: none;
}
main {
  padding: 62px 0 80px;
  min-height: 65vh;
}
.eyebrow {
  font: 11px/1.5 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 17px;
}
h1 {
  font-weight: 400;
  letter-spacing: -0.04em;
  font-size: clamp(42px, 6vw, 62px);
  line-height: 1.1;
  margin: 0 0 23px;
}
h2 {
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
}
p {
  margin: 0 0 22px;
}
.page-intro {
  max-width: 650px;
  color: #66635e;
  font-size: 18px;
}
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 23px 0 30px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  font: 12px/1.6 var(--sans);
  color: var(--muted);
}
.site-footer a {
  text-decoration: none;
}
input[type='search'],
select {
  font: 13px var(--sans);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 10px 12px;
  min-height: 40px;
}
input[type='search'] {
  width: 240px;
  max-width: 100%;
}
select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%237a7770' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.article-header {
  max-width: 730px;
  margin: 0 auto 35px;
}
.article-header h1 {
  font-size: 46px;
}
.article-date {
  font: 12px var(--sans);
  color: var(--muted);
}
.article-body {
  max-width: 730px;
  margin: auto;
  font-size: 19px;
}
.article-body p {
  margin-bottom: 25px;
}
.article-body h2 {
  margin-top: 42px;
}
.article-body blockquote {
  margin: 25px 0;
  border-left: 2px solid var(--rule);
  padding-left: 25px;
  font-style: italic;
}
.article-body img {
  display: block;
  margin: 25px auto;
}
.back-link {
  font: 12px var(--sans);
  margin-bottom: 30px;
  display: inline-block;
}
dialog {
  width: min(760px, calc(100% - 32px));
  max-height: 85dvh;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 15px 70px #0003;
}
dialog::backdrop {
  background: #19191580;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (max-width: 900px) {
  .site-shell {
    width: calc(100% - 48px);
  }
}
@media (max-width: 600px) {
  body {
    font-size: 17px;
  }
  .site-shell {
    width: calc(100% - 36px);
  }
  .wordmark {
    font-size: 22px;
  }
  main {
    padding: 39px 0 55px;
  }
  input[type='search'] {
    width: 100%;
  }
  .page-intro {
    font-size: 16px;
  }
  .article-header h1 {
    font-size: 36px;
  }
  .article-body {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  a {
    transition: none;
  }
}
.site-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--site-header-height));
}
.site-shell > main {
  flex: 1;
}
.site-footer {
  display: block;
  text-align: center;
}
.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:is(.bio-copy p, .page-intro, .earlier-intro, .article-body, .dialog-content, .site-footer)
  a:not([class]) {
  text-decoration: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 100%/0 1.5px no-repeat,
    linear-gradient(#b4a690, #b4a690) 0 100%/100% 1px no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition:
    color 150ms ease,
    background-size 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
:is(.bio-copy p, .page-intro, .earlier-intro, .article-body, .dialog-content, .site-footer)
  a:not([class]):is(:hover, :focus-visible) {
  background-size:
    100% 1.5px,
    100% 1px;
}
@media (prefers-reduced-motion: reduce) {
  :is(.bio-copy p, .page-intro, .earlier-intro, .article-body, .dialog-content, .site-footer)
    a:not([class]) {
    transition: none;
  }
}
.article-body > p:first-of-type::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.9;
  margin: 0.07em 0.2em 0 -0.02em;
  color: var(--accent);
}
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
  .article-body > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    margin: 0 0.28em 0 0;
    -webkit-initial-letter: 2;
    initial-letter: 2;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
