:root {
  color-scheme: light;
  --ink: #1b1c1b;
  --ink-low: #353733;
  --night-text: #f6f5ed;
  --night-muted: #b7b9ad;
  --night-line: #454740;
  --acid: #e0f596;
  --paper: #f6f5ee;
  --paper-alt: #ebece2;
  --text: #22241f;
  --muted: #565a4f;
  --rule: #c7cabc;
  --selected: #293124;
  --on-selected: #f8faea;
  --accent-text: #3c5523;
  --active-fill: #dfeaaa;
  --active-ink: #263018;
  --gutter: clamp(20px, 4.5vw, 76px);
  --ease: cubic-bezier(.2,.72,.24,1);
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #242621;
    --paper-alt: #2b2f28;
    --text: #f0f1e7;
    --muted: #b9beb0;
    --rule: #53584c;
    --selected: #dee5cb;
    --on-selected: #242b1d;
    --accent-text: #d4eba0;
    --active-fill: #414e2e;
    --active-ink: #e9f5c9;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:has(#library:target, #start:target, #install:target) { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
}
button, input { font: inherit; }
button, a, summary, label:has(input[type="radio"]) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, summary, label:has(input[type="radio"]) { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, a { transition: color .18s, background-color .18s, border-color .18s; }
:focus-visible { outline: 3px solid #68813a; outline-offset: 4px; }
.theatre :focus-visible, .site-header :focus-visible, .install-section :focus-visible, .site-footer :focus-visible { outline-color: var(--acid); }
[hidden] { display: none !important; }
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure, h1, h2, h3, p, dl, dd, fieldset { margin: 0; }
fieldset {
  min-inline-size: 0;
  border: 0;
  padding: 0;
}
legend { padding: 0; }
button { border: 0; }
.symbols, .sr-only, .segment input, .sources input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  z-index: 12;
  left: 12px;
  top: 8px;
  padding: 9px 15px;
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1400px); margin-inline: auto; }
.icon {
  flex: 0 0 auto;
  display: inline-block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.site-header, .theatre, .install-section, .site-footer { color: var(--night-text); background: var(--ink); }
.mast {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-header { border-bottom: 1px solid var(--night-line); }
.brand-block { display: flex; align-items: center; gap: inherit; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--night-text);
  white-space: nowrap;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 25%;
}
.brand > span {
  font-size: 25px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: -.06em;
}
.brand i, .install-intro i { font-weight: 400; }
.product-kind {
  padding-left: 19px;
  border-left: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 13px;
}
.mast nav, .footer-row nav { display: flex; align-items: center; }
.mast nav { margin-left: auto; min-width: 0; gap: clamp(18px, 2.3vw, 35px); }
.mast nav a {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  color: #d3d5cb;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.mast nav a:hover, .mast nav [aria-current="page"], .footer-row nav a:hover { color: var(--acid); }
.install-link, .release-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 20px;
  border-radius: 30px;
  color: #232817;
  background: var(--acid);
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
}
.install-link .download-short { display: none; }
.install-link .icon { width: 17px; height: 17px; }
.language-picker { position: relative; flex: none; z-index: 5; }
.language-picker summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  color: var(--night-text);
  font-size: 13px;
  white-space: nowrap;
}
.language-picker summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 3px 0 0;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.language-picker .icon { width: 18px; height: 18px; }
.language-picker ul {
  position: absolute;
  inset: calc(100% + 1px) 0 auto auto;
  min-width: 9.25rem;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid var(--night-line);
  border-radius: 10px;
  background: var(--ink);
  box-shadow: 0 7px 20px rgb(0 0 0 / 24%);
}
.language-picker a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  min-height: 44px;
  border-radius: 5px;
  color: var(--night-text);
  font-size: 14px;
}
.language-picker a:hover, .language-picker a:focus-visible { background: var(--ink-low); }
.language-picker a[aria-current] { color: var(--acid); }
.language-picker a[aria-current]::after { content: "✓" / ""; }
.install-link:hover, .release-link:hover, .advance:hover { background: #efffba; }
.theatre { overflow: clip; }
.reader-header, .reader-title, .reader-label, .manuscript, .quiet-link, .manual-link, .reader-jump { display: flex; align-items: center; }
.reader-header {
  justify-content: space-between;
  gap: 10px;
  padding: 28px 0 22px;
}
.reader-title { gap: 18px; min-width: 0; }
.reader-label {
  gap: 8px;
  padding-right: 19px;
  border-right: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 14px;
  white-space: nowrap;
}
.reader-label .icon { width: 18px; height: 18px; }
.reader-title h1 {
  font-size: clamp(21px, 1.85vw, 30px);
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: .004em;
}
.manuscript, .quiet-link, .manual-link, .reader-jump {
  gap: 7px;
  width: fit-content;
  min-height: 44px;
  font-weight: 500;
  font-size: 14px;
}
.manuscript { color: var(--night-muted); }
.manuscript .icon, .quiet-link .icon, .manual-link .icon, .inline-links .icon, figcaption .icon { width: 15px; height: 15px; }
.manuscript:hover, .reader-jump:hover { color: var(--acid); }
.reader-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) clamp(165px, 16vw, 228px);
  column-gap: clamp(22px, 2.8vw, 48px);
}
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: clamp(350px, min(45vw, 56svh), 620px); background: #242520;
  touch-action: pan-y pinch-zoom;
}
.stage:focus-visible { outline-offset: -3px; z-index: 1; }
.comic-paper {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.is-ready .stage { cursor: grab; }
.is-ready[data-mode="whole"] .stage { cursor: pointer; }
.is-ready .stage.is-dragging { cursor: grabbing; }
.is-ready .comic-paper {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  width: 2160px;
  height: 2786px;
  object-fit: fill;
  transform-origin: 0 0;
  will-change: transform;
}
.focus-window {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 0;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 125vmax rgb(16 18 15 / 70%);
  outline: 1px solid rgb(231 237 202 / 70%);
}
.reader-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.atlas-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c2c5b7;
  font-size: 13px;
}
.atlas-top .icon { width: 17px; height: 17px; }
.atlas {
  position: relative;
  margin-top: 14px;
  width: min(100%, 20svh);
  min-width: 96px;
}
.atlas img {
  width: 100%;
  height: auto;
  opacity: .73;
}
.atlas-marker {
  position: absolute;
  z-index: 1;
  box-shadow: 0 0 0 2px var(--acid);
  background: rgb(224 245 150 / 19%);
  opacity: 0;
  pointer-events: none;
}
.atlas-buttons, .atlas-buttons button { position: absolute; inset: 0; }
.atlas-buttons { display: none; }
.is-ready .atlas-buttons { display: block; }
.atlas-buttons button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.atlas-buttons button:hover, .atlas-buttons button:focus-visible {
  background: rgb(237 255 173 / 38%);
  outline: 2px solid var(--acid);
  outline-offset: -1px;
}
.byline {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
}
.byline cite {
  margin: 0 0 11px;
  font-family: "Baskervville", "Baskerville", "Georgia", "Times New Roman", serif;
  font-size: clamp(23px, 2.1vw, 35px);
  line-height: 1.04;
  letter-spacing: -.038em;
  color: var(--night-text);
}
.byline > span, .byline time {
  color: var(--night-muted);
  font-size: 13px;
  line-height: 1.65;
}
.byline time { font-variant-numeric: tabular-nums; }
.needs-reader { display: none !important; }
.is-ready .needs-reader { display: inline-flex !important; }
.whole-page {
  margin-top: auto;
  padding: 7px 14px;
  min-height: 44px;
  border: 1px solid var(--night-line);
  border-radius: 5px;
  background: transparent;
  color: #e2e4d8;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.whole-page .icon { width: 16px; height: 16px; }
.whole-page:hover, .whole-page[aria-pressed="true"], .previous:hover:not(:disabled) { background: var(--ink-low); border-color: #828777; }
.transport {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 18px 0;
  border-bottom: 1px solid var(--night-line);
}
.playhead {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: clamp(15px, 2.2vw, 38px);
}
.counter {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  min-width: 70px;
  gap: 6px;
  color: #aeb1a3;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.counter b {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -.075em;
  color: var(--acid);
}
#frame-caption {
  color: #edeee4;
  font-size: clamp(15px, 1.25vw, 19px);
  text-wrap: pretty;
}
.transport-actions {
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}
.previous, .advance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 28px;
}
.previous {
  width: 46px;
  padding: 0;
  color: var(--night-text);
  border: 1px solid var(--night-line);
  background: transparent;
}
.previous:disabled { opacity: .37; cursor: default; }
.advance {
  gap: 15px;
  padding: 6px 18px;
  color: #232817;
  background: var(--acid);
  font-size: 14px;
  font-weight: 650;
}
.advance .icon { transition: transform .22s var(--ease); }
.advance:hover .icon { transform: translateX(2px); }
.fallback-open {
  flex: 0 0 auto;
  font-size: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acid);
}
.reader-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  color: var(--night-muted);
}
.reader-gesture { align-items: center; font-size: 12px; }
.reader-gesture kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 17px;
  margin-right: 3px;
  color: #d8dbcd;
  border: 1px solid #5d6154;
  border-radius: 3px;
  font: 12px/1 sans-serif;
}
.touch-gesture { display: none; }
.reader-jump {
  margin-left: auto;
  gap: 9px;
  font-size: 13px;
}

