@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f9f8f2;
  --surface: #fffef9;
  --ink: #242a25;
  --muted: #596159;
  --rule: #d8d9ce;
  --rust: #a7462e;
  --pine: #314d3e;
  --sage: #eaf0e5;
  --peach: #f5e8dd;
  --blue: #e5edf0;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: ui-monospace, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(1.15rem, 5vw, 5rem);
  --width: 76rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.8rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.55 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3, p, a, button { overflow-wrap: break-word; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--rust); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::selection { background: #e8c7ad; color: #242a25; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.wrap { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 20; left: 1rem; top: 1rem; padding: .5rem 1rem; background: white; }
.site-header {
  position: sticky; top: 0; z-index: 10; background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-inner, .footer-inner, .footer-credit, .site-footer nav, #site-nav, .brand, .nav-toggle,
.text-link, .plain-link, .close-button { display: flex; align-items: center; }
.header-inner { min-height: 4.4rem; justify-content: space-between; gap: 1rem; }
.brand { width: fit-content; gap: .4rem; text-decoration: none; color: var(--ink); flex: none; }
.brand span { font: 400 2.15rem/.9 var(--display); letter-spacing: -.045em; }
.brand i { font-weight: 400; }
.brand img { width: 2.35rem; height: auto; }
#site-nav { gap: clamp(1.05rem, 2.55vw, 2.5rem); }
#site-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 550; padding: .6rem 0; }
#site-nav a:hover, #site-nav a[aria-current] { color: var(--rust); }
#site-nav a[aria-current] { box-shadow: inset 0 -2px var(--rust); }
#site-nav .cite-link { display: inline-flex; align-items: center; gap: .38rem; border: 1px solid #bdc2b5; padding: .32rem .79rem; border-radius: .25rem; }
#site-nav .cite-link .icon { width: .95rem; }
.nav-toggle { display: none; }
.display, .section-title, .page-title { font-family: var(--display); font-weight: 400; letter-spacing: -.035em; }
.section-title { font-size: clamp(2.1rem, 3.1vw, 2.75rem); line-height: 1.08; }
.page-title em { color: var(--rust); font-weight: 400; }
.kicker, .table-label { font-size: .75rem; font-weight: 700; line-height: 1.4; letter-spacing: .135em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: .65rem; color: var(--pine); }
.kicker::before { content: ""; width: 1.7rem; height: 2px; background: var(--rust); }
.page-intro { padding-block: clamp(2.6rem, 5.4vw, 4.95rem) clamp(1.7rem, 3vw, 2.75rem); }
.intro-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin: .87rem 0 .8rem; }
.page-title { font-size: clamp(3.3rem, 6.2vw, 5.8rem); line-height: 1; }
.page-deck { color: var(--muted); font-size: 1.03rem; max-width: 67ch; line-height: 1.65; }
.page-deck strong { font-weight: 600; color: var(--ink); }
.text-link, .plain-link { gap: .45rem; width: fit-content; text-decoration: none; }
.text-link { color: var(--pine); font-weight: 650; border-bottom: 1px solid #92a18f; padding-bottom: .15rem; }
.intro-line .text-link { flex: none; margin-bottom: .4rem; font-size: .94rem; }
.text-link .icon { transition: transform .18s ease; }
.text-link:hover .icon { transform: translateX(3px); }
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { padding-block: 1.6rem; justify-content: space-between; gap: 1.3rem; flex-wrap: wrap; }
.footer-credit { gap: 1.3rem; flex-wrap: wrap; }
.footer-credit .brand img { width: 1.9rem; }
.footer-credit .brand span { font-size: 1.8rem; }
.footer-credit > span { font-size: .83rem; color: var(--muted); }
.site-footer nav { gap: 1.35rem; font-size: .86rem; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.back-top { display: inline-flex; align-items: center; gap: .25rem; }
.segmented { display: inline-flex; align-items: stretch; flex-wrap: wrap; gap: .22rem; padding: .28rem; background: #eeeee5; border: 1px solid #dcdfd2; border-radius: .42rem; }
.segmented button { min-height: 2.4rem; padding: .42rem .97rem; border-radius: .23rem; color: #535d51; font-size: .92rem; font-weight: 550; }
.segmented button:hover { background: #e1e5d9; color: var(--pine); }
.segmented button[aria-selected="true"] { color: white; background: var(--pine); }
.count-label { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.page-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.close-button { flex: none; justify-content: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--rule); border-radius: 50%; }
.close-button:hover { color: var(--rust); background: var(--peach); border-color: #cba890; }
dialog { max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid #bdc3b7; border-radius: .4rem; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgb(24 32 26 / .69); }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
@media (max-width: 740px) {
  .header-inner { min-height: 3.65rem; }
  .brand img { width: 2rem; }
  .brand span { font-size: 1.9rem; }
  .nav-toggle { display: inline-flex; gap: .45rem; padding: .5rem .1rem .5rem .5rem; font-weight: 550; }
  #site-nav { display: none; }
  .site-header[data-open] #site-nav {
    display: flex; align-items: stretch; flex-direction: column; gap: 0; position: absolute;
    inset: 100% 0 auto; padding: .35rem var(--gutter) .9rem; background: var(--paper);
    border-block: 1px solid var(--rule); box-shadow: 0 6px 8px #2831290c;
  }
  #site-nav a { padding: .65rem .2rem; }
  #site-nav a[aria-current] { box-shadow: none; }
  #site-nav .cite-link { align-self: flex-start; margin-top: .23rem; }
  .intro-line { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .intro-line .text-link { order: 2; margin: 0; }
  .page-intro { padding-block: 2.25rem 1.45rem; }
  .page-deck { font-size: 1rem; }
  .segmented { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); width: 100%; }
  .segmented button { font-size: .86rem; padding: .35rem .25rem; line-height: 1.25; }
  .page-controls { flex-wrap: wrap; gap: .65rem; }
  .footer-credit { gap: .65rem; }
  .footer-inner { padding-block: 1.35rem; gap: .85rem; }
}
@media (max-width: 460px) {
  .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-credit { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
