:root {
  --paper: #f3efe5;
  --paper-deep: #e7dfcf;
  --paper-light: #fbf8f0;
  --ink: #1d1c19;
  --muted: #6e675c;
  --line: rgba(29, 28, 25, 0.18);
  --line-strong: rgba(29, 28, 25, 0.42);
  --red: #9e2f2b;
  --red-dark: #74201d;
  --ochre: #b18438;
  --blue: #476570;
  --green: #586d54;
  --shadow: 0 18px 55px rgba(46, 37, 24, 0.12);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 2%, rgba(255,255,255,.65), transparent 24rem),
    linear-gradient(180deg, var(--paper-light) 0, var(--paper) 38rem, var(--paper) 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
svg { display: block; }
blockquote { margin: 0; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 200;
  background: var(--ink);
  color: white;
  padding: .75rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  padding: 0 clamp(1rem, 4vw, 4.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 229, .89);
  backdrop-filter: blur(16px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.02em;
}
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: .86rem;
}
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--red); }

main > section,
footer {
  width: min(calc(100% - clamp(2rem, 8vw, 9rem)), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 68px);
  padding: clamp(3.6rem, 8vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .83fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: .73rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.7rem, 10vw, 9.6rem);
  line-height: .75;
  letter-spacing: -.075em;
}
.hero h1 em {
  color: var(--red);
  font-weight: 400;
}
.hero-deck {
  max-width: 760px;
  margin: clamp(2.5rem, 6vw, 5rem) 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.35vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -.025em;
}
.hero-intro {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .035em;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: var(--paper-light); }
.button.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button.ghost:hover { background: rgba(29,28,25,.06); }
.scope-note { margin: 1rem 0 0; color: var(--muted); font-size: .78rem; }