.section-inner { padding-block: clamp(48px, 5.8vw, 88px); }
.reading-section {
  position: relative;
  isolation: isolate;
  background: var(--paper);
}
.reading-section > .section-inner { padding-top: clamp(54px, 6vw, 88px); }
.reading-section > .section-inner, .library-section > .section-inner { padding-bottom: clamp(20px, 2.8vw, 42px); }
@property --reading-fold {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .reading-section {
    --reading-fold: 0;
    background: linear-gradient(to bottom, var(--ink), var(--paper) min(30svh, 245px));
  }
  .reading-section::before, .reading-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .reading-section::before {
    z-index: -2;
    background: var(--ink);
    opacity: clamp(0, calc(var(--reading-fold) / .7), 1);
  }
  .reading-section::after {
    z-index: -1;
    background: var(--paper);
    --edge: calc(min(var(--gutter) * .85, 48px) * var(--reading-fold));
    --corner: calc(clamp(20px, 3vw, 44px) * var(--reading-fold));
    clip-path: polygon(var(--edge) var(--corner), calc(100% - var(--edge)) 0,
      calc(100% - var(--edge)) 100%, var(--edge) 100%);
  }
  .reading-section .workbench {
    transform: translateY(calc(clamp(24px, 5vh, 48px) * var(--reading-fold)));
  }
  .reading-section .proof-view {
    transform-origin: left bottom;
    transform: scale(calc(1 - .035 * var(--reading-fold)));
  }

  /* Browsers with a view timeline can also unfold the paper without JavaScript. */
  @supports (animation-timeline: view()) and (animation-range: cover 30vh cover 94vh) {
    .reading-section:not(.js-scroll) {
      animation: paper-unfolds auto linear both;
      animation-timeline: view();
      animation-range: cover 30vh cover 94vh;
    }
  }
}
@keyframes paper-unfolds {
  from { --reading-fold: 1; }
  to { --reading-fold: 0; }
}
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(22px, 2.25vw, 38px);
}
.section-line h2, .sponsors h1 {
  margin: 0;
  font-size: clamp(28px, 2.7vw, 41px);
  line-height: 1.2;
  font-weight: 620;
  letter-spacing: -.02em;
}
.quiet-link, .manual-link { color: var(--muted); }
.quiet-link:hover, .manual-link:hover, figcaption a:hover {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
  gap: clamp(30px, 5vw, 82px);
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: 23px;
  --brightness: 1;
}
.proof { min-width: 0; }
.proof-view {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: auto;
  scrollbar-color: #a4a899 #e4e2d7;
  background: #eae7dd;
}
.proof-track { width: 100%; filter: brightness(var(--brightness)); }
.spread-original { width: 100%; }
figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 43px;
  color: var(--muted);
  font-size: 13px;
}
figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 5px;
}
.controls { padding-top: 1px; }
.controls legend, .brightness label, .sources legend { font-weight: 650; font-size: 17px; }
.split-options > p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 15px;
}
.segment {
  display: inline-flex;
  border-radius: 6px;
  background: var(--paper-alt);
  box-shadow: inset 0 0 0 1px var(--rule);
  padding: 3px;
}
.segment label { position: relative; }
.segment label span {
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 40px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 550;
  transition: background .18s, color .18s;
}
.segment label:hover span { color: var(--accent-text); }
.segment input:checked + span { background: var(--selected); color: var(--on-selected); }
.segment input:focus-visible + span, .sources input:focus-visible + span { outline: 3px solid #809645; outline-offset: 1px; }
.brightness { margin-block: 22px 16px; }
.brightness > div, .brightness label { display: flex; align-items: center; }
.brightness > div { justify-content: space-between; }
.brightness label { gap: 8px; font-size: 15px; }
.brightness label .icon { width: 18px; height: 18px; }
.brightness output { font: 13px/1.4 "Consolas", monospace; color: var(--muted); }
.brightness input {
  width: 100%;
  margin: 0;
  min-height: 36px;
  cursor: pointer;
  accent-color: var(--selected);
}
.feature-lines { margin-top: 20px; border-top: 1px solid var(--rule); }
.feature-lines > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.feature-lines dt { font-weight: 650; font-size: 14px; }
.feature-lines dd {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.deferred:not([src]) { color: transparent; }

.library-layout {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.35fr);
  gap: clamp(35px, 7vw, 110px);
  align-items: start;
}
.ruled-list { border-top: 1px solid var(--rule); }
.ruled-list details { border-bottom: 1px solid var(--rule); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.ruled-list summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  padding: 12px 1px;
  font-weight: 600;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.45;
}
.ruled-list summary::after, .credits summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-left: auto;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 1.5px, 1.5px 14px;
  transition: background-size .22s var(--ease);
}
.ruled-list details[open] > summary::after, .credits[open] summary::after { background-size: 14px 1.5px, 1.5px 0; }
.library-tools summary:hover { color: var(--accent-text); }
.library-tools details > p {
  padding: 0 18px 22px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}
