@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
:root {
  color-scheme: light;
  --ink: #1d1b19;
  --muted: #6b655e;
  --paper: #fbfaf7;
  --card: #ffffff;
  --tint: #f2eee6;
  --accent: #a8402a;
  --rule: #e2ddd3;
  --measure: 36rem;
  --margin: 15rem;
  --gap: 3rem;
  --serif: "Newsreader", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Dark: chosen with the toggle, or by the system when nothing has been chosen */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ece7df; --muted: #a39b90; --paper: #191715; --card: #211e1b; --tint: #26221e; --accent: #dc7558; --rule: #38322c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #ece7df; --muted: #a39b90; --paper: #191715; --card: #211e1b; --tint: #26221e; --accent: #dc7558; --rule: #38322c;
  }
}
* { box-sizing: border-box; }
html { font-size: 118.75%; }
body { margin: 0; overflow-x: clip; background: var(--paper); transition: background-color .25s, color .25s; color: var(--ink); font-family: var(--serif); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

header.site { max-width: calc(var(--measure) + var(--gap) + var(--margin)); margin: 0 auto; padding: 1.5rem 1.25rem 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.masthead { flex: 1; }
.tools { display: flex; gap: .4rem; flex: none; }
.tool { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; height: 2.2rem; padding: 0 .7rem; border: 1px solid var(--rule); border-radius: 999px; font: .72rem var(--sans); color: var(--muted); background: var(--card); }
.tool:hover { color: var(--accent); border-color: var(--accent); }
.tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tools a { font: .78rem var(--sans); color: var(--muted); text-decoration: none; padding: .35rem .2rem; }
.tools a:hover, .tools a[aria-current] { color: var(--accent); }
.tools a[aria-current] { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1.5px; }
.tools { align-items: center; gap: .9rem; }
#theme-toggle { width: 2.2rem; padding: 0; justify-content: center; }
#theme-toggle svg { width: 1.05rem; height: 1.05rem; }
#theme-toggle .sun, .is-dark #theme-toggle .moon { display: none; }
.is-dark #theme-toggle .sun { display: block; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; max-width: var(--measure); }
.mast-name { display: block; line-height: 0; color: var(--ink); }
.mast-logo { height: 1.9rem; width: auto; }
.mast-toggle { margin-left: .4rem; align-self: flex-start; }
.mast-card { flex: 0 0 100%; font-size: .85rem; }
.mast-line { display: block; color: var(--muted); font-family: var(--sans); }
.frame { stroke: var(--accent); }
.is-home .masthead { visibility: hidden; }
.wordmark { margin: 0 0 1rem; line-height: 0; }
.home-lockup { width: min(100%, 26rem); height: auto; color: var(--ink); }
main { max-width: calc(var(--measure) + var(--gap) + var(--margin)); margin: 0 auto; padding: 2.5rem 1.25rem 6rem; }
article { max-width: var(--measure); }

h1 { font-size: 2.3rem; line-height: 1.15; margin: 0 0 .4rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 2.4rem 0 .6rem; }
.subtitle, .lede { font-size: 1.2rem; color: var(--muted); margin: 0 0 .8rem; font-style: italic; }
.lede { font-style: normal; color: var(--ink); }
.byline, .eyebrow { font: .75rem var(--sans); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 2rem; }
.eyebrow { color: var(--accent); margin: 0 0 .5rem; }
.body p, .body li { hyphens: auto; }
.body ul { padding-left: 1.2rem; }

/* ---------- Info cards: open inside the paragraph ---------- */
.ic-term {
  all: unset; cursor: pointer; color: inherit;
  text-decoration: underline dotted color-mix(in srgb, var(--accent) 70%, transparent);
  text-decoration-thickness: 1.5px; text-underline-offset: .22em;
}
.ic-term:hover { color: var(--accent); }
.ic-term:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic-mark {
  display: inline-block; width: .8em; height: .8em; margin-left: .18em; vertical-align: -.02em;
  background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M10 5.4v9.2M6 7.7l8 4.6M6 12.3l8-4.6' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M10 5.4v9.2M6 7.7l8 4.6M6 12.3l8-4.6' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ic-term[aria-expanded="true"] .ic-mark { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='%23fff'/%3E%3Cpath d='M10 5.4v9.2M6 7.7l8 4.6M6 12.3l8-4.6' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/mask%3E%3Crect width='20' height='20' mask='url(%23m)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='%23fff'/%3E%3Cpath d='M10 5.4v9.2M6 7.7l8 4.6M6 12.3l8-4.6' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/mask%3E%3Crect width='20' height='20' mask='url(%23m)'/%3E%3C/svg%3E"); }
.ic-card {
  display: block; margin: .55em 0 .7em; padding: .75em 1em .8em; background: var(--tint);
  border-left: 3px solid var(--accent); font-size: .9em; line-height: 1.55;
  animation: open .22s ease-out;
}
.ic-card[hidden] { display: none; }
.ic-title { font: 600 .72rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .2em; }
.ic-more { display: inline-block; font: .75rem var(--sans); color: var(--muted); margin-left: .2em; white-space: nowrap; }
@keyframes open { from { opacity: 0; transform: translateY(-3px); } }

/* ---------- Side notes ---------- */
.sn-ref {
  all: unset; cursor: pointer; font: 600 .62rem/1 var(--sans); color: var(--accent);
  vertical-align: super; padding: 0 .12em; margin-left: .05em;
}
.sidenote { display: none; font: .78rem/1.45 var(--sans); color: var(--muted); }
.sidenote.open { display: block; margin: .6em 0 .8em; padding: .6em .8em; border: 1px solid var(--rule); background: var(--card); }
.sn-num { display: none; }
.sn-kind { display: flex; align-items: center; gap: .35em; font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: .2em; }
.sn-icon { width: 1.15em; height: 1.15em; }
.sidenote a { color: var(--ink); text-decoration-color: var(--rule); }
.sidenote a:hover { color: var(--accent); }

@media (min-width: 66rem) {
  .sidenote, .sidenote.open {
    display: block; float: right; clear: right; position: relative;
    width: var(--margin); margin: .25em calc(-1 * (var(--margin) + var(--gap))) 1em 0;
    padding: 0 0 0 .9em; border: 0; border-left: 1px solid var(--rule); background: none;
  }
  .sn-num { display: inline; position: absolute; left: -2.1em; top: 0; font-weight: 600; color: var(--accent); font-size: .62rem; }
  .sn-ref { cursor: default; }
  /* The margin column is a full-height band in the info-card colour, from the top of the window to the bottom */
  body:not(.is-home)::before {
    content: ""; position: fixed; z-index: -1; top: 0; bottom: 0; right: 0;
    left: calc(max(0px, (100% - (var(--measure) + var(--gap) + var(--margin))) / 2) + 1.25rem + var(--measure) + var(--gap) * .3);
    background: var(--tint);
  }
  body { isolation: isolate; }
  .sidenote, .sidenote.open { border-left-color: color-mix(in srgb, var(--accent) 35%, transparent); }
  .sidenote a { text-decoration-color: color-mix(in srgb, var(--accent) 30%, transparent); }
  .sidenote.flash { animation: flash 1.2s; }
  @keyframes flash { 0%, 40% { background: var(--tint); } }
}

/* ---------- Featured links and backlinks ---------- */
.further { margin-top: 3.5rem; border-top: 2px solid var(--ink); padding-top: .9rem; }
.further h2 { font: 600 .75rem var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .9rem; }
.further ul, .home ul { list-style: none; padding: 0; margin: 0; }
.further li { padding: .65rem 0; border-bottom: 1px solid var(--rule); }
.further li a { font-weight: 600; text-decoration: none; }
.further li a::after { content: " →"; color: var(--accent); font-family: var(--sans); font-weight: 400; }
.further .fl-external a::after { content: " ↗"; }
.fl-desc { display: block; font-size: .88rem; color: var(--muted); }

.home .essays li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.home .essays a { font-size: 1.35rem; font-weight: 600; text-decoration: none; }
.home time { display: block; font: .72rem var(--sans); color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-top: .3rem; }
.home .concepts { margin-top: 3rem; }
.home .concepts ul { columns: 2; }
.home .concepts li { padding: .2rem 0; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Reference pages, images, quotations, tables ---------- */
.eyebrow .status { display: inline-block; padding: .05rem .45rem; border: 1px solid currentColor; border-radius: 999px; font-size: .62rem; vertical-align: .1em; }
.body h3 { font-size: 1.05rem; margin: 1.8rem 0 .4rem; }
.body h4 { font: 600 .8rem var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .3rem; }
.body img { max-width: 100%; height: auto; }
.body figure { margin: 1.6rem 0; text-align: center; }
.body figure img { max-height: 26rem; }
.body img.portrait { float: right; width: 7.5rem; margin: .2rem 0 .8rem 1.4rem; border-radius: 3px; }
.body h2, .body h3 { clear: right; }
.body blockquote { margin: 1.4rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--accent); color: color-mix(in srgb, var(--ink) 82%, var(--paper)); font-style: italic; }
.body blockquote p { margin: .5rem 0; }
.body blockquote strong { font-style: italic; }
.body blockquote footer { font: normal .75rem var(--sans); color: var(--muted); margin-top: .4rem; }
.body table { width: 100%; border-collapse: collapse; font-size: .82rem; line-height: 1.45; margin: 1.4rem 0; display: block; overflow-x: auto; }
.body th { font: 600 .68rem var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: left; border-bottom: 2px solid var(--ink); padding: .4rem .6rem .4rem 0; }
.body td { border-bottom: 1px solid var(--rule); padding: .5rem .6rem .5rem 0; vertical-align: top; }

/* ---------- Sequence (previous / next in strand or section) and dates ---------- */
.sequence { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.sequence a { text-decoration: none; font-weight: 600; line-height: 1.3; }
.sequence a span { display: block; font: .68rem var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; font-weight: 400; }
.sequence .next { text-align: right; grid-column: 2; }
.sequence .prev::before { content: "← "; color: var(--accent); }
.sequence .next::after { content: " →"; color: var(--accent); }
footer.meta { margin-top: 2.5rem; }
.dates { font: .72rem var(--sans); color: var(--muted); letter-spacing: .03em; margin: 0; }

/* ---------- Index pages and home ---------- */
.index .group, .home .group { margin-top: 2rem; }
.index h2 { font: 600 .75rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .4rem; }
.index-list { list-style: none; padding: 0; margin: 0; }
.index-list li { padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.index-list a { font-weight: 600; text-decoration: none; }
.az { list-style: none; padding: 0; margin: 0; columns: 2; }
.az li { padding: .15rem 0; }
.home .intro { max-width: var(--measure); }
.home .start { margin: 2rem 0; }
.home .start h2, .home .contents h2 { font: 600 .75rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
.home .contents h2 a { text-decoration: none; color: inherit; }
.home .start a { display: block; padding: 1rem 1.2rem; background: var(--tint); border-left: 3px solid var(--accent); text-decoration: none; }
.home .start strong { font-size: 1.2rem; }
.home .contents { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2rem 3rem; margin-top: 2.5rem; max-width: calc(var(--measure) + var(--gap) + var(--margin)); }
.home .contents h3 { font-size: 1rem; margin: 0 0 .2rem; }
.home .contents .index-list li { padding: .35rem 0; }
.home .contents .index-list a { font-weight: 400; }
.home .contents .index-list .fl-desc { font-size: .8rem; }
@media (max-width: 40rem) {
  header.site { flex-wrap: wrap; }
  .tools { width: 100%; justify-content: flex-start; }
  #theme-toggle { margin-left: auto; }
  .body img.portrait { width: 5.5rem; }
}
article.home { max-width: none; }
