/* ============================================================================
   Enliner — enliner.net
   Minimal black-and-white single-page site.
   No framework, no build step. Design goals: information clarity, whitespace,
   monochrome, quiet motion (parallax + reveal). Respects prefers-reduced-motion.
   ============================================================================ */

:root {
  --ink:        #0a0a0a;   /* near-black text            */
  --ink-soft:   #55555a;   /* secondary text             */
  --ink-faint:  #9a9aa0;   /* tertiary / captions        */
  --line:       #e4e4e6;   /* hairlines                  */
  --paper:      #fbfbfa;   /* off-white page             */
  --paper-2:    #ffffff;   /* pure white panels          */
  --bg-lines:   #d9d9dc;   /* decorative svg strokes     */

  --measure: 40rem;                 /* readable line length for prose */
  --content: 60rem;                 /* 960px — the centered page column */
  --gutter: clamp(1.25rem, 5vw, 6rem);

  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-3:  clamp(2.4rem, 1.8rem + 3vw, 4.5rem);
  --step-4:  clamp(3rem, 2rem + 6vw, 7rem);

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #f4f4f2;
    --ink-soft:   #a8a8ae;
    --ink-faint:  #6d6d74;
    --line:       #26262a;
    --paper:      #0a0a0b;
    --paper-2:    #111113;
    --bg-lines:   #1e1e22;
  }
}

/* ─────────────────────────────  RESET  ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }

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

/* ─────────────────────────────  BACKGROUND  ───────────────────────────── */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  color: var(--bg-lines); pointer-events: none;
}
.bg-layer {
  position: absolute; top: -10%; left: -5%;
  width: 110%; height: 130%;
  opacity: 0.9;
  will-change: transform;
}
.bg-layer .dots circle { opacity: 0.75; }
.bg-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--line) 0.5px, transparent 0.5px);
  background-size: 22px 22px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