.hero-specimen {
  position: relative;
  width: min(100%, 565px);
  justify-self: end;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line-strong);
  background: rgba(251,248,240,.68);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.hero-specimen::before {
  content: "";
  position: absolute;
  inset: .55rem;
  border: 1px solid rgba(29,28,25,.1);
  pointer-events: none;
}
.folio-label, .book-year {
  display: block;
  color: var(--red);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.specimen-source blockquote {
  padding: 1.5rem 0 .7rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
mark {
  color: inherit;
  background: linear-gradient(transparent 63%, rgba(158,47,43,.2) 63%);
}
.speaker { color: var(--muted); font-family: var(--serif); font-style: italic; }
.specimen-thread {
  height: clamp(60px, 8vw, 100px);
  width: 1px;
  margin: 1.2rem 0 1.2rem 50%;
  background: var(--red);
  transform: rotate(9deg);
  transform-origin: top;
}
.specimen-book {
  width: 72%;
  margin-left: auto;
  padding: 1.35rem 1.4rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: 8px 8px 0 rgba(29,28,25,.08);
  transform: rotate(-2.5deg);
}
.specimen-book strong {
  display: block;
  margin: .6rem 0 .25rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
}
.specimen-book > span:last-child { color: var(--muted); font-size: .85rem; }
.specimen-note {
  margin: 1.25rem 0 0;
  text-align: right;
  color: var(--red);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

.numbers {
  margin-bottom: clamp(5rem, 10vw, 10rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.numbers div { padding: clamp(1.25rem, 3vw, 2.3rem); border-right: 1px solid var(--line); }
.numbers div:last-child { border-right: 0; }
.numbers strong {
  display: block;
  margin-bottom: .15rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.04em;
}
.numbers span { color: var(--muted); font-size: .74rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }

.essay-block, .source-section, .serial-borrower, .transformations, .method {
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--line-strong);
}
.section-heading { max-width: 900px; margin-bottom: clamp(2.5rem, 6vw, 5.5rem); }
.section-heading.compact { max-width: 760px; }
.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 6.2rem);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.055em;
}
.section-heading p:last-child {
  max-width: 720px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.soliloquy-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(300px, .92fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}
.soliloquy {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-left: 7px solid var(--red);
  background: rgba(251,248,240,.55);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.35vw, 2.35rem);
  line-height: 1.28;
  letter-spacing: -.018em;
}
.soliloquy span { display: block; }
.soliloquy cite {
  display: block;
  margin-top: 2rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.speech-descendants { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.descendant {
  width: 100%;
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
}
.descendant:hover .descendant-title { color: var(--red); }
.descendant-index { color: var(--red); font-family: var(--serif); font-style: italic; }
.descendant-title { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.05; }
.descendant-author { display: block; margin-top: .25rem; color: var(--muted); font-size: .77rem; }
.descendant-year { color: var(--muted); font-size: .75rem; }

.source-bars { display: grid; gap: .65rem; }
.source-bar {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr 3.2rem;
  gap: 1rem;
  align-items: center;
  padding: .5rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}
.source-name { font-family: var(--serif); font-size: 1.15rem; }
.source-track { height: 17px; background: rgba(29,28,25,.08); overflow: hidden; }
.source-fill {
  display: block;
  height: 100%;
  min-width: 4px;
  background: var(--ink);
  transform-origin: left;
  transition: background .18s ease, transform .18s ease;
}
.source-bar:hover .source-fill { background: var(--red); transform: scaleY(1.25); }
.source-count { color: var(--muted); font-size: .78rem; text-align: right; }

.serial-borrower {
  position: relative;
  overflow: hidden;
  background: var(--red-dark);
  color: var(--paper-light);
  width: min(100%, 100%);
  max-width: none;
  padding-inline: max(clamp(1rem, 4vw, 4.5rem), calc((100vw - var(--max))/2));
}
.serial-borrower::after {
  content: "18";
  position: absolute;
  right: -0.04em;
  top: -.27em;
  color: rgba(251,248,240,.055);
  font-family: var(--serif);
  font-size: clamp(18rem, 36vw, 42rem);
  line-height: 1;
  pointer-events: none;
}
.serial-borrower .section-heading { position: relative; z-index: 1; }
.serial-borrower .eyebrow { color: #f0b7af; }
.serial-borrower .section-heading p:last-child { color: rgba(251,248,240,.74); }
.series-ribbon {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(251,248,240,.28);
  border-left: 1px solid rgba(251,248,240,.28);
}
.series-entry {
  min-width: 0;
  min-height: 185px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem;
  border: 0;
  border-right: 1px solid rgba(251,248,240,.28);
  border-bottom: 1px solid rgba(251,248,240,.28);
  background: rgba(116,32,29,.08);
  color: inherit;
  text-align: left;
  transition: background .18s ease, color .18s ease;
}
.series-entry:hover, .series-entry:focus-visible { background: var(--paper-light); color: var(--red-dark); }
.series-number { color: #f0b7af; font-family: var(--serif); font-style: italic; font-size: .83rem; }
.series-entry:hover .series-number, .series-entry:focus-visible .series-number { color: var(--red); }
.series-title {
  margin: auto 0 .85rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.55vw, 1.52rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.series-meta { color: rgba(251,248,240,.64); font-size: .64rem; font-weight: 700; letter-spacing: .045em; line-height: 1.3; text-transform: uppercase; }
.series-entry:hover .series-meta, .series-entry:focus-visible .series-meta { color: var(--muted); }

.transformations { width: min(100%, 100%); max-width: none; padding-inline: max(clamp(1rem, 4vw, 4.5rem), calc((100vw - var(--max))/2)); background: var(--ink); color: var(--paper-light); }
.transformations .eyebrow { color: #de8c85; }
.transformations .section-heading p:last-child { color: rgba(251,248,240,.68); }
.transformation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.24);
  border-left: 1px solid rgba(255,255,255,.24);
}
.transformation-card {
  min-height: 310px;
  padding: clamp(1.3rem, 2.5vw, 2.25rem);
  border-right: 1px solid rgba(255,255,255,.24);
  border-bottom: 1px solid rgba(255,255,255,.24);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.transformation-card .small-source { color: #de8c85; font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.transformation-card h3 { margin: .8rem 0 1.3rem; font-family: var(--serif); font-size: clamp(1.45rem, 2.1vw, 2rem); line-height: 1.02; font-weight: 500; }
.transformation-card p { margin: 0; color: rgba(251,248,240,.72); font-size: .9rem; }
.transformation-card button {
  margin-top: 1.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f0c5bf;
  text-align: left;
  font-size: .76rem;
  font-weight: 750;
}
.transformation-card button:hover { text-decoration: underline; }

.library {
  width: min(100%, 100%);
  max-width: none;
  padding: clamp(5rem, 10vw, 10rem) max(clamp(1rem, 4vw, 4.5rem), calc((100vw - var(--max))/2));
}
.library-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}
.library-heading > p { max-width: 440px !important; }
.controls {
  position: sticky;
  top: 68px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) repeat(3, minmax(150px, .55fr)) auto auto;
  gap: .6rem;
  padding: .85rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(243,239,229,.94);
  backdrop-filter: blur(14px);
}
.search-box { position: relative; }
.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.controls input, .controls select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(251,248,240,.82);
  color: var(--ink);
  padding: 0 .9rem;
  outline: none;
}
.controls input { padding-left: 2.65rem; }
.controls input:focus, .controls select:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(158,47,43,.14); }
.view-switch { height: 44px; display: flex; border: 1px solid var(--line); }
.view-switch button {
  border: 0;
  background: rgba(251,248,240,.7);
  padding: 0 .9rem;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 750;
}
.view-switch button + button { border-left: 1px solid var(--line); }
.view-switch button.active { color: var(--paper-light); background: var(--ink); }
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(251,248,240,.7);
}
.icon-button:hover { color: var(--paper-light); background: var(--red-dark); }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.results-line {
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: .82rem;
}
.results-line button { padding: 0; border: 0; background: transparent; color: var(--red); font-weight: 750; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.title-card {
  min-width: 0;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(251,248,240,.32);
}
.title-card[open] { background: rgba(251,248,240,.78); box-shadow: inset 4px 0 var(--red); }
.title-card summary {
  min-height: 265px;
  list-style: none;
  cursor: pointer;
  padding: clamp(1.35rem, 2.8vw, 2.4rem);
  display: flex;
  flex-direction: column;
}
.title-card summary::-webkit-details-marker { display: none; }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: .8rem; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.relation-label { display: inline-flex; align-items: center; gap: .45rem; }
.relation { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--ink); }
.relation.adapted { border-radius: 0; transform: rotate(45deg); background: var(--red); }
.relation.translation { background: var(--blue); }
.relation.shared { background: transparent; border: 1.5px solid var(--ochre); }
.card-title {
  margin: auto 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 3.2rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.title-card:hover .card-title { color: var(--red); }
.card-byline { display: flex; justify-content: space-between; gap: 1rem; align-items: end; color: var(--muted); font-size: .8rem; }
.card-byline strong { display: block; color: var(--ink); font-size: .84rem; }
.card-source { max-width: 45%; text-align: right; }
.card-source::before { content: "from "; font-style: italic; }
.card-detail {
  padding: 0 clamp(1.35rem, 2.8vw, 2.4rem) clamp(1.5rem, 3vw, 2.5rem);
  animation: reveal .25s ease;
}
@keyframes reveal { from { opacity: 0; transform: translateY(-7px); } }
.quote-box { padding-top: 1.45rem; border-top: 1px solid var(--line); }
.quote-box blockquote { font-family: var(--serif); font-size: clamp(1.15rem, 1.65vw, 1.48rem); line-height: 1.25; white-space: pre-line; }
.quote-meta { margin: 1rem 0 0; color: var(--muted); font-size: .72rem; }
.editorial-note { margin: 1.4rem 0 0; padding-left: 1rem; border-left: 2px solid var(--red); color: var(--muted); font-size: .88rem; }
.context-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--red-dark);
  font-size: .77rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.source-map { display: grid; gap: 1.5rem; }
.map-group { border-top: 1px solid var(--line-strong); padding-top: 1.1rem; }
.map-heading {
  display: grid;
  grid-template-columns: minmax(220px, 350px) 1fr;
  gap: 2rem;
  align-items: baseline;
}
.map-heading h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 500; letter-spacing: -.035em; }
.map-heading p { margin: 0; color: var(--muted); font-size: .76rem; }
.map-works { grid-column: 2; display: flex; flex-wrap: wrap; gap: .55rem; padding: .8rem 0 1rem; }
.map-work {
  border: 1px solid var(--line);
  background: rgba(251,248,240,.45);
  padding: .6rem .75rem;
  text-align: left;
  font-family: var(--serif);
  line-height: 1.05;
}
.map-work span { display: block; margin-top: .25rem; color: var(--muted); font-family: var(--sans); font-size: .65rem; }
.map-work:hover { border-color: var(--red); color: var(--red); }
.empty-state { padding: 6rem 1rem; border-top: 1px solid var(--line-strong); text-align: center; }
.empty-state p { font-family: var(--serif); font-size: 2rem; }

.method-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 9vw, 9rem); }
.method-copy { max-width: 720px; }
.method-copy p { margin: 0 0 1.2rem; color: var(--muted); font-size: 1.04rem; }
.source-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2.2rem; }
.source-links a { color: var(--red-dark); font-size: .8rem; font-weight: 750; }
.legend { margin: 0; }
.legend > div { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.legend > div:last-child { border-bottom: 1px solid var(--line); }
.legend dt { display: flex; align-items: center; gap: .7rem; font-weight: 800; }
.legend dd { margin: .45rem 0 0 1.5rem; color: var(--muted); font-size: .86rem; }

footer {
  padding: 2rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: .75rem;
}
footer p { margin: 0; }
footer a { color: var(--red-dark); text-underline-offset: 3px; }

.back-to-top {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  padding: .45rem .75rem;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  color: var(--ink);
  text-decoration: none;
}
.back-to-top:hover { color: var(--red-dark); border-color: var(--red); }
.js .back-to-top.enhanced {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: var(--back-to-top-bottom, 1rem);
  z-index: 80;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 26px rgba(46, 37, 24, .18);
  transition: opacity .16s ease;
}
.js .back-to-top.enhanced.is-visible { visibility: visible; opacity: 1; pointer-events: auto; }
.js .back-to-top-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

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

@media (max-width: 1150px) {
  .hero { grid-template-columns: 1fr .82fr; gap: 3rem; }
  .hero h1 { font-size: clamp(4.4rem, 10vw, 7.4rem); }
  .controls { grid-template-columns: 1.5fr repeat(2, .7fr) auto auto; }
  .controls > label:nth-of-type(4) { display: none; }
  .series-ribbon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .transformation-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-header { height: 60px; }
  .site-header nav a:nth-child(1), .site-header nav a:nth-child(3) { display: none; }
  main > section, footer { width: min(calc(100% - 2rem), var(--max)); }
  .hero { min-height: auto; display: block; padding-top: 4.5rem; }
  .hero h1 { font-size: clamp(4.5rem, 20vw, 8rem); }
  .hero-specimen { margin-top: 4rem; justify-self: auto; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers div:nth-child(2) { border-right: 0; }
  .numbers div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .soliloquy-layout, .method-grid { grid-template-columns: 1fr; }
  .source-bar { grid-template-columns: minmax(135px, 200px) 1fr 2.4rem; }
  .serial-borrower, .transformations, .library { padding-inline: 1rem; }
  .series-ribbon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .transformation-grid { grid-template-columns: repeat(2, 1fr); }
  .library-heading { display: block; }
  .controls { top: 60px; grid-template-columns: 1fr 1fr auto; }
  .search-box { grid-column: 1 / -1; }
  .controls > label:nth-of-type(4) { display: block; }
  .view-switch { grid-column: 1 / 3; }
  .view-switch button { flex: 1; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .map-heading { grid-template-columns: 1fr; gap: .25rem; }
  .map-works { grid-column: 1; }
  footer { display: block; }
  footer p + p { margin-top: .5rem; }
}

@media (max-width: 560px) {
  .site-header nav { display: none; }
  .hero { padding-top: 3.6rem; }
  .hero h1 { font-size: clamp(4.25rem, 22vw, 6.4rem); }
  .hero-deck { margin-top: 2.7rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-specimen { padding: 1.3rem; transform: none; }
  .specimen-source blockquote { font-size: 1.55rem; }
  .specimen-book { width: 82%; }
  .numbers strong { font-size: 2.3rem; }
  .numbers div { padding: 1.1rem .8rem; }
  .section-heading h2 { font-size: clamp(2.55rem, 14vw, 4.2rem); }
  .soliloquy { font-size: 1.25rem; padding: 1.25rem; }
  .source-bar { grid-template-columns: 1fr 2.4rem; gap: .7rem; }
  .source-track { grid-column: 1 / -1; grid-row: 2; }
  .source-count { grid-column: 2; grid-row: 1; }
  .series-ribbon { grid-template-columns: 1fr 1fr; }
  .series-entry { min-height: 155px; }
  .transformation-grid { grid-template-columns: 1fr; }
  .transformation-card { min-height: 260px; }
  .controls { grid-template-columns: 1fr auto; }
  .controls > label { grid-column: 1 / -1; }
  .controls > label:nth-of-type(3), .controls > label:nth-of-type(4) { display: none; }
  .view-switch { grid-column: 1; }
  .icon-button { grid-column: 2; }
  .card-grid { grid-template-columns: 1fr; }
  .title-card summary { min-height: 230px; }
  .card-title { font-size: 2.25rem; }
  .map-work { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