.screens { min-width: 0; }
.screen-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20%;
  align-items: end;
  padding: 0 1% 0 0;
}
.desktop-screen {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 87%;
  box-shadow: 0 9px 28px rgb(17 20 13 / 12%);
}
.desktop-screen img { border-radius: 4px; }
.phone-screen {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 -3px -6px;
  padding: 3px;
  border: 1px solid #5a5d50;
  border-radius: 11px;
  background: #20221e;
  box-shadow: 0 6px 16px rgb(17 20 13 / 20%);
}
.phone-screen img { border-radius: 6px; }
.screens figcaption { justify-content: flex-end; }
.mast nav a, .footer-row nav a { gap: 6px; }
.mast nav .icon, .footer-row nav .icon { width: 16px; height: 16px; }
.install-link:active, .release-link:active, .launch:active { filter: brightness(.91); }

.source-layout, .install-layout {
  display: grid;
  grid-template-columns: minmax(210px,.65fr) minmax(0,1.5fr);
  column-gap: clamp(38px, 7vw, 120px);
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: 25px;
}
.sources { display: grid; row-gap: 4px; }
.sources legend {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.sources label { position: relative; }
.source-name { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.sources label > span {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 49px;
  padding: 9px 13px;
  font-weight: 550;
  border-radius: 4px;
  transition: color .18s, background .18s;
}
.sources label > span::after {
  content: "→";
  margin-left: auto;
  font-family: sans-serif;
  opacity: 0;
}
.sources label:hover > span { background: var(--paper-alt); }
.sources input:checked + span { color: var(--active-ink); background: var(--active-fill); }
.sources input:checked + span::after { opacity: 1; }
.source-instructions { min-height: 275px; }
.source-instructions article + article { margin-top: 25px; }
@supports selector(:has(*)) {
  .source-instructions article { display: none; }
  .source-instructions article + article { margin-top: 0; }
  .source-layout:has([value="local"]:checked) .source-local,
  .source-layout:has([value="extension"]:checked) .source-extension,
  .source-layout:has([value="nas"]:checked) .source-nas { display: block; }
}
.source-instructions ol {
  list-style: none;
  counter-reset: instructions;
  margin: 0;
  padding: 0;
}
.source-instructions li {
  position: relative;
  counter-increment: instructions;
  padding: 5px 0 14px 38px;
  line-height: 1.8;
}
.source-instructions li::before {
  content: counter(instructions, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 9px;
  font: 13px/1.55 "Consolas", monospace;
  color: var(--muted);
}
.manual-link { text-decoration: underline; text-underline-offset: 4px; }
.sample {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 0;
  border-block: 1px solid var(--rule);
}
.sample-art { display: block; overflow: clip; border-radius: 2px; }
.sample-art img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.sample-description { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.sample strong, .sample small { display: block; }
.sample strong { font-size: 15px; font-weight: 600; }
.sample small { font-size: 13px; color: var(--muted); }
.sample-get {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
  color: var(--accent-text);
  font-size: 14px;
  white-space: nowrap;
}
.sample-get .icon { width: 18px; height: 18px; }
.sample:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.install-section { --rule: var(--night-line); }
.install-section .section-inner { padding-bottom: 45px; }
.install-section .quiet-link { color: var(--night-muted); }
.install-section .quiet-link:hover { color: var(--acid); }
.install-layout { grid-template-columns: minmax(205px,.65fr) minmax(0,1.5fr); }
.install-intro p {
  max-width: 28em;
  margin: 0 0 12px;
  color: var(--night-muted);
  font-size: 15px;
}
.install-intro strong {
  display: block;
  margin: 4px 0;
  color: var(--night-text);
  letter-spacing: -.055em;
  font-size: 25px;
  font-weight: 650;
}
.release-link { margin: 12px 0; }
.release-link .icon { width: 17px; height: 17px; }
.platforms { border-top: 0; }
.platforms summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) min(32%,10.5rem) 14px;
  gap: 12px;
  padding: 14px 0;
  min-height: 60px;
}
.platforms summary strong { font-size: clamp(17px, 1.5vw, 23px); font-weight: 600; }
.platforms summary .device {
  color: var(--night-muted);
  font-size: 14px;
  font-weight: 400;
}
.platforms summary .extension {
  color: var(--night-muted);
  justify-self: end;
  font: 12px/1.5 "Consolas", monospace;
  text-align: right;
}
.platforms summary > * { min-width: 0; overflow-wrap: anywhere; }
.platforms summary:hover { color: var(--acid); }
.platform-body {
  padding: 0 0 22px;
  color: #d1d4c7;
  font-size: 15px;
  line-height: 1.8;
}
.platform-body code {
  font-family: "Consolas", monospace;
  font-size: .93em;
  overflow-wrap: anywhere;
}
.platform-body pre {
  margin: 12px 0;
  padding: 8px 12px;
  color: var(--night-text);
  background: #2e302a;
  white-space: pre-wrap;
}
.inline-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 6px;
}
.inline-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--night-muted);
  font-size: 14px;
}
.inline-links a:first-child { color: var(--acid); }
.inline-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { padding-bottom: 20px; }
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--night-line);
  padding-block: 24px 12px;
}
.footer-row .brand { gap: 8px; }
.footer-row .brand img { width: 27px; height: 27px; }
.footer-row .brand > span { font-size: 21px; }
.footer-row nav { flex-wrap: wrap; gap: 4px clamp(15px, 2vw, 30px); }
.footer-row nav a, .credits summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--night-muted);
  font-size: 13px;
}
.credits summary { gap: 10px; }
.credits p {
  max-width: 80ch;
  color: var(--night-muted);
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.8;
}
.credits a { text-decoration: underline; text-underline-offset: 3px; }

