/* pebble.dixon.cx — one stylesheet for the landing page, the guide and the docs. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0e0e0d;
  --ink-2: #2a2a28;
  --muted: #6a6964;
  --line: #e4e2dc;
  --paper: #fbfaf7;
  --stone: #f2f0ea;
  --stone-2: #e9e6de;
  --card: #ffffff;
  --term: #141413;
  --term-ink: #ecebe6;
  --term-dim: #8d8c86;
  --ok: #3f8f5a;
  --warn: #b7791f;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 40px -12px rgb(0 0 0 / .18);
  --max: 1180px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1f0ec; --ink-2: #d6d5cf; --muted: #9b9a94; --line: #2c2c29;
    --paper: #111110; --stone: #1a1a18; --stone-2: #232320; --card: #171716;
    --term: #0a0a09; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 40px -12px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f1f0ec; --ink-2: #d6d5cf; --muted: #9b9a94; --line: #2c2c29;
  --paper: #111110; --stone: #1a1a18; --stone-2: #232320; --card: #171716;
  --term: #0a0a09; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 40px -12px rgb(0 0 0 / .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--stone); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 21px; letter-spacing: -.03em; text-decoration: none; }
.brand .dot { color: var(--muted); }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); transition: transform .15s, box-shadow .15s; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgb(0 0 0 / .5); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { padding: 8px 15px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink); }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 820px; height: 640px; z-index: -1;
  background: radial-gradient(closest-side, var(--stone-2), transparent 70%);
  border-radius: 50%; filter: blur(10px);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 13.5px; color: var(--muted); text-decoration: none;
}
.pill b { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 650; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.08; margin: 0; font-weight: 780; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); margin: 22px 0 22px; letter-spacing: -.05em; }
.hero h1 em { font-style: normal; color: var(--muted); }
.lede { font-size: clamp(18px, 1.6vw, 20.5px); color: var(--ink-2); max-width: 36em; margin: 0 0 30px; line-height: 1.55; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 14px; }
.hero-facts span::before { content: "●"; font-size: 8px; vertical-align: 3px; margin-right: 8px; color: var(--ink); }

/* ---------- terminal ---------- */
.term {
  background: var(--term); color: var(--term-ink); border-radius: 16px; box-shadow: var(--shadow);
  font: 13.5px/1.6 var(--mono); overflow: hidden; border: 1px solid rgb(255 255 255 / .06);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgb(255 255 255 / .07); color: var(--term-dim); font-size: 12.5px; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a37; display: inline-block; }