/* ─────────────────────────────  NAV  ───────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  /* bar spans full width; content aligns to the centered page column */
  padding: 1.1rem max(var(--gutter), calc((100% - var(--content)) / 2));
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.wordmark { text-decoration: none; display: inline-flex; align-items: center; color: var(--ink); }
/* Inline Enliner wordmark: fill:currentColor → adapts to light/dark, renders on file:// too. */
.brand-logo { display: block; height: 17px; width: auto; fill: currentColor; }
.nav-links { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); }
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  font-size: var(--step--1); letter-spacing: .01em;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-current { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.nav-cta {
  color: var(--ink) !important; font-weight: 500;
  border: 1px solid var(--ink); border-radius: 100px;
  padding: .35rem .9rem;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }
@media (max-width: 620px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ─────────────────────────────  LAYOUT PRIMITIVES  ───────────────────────────── */
section { padding: clamp(4.5rem, 12vh, 11rem) var(--gutter); position: relative; }
.section-kicker, .kicker {
  font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500; margin-bottom: 1.4rem;
}
.byline { font-size: var(--step--1); color: var(--ink-faint); font-style: italic; margin: -0.8rem 0 1.4rem; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.16,.8,.3,1), transform .9s cubic-bezier(.16,.8,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────  HERO  ───────────────────────────── */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding-top: 7rem;
}
.hero-inner { width: 100%; max-width: var(--content); }
.hero-title {
  font-family: var(--serif);
  font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.02em;
  font-weight: 500; margin: .3em 0 .5em;
}
.hero-title em { font-style: italic; color: var(--ink); }
.hero-sub {
  max-width: var(--measure); color: var(--ink-soft);
  font-size: var(--step-1); line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.4rem 0 1.4rem; }
.hero-note { font-size: var(--step--1); color: var(--ink-faint); letter-spacing: .02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--step-0); font-weight: 500; text-decoration: none;
  padding: .85rem 1.6rem; border-radius: 100px; border: 1px solid var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 1px; height: 46px; background: var(--line); overflow: hidden;
}
.scroll-hint span {
  position: absolute; top: -46px; left: 0; width: 1px; height: 46px;
  background: var(--ink); animation: drop 2.4s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes drop { 0% { top: -46px; } 60%,100% { top: 46px; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint { display: none; } }

/* ─────────────────────────────  PRODUCT  ───────────────────────────── */
.product { border-top: 1px solid var(--line); background: var(--paper-2); }
.product-inner { max-width: var(--content); margin-inline: auto; }
.product-intro { margin-bottom: clamp(2.5rem, 7vw, 5rem); }
.product-title { font-family: var(--serif); font-weight: 500; font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.02em; }
.product-lead { max-width: var(--measure); color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; margin-top: 1.4rem; }
.feature { margin-bottom: clamp(3rem, 8vw, 6rem); }
.feature:last-child { margin-bottom: 0; }
.feature-num { font-family: var(--serif); font-size: var(--step-1); color: var(--ink-faint); font-weight: 500; display: block; margin-bottom: .4rem; }
.feature-callout { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.01em; max-width: var(--measure); }
.feature-desc { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; max-width: var(--measure); margin-top: .7rem; margin-bottom: 1.8rem; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--ink) 42%, transparent); }
.shot img { display: block; width: 100%; height: auto; }
@media (prefers-color-scheme: dark) { .shot { box-shadow: 0 24px 60px -28px #000; } }
.shot--inset img { padding: 0; }

/* ─────────────────────────────  PILLARS  ───────────────────────────── */
.pillars { border-top: 1px solid var(--line); }
.pillar-list { list-style: none; display: grid; gap: clamp(2.5rem, 6vw, 5rem); max-width: var(--content); margin-inline: auto; }
.pillar { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(1.5rem, 4vw, 4rem); row-gap: 1rem; align-items: start; }
.pillar-num {
  font-family: var(--serif); font-size: var(--step-2); color: var(--ink-faint);
  font-weight: 500; line-height: 1; padding-top: .1em;
}
.pillar h2 {
  font-family: var(--serif); font-weight: 500; font-size: var(--step-2);
  line-height: 1.05; letter-spacing: -0.01em;
}
.pillar-not { color: var(--ink-faint); font-style: italic; }
.pillar p { grid-column: 2; max-width: var(--measure); color: var(--ink-soft); font-size: var(--step-1); }
@media (max-width: 640px) {
  .pillar { grid-template-columns: 1fr; }
  .pillar p { grid-column: 1; }
  .pillar-num { font-size: var(--step-1); }
}

/* ─────────────────────────────  COLLABORATION  ───────────────────────────── */
.collab { border-top: 1px solid var(--line); }
.collab-inner { max-width: var(--content); margin-inline: auto; }
.collab-head { font-family: var(--serif); font-weight: 500; font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.collab-lead { max-width: var(--measure); color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 4vw, 3.2rem); margin-top: clamp(2rem, 5vw, 3.4rem); }
.collab-item h3 { font-family: var(--serif); font-weight: 500; font-size: var(--step-1); line-height: 1.1; margin-bottom: .5rem; }
.collab-item p { color: var(--ink-soft); font-size: var(--step-0); line-height: 1.6; }
.collab-more { margin-top: clamp(1.8rem, 4vw, 2.6rem); font-size: var(--step-0); }
.collab-more a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 720px) { .collab-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ─────────────────────────────  PRICE  ───────────────────────────── */
.price { border-top: 1px solid var(--line); }
.price-inner { max-width: var(--content); margin-inline: auto; }
.price-head {
  font-family: var(--serif); font-weight: 500; font-size: var(--step-3);
  line-height: 1; letter-spacing: -0.02em; margin-bottom: 2.6rem;
}
.price-compare {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  gap: clamp(1rem, 3vw, 2.5rem); text-align: left;
}
.price-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--paper-2);
  display: flex; flex-direction: column; gap: .6rem;
}
.price-us { border-color: var(--ink); }
.price-name { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.price-big { font-family: var(--serif); font-size: var(--step-3); line-height: 1; font-weight: 500; }
.price-big span { display: block; font-family: var(--sans); font-size: var(--step--1); color: var(--ink-faint); letter-spacing: .04em; margin-top: .5rem; text-transform: none; }
.price-detail { color: var(--ink-soft); font-size: var(--step-0); margin-top: auto; }
.price-them { opacity: .72; }
.price-note { max-width: var(--measure); margin: 2rem auto 0; color: var(--ink-soft); font-size: var(--step-0); line-height: 1.55; text-align: center; }
.price-versus { align-self: center; color: var(--ink-faint); font-family: var(--serif); font-style: italic; font-size: var(--step-1); }
@media (max-width: 680px) {
  .price-compare { grid-template-columns: 1fr; }
  .price-versus { padding: .3rem 0; }
}

/* ─────────────────────────────  ESSAY  ───────────────────────────── */
.essay-wrap { border-top: 1px solid var(--line); background: var(--paper-2); }
.essay, .essay-intro { max-width: var(--content); margin-inline: auto; }
.essay-intro { margin-bottom: clamp(2.5rem, 7vw, 5rem); }
.essay-title { font-family: var(--serif); font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.02em; font-weight: 500; }

.essay { font-size: var(--step-1); }
/* prose keeps a readable measure, left-aligned to the column edge */
.essay p, .essay h3 { max-width: var(--measure); }
.essay > section { padding: 0; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.essay h3 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em;
  font-size: var(--step-2); line-height: 1.08; margin: 0 0 1rem;
}
.essay section:first-child h3 { font-size: var(--step-3); }
.essay p { margin-bottom: 1.15em; color: var(--ink); line-height: 1.68; }
.essay p + p { text-indent: 0; }
.essay em { font-style: italic; }
.essay strong { font-weight: 600; }
.essay-cta { margin-top: 2.2rem; }
.essay blockquote {
  font-family: var(--serif); font-style: italic; font-size: var(--step-1);
  line-height: 1.5; color: var(--ink-soft);
  border-left: 2px solid var(--ink); padding-left: 1.4rem; margin: 1.6rem 0;
}
.essay blockquote p { color: inherit; }
.essay code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.86em; background: var(--paper); border: 1px solid var(--line);
  border-radius: 5px; padding: 0.06em 0.4em;
}

/* ─────────────────────────────  EARLY ACCESS  ───────────────────────────── */
.access { border-top: 1px solid var(--line); }
.access-inner { max-width: var(--content); margin-inline: auto; }
.access-head { font-family: var(--serif); font-weight: 500; font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.access-sub { color: var(--ink-soft); max-width: 40rem; margin: 0 0 2.2rem; }
.access-form { display: flex; gap: .6rem; max-width: 34rem; margin: 0; flex-wrap: wrap; }
.access-form input {
  flex: 1 1 14rem; min-width: 0;
  font: inherit; font-size: var(--step-0); color: var(--ink);
  padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: 100px;
  background: var(--paper-2); transition: border-color .2s ease;
}
.access-form input:focus { outline: none; border-color: var(--ink); }
.access-form button {
  font: inherit; font-weight: 500; cursor: pointer;
  padding: .85rem 1.6rem; border-radius: 100px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: transform .2s ease, background .2s ease;
}
.access-form button:hover { transform: translateY(-2px); }
.access-form button:disabled { opacity: .5; cursor: default; transform: none; }
.form-status { flex-basis: 100%; font-size: var(--step--1); min-height: 1.2em; margin-top: .4rem; }
.form-status.ok { color: var(--ink); }
.form-status.err { color: #c0392b; }
.access-fallback { margin-top: 1.6rem; font-size: var(--step--1); color: var(--ink-faint); }
.access-fallback a { color: var(--ink-soft); }

/* ─────────────────────────────  FOOTER  ───────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 3rem var(--gutter); }
.foot-inner {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: baseline;
  justify-content: space-between; max-width: var(--content); margin-inline: auto;
  font-size: var(--step--1); color: var(--ink-faint);
}
.foot-mark { height: 15px; color: var(--ink); }

/* ============================================================================
   TECH PAGE  —  /tech.html
   ============================================================================ */
.tech-header { border-bottom: 1px solid var(--line); }
.tech-header .kicker { margin-bottom: 1.1rem; }
.tech-title {
  font-family: var(--serif); font-weight: 500; font-size: var(--step-3);
  line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.tech-lead { max-width: var(--measure); color: var(--ink-soft); font-size: var(--step-1); }

/* quick-stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem);
  max-width: var(--content); margin-inline: auto; margin-top: 2.8rem;
}
.stat { border-top: 1px solid var(--ink); padding-top: .8rem; }
.stat-num { font-family: var(--serif); font-size: var(--step-2); line-height: 1; font-weight: 500; }
.stat-label { font-size: var(--step--1); color: var(--ink-faint); margin-top: .4rem; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* sync architecture diagram */
.sync-diagram { max-width: var(--content); margin: 2.6rem auto 0.5rem; color: var(--ink); }
.sync-diagram svg { width: 100%; height: auto; display: block; }
.dg-node { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.25; filter: url(#dgShadow); }
.dg-node--planned { stroke: var(--ink-faint); stroke-dasharray: 6 5; filter: none; }
.dg-wire { stroke: currentColor; stroke-width: 1.5; opacity: 0.32; fill: none; }
.dg-arrow { stroke: currentColor; stroke-width: 1.5; opacity: 0.45; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dg-name { fill: currentColor; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; text-anchor: middle; }
.dg-sub { fill: var(--ink-faint); font-family: var(--sans); font-size: 12.5px; text-anchor: middle; }
.dg-eyebrow { fill: var(--ink-faint); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.dg-wire-label { fill: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .02em; text-anchor: middle; }
.dg-cap { color: var(--ink-soft); font-size: var(--step--1); max-width: var(--measure); margin: 1.2rem 0 0; }

/* a titled technical block */
.tech { border-top: 1px solid var(--line); }
.tech-inner { max-width: var(--content); margin-inline: auto; }
.tech h2 {
  font-family: var(--serif); font-weight: 500; font-size: var(--step-2);
  line-height: 1.05; letter-spacing: -0.01em; margin-bottom: .4rem;
}
.tech-eyebrow { font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin-bottom: 1.2rem; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem) clamp(2rem, 5vw, 4rem); margin-top: 2rem; }
@media (max-width: 720px) { .tech-grid { grid-template-columns: 1fr; } }
.feat h3 {
  font-size: var(--step-0); font-weight: 600; letter-spacing: -0.005em;
  margin-bottom: .5rem; display: flex; align-items: baseline; gap: .6ch;
}
.feat h3 .tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500;
  font-size: .72em; color: var(--ink-faint); border: 1px solid var(--line);
  border-radius: 5px; padding: .04em .4em; white-space: nowrap;
}
.feat p { color: var(--ink-soft); font-size: var(--step-0); line-height: 1.62; max-width: 34rem; }
.feat p + p { margin-top: .7rem; }
.feat code, .tech code, .dz-body code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.86em; background: var(--paper); border: 1px solid var(--line);
  border-radius: 5px; padding: 0.04em 0.36em;
}
.tech-wrap-dark { background: var(--paper-2); }

/* decision-log call-to-open panel */
.dz-cta { border-top: 1px solid var(--line); }
.dz-cta-inner { max-width: var(--content); margin-inline: auto; }
.dz-cta h2 { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); line-height: 1.05; margin-bottom: .8rem; }
.dz-cta p { color: var(--ink-soft); max-width: var(--measure); margin-bottom: 1.6rem; }
.dz-open-btn {
  display: inline-flex; align-items: center; gap: .6ch; cursor: pointer;
  font: inherit; font-size: var(--step-0); font-weight: 500;
  padding: .85rem 1.6rem; border-radius: 100px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.dz-open-btn:hover { transform: translateY(-2px); background: var(--ink-soft); }

/* ============================================================================
   DECISIONS OVERLAY  —  #decisions
   ============================================================================ */
.dz {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(0px, 3vw, 2.5rem);
  background: color-mix(in srgb, var(--ink) 42%, transparent);
  opacity: 0; transition: opacity .28s ease;
}
.dz.open { opacity: 1; }
.dz[hidden] { display: none; }
.dz-panel {
  display: flex; flex-direction: column; width: 100%; max-width: 74rem; height: 92vh;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--ink) 45%, transparent);
  transform: translateY(12px) scale(.99); transition: transform .28s cubic-bezier(.16,.8,.3,1);
}
.dz.open .dz-panel { transform: none; }
.dz-head {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.3rem; border-bottom: 1px solid var(--line);
}
.dz-head h2 { font-family: var(--serif); font-weight: 500; font-size: var(--step-1); margin-right: auto; }
.dz-count { font-family: var(--sans); font-size: var(--step--1); font-weight: 400; color: var(--ink-faint); }
.dz-filter {
  font: inherit; font-size: var(--step-0); color: var(--ink);
  padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 100px;
  background: var(--paper-2); width: min(18rem, 42vw);
}
.dz-filter:focus { outline: none; border-color: var(--ink); }
.dz-close {
  cursor: pointer; font: inherit; line-height: 1; font-size: 1.3rem;
  width: 2.1rem; height: 2.1rem; border-radius: 100px;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink);
}
.dz-close:hover { border-color: var(--ink); }
.dz-split { display: grid; grid-template-columns: 20rem 1fr; min-height: 0; flex: 1; }
.dz-toc { border-right: 1px solid var(--line); overflow-y: auto; padding: .8rem 0; }
.dz-toc-list { list-style: none; }
.dz-toc-item {
  cursor: pointer; padding: .35rem 1.3rem; font-size: var(--step--1);
  color: var(--ink-soft); line-height: 1.35; border-left: 2px solid transparent;
}
.dz-toc-item:hover { color: var(--ink); border-left-color: var(--ink); background: var(--paper-2); }
.dz-l3 { padding-left: 2.2rem; color: var(--ink-faint); }
.dz-content { overflow-y: auto; padding: clamp(1.4rem, 3vw, 2.6rem); }
.dz-body { max-width: 44rem; }
.dz-body h1 { font-family: var(--serif); font-size: var(--step-2); font-weight: 500; margin: 0 0 1rem; }
.dz-body h2 {
  font-family: var(--serif); font-size: var(--step-1); font-weight: 500;
  line-height: 1.2; margin: 2.2rem 0 .6rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.dz-body h3 { font-size: var(--step-0); font-weight: 600; margin: 1.4rem 0 .5rem; }
.dz-body h4 { font-size: var(--step-0); font-weight: 600; color: var(--ink-soft); margin: 1.1rem 0 .4rem; }
.dz-body p { color: var(--ink); font-size: var(--step-0); line-height: 1.6; margin-bottom: .8em; }
.dz-body ul, .dz-body ol { margin: 0 0 .9em 1.2em; }
.dz-body li { font-size: var(--step-0); line-height: 1.55; margin-bottom: .3em; }
.dz-body blockquote { border-left: 2px solid var(--line); padding-left: 1rem; color: var(--ink-soft); margin: .8em 0; }
.dz-body pre {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px;
  padding: .9rem 1rem; overflow-x: auto; margin: .8em 0;
}
.dz-body pre code { background: none; border: 0; padding: 0; font-size: .82rem; }
.dz-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
.dz-body a { color: var(--ink); text-underline-offset: 2px; }
.dz-note { color: var(--ink-faint); }
@media (max-width: 700px) {
  .dz-split { grid-template-columns: 1fr; }
  .dz-toc { display: none; }
  .dz-panel { height: 96vh; }
}