.sponsor-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.sponsors { flex: 1; padding-block: clamp(42px, 5.8vw, 87px); }
.sponsor-layout {
  display: grid;
  grid-template-columns: minmax(250px,.7fr) minmax(0,1.3fr);
  gap: clamp(35px,7vw,108px);
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}
.sponsor-intro p {
  max-width: 28em;
  margin: 0 0 14px;
  color: var(--muted);
}
.sponsor-intro .release-link {
  margin-top: 0;
  background: var(--selected);
  color: var(--on-selected);
}
.sponsor-intro .manual-link { font-size: 14px; }
.sponsor-ledger section, .sponsor-ledger details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.sponsor-ledger section:first-child { padding-top: 0; }
.sponsor-ledger h2, .sponsor-ledger summary {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
}
.sponsor-ledger summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin: -8px 0;
}
.sponsor-ledger summary::after { content: "+"; font-weight: 400; }
.sponsor-ledger [open] > summary::after { content: "−"; }
.sponsor-ledger p { color: var(--muted); }
.sponsor-ledger ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.sponsor-ledger li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 0;
}
.sponsor-ledger small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.sponsor-ledger a { text-decoration: underline; text-underline-offset: 3px; }
.sponsor-ledger img { width: auto; max-height: 64px; }
.sponsor-page .site-footer { padding-block: 6px; }
.sponsor-page .footer-row { border: 0; padding-block: 12px; }