.term-bar span { margin-left: 10px; }
.term-body { padding: 18px 20px 22px; min-height: 560px; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 600px) { .term { font-size: 12px; } .term-body { min-height: 600px; padding: 14px; } }
.term .p { color: var(--term-dim); }
.term .c { color: #fff; }
.term .g { color: #8fd19e; }
.term .r { color: #f2a3a3; }
.term .y { color: #f0cf85; }
.term .d { color: var(--term-dim); }
.term .b { font-weight: 700; color: #fff; }
.caret { display: inline-block; width: .6em; height: 1.15em; background: var(--term-ink); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.countdown { display: inline-block; padding: 0 6px; border-radius: 4px; background: rgb(240 207 133 / .14); color: #f0cf85; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.band { background: var(--stone); border-block: 1px solid var(--line); }
.dark { background: #0e0e0d; color: #ecebe6; --line: #2a2a27; --muted: #9a9993; --card: #171716; --stone: #1b1b19; --ink: #f1f0ec; --paper: #0e0e0d; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.h2 { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 20px; letter-spacing: -.045em; }
.sub { font-size: 19px; color: var(--muted); max-width: 40em; margin: 0; }
.head { margin-bottom: 52px; }
.head.center { text-align: center; } .head.center .sub { margin-inline: auto; }

/* golden loop */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
@media (max-width: 900px) { .loop { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font: 600 13px var(--mono); color: var(--muted); }
.step h3 { font-size: 22px; margin: 14px 0 8px; }
.step code { white-space: nowrap; }
.step p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.rollback {
  margin-top: 16px; border: 1.5px dashed var(--ink); border-radius: var(--radius); padding: 22px 26px;
  display: flex; gap: 20px; align-items: center; background: repeating-linear-gradient(-45deg, transparent 0 12px, color-mix(in srgb, var(--stone-2) 55%, transparent) 12px 24px);
}
.rollback strong { font-size: 19px; letter-spacing: -.02em; }
.rollback p { margin: 4px 0 0; color: var(--muted); }
.rollback .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 22px; }
@media (max-width: 520px) { .rollback { flex-direction: column; align-items: flex-start; } }

/* compile diagram */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split.rev > :first-child { order: 0; } }
.compile { display: grid; gap: 10px; font: 14px var(--mono); }
.compile .src { background: var(--ink); color: var(--paper); padding: 16px 20px; border-radius: 14px; display: flex; justify-content: space-between; }
.compile .arrow { text-align: center; color: var(--muted); font-size: 13px; }
.compile .outs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 520px) { .compile .outs { grid-template-columns: 1fr 1fr; } }
.compile .outs div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.compile .outs small { display: block; color: var(--muted); font-family: var(--sans); font-size: 12px; margin-top: 2px; }
.compile .os { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; display: flex; justify-content: space-between; color: var(--muted); background: var(--stone); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.dark .ticks li::before { filter: invert(1); }
.ticks b { display: block; }
.ticks span { color: var(--muted); }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--stone); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 18px; }
.card .ic svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* tour */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.tabs button {
  border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 600 14px var(--sans);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.tabs button:hover { color: var(--ink); border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shot { margin: 0; }
.frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.frame-bar { height: 34px; background: #f3f2ee; border-bottom: 1px solid #e3e1db; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d4ce; }
.frame-bar span { margin: 0 auto; font: 12px var(--mono); color: #8a8984; background: #fff; border: 1px solid #e3e1db; border-radius: 6px; padding: 2px 40px; }
@media (max-width: 600px) { .frame-bar span { padding: 2px 12px; } }
.shot figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 46em; margin-inline: auto; }
.shot figcaption b { color: var(--ink); }
[role="tabpanel"][hidden] { display: none; }

/* per-device */
.egress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0 0; }
@media (max-width: 520px) { .egress { grid-template-columns: 1fr; } }
.egress div { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--card); }
.egress b { display: block; font-size: 17px; letter-spacing: -.02em; }
.egress code { display: inline-block; margin: 6px 0 8px; }
.egress span { color: var(--muted); font-size: 14.5px; }

/* outage piles */
.piles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
@media (max-width: 520px) { .piles { grid-template-columns: 1fr; } }
.piles div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
.piles b { display: block; margin-bottom: 4px; }
.piles span { color: var(--muted); font-size: 14.5px; }
.piles div:nth-child(3) { border-style: dashed; }

/* security list */
.sec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 10px; }
@media (max-width: 760px) { .sec { grid-template-columns: 1fr; } }
.sec div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
@media (max-width: 520px) { .sec div { grid-template-columns: 1fr; gap: 4px; } }
.sec b { font-weight: 650; }
.sec span { color: var(--muted); font-size: 15.5px; }

/* status */
.status { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.status th, .status td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.status th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; background: var(--stone); }
.status tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 650; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.tag.done { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tag.todo { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.honesty { border: 1.5px dashed var(--ink); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 28px; background: var(--card); }
.honesty strong { font-size: 18px; }
.honesty p { margin: 6px 0 0; color: var(--ink-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

/* not / get started */
.nots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .nots { grid-template-columns: 1fr; } }
.nots ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.nots li { padding-left: 26px; position: relative; color: var(--ink-2); }
.nots .yes li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.nots .no li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.nots .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
.nots h3 { margin-bottom: 18px; }

.start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 900px) { .start { grid-template-columns: 1fr; } }
.start > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--card); }
.start h3 { font-size: 19px; margin: 0 0 6px; }
.start h3::before { counter-increment: s; content: counter(s) ". "; color: var(--muted); }
.start p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.start pre { margin: 0; }

/* code blocks */
pre {
  background: var(--term); color: var(--term-ink); padding: 18px 20px; border-radius: 14px; overflow-x: auto;
  line-height: 1.6; position: relative; border: 1px solid rgb(255 255 255 / .05);
}
pre code { background: none; border: 0; padding: 0; font-size: 13.5px; white-space: pre; }
.copy {
  position: absolute; top: 8px; right: 8px; font: 600 12px var(--sans); color: var(--term-dim);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); border-radius: 8px; padding: 4px 9px;
  cursor: pointer; opacity: 0; transition: opacity .15s;
}
pre:hover .copy, .copy:focus { opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }
.tok-k { color: #9ecbff; } .tok-s { color: #b5e0a8; } .tok-c { color: #7d7c76; font-style: italic; } .tok-n { color: #f0cf85; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 19px; font-weight: 650; letter-spacing: -.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* final cta */
.final { text-align: center; padding: 120px 0; }
.final .h2 { font-size: clamp(36px, 5.5vw, 68px); }
.final .cta { justify-content: center; margin-top: 34px; }
.pebble-mark { width: 120px; height: 120px; margin: 0 auto 36px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: 14.5px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

/* lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(1600px, 96vw); max-height: 94vh; }
dialog.lb::backdrop { background: rgb(10 10 9 / .86); backdrop-filter: blur(4px); }
dialog.lb img { max-height: 90vh; width: auto; border-radius: 10px; margin: 0 auto; }
dialog.lb p { color: #e6e5e0; text-align: center; margin: 12px 0 0; font-size: 15px; }
dialog.lb button { position: fixed; top: 16px; right: 20px; background: rgb(255 255 255 / .12); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; cursor: pointer; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 48px; padding-top: 40px; padding-bottom: 80px; }
@media (max-width: 1180px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; } }
.side { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: 14.5px; }
@media (max-width: 860px) { .side { position: static; max-height: none; } .side details:not([open]) ul { display: none; } }
.side summary { list-style: none; font-weight: 650; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; display: none; }
@media (max-width: 860px) { .side summary { display: block; } }
.side h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 22px 0 8px; }
.side h4:first-child { margin-top: 0; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: block; padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.side a:hover { color: var(--ink); background: var(--stone); }
.side a[aria-current="page"] { color: var(--ink); background: var(--stone); font-weight: 600; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 13.5px; max-height: calc(100vh - 110px); overflow: auto; }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.on { color: var(--ink); }
.prose { max-width: 780px; min-width: 0; }
.prose .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.prose .crumbs a { text-decoration: none; }
.prose h1 { font-size: clamp(34px, 4.6vw, 50px); letter-spacing: -.045em; margin: 0 0 20px; }
.prose h2 { font-size: 28px; margin: 56px 0 14px; padding-top: 8px; }
.prose h3 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -.02em; }
.prose h4 { font-size: 17px; margin: 28px 0 8px; letter-spacing: -.01em; }
.prose h2 a.anchor, .prose h3 a.anchor { color: var(--muted); text-decoration: none; margin-left: 8px; opacity: 0; font-weight: 400; }
.prose h2:hover a.anchor, .prose h3:hover a.anchor { opacity: 1; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose li input[type=checkbox] { margin-right: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose blockquote { margin: 22px 0; padding: 16px 22px; border: 1px solid var(--line); border-left: 3px solid var(--ink); background: var(--card); border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; margin: 20px 0; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-size: 13px; color: var(--muted); font-weight: 650; border-bottom-color: var(--ink); }
.prose td code { white-space: normal; word-break: break-word; }
.prose img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 24px 0 8px; cursor: zoom-in; }
.prose p > em:only-child { display: block; color: var(--muted); font-size: 14.5px; font-style: normal; text-align: center; margin-top: -2px; }
.prose img.phone { max-width: 300px; margin-inline: auto; }
.docnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.docnav a { text-decoration: none; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; flex: 1; max-width: 48%; }
.docnav a:hover { border-color: var(--ink); }
.docnav small { display: block; color: var(--muted); }
.docnav .next { text-align: right; margin-left: auto; }
.docs-index { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
@media (max-width: 600px) { .docs-index { grid-template-columns: 1fr; } }
.docs-index a { display: block; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 18px 20px; text-decoration: none; transition: border-color .15s; }
.docs-index a:hover { border-color: var(--ink); }
.docs-index b { display: block; letter-spacing: -.01em; }
.docs-index span { color: var(--muted); font-size: 14.5px; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf h1 { font-size: clamp(60px, 12vw, 140px); letter-spacing: -.06em; }
