@font-face { font-family: "Crimson Pro"; src: url("/fonts/crimson-pro-latin.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("/fonts/crimson-pro-latin-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #1c1c1c;
  --ink: #f4f3ee;
  --muted: #a3a19a;
  --rule: #3a3936;
  --serif: "Crimson Pro", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { margin: 0; font-family: var(--sans); }
a { color: inherit; }

.page { max-width: 880px; margin: 0 auto; padding: clamp(3rem, 9vw, 6.5rem) clamp(1.25rem, 5vw, 2.5rem) 3rem; }

.hero { text-align: center; }
.logo { margin: 0 auto; width: min(100%, 520px); }
.logo img { display: block; width: 100%; height: auto; }
.headline {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 6.2vw, 4.25rem);
  line-height: 1.04; letter-spacing: -0.015em; margin: clamp(2.75rem, 8vw, 4.5rem) auto 0; max-width: 13em; text-wrap: balance;
}
.subline a, .essay__note a { text-decoration: underline; text-decoration-color: #6a6862; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.subline a:hover, .essay__note a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.subline { font-size: clamp(0.95rem, 2.1vw, 1.0625rem); line-height: 1.6; color: var(--muted); margin: 1.35rem auto 0; max-width: 32em; text-wrap: balance; }

.essay { margin-top: clamp(4rem, 11vw, 7rem); }
.essay__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--ink); padding-top: 1rem; margin-bottom: 1.5rem; }
.essay__kicker { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.4rem; }
.essay__title { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin: 0; }
.essay__download { flex: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); padding: 0.6rem 0.9rem; transition: background .15s, color .15s; }
@media (hover: hover) { .essay__download:hover { background: var(--ink); color: var(--bg); } }

.reader { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; align-items: stretch; column-gap: clamp(0.75rem, 2.5vw, 2rem);
  width: min(100vw - 2.5rem, 1040px); margin-inline: calc(50% - min(50vw - 1.25rem, 520px)); }
.reader__stage { grid-column: 2; grid-row: 1; width: 100%; touch-action: pan-y; }
.reader__nav { grid-row: 1; position: relative; }
.reader__page { background: #fbfaf6; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.45); aspect-ratio: 468 / 684; width: 100%; position: relative; overflow: hidden; }
.reader__page canvas { display: block; width: 100%; height: 100%; }
.reader__page .textLayer { position: absolute; inset: 0; overflow: hidden; line-height: 1; }
.reader__page .textLayer span, .reader__page .textLayer br { color: transparent; position: absolute; white-space: pre; transform-origin: 0 0; cursor: text; }
.reader__page .textLayer ::selection { background: rgba(28, 90, 200, .25); }
.reader__page .annotationLayer { position: absolute; inset: 0; pointer-events: none; }
.reader__page .annotationLayer a { position: absolute; display: block; pointer-events: auto; }
.reader__arrow { width: 3rem; height: 3rem; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink);
  font: 300 1.9rem/1 var(--serif); padding: 0 0 0.2rem; cursor: pointer; transition: border-color .15s, background .15s, color .15s, opacity .15s; }
.reader__nav--prev { grid-column: 1; }
.reader__nav--next { grid-column: 3; }
.reader__arrow { position: sticky; top: calc(50svh - 1.5rem); margin-top: min(40vh, 28rem); }
@media (hover: hover) { .reader__arrow:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--bg); } }
.reader__arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.reader__arrow:disabled { opacity: .25; cursor: default; }
.reader__count { grid-column: 1 / -1; text-align: center; margin: 1.25rem 0 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); font-variant-numeric: tabular-nums; }
.reader__fallback { text-align: center; color: var(--muted); padding-top: 40%; }
.reader__frame { width: 100%; height: 85vh; border: 0; background: #fbfaf6; grid-column: 1 / -1; }

.foot { margin-top: 5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); text-align: center; color: var(--muted); font-size: 0.8125rem; }
.foot__links { display: grid; gap: 0.6rem; }
.foot__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0; }
.foot__row li + li::before { content: "·"; padding: 0 0.7rem; color: #5f5d58; }
.foot__row a { text-decoration: none; padding: 0.2rem 0; }
.foot__row a:hover, .foot__row a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot__disclaimer { max-width: 40rem; margin: 1.5rem auto 0; font-size: 0.75rem; line-height: 1.6; }
.foot__copy { margin: 0.9rem 0 0; font-size: 0.75rem; letter-spacing: 0.03em; }

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 10; background: var(--ink); color: var(--bg); padding: 0.6rem 0.9rem; font-size: 0.8125rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.essay__note { margin: 0.45rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.essay__bar > :first-child { flex: 1 1 auto; min-width: 0; }
.essay__actions { display: flex; flex: none; gap: 0.6rem; margin-left: auto; justify-content: flex-end; }

.disclosure { margin-top: 2.5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.8125rem; color: var(--muted); }
.disclosure summary { cursor: pointer; padding: 0.95rem 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.disclosure__fields { margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.disclosure__fields div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; }
.disclosure__fields dt { color: var(--ink); }
.disclosure__fields dd { margin: 0; }
.disclosure__general { line-height: 1.6; margin: 0 0 1.1rem; }

.page--doc { max-width: 760px; }
.home-link { font-size: 0.8125rem; color: var(--muted); text-decoration: none; }
.home-link:hover { color: var(--ink); }
.doc__head { margin: 2.5rem 0 2.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ink); }
.doc__head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.doc__dates { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; margin: 1.1rem 0 0; font-size: 0.75rem; color: var(--muted); }
.doc__dates div { display: flex; gap: 0.5rem; }
.doc__dates dt { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.6875rem; }
.doc__dates dd { margin: 0; }
.doc__body { font-size: 1rem; line-height: 1.7; color: #dedcd5; }
.doc__body h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--ink); margin: 2.4rem 0 0.7rem; }
.doc__body p { margin: 0 0 1rem; }
.doc__body ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.doc__body li { margin-bottom: 0.3rem; }
.doc__body a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc__body blockquote { margin: 1.25rem 0; padding-left: 1rem; border-left: 2px solid var(--rule); }

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

@media (max-width: 640px) {
  .essay__bar { align-items: stretch; flex-direction: column; }
  .essay__actions { margin-left: 0; }
  .essay__actions .essay__download { flex: 1; text-align: center; }
  .disclosure__fields div { grid-template-columns: 1fr; gap: 0.1rem; }
  .foot__row { gap: 0.35rem 1.1rem; }
  .foot__row li + li::before { content: none; }
  .reader { grid-template-columns: 3rem minmax(0, 1fr) 3rem; row-gap: 1rem; width: auto; margin-inline: 0; }
  .reader__stage { grid-column: 1 / -1; }
  .reader__nav { grid-row: 2; }
  .reader__arrow { position: static; margin-top: 0; }
  .reader__count { grid-column: 2; grid-row: 2; margin: 0; align-self: center; }
}