@media (max-width: 1200px) {
  .product-kind { display: none; }
}
@media (max-width: 940px) {
  .mast { gap: 15px; }
  .language-picker summary span { display: none; }
  .reader-layout { grid-template-columns: minmax(0,1fr) 145px; column-gap: 20px; }
  .atlas { width: 105px; }
  .byline { margin-top: 17px; }
  .byline cite { font-size: 23px; }
  .workbench { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 25px; }
  .feature-lines > div { grid-template-columns: 58px 1fr; gap: 9px; }
  .library-layout { grid-template-columns: minmax(0,.88fr) minmax(0,1.15fr); gap: 32px; }
  .source-layout, .install-layout { column-gap: 32px; grid-template-columns: minmax(170px,.6fr) minmax(0,1.5fr); }
}
@media (max-width: 700px) {
  :root { --gutter: clamp(17px, 4.6vw, 31px); }
  .mast { min-height: 63px; gap: 13px; }
  .mast nav { gap: 14px; }
  .mast nav a { font-size: 13px; }
  .mast nav .reading-nav { display: none; }
  .brand { gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .brand > span { font-size: 22px; }
  .install-link {
    min-height: 42px;
    gap: 6px;
    padding: 6px 13px;
    margin-left: 0;
    font-size: 13px;
  }
  .reader-header { padding: 14px 0; }
  .reader-title { gap: 11px; }
  .reader-label {
    gap: 5px;
    padding-right: 11px;
    font-size: 12px;
  }
  .reader-label .icon { width: 15px; height: 15px; }
  .reader-title h1 { font-size: 19px; }
  .manuscript { font-size: 12px; gap: 3px; }
  .reader-layout { grid-template-columns: minmax(0,1fr); gap: 0; }
  .stage { height: clamp(310px, min(97vw, 59svh), 464px); }
  .reader-aside {
    grid-column: 1;
    grid-row: 3;
    display: grid;
    grid-template-columns: 47px minmax(0,1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 0 12px;
    min-height: 86px;
    padding: 12px 0;
    border-bottom: 1px solid var(--night-line);
  }
  .atlas-top { display: none; }
  .atlas {
    grid-column: 1;
    grid-row: 1;
    width: 47px;
    min-width: 0;
    margin: 0;
  }
  .is-ready .atlas-buttons { display: none; }
  .byline {
    grid-column: 2;
    grid-row: 1;
    display: block;
    margin: 0;
    line-height: 1.25;
  }
  .byline cite {
    display: block;
    margin: 0 0 3px;
    font-size: 19px;
    line-height: 1.1;
  }
  .byline cite br { display: none; }
  .byline > span, .byline time { display: inline; font-size: 11px; }
  .byline time::before { content: " · "; }
  .whole-page {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    margin: 0;
    padding: 6px 11px;
  }
  .transport {
    grid-column: 1;
    grid-row: 2;
    padding: 15px 0;
    min-height: 83px;
    gap: 12px;
  }
  .transport-actions { gap: 7px; }
  .advance, .previous { min-height: 44px; }
  .advance {
    padding: 6px 13px;
    gap: 7px;
    font-size: 13px;
  }
  .previous { width: 44px; }
  .previous .icon, .advance .icon { width: 17px; }
  .playhead {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .counter {
    gap: 5px;
    min-width: 0;
    font-size: 11px;
  }
  .counter b { font-size: 22px; }
  #frame-caption { font-size: 14px; line-height: 1.55; }
  .reader-foot { min-height: 45px; }
  .reader-jump, .reader-gesture { font-size: 12px; }
  .desktop-gesture { display: none; }
  .touch-gesture { display: inline; }
  .section-inner { padding-block: 40px; }
  .section-line { align-items: center; margin-bottom: 16px; }
  .section-line h2, .sponsors h1 { font-size: 27px; }
  .quiet-link { font-size: 13px; }
  .workbench, .library-layout, .source-layout, .install-layout, .sponsor-layout { grid-template-columns: minmax(0,1fr); gap: 21px; }
  .workbench { padding-top: 16px; }
  .controls { padding: 0; }
  .controls legend { font-size: 17px; }
  .brightness { margin-block: 19px 9px; }
  .feature-lines { margin-top: 12px; }
  .feature-lines > div { grid-template-columns: 68px 1fr; padding-block: 12px; }
  .library-layout { gap: 16px; }
  .screens { grid-row: 1; }
  .library-tools summary { min-height: 55px; }
  .source-layout, .install-layout { padding-top: 17px; }
  .sources { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
  .sources legend { margin-bottom: 8px; font-size: 13px; }
  .sources label > span {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-height: 64px;
    height: 100%;
    padding: 7px 3px;
    font-size: 14px;
  }
  .sources label > span::after { display: none; }
  .sources .icon { width: 17px; height: 17px; }
  .source-instructions { min-height: 0; }
  .source-instructions li { padding-left: 29px; font-size: 15px; }
  .source-instructions li::before { top: 8px; }
  .install-layout { gap: 14px; }
  .install-intro p { max-width: none; }
  .install-intro strong {
    display: inline;
    margin: 0 10px 0 0;
    font-size: 22px;
  }
  .release-link { margin: 1px 0 10px; }
  .platforms { border-top: 1px solid var(--night-line); }
  .platforms summary { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 14px; gap: 4px 10px; }
  .platforms summary strong { grid-column: 1 / 3; grid-row: 1; }
  .platforms summary .device { grid-column: 1; grid-row: 2; font-size: 13px; }
  .platforms summary .extension { grid-column: 2; grid-row: 2; font-size: 11px; }
  .platforms summary::after { grid-column: 3; grid-row: 1 / 3; }
  .footer-row { flex-wrap: wrap; gap: 4px 20px; }
  .footer-row nav { gap: 5px 16px; }
}
@media (max-width: 430px) {
  .mast { gap: 8px; }
  .mast nav { gap: 11px; }
  .brand > span { font-size: 20px; }
  .brand img { width: 26px; height: 26px; }
  .install-link { padding-inline: 10px; }
  .reader-title { gap: 8px; }
  .reader-label { padding-right: 8px; }
  .reader-title h1 { font-size: 17px; }
  .reader-label .icon { display: none; }
  .stage { margin-inline: calc(-1 * var(--gutter)); width: calc(100% + var(--gutter) * 2); }
  .reader-aside { grid-template-columns: 40px minmax(0,1fr) auto; }
  .atlas { width: 40px; }
  .byline cite { font-size: 16px; }
  .whole-page {
    font-size: 12px;
    gap: 5px;
    padding-inline: 7px;
  }
  .sample { grid-template-columns: 53px minmax(0,1fr); gap: 2px 12px; }
  .sample-art { grid-column: 1; grid-row: 1 / 3; align-self: start; }
  .sample-description { grid-column: 2; grid-row: 1; }
  .sample-get { grid-column: 2; grid-row: 2; justify-self: start; min-height: 44px; }
  .sample strong { font-size: 14px; }
}
@media (max-width: 365px) {
  .mast nav { gap: 6px; }
  .mast nav a { font-size: 12px; }
  .mast { gap: 6px; }
  .install-link { padding-inline: 8px; }
  .brand img { width: 23px; height: 23px; }
  .brand > span { font-size: 18px; }
  .transport { flex-wrap: wrap; }
  .playhead { flex: 1 1 140px; }
  .previous { width: 41px; }
  .advance { padding: 6px 10px; }
}
@media (max-width: 860px) {
  .brand-block { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 4px; }
  .brand-block .product-kind { display: block; padding: 0; border: 0; font-size: 12px; line-height: 1.25; }
  .mast {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 0 9px;
    padding-top: 5px;
  }
  .mast nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    border-top: 1px solid var(--night-line);
  }
  .mast nav a { min-height: 38px; }
  .mast nav .reading-nav { display: inline-flex; }
  .language-picker { grid-column: 2; grid-row: 1; }
  .mast .install-link { grid-column: 3; grid-row: 1; justify-self: end; min-height: 38px; }
  .mast .install-link .icon { width: 15px; height: 15px; }
}
@media (max-width: 374px) {
  .mast .install-link .download-full { display: none; }
  .mast .install-link .download-short { display: inline; }
  .sources { grid-template-columns: minmax(0,1fr); }
  .sources label > span { display: flex; justify-content: flex-start; min-height: 44px; padding: 9px 13px; gap: 10px; }
}
@media (max-width: 640px) {
  .reader-title { flex-wrap: wrap; gap: 2px 8px; }
  .reader-header { align-items: flex-start; }
  .manuscript { flex: none; }
  .section-line { flex-wrap: wrap; gap: 2px 14px; }
}
@media (375px <= width <= 700px) {
  .source-name { text-align: center; }
}
:lang(de) .feature-lines > div, :lang(en) .feature-lines > div { grid-template-columns: minmax(85px,.34fr) minmax(0,1fr); }
.platform-body, .sources, .feature-lines { min-width: 0; overflow-wrap: anywhere; }
@media (pointer: coarse) {
  .desktop-gesture { display: none; }
  .touch-gesture { display: inline; }
}
@media (min-width: 701px) and (max-height: 580px) {
  .mast { min-height: 54px; }
  .reader-header { padding: 4px 0; }
  .stage { height: clamp(190px, 52svh, 300px); }
  .atlas {
    width: 74px;
    min-width: 0;
    margin-top: 4px;
  }
  .byline { margin: 8px 0; }
  .byline cite { font-size: 17px; margin-bottom: 3px; }
  .byline cite br { display: none; }
  .byline > span, .byline time { font-size: 11px; }
  .transport { min-height: 64px; padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
