/* The reading pages: support, privacy, terms and the Impressum.
   The same black, type and dots as the main page, with no scripts: the
   motion here is CSS only, and where a browser cannot do it the page simply
   stands still. */

:root { --ink: #fff; --dim: #8d8d8d; --soft: #c9c9c9; --ground: #000; --card: #0d0d0e; --edge: #1f1f22; --rule: #262626; --unlit: #242424; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.7 "Space Mono", ui-monospace, monospace; }
a { color: var(--ink); text-decoration-style: dotted; text-underline-offset: 3px; }
a:hover { text-decoration-style: solid; }
::selection { background: var(--ink); color: var(--ground); }

/* A line of dots along the top that fills as you read. */
.progress { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 3px; transform-origin: left center; transform: scaleX(0);
  background: radial-gradient(circle, var(--ink) 1.2px, transparent 1.6px) 0 50% / 6px 3px repeat-x; }
@supports (animation-timeline: scroll()) {
  .progress { animation: read linear both; animation-timeline: scroll(root); }
  @keyframes read { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* The bar, as on the main page. */
.bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 26px; padding: 16px 28px;
  background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid #111; }
.brand { display: flex; align-items: center; gap: 10px; font: 900 22px/1 "Doto", ui-monospace, monospace; text-decoration: none; letter-spacing: -.5px; view-transition-name: brand; }
@view-transition { navigation: auto; }
.brand img { width: 26px; height: 26px; }
.links { margin-left: auto; display: flex; gap: 22px; }
.links a { color: var(--dim); text-decoration: none; font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase; transition: color .2s; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.links a[aria-current="page"]::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin-right: 7px; transform: translateY(-2px); }

/* The page. */
.page { max-width: 1080px; margin: 0 auto; padding: 72px 28px 96px; display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 64px; justify-content: center; }
.page.single { grid-template-columns: minmax(0, 680px); }
header.lead { grid-column: 1 / -1; max-width: 760px; }
.kicker { font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
h1 { font: 900 clamp(48px, 7vw, 88px)/1 "Doto", ui-monospace, monospace; letter-spacing: -1.5px; margin: 0 0 14px; }
.subtitle { color: var(--soft); font-size: 18px; margin: 0 0 6px; }
.updated { color: var(--dim); font-size: 13px; margin: 0; }
.stamp { display: grid; grid-template-columns: repeat(10, 7px); gap: 5px; width: max-content; margin: 0 0 30px; }
.stamp i { width: 7px; height: 7px; border-radius: 50%; background: var(--unlit); }
.stamp i:nth-child(n+61) { background: var(--ink); }

/* On this page. */
.toc { position: sticky; top: 100px; align-self: start; font-size: 13px; }
.toc p { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: part; }
.toc li { counter-increment: part; display: grid; grid-template-columns: 28px 1fr; }
.toc li::before { content: counter(part, decimal-leading-zero); color: #555; font-size: 11px; line-height: 2; }
.toc a { color: var(--dim); text-decoration: none; line-height: 1.5; transition: color .2s; }
.toc a:hover { color: var(--ink); }
/* Where the browser can tell, the section being read is lit in the list. */
.toc ol { scroll-target-group: auto; }
.toc a:target-current { color: var(--ink); }
.toc li:has(a:target-current)::before { color: var(--ink); }

/* The sections. */
article { min-width: 0; }
section { background: var(--card); border: 1px solid var(--edge); border-radius: 22px; padding: 26px 28px; margin: 0 0 16px; }
section h2 { font: 800 22px/1.25 "Doto", ui-monospace, monospace; margin: 0 0 14px; letter-spacing: -.2px; }
section p { margin: 0 0 14px; color: var(--soft); }
section p:last-child, section ul:last-child, section dl:last-child { margin-bottom: 0; }
section ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
section li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; color: var(--soft); }
section li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transform: translateY(11px); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0 0 14px; }
dt { color: var(--dim); }
dd { margin: 0; }
dd.missing { color: #6a6a6a; font-style: italic; }
blockquote { margin: 0 0 14px; padding: 4px 0 4px 16px; border-left: 2px dotted #444; color: var(--soft); }
.back { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--dim); text-decoration: none; font-size: 13px; }
.back::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; }
.back:hover { color: var(--ink); }

footer { border-top: 1px solid var(--rule); margin: 0 5vw; padding: 22px 0 40px; display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--dim); }
footer .grow { flex: 1; }

/* Motion: the top arrives, and each section rises as it scrolls in. */
@media (prefers-reduced-motion: no-preference) {
  header.lead > *, .toc { animation: arrive .8s cubic-bezier(.2, .7, .2, 1) both; }
  header.lead > :nth-child(2) { animation-delay: .06s; }
  header.lead > :nth-child(3) { animation-delay: .12s; }
  header.lead > :nth-child(4) { animation-delay: .18s; }
  header.lead > :nth-child(5) { animation-delay: .24s; }
  .toc { animation-delay: .3s; }
  .stamp i { animation: light .5s ease both; }
  .stamp i:nth-child(n+61) { animation-name: lit; }
  @keyframes arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes light { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes lit { 0% { background: var(--unlit); transform: scale(.3); } 60% { transform: scale(1.2); } 100% { background: var(--ink); transform: none; } }
  @supports (animation-timeline: view()) {
    section { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }
  }
}
/* The stamp's dots light one after another. */
.stamp i:nth-child(10n+1) { animation-delay: .30s; } .stamp i:nth-child(10n+2) { animation-delay: .34s; }
.stamp i:nth-child(10n+3) { animation-delay: .38s; } .stamp i:nth-child(10n+4) { animation-delay: .42s; }
.stamp i:nth-child(10n+5) { animation-delay: .46s; } .stamp i:nth-child(10n+6) { animation-delay: .50s; }
.stamp i:nth-child(10n+7) { animation-delay: .54s; } .stamp i:nth-child(10n+8) { animation-delay: .58s; }
.stamp i:nth-child(10n+9) { animation-delay: .62s; } .stamp i:nth-child(10n)   { animation-delay: .66s; }

@media (max-width: 860px) {
  .bar { padding: 12px 18px; gap: 14px; }
  .links { gap: 14px; }
  .links a:not([aria-current="page"]):nth-child(n+3) { display: none; }
  .page { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 48px 20px 72px; }
  .toc { position: static; margin: 0 -20px; }
  .toc p { padding: 0 20px; }
  .toc ol { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 6px; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc li { display: block; flex: none; }
  .toc li::before { display: none; }
  .toc a { display: block; white-space: nowrap; border: 1px dotted #3a3a3a; border-radius: 999px; padding: 6px 12px; font-size: 12px; }
  section { padding: 22px 20px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dt { margin-top: 8px; }
}
/* A small hundred in the corner fills as you read, from the bottom left like
   the app's; tapping it goes back to the top. Only where the browser can tie
   an animation to the scroll. */
.read-board { position: fixed; z-index: 45; right: 22px; bottom: 22px; display: none; grid-template-columns: repeat(10, 4px); gap: 2px; padding: 9px; border-radius: 12px;
  background: rgba(13, 13, 14, .82); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-decoration: none; transition: border-color .2s; }
.read-board:hover, .read-board:focus-visible { border-color: #555; outline: none; }
.read-board i { width: 4px; height: 4px; border-radius: 50%; background: var(--unlit); }
@supports (animation-timeline: scroll()) {
  .read-board { display: grid; animation: board-in linear both; animation-timeline: scroll(root); animation-range: 0 260px; }
  @keyframes board-in { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
  .read-board i { animation: dot-read linear both; animation-timeline: scroll(root); }
  @keyframes dot-read { from { background: var(--unlit); } to { background: var(--ink); } }
  .read-board i:nth-child(1) { animation-range: 90% 91%; }
  .read-board i:nth-child(2) { animation-range: 91% 92%; }
  .read-board i:nth-child(3) { animation-range: 92% 93%; }
  .read-board i:nth-child(4) { animation-range: 93% 94%; }
  .read-board i:nth-child(5) { animation-range: 94% 95%; }
  .read-board i:nth-child(6) { animation-range: 95% 96%; }
  .read-board i:nth-child(7) { animation-range: 96% 97%; }
  .read-board i:nth-child(8) { animation-range: 97% 98%; }
  .read-board i:nth-child(9) { animation-range: 98% 99%; }
  .read-board i:nth-child(10) { animation-range: 99% 100%; }
  .read-board i:nth-child(11) { animation-range: 80% 81%; }
  .read-board i:nth-child(12) { animation-range: 81% 82%; }
  .read-board i:nth-child(13) { animation-range: 82% 83%; }
  .read-board i:nth-child(14) { animation-range: 83% 84%; }
  .read-board i:nth-child(15) { animation-range: 84% 85%; }
  .read-board i:nth-child(16) { animation-range: 85% 86%; }
  .read-board i:nth-child(17) { animation-range: 86% 87%; }
  .read-board i:nth-child(18) { animation-range: 87% 88%; }
  .read-board i:nth-child(19) { animation-range: 88% 89%; }
  .read-board i:nth-child(20) { animation-range: 89% 90%; }
  .read-board i:nth-child(21) { animation-range: 70% 71%; }
  .read-board i:nth-child(22) { animation-range: 71% 72%; }
  .read-board i:nth-child(23) { animation-range: 72% 73%; }
  .read-board i:nth-child(24) { animation-range: 73% 74%; }
  .read-board i:nth-child(25) { animation-range: 74% 75%; }
  .read-board i:nth-child(26) { animation-range: 75% 76%; }
  .read-board i:nth-child(27) { animation-range: 76% 77%; }
  .read-board i:nth-child(28) { animation-range: 77% 78%; }
  .read-board i:nth-child(29) { animation-range: 78% 79%; }
  .read-board i:nth-child(30) { animation-range: 79% 80%; }
  .read-board i:nth-child(31) { animation-range: 60% 61%; }
  .read-board i:nth-child(32) { animation-range: 61% 62%; }
  .read-board i:nth-child(33) { animation-range: 62% 63%; }
  .read-board i:nth-child(34) { animation-range: 63% 64%; }
  .read-board i:nth-child(35) { animation-range: 64% 65%; }
  .read-board i:nth-child(36) { animation-range: 65% 66%; }
  .read-board i:nth-child(37) { animation-range: 66% 67%; }
  .read-board i:nth-child(38) { animation-range: 67% 68%; }
  .read-board i:nth-child(39) { animation-range: 68% 69%; }
  .read-board i:nth-child(40) { animation-range: 69% 70%; }
  .read-board i:nth-child(41) { animation-range: 50% 51%; }
  .read-board i:nth-child(42) { animation-range: 51% 52%; }
  .read-board i:nth-child(43) { animation-range: 52% 53%; }
  .read-board i:nth-child(44) { animation-range: 53% 54%; }
  .read-board i:nth-child(45) { animation-range: 54% 55%; }
  .read-board i:nth-child(46) { animation-range: 55% 56%; }
  .read-board i:nth-child(47) { animation-range: 56% 57%; }
  .read-board i:nth-child(48) { animation-range: 57% 58%; }
  .read-board i:nth-child(49) { animation-range: 58% 59%; }
  .read-board i:nth-child(50) { animation-range: 59% 60%; }
  .read-board i:nth-child(51) { animation-range: 40% 41%; }
  .read-board i:nth-child(52) { animation-range: 41% 42%; }
  .read-board i:nth-child(53) { animation-range: 42% 43%; }
  .read-board i:nth-child(54) { animation-range: 43% 44%; }
  .read-board i:nth-child(55) { animation-range: 44% 45%; }
  .read-board i:nth-child(56) { animation-range: 45% 46%; }
  .read-board i:nth-child(57) { animation-range: 46% 47%; }
  .read-board i:nth-child(58) { animation-range: 47% 48%; }
  .read-board i:nth-child(59) { animation-range: 48% 49%; }
  .read-board i:nth-child(60) { animation-range: 49% 50%; }
  .read-board i:nth-child(61) { animation-range: 30% 31%; }
  .read-board i:nth-child(62) { animation-range: 31% 32%; }
  .read-board i:nth-child(63) { animation-range: 32% 33%; }
  .read-board i:nth-child(64) { animation-range: 33% 34%; }
  .read-board i:nth-child(65) { animation-range: 34% 35%; }
  .read-board i:nth-child(66) { animation-range: 35% 36%; }
  .read-board i:nth-child(67) { animation-range: 36% 37%; }
  .read-board i:nth-child(68) { animation-range: 37% 38%; }
  .read-board i:nth-child(69) { animation-range: 38% 39%; }
  .read-board i:nth-child(70) { animation-range: 39% 40%; }
  .read-board i:nth-child(71) { animation-range: 20% 21%; }
  .read-board i:nth-child(72) { animation-range: 21% 22%; }
  .read-board i:nth-child(73) { animation-range: 22% 23%; }
  .read-board i:nth-child(74) { animation-range: 23% 24%; }
  .read-board i:nth-child(75) { animation-range: 24% 25%; }
  .read-board i:nth-child(76) { animation-range: 25% 26%; }
  .read-board i:nth-child(77) { animation-range: 26% 27%; }
  .read-board i:nth-child(78) { animation-range: 27% 28%; }
  .read-board i:nth-child(79) { animation-range: 28% 29%; }
  .read-board i:nth-child(80) { animation-range: 29% 30%; }
  .read-board i:nth-child(81) { animation-range: 10% 11%; }
  .read-board i:nth-child(82) { animation-range: 11% 12%; }
  .read-board i:nth-child(83) { animation-range: 12% 13%; }
  .read-board i:nth-child(84) { animation-range: 13% 14%; }
  .read-board i:nth-child(85) { animation-range: 14% 15%; }
  .read-board i:nth-child(86) { animation-range: 15% 16%; }
  .read-board i:nth-child(87) { animation-range: 16% 17%; }
  .read-board i:nth-child(88) { animation-range: 17% 18%; }
  .read-board i:nth-child(89) { animation-range: 18% 19%; }
  .read-board i:nth-child(90) { animation-range: 19% 20%; }
  .read-board i:nth-child(91) { animation-range: 0% 1%; }
  .read-board i:nth-child(92) { animation-range: 1% 2%; }
  .read-board i:nth-child(93) { animation-range: 2% 3%; }
  .read-board i:nth-child(94) { animation-range: 3% 4%; }
  .read-board i:nth-child(95) { animation-range: 4% 5%; }
  .read-board i:nth-child(96) { animation-range: 5% 6%; }
  .read-board i:nth-child(97) { animation-range: 6% 7%; }
  .read-board i:nth-child(98) { animation-range: 7% 8%; }
  .read-board i:nth-child(99) { animation-range: 8% 9%; }
  .read-board i:nth-child(100) { animation-range: 9% 10%; }
}
@media (max-width: 860px) { .read-board { right: 14px; bottom: 14px; } }
@media print {
  :root { --ink: #000; --soft: #222; --dim: #555; --ground: #fff; --card: #fff; --edge: #ccc; }
  .bar, .progress, .toc, footer, .read-board { display: none !important; }
  .page { display: block; padding: 0; }
  section { break-inside: avoid; }
}
