/* installkite site: the paper kite workshop.
   Monsoon (monsooncss@0.2.0) provides the theme, utilities and components.
   This file adds the paper world: a dawn sky in light mode and a lantern lit
   dusk in dark mode, paper layers with soft shadows, fold lines, dashed cut
   lines, kite strings, the origami fold demo, the assembly manual, the
   cutting mat and VS Code style code frames. */

:root {
  --seed: #e0552f;
  --bg: #f7efe2;
  --paper: #fffaf1;
  --paper-2: #f6ecdc;
  --kraft: #e8d3b0;
  --wood: #d9b88a;
  --wood-deep: #b38c5c;
  --ink: #2b2420;
  --ink-2: #6b5a4e;
  --line: rgb(43 36 32 / .14);
  --kite: #2f78d8;
  --kite-ink: #1f5fb8;
  --pers: #ec6a42;
  --pers-ink: #b8461f;
  --must: #efbb45;
  --must-deep: #c48d14;
  --sage: #8db897;
  --sage-deep: #4f8a62;
  --rose: #f2a3a8;
  --rose-deep: #c75b66;
  --sky-1: #fbd2bd;
  --sky-2: #fde5cf;
  --sky-3: #f7efe2;
  --dusk-1: #efe1ef;
  --dusk-2: #fbe3d3;
  --hill-1: #c5dcc0;
  --hill-2: #a6c9a8;
  --hill-shade: rgb(60 80 50 / .16);
  --ground: #efe3cf;
  --note: #fff2c9;
  --mat: #3f7d64;
  --mat-line: rgb(214 240 226 / .28);
  --mat-line-2: rgb(214 240 226 / .55);
  --phone: #2b2420;
  --sun: #ffb36b;
  --sun-r1: rgb(255 179 107 / .3);
  --sun-r2: rgb(255 179 107 / .14);
  --shade: 107 68 38;
  --sh-1: 0 1px 1px rgb(var(--shade) / .1), 0 6px 14px -8px rgb(var(--shade) / .4);
  --sh-2: 0 1px 2px rgb(var(--shade) / .1), 0 18px 36px -20px rgb(var(--shade) / .5);
  --light-only: block;
  --dark-only: none;
  --ed-bg: #ffffff;
  --ed-bar: #f3f1ee;
  --ed-border: #e5ddd1;
  --ed-text: #1f2328;
  --ed-muted: #6e6259;
  --ed-gutter: #a59a90;
  --term-bg: #221c1a;
  --term-bar: #2c2522;
  --term-line: #3a312d;
  --term-fg: #e9e1d6;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-hand: "Kalam", "Segoe Print", "Comic Sans MS", cursive;
  --wrap: 76rem;
  --top: 3.9rem;
  --background: var(--bg);
  --foreground: var(--ink);
  --surface: var(--paper);
  --surface-2: var(--paper-2);
  --muted: color-mix(in oklab, var(--kraft) 45%, var(--paper));
  --muted-foreground: var(--ink-2);
  --border: color-mix(in oklab, var(--kraft) 70%, var(--ink) 8%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1a2b; --paper: #2a2638; --paper-2: #322d42; --kraft: #4a3f55; --wood: #5b4a52; --wood-deep: #463842;
    --ink: #f5ead8; --ink-2: #c7b9a7; --line: rgb(245 234 216 / .14);
    --kite: #6aa9ff; --kite-ink: #8fbfff; --pers: #ff8f66; --pers-ink: #ffa47f; --must: #ffcd5e; --must-deep: #ffcd5e; --sage: #557d6c; --sage-deep: #8fc79f; --rose: #e3878f; --rose-deep: #f2a3a8;
    --sky-1: #141127; --sky-2: #231c3a; --sky-3: #1d1a2b; --dusk-1: #1a1730; --dusk-2: #2e2140;
    --hill-1: #2f4244; --hill-2: #263838; --hill-shade: rgb(0 0 0 / .3); --ground: #171424;
    --note: #3a3146; --mat: #24493d; --mat-line: rgb(150 210 185 / .16); --mat-line-2: rgb(150 210 185 / .34);
    --phone: #12101d; --sun: #fbe7c0; --sun-r1: rgb(251 231 192 / .07); --sun-r2: rgb(251 231 192 / .035); --shade: 0 0 0;
    --sh-1: 0 1px 1px rgb(0 0 0 / .3), 0 8px 18px -8px rgb(0 0 0 / .6);
    --sh-2: 0 1px 2px rgb(0 0 0 / .3), 0 20px 40px -18px rgb(0 0 0 / .7);
    --light-only: none; --dark-only: block;
    --ed-bg: #1e1e1e; --ed-bar: #252526; --ed-border: #35323b; --ed-text: #d4d4d4; --ed-muted: #a59eaa; --ed-gutter: #6e6876;
    --term-bg: #17141f; --term-bar: #1f1b29; --term-line: #2f2a3a;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1a2b; --paper: #2a2638; --paper-2: #322d42; --kraft: #4a3f55; --wood: #5b4a52; --wood-deep: #463842;
  --ink: #f5ead8; --ink-2: #c7b9a7; --line: rgb(245 234 216 / .14);
  --kite: #6aa9ff; --kite-ink: #8fbfff; --pers: #ff8f66; --pers-ink: #ffa47f; --must: #ffcd5e; --must-deep: #ffcd5e; --sage: #557d6c; --sage-deep: #8fc79f; --rose: #e3878f; --rose-deep: #f2a3a8;
  --sky-1: #141127; --sky-2: #231c3a; --sky-3: #1d1a2b; --dusk-1: #1a1730; --dusk-2: #2e2140;
  --hill-1: #2f4244; --hill-2: #263838; --hill-shade: rgb(0 0 0 / .3); --ground: #171424;
  --note: #3a3146; --mat: #24493d; --mat-line: rgb(150 210 185 / .16); --mat-line-2: rgb(150 210 185 / .34);
  --phone: #12101d; --sun: #fbe7c0; --sun-r1: rgb(251 231 192 / .07); --sun-r2: rgb(251 231 192 / .035); --shade: 0 0 0;
  --sh-1: 0 1px 1px rgb(0 0 0 / .3), 0 8px 18px -8px rgb(0 0 0 / .6);
  --sh-2: 0 1px 2px rgb(0 0 0 / .3), 0 20px 40px -18px rgb(0 0 0 / .7);
  --light-only: none; --dark-only: block;
  --ed-bg: #1e1e1e; --ed-bar: #252526; --ed-border: #35323b; --ed-text: #d4d4d4; --ed-muted: #a59eaa; --ed-gutter: #6e6876;
  --term-bg: #17141f; --term-bar: #1f1b29; --term-line: #2f2a3a;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--top) + 1rem); }
body { background: var(--bg); color: var(--ink); overflow-x: clip; }
::selection { background: color-mix(in srgb, var(--must) 55%, transparent); color: var(--ink); }
h1, h2, h3, .brand-name { font-family: var(--font-display); font-optical-sizing: auto; }
h1, h2 { color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; margin: 0 0 1rem; }
h3 { font-weight: 700; letter-spacing: -.01em; }
a { color: inherit; }
code, kbd, pre { font-family: var(--font-mono); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.ic.flip { transform: scaleX(-1); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .wrap { padding-inline: 1.5rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hand { font-family: var(--font-hand); }
.lead { font-size: clamp(1.03rem, 1.5vw, 1.17rem); line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 8px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: .6rem; }
:focus-visible { outline: 2.5px solid var(--kite); outline-offset: 2px; }

/* Art switches with the theme: tokens hold the display value. */
.art-ic { display: inline-grid; flex: none; }
.art-ic svg { width: 100%; height: 100%; display: block; }
.art-ic .art-light, .scene .art-light { display: var(--light-only); }
.art-ic .art-dark, .scene .art-dark { display: var(--dark-only); }
.scene { display: block; }
.scene img { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--sh-2); }

/* Buttons: pressed paper. */
.btn { --btn-radius: 12px; font-weight: 700; }
.btn-primary { --btn-shadow: 0 3px 0 color-mix(in oklab, var(--primary) 70%, #000), 0 10px 18px -10px color-mix(in oklab, var(--primary) 70%, transparent); }
.btn-primary:active:not(:disabled) { transform: translateY(2px); --btn-shadow: 0 1px 0 color-mix(in oklab, var(--primary) 70%, #000); }
.btn-outline { --btn-border: color-mix(in oklab, var(--ink) 30%, transparent); --btn-bg: var(--paper); --btn-shadow: 0 2px 0 color-mix(in oklab, var(--ink) 16%, transparent); color: var(--ink); }
.btn .ic { width: 1.1rem; height: 1.1rem; }

/* A section kicker: a paper luggage tag on a string. */
.tag-kicker { position: relative; isolation: isolate; display: inline-flex; align-items: center; margin: 0 0 1.1rem 1.4rem; padding: .34rem .95rem .34rem 1.6rem; font: 700 .74rem/1.25 var(--font-sans); letter-spacing: .07em; text-transform: uppercase; color: #2b2420; rotate: -2deg; filter: drop-shadow(0 2px 1.5px rgb(var(--shade) / .28)); }
.tag-kicker::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--must); clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); }
.tag-kicker::after { content: ""; position: absolute; right: calc(100% - 12px); bottom: 50%; width: 30px; height: 1.5px; background: var(--ink-2); transform-origin: 100% 50%; rotate: 32deg; }
.tag-hole { position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 1px rgb(0 0 0 / .3); }
.section-head { margin-bottom: 2rem; }
.section-head .lead { max-width: 46rem; margin: 0; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.split { display: grid; gap: 1.5rem 3rem; align-items: center; }
.scene-head { max-width: 26rem; justify-self: center; rotate: 1.5deg; }
@media (min-width: 960px) { .section-head.split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .scene-head { justify-self: end; } }
.two { display: grid; gap: 2.5rem; align-items: start; }
.two > *, .hero-grid > * { min-width: 0; }
@media (min-width: 1000px) { .two { grid-template-columns: 5fr 7fr; } }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: start; color: var(--ink-2); }
.checks .ic { color: var(--sage-deep); margin-top: .15rem; }
.mini-title { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.15rem; }

/* ---------- Top bar: a paper strip with pinked edges ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--top); background: var(--paper); filter: drop-shadow(0 3px 3px rgb(var(--shade) / .14)); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 7px; background: conic-gradient(from -45deg at 50% 100%, var(--paper) 90deg, #0000 0) 0 0 / 14px 7px repeat-x; }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; flex: none; }
.brand img { transition: rotate .4s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { rotate: -12deg; }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.brand-name b { color: var(--pers-ink); font-weight: 800; }
.topnav { display: flex; gap: .2rem; margin-left: .6rem; }
.top-link { position: relative; padding: .45rem .8rem; font-size: .94rem; font-weight: 650; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.top-link:hover { color: var(--ink); }
.top-link[aria-current]::after, .top-link:hover::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .15rem; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4 C8 1 14 5 20 3 S32 1 39 3' fill='none' stroke='%23ec6a42' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.top-link[aria-current] { color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.icon-btn { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; border: 0; background: none; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--muted); }
.icon-btn .ic { width: 1.25rem; height: 1.25rem; }
.search-btn { display: inline-flex; align-items: center; gap: .5rem; height: 2.4rem; padding: 0 .5rem 0 .8rem; border: 1.5px dashed color-mix(in oklab, var(--ink) 28%, transparent); border-radius: 10px; background: var(--bg); color: var(--ink-2); font: inherit; font-size: .88rem; cursor: pointer; }
.search-btn:hover { border-color: var(--pers); color: var(--ink); }
.search-label { min-width: 5rem; text-align: left; }
.install-site { display: inline-flex; align-items: center; gap: .4rem; height: 2.4rem; padding: 0 .95rem; border: 0; border-radius: 10px; background: var(--must); color: #2b2420; font: 700 .85rem/1 var(--font-sans); cursor: pointer; box-shadow: 0 3px 0 var(--must-deep); }
.install-site[hidden] { display: none; }
.install-site .ic { width: 1.05rem; height: 1.05rem; }
.theme-btn .ic { display: none; }
.theme-btn[data-voodoo-theme-mode="system"] .ti-system, .theme-btn[data-voodoo-theme-mode="light"] .ti-light, .theme-btn[data-voodoo-theme-mode="dark"] .ti-dark, .theme-btn:not([data-voodoo-theme-mode]) .ti-system { display: block; }
.nav-btn { display: none; }
@media (max-width: 960px) {
  .topnav { position: absolute; top: var(--top); left: 0; right: 0; flex-direction: column; margin: 0; padding: .5rem 1rem 1.2rem; background: var(--paper); box-shadow: 0 20px 30px -20px rgb(0 0 0 / .3); display: none; }
  .topnav.is-open { display: flex; }
  .top-link { padding: .75rem 1rem; font-size: 1.05rem; }
  .top-link[aria-current]::after, .top-link:hover::after { left: 1rem; right: auto; width: 4rem; }
  .nav-btn { display: inline-grid; }
  .search-label, .search-btn .kbd, .install-site span { display: none; }
  .install-site { width: 2.4rem; padding: 0; justify-content: center; }
  .search-btn { width: 2.4rem; padding: 0; justify-content: center; border-color: transparent; background: none; color: var(--ink); }
}

/* ---------- Search dialog ---------- */
.search-dlg .command-palette { width: min(40rem, calc(100vw - 2rem)); background: var(--paper); border-radius: 14px; }
.command-palette-search .ic { width: 1.2rem; height: 1.2rem; color: var(--ink-2); }
.command-palette-item { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.command-palette-item[aria-selected="true"] { background: color-mix(in oklab, var(--must) 30%, var(--paper)); }
.hit-kind { flex: none; width: 4.8rem; font-family: var(--font-hand); font-size: .85rem; font-weight: 700; color: var(--pers-ink); }
.hit-text { display: grid; min-width: 0; }
.hit-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-sub { font-size: .8rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-palette-footer { display: flex; gap: 1rem; }

/* ---------- Skye on her string (wide screens) ---------- */
.skye-fly { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .5s; display: none; }
.skye-fly.is-on { opacity: 1; }
.skye-string { position: absolute; inset: 0; overflow: visible; }
.skye-string path { fill: none; stroke: var(--ink-2); stroke-width: 1.3; stroke-linecap: round; opacity: .65; }
.skye-kite { position: absolute; left: 0; top: 0; width: 60px; height: 60px; will-change: transform; filter: drop-shadow(0 8px 8px rgb(var(--shade) / .25)); }
@media (min-width: 1380px) { .skye-fly { display: block; } }

/* ---------- Hero: a paper cut dawn, or a lantern lit dusk ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.2rem, 5vw, 3.6rem) 0 9.5rem; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--sky-3) 100%); --notch: var(--sky-2); }
.hero > .wrap { position: relative; z-index: 2; }
.hero-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sun { position: absolute; right: 4%; top: 2.4rem; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 1.1rem var(--sun-r1), 0 0 0 2.4rem var(--sun-r2), 0 6px 14px -4px rgb(var(--shade) / .35); }
.garland { position: absolute; left: 0; top: 0; width: 100%; height: 90px; overflow: visible; }
.garland path { fill: none; stroke: var(--ink-2); stroke-width: 1.2; opacity: .55; vector-effect: non-scaling-stroke; }
.flags i { --t: calc(var(--i) / 14); position: absolute; left: calc(var(--t) * 101.4% - .7%); top: calc(6px + 160px * var(--t) * (1 - var(--t))); width: 20px; height: 22px; translate: -50% 0; }
.flags i:first-child, .flags i:last-child { display: none; }
.flags i::before { content: ""; position: absolute; inset: 0; display: var(--light-only); background: var(--c, var(--pers)); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 1px 1px rgb(var(--shade) / .3)); }
.flags i::after { content: ""; position: absolute; left: 3px; top: 4px; width: 14px; height: 16px; border-radius: 6px; display: var(--dark-only); background: linear-gradient(90deg, transparent 4px, rgb(0 0 0 / .14) 4px 5.5px, transparent 5.5px 8.5px, rgb(0 0 0 / .14) 8.5px 10px, transparent 10px), var(--c2, #ffb45e); box-shadow: 0 0 14px 5px rgb(255 180 94 / .45), 0 -4px 0 -2px #463842; animation: flicker 3.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
.flags i:nth-child(5n + 1) { --c: var(--kite); }
.flags i:nth-child(5n + 2) { --c: var(--must); --c2: #ff8f66; }
.flags i:nth-child(5n + 3) { --c: var(--sage); }
.flags i:nth-child(5n + 4) { --c: var(--rose); --c2: #ffcd5e; }
@keyframes flicker { 50% { opacity: .78; } }
.cloud { position: absolute; will-change: translate; width: 9.5rem; height: 2.6rem; border-radius: 999px; background: var(--paper); opacity: .95; box-shadow: 0 6px 10px -6px rgb(var(--shade) / .3); }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 4.2rem; height: 4.2rem; left: 1.4rem; top: -2rem; }
.cloud::after { width: 3rem; height: 3rem; right: 1.6rem; top: -1.3rem; }
.c1 { top: 32%; left: -2rem; animation: drift 80s linear infinite; }
.c2 { top: 13%; left: 44%; scale: .7; animation: drift 110s linear infinite reverse; }
.c3 { top: 58%; right: 3%; scale: .85; animation: drift 130s linear infinite; }
@keyframes drift { 50% { translate: 5rem 0; } }
.stars { position: absolute; inset: 0 0 40% 0; display: var(--dark-only); background-image: radial-gradient(1.6px 1.6px at 12% 22%, #fff4dc, transparent), radial-gradient(1px 1px at 28% 58%, #fff4dc, transparent), radial-gradient(1.4px 1.4px at 52% 12%, #fff4dc, transparent), radial-gradient(1px 1px at 72% 42%, #fff4dc, transparent), radial-gradient(1.3px 1.3px at 88% 30%, #fff4dc, transparent), radial-gradient(1px 1px at 42% 70%, #fff4dc, transparent), radial-gradient(1.2px 1.2px at 63% 64%, #fff4dc, transparent); opacity: .85; }
.hills { display: block; width: 100%; height: 140px; }
.hills .h1 { fill: var(--hill-1); }
.hills .h2 { fill: var(--hill-2); }
.hills .hs { fill: var(--hill-shade); }
.hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; height: 150px; }
.hero-hills .h3 { fill: var(--bg); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1080px) { .hero-grid { grid-template-columns: 5fr 6.4fr; gap: 3rem; } }
.hero h1 { margin: 0 0 1rem; font-size: clamp(2.35rem, 4.6vw, 3.75rem); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--pers-ink); position: relative; z-index: 0; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .3em; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C40 2 80 11 120 5 S180 3 197 6' fill='none' stroke='%23efbb45' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.hero .lead { margin: 0 0 1.5rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: 1.02rem; color: var(--ink-2); }
.hero-facts b { color: var(--pers-ink); font-size: 1.15rem; }

/* The command ticket: cream paper, notched, with a perforated stub. */
.ticket { position: relative; display: flex; align-items: stretch; max-width: 27rem; min-height: 3.3rem; border-radius: 10px; background: var(--paper); box-shadow: var(--sh-1); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--notch, var(--bg)); box-shadow: inset 0 1px 2px rgb(var(--shade) / .25); }
.ticket::before { left: -8px; }
.ticket::after { right: -8px; }
.ticket-dollar { display: grid; place-items: center; padding-left: 1.15rem; font: 700 1.05rem var(--font-mono); color: var(--pers-ink); }
.ticket code { flex: 1; display: flex; align-items: center; padding: 0 .9rem 0 .55rem; font-size: 1.02rem; white-space: nowrap; overflow-x: auto; color: var(--ink); }
.ticket-copy { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: 0 1.25rem 0 1rem; border: 0; border-left: 2px dashed color-mix(in oklab, var(--ink) 25%, transparent); background: none; color: var(--ink); font: 700 .85rem var(--font-sans); cursor: pointer; border-radius: 0 10px 10px 0; }
.ticket-copy:hover { background: color-mix(in oklab, var(--must) 30%, transparent); }
.ticket-copy .ic { width: 1rem; height: 1rem; }

/* ---------- The fold demo ---------- */
.hero-demo { position: relative; min-width: 0; }
.fold-stage {
  --pw: 330px; --ph: 236px; --toff: 34px; --icon: 64px;
  --a: clamp(0, calc(var(--f) / .3), 1);
  --b: clamp(0, calc((var(--f) - .3) / .25), 1);
  --c: clamp(0, calc((var(--f) - .55) / .15), 1);
  --d: clamp(0, calc((var(--f) - .7) / .3), 1);
  position: relative; height: 470px; perspective: 1400px;
}
.fold-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fold-path path { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-dasharray: 2 7; stroke-linecap: round; opacity: calc(.6 - var(--d) * .6); }
.fold-page-wrap { position: absolute; left: 0; top: var(--toff); width: var(--pw); height: var(--ph); }
.fold-note { position: absolute; left: .2rem; top: -1.9rem; margin: 0; font-size: .95rem; color: var(--ink-2); opacity: calc(1 - var(--a)); white-space: nowrap; }
.fold-page-wrap::before { content: ""; position: absolute; inset: 8px -2px -10px 6px; border-radius: 12px; background: rgb(var(--shade) / .28); filter: blur(12px); transform-origin: 0 0; transform: scale(calc(1 - var(--b) * .5), calc(1 - var(--a) * .5)); opacity: calc(1 - var(--c)); }
.fold-page { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 25% 25%; transform: scale(calc(1 - var(--c) * .35)); opacity: calc(1 - var(--c)); }
.fq { position: absolute; width: 50%; height: 50%; transform-style: preserve-3d; }
.fq-tl { left: 0; top: 0; }
.fq-bl { left: 0; top: 50%; transform-origin: 50% 0; transform: rotateX(calc(var(--a) * 180deg)) translateZ(calc(var(--a) * -1px)); }
.fold-right { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transform-origin: 0 50%; transform: rotateY(calc(var(--b) * -180deg)) translateZ(calc(var(--b) * -3px)); }
.fold-right .fq { width: 100%; }
.fq-tr { left: 0; top: 0; }
.fq-br { left: 0; top: 50%; transform-origin: 50% 0; transform: rotateX(calc(var(--a) * 180deg)) translateZ(calc(var(--a) * -1px)); }
.face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; background: #fffdf8; }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fq-bl > .face:not(.back)::after, .fq-br > .face:not(.back)::after { background: linear-gradient(180deg, rgb(60 30 10 / .35), transparent 70%); opacity: calc(var(--a) * (1 - var(--a)) * 3); }
.fq-tr > .face:not(.back)::after { background: linear-gradient(90deg, rgb(60 30 10 / .3), transparent 70%); opacity: calc(var(--b) * (1 - var(--b)) * 3); }
.face.back { transform: rotateX(180deg); background: linear-gradient(135deg, #f3e7d3, #e9dac1); }
.fq-tr > .face.back { transform: rotateY(180deg); }
.face.back::after { background: repeating-linear-gradient(45deg, rgb(120 80 40 / .05) 0 6px, transparent 6px 12px); }
.fq-tl > .face { border-radius: 12px 0 0 0; }
.fq-tr > .face:not(.back) { border-radius: 0 12px 0 0; }
.fq-bl > .face:not(.back) { border-radius: 0 0 0 12px; }
.fq-br > .face:not(.back) { border-radius: 0 0 12px 0; }
.mini { position: absolute; width: 200%; height: 200%; display: flex; flex-direction: column; gap: 8%; padding: 0 0 6%; color: #2a1a0f; font-size: calc(var(--pw) / 30); font-family: var(--font-sans); }
.fq-tr .mini, .fq-br .mini { left: -100%; }
.fq-bl .mini, .fq-br .mini { top: -100%; }
.mini-bar { display: flex; align-items: center; gap: .5em; padding: .9em 1.2em; background: #e8590c; color: #fff; font-weight: 700; }
.mini-logo { width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff4e6; }
.mini-nav { margin-left: auto; display: flex; gap: .5em; }
.mini-nav i { width: 2.2em; height: .4em; border-radius: 4px; background: rgb(255 255 255 / .6); }
.mini-hero { display: grid; gap: .45em; justify-items: start; padding: 0 1.3em; }
.mini-hero b { font-family: var(--font-display); font-size: 1.75em; letter-spacing: -.03em; line-height: 1; }
.mini-hero i { width: 70%; height: .45em; border-radius: 4px; background: #eadbca; }
.mini-hero i.short { width: 46%; }
.mini-btn { margin-top: .2em; padding: .35em .9em; border-radius: 999px; background: #e8590c; color: #fff; font-weight: 700; font-size: .85em; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; padding: 0 1.3em; flex: 1; }
.mini-cards span { display: grid; align-items: end; padding: .4em; border-radius: .6em; background: radial-gradient(ellipse at 50% 40%, var(--b) 0 34%, transparent 35%), #fbeee0; }
.mini-cards em { font-style: normal; font-weight: 700; font-size: .8em; }
.acme-ic { display: inline-block; width: 2.2rem; height: 2.2rem; border-radius: 26%; background: radial-gradient(circle at 50% 62%, #fff4e6 0 30%, transparent 31%) 50% 66% / 100% 60% no-repeat, #e8590c; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .14); flex: none; }
.acme-ic.sm { width: 1.05rem; height: 1.05rem; }
.fold-home { position: absolute; left: calc(var(--pw) / 4 - var(--icon) / 2); top: calc(var(--ph) / 4 - var(--icon) / 2); width: var(--icon); height: var(--icon); pointer-events: none; }
.fold-icon {
  --arc: calc(4 * var(--d) * (1 - var(--d)));
  position: absolute; z-index: 3; left: calc(var(--pw) / 4 - var(--icon) / 2); top: calc(var(--toff) + var(--ph) / 4 - var(--icon) / 2); width: var(--icon); height: var(--icon);
  opacity: var(--c); pointer-events: none;
  transform: translate(calc(var(--d) * var(--dx, 0px)), calc(var(--d) * var(--dy, 0px) - var(--arc) * 110px)) rotate(calc(var(--arc) * 45deg + var(--d) * var(--pr, 0deg))) scale(calc((1.8 - .8 * var(--c)) * (1 - var(--d) * (1 - var(--k, .62)))));
}
.fold-icon .acme-ic { width: 100%; height: 100%; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .14), 0 10px 18px -8px rgb(var(--shade) / .55); }
.fold-tail { position: absolute; right: -4px; bottom: -4px; width: 4px; height: 70px; transform-origin: 50% 0; rotate: -45deg; translate: 0 100%; opacity: var(--arc); }
.fold-tail::before { content: ""; position: absolute; left: 1px; top: 0; bottom: 0; width: 1.5px; background: var(--ink-2); }
.fold-tail i { position: absolute; left: -5px; width: 12px; height: 9px; background: var(--must); clip-path: polygon(0 0, 50% 50%, 0 100%, 100% 0, 50% 50%, 100% 100%); }
.fold-tail i:nth-child(1) { top: 14px; } .fold-tail i:nth-child(2) { top: 34px; background: var(--kite); } .fold-tail i:nth-child(3) { top: 54px; background: var(--rose); }
.paper-phone { position: absolute; right: 2%; bottom: 0; width: 172px; height: 336px; padding: 7px; border-radius: 28px; background: var(--phone); rotate: 3deg; box-shadow: var(--sh-2); }
.ph-screen { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: linear-gradient(170deg, #fbd2bd, #fde5cf 50%, #c5dcc0); color: #2b2420; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: .5rem .9rem .2rem; font-size: .62rem; font-weight: 700; }
.ph-dots { display: inline-flex; gap: 3px; }
.ph-dots i { width: 4px; height: 4px; border-radius: 50%; background: #2b2420; }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 9px; padding: 14px 12px; }
.ph-tile { position: relative; aspect-ratio: 1; border-radius: 28%; background: var(--t); box-shadow: 0 3px 0 rgb(0 0 0 / .08), 0 6px 10px -6px rgb(60 30 10 / .4); }
.ph-slot { background: rgb(255 255 255 / .35); box-shadow: none; outline: 1.6px dashed rgb(43 36 32 / .45); outline-offset: -1px; }
.ph-label { position: absolute; left: 50%; top: 100%; translate: -50% 3px; font-size: .55rem; font-weight: 700; opacity: 0; transition: opacity .3s .2s; }
.ph-dock { position: absolute; left: 8px; right: 8px; bottom: 9px; display: flex; justify-content: space-around; padding: 7px; border-radius: 16px; background: rgb(255 255 255 / .4); }
.ph-dock i { width: 26px; height: 26px; border-radius: 28%; background: #fffaf1; box-shadow: 0 3px 6px -3px rgb(60 30 10 / .4); }
.ph-dock i:nth-child(2) { background: #a9cff7; } .ph-dock i:nth-child(3) { background: #efbb45; } .ph-dock i:nth-child(4) { background: #8db897; }
.fold-stage.is-landed .ph-label { opacity: 1; }
.fold-stage.is-landed .ph-slot { outline-color: transparent; }
.confetti { position: absolute; left: var(--sx, 70%); top: var(--sy, 50%); width: 0; height: 0; pointer-events: none; z-index: 4; }
.confetti i { position: absolute; width: 8px; height: 5px; background: var(--pers); opacity: 0; }
.confetti i:nth-child(2n) { background: var(--must); width: 6px; height: 6px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.confetti i:nth-child(3n) { background: var(--kite); }
.fold-stage.is-landed .confetti i { animation: burst .9s cubic-bezier(.2, .7, .4, 1) forwards; }
.confetti i:nth-child(1) { --x: -46px; --y: -40px; } .confetti i:nth-child(2) { --x: 40px; --y: -48px; } .confetti i:nth-child(3) { --x: -58px; --y: 6px; } .confetti i:nth-child(4) { --x: 54px; --y: 2px; }
.confetti i:nth-child(5) { --x: -30px; --y: 44px; } .confetti i:nth-child(6) { --x: 30px; --y: 48px; } .confetti i:nth-child(7) { --x: 0px; --y: -60px; } .confetti i:nth-child(8) { --x: 8px; --y: 60px; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(220deg); } }
.fold-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.3rem; }
.fold-range { display: grid; gap: .1rem; flex: 1 1 11rem; max-width: 16rem; }
.fold-range span { font-size: .95rem; color: var(--ink-2); line-height: 1; }
.fold-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.fold-steps li { display: flex; gap: .55rem; padding: .7rem .75rem; border-radius: 10px; background: color-mix(in oklab, var(--paper) 85%, transparent); box-shadow: var(--sh-1); font-size: .8rem; opacity: .7; transition: opacity .25s, transform .25s; }
.fold-steps li.is-now { opacity: 1; transform: translateY(-2px) rotate(-.6deg); outline: 2px dashed var(--pers); outline-offset: 2px; }
.fold-steps li.is-done { opacity: 1; }
.fold-steps li.is-done .step-no { background: var(--sage-deep); color: #fff; }
.fold-steps b { display: block; font-family: var(--font-display); font-size: .95rem; }
.fold-steps small { color: var(--ink-2); line-height: 1.4; }
.step-no { flex: none; display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--must); color: #2b2420; font-weight: 800; font-size: .8rem; }
@media (max-width: 1240px) and (min-width: 1080px) { .fold-stage { --pw: 290px; --ph: 208px; } }
@media (max-width: 600px) {
  .hero { padding-bottom: 8rem; }
  .fold-stage { --pw: min(255px, 74vw); --ph: calc(var(--pw) * .72); --icon: 52px; height: 450px; }
  .paper-phone { width: 140px; height: 280px; padding: 6px; border-radius: 24px; }
  .ph-grid { gap: 13px 7px; padding: 12px 10px; }
  .fold-steps { grid-template-columns: 1fr; }
  .sun { display: none; }
  .term-out { white-space: pre; overflow-wrap: normal; }
  .c3 { display: none; }
}

/* ---------- Bands ---------- */
.band { position: relative; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.band-kraft { background: color-mix(in oklab, var(--kraft) 38%, var(--bg)); }
.band-dusk { background: linear-gradient(180deg, var(--dusk-1), var(--dusk-2)); --notch: var(--dusk-1); }
.band-kraft, .band-dusk { mask: conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) top / 18px 9px repeat-x, linear-gradient(#000 0 0) 0 9px / 100% calc(100% - 18px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 18px 9px repeat-x; }
.narrow-wrap { max-width: 50rem; }

/* ---------- The kite assembly manual ---------- */
.manual { display: grid; gap: 1.6rem; align-items: start; }
@media (min-width: 1100px) { .manual { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
.manual > * { min-width: 0; }
.pattern-sheet { position: relative; padding: 2.6rem 1.4rem 1.4rem 2.6rem; border-radius: 4px; background-color: var(--paper); background-image: linear-gradient(color-mix(in srgb, var(--kite) 16%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--kite) 16%, transparent) 1px, transparent 1px), linear-gradient(color-mix(in srgb, var(--kite) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--kite) 7%, transparent) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: 26px 26px; box-shadow: var(--sh-2); }
.pattern-sheet::before, .pattern-sheet::after { content: ""; position: absolute; background-color: var(--must); }
.pattern-sheet::before { left: 0; right: 0; top: 0; height: 18px; background-image: repeating-linear-gradient(90deg, rgb(43 36 32 / .65) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, rgb(43 36 32 / .65) 0 1px, transparent 1px 60px); background-size: 100% 6px, 100% 11px; background-repeat: no-repeat; background-position: 26px 0, 26px 0; border-radius: 4px 4px 0 0; }
.pattern-sheet::after { left: 0; top: 18px; bottom: 0; width: 18px; background-image: repeating-linear-gradient(180deg, rgb(43 36 32 / .65) 0 1px, transparent 1px 12px); background-size: 6px 100%; background-repeat: no-repeat; background-position: 0 8px; border-radius: 0 0 0 4px; }
.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: 1.2rem; }
.sheet-title { margin: 0; display: grid; font: 800 1.35rem/1.1 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; }
.sheet-title span { font: 600 .82rem var(--font-sans); letter-spacing: .04em; text-transform: none; color: var(--ink-2); }
.sheet-note { margin: 0; font-size: 1rem; color: var(--pers-ink); rotate: -1.5deg; }
.parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
@media (min-width: 640px) { .parts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .assembly { grid-column: span 2; } }
.assembly { display: grid; align-content: center; gap: .15rem; margin: 0; padding: .9rem 1rem; border-radius: 3px; background: var(--note); box-shadow: var(--sh-1); rotate: 1deg; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.assembly b { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pers-ink); }
.part { --pc: var(--must); --pc-deep: var(--must-deep); position: relative; display: grid; justify-items: center; gap: .15rem; padding: 1.1rem .5rem .75rem; border: 2px dashed color-mix(in oklab, var(--pc-deep) 70%, transparent); border-radius: 14px; background: color-mix(in oklab, var(--paper) 78%, transparent); color: var(--ink); font: inherit; text-align: center; cursor: pointer; transition: transform .2s, background-color .2s, box-shadow .2s; }
.part:nth-child(2n) { rotate: .8deg; } .part:nth-child(3n) { rotate: -.9deg; }
.part:hover { transform: translateY(-3px); background: var(--paper); box-shadow: var(--sh-1); }
.part[aria-pressed="true"] { border-style: solid; background: color-mix(in oklab, var(--pc) 22%, var(--paper)); box-shadow: var(--sh-1); }
.part-pers { --pc: var(--pers); --pc-deep: var(--pers-ink); } .part-kite { --pc: var(--kite); --pc-deep: var(--kite-ink); } .part-sage { --pc: var(--sage); --pc-deep: var(--sage-deep); } .part-rose { --pc: var(--rose); --pc-deep: var(--rose-deep); }
.part-no { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: var(--bg); font: 800 .8rem var(--font-sans); }
.part > .part-no { position: absolute; left: -.55rem; top: -.55rem; }
.part-shape { width: 100%; max-width: 6.8rem; height: auto; overflow: visible; }
.part-shape .cut { fill: color-mix(in srgb, var(--pc) 34%, transparent); stroke: var(--pc-deep); stroke-width: 2.2; stroke-dasharray: 6 4; stroke-linejoin: round; }
.part-shape .crease { fill: color-mix(in srgb, var(--pc) 24%, transparent); stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 1.4; stroke-dasharray: 3 4; }
.part-shape .string { fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; }
.part-shape .knot { fill: var(--pc-deep); }
.part-name { font: 800 1rem/1.15 var(--font-display); }
.part-file { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-2); }
.part-size { font-size: .95rem; color: var(--pers-ink); line-height: 1.1; }
.bom { margin-top: 1.4rem; padding-top: 1rem; border-top: 2px dashed var(--line); }
.bom summary { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; cursor: pointer; }
.bom-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .2rem 1.5rem; font-size: .8rem; }
.bom-list li { display: flex; align-items: baseline; gap: .3rem; }
.ft-name { font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-dots { flex: 1; min-width: 1rem; border-bottom: 1.5px dotted color-mix(in oklab, var(--ink) 30%, transparent); }
.ft-size { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.part-panel { position: relative; padding: 1.4rem 1.4rem 1rem; border-radius: 4px; background: var(--paper); box-shadow: var(--sh-2); }
.part-panel::before { content: ""; position: absolute; right: 0; top: 0; width: 28px; height: 28px; background: linear-gradient(225deg, var(--bg) 50%, color-mix(in oklab, var(--kraft) 70%, var(--paper)) 50%); box-shadow: -2px 2px 3px rgb(var(--shade) / .15); border-radius: 0 0 0 4px; }
@media (min-width: 1100px) { .part-panel { position: sticky; top: calc(var(--top) + 1.2rem); } }
.part-head { display: flex; align-items: center; gap: .7rem; margin: 0 0 .7rem; }
.part-head .part-no { width: 2.1rem; height: 2.1rem; font-size: 1rem; background: var(--pers); color: #fff; }
.part-head b { display: block; font: 800 1.35rem/1.1 var(--font-display); letter-spacing: -.02em; }
.part-head small { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-2); }
.part-what { margin: 0 0 .4rem; color: var(--ink-2); line-height: 1.6; }
.part-detail .frame pre { max-height: 22rem; }
.part-nav { display: flex; justify-content: space-between; gap: .5rem; padding-top: .6rem; border-top: 2px dashed var(--line); }
.run-row { display: grid; gap: 1.5rem 3rem; align-items: start; margin-top: 3.5rem; }
@media (min-width: 1000px) { .run-row { grid-template-columns: 4fr 8fr; } }
.run-row > * { min-width: 0; }
.run-row .frame pre { max-height: 30rem; }

/* ---------- Cut the string ---------- */
.cut-grid { display: grid; gap: 2rem 3rem; align-items: center; }
@media (min-width: 1000px) { .cut-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.cut-demo { display: grid; gap: 1rem; justify-items: center; min-width: 0; }
.cut-stage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 5 / 4.2; border-radius: 22px; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 72%); box-shadow: var(--sh-2); overflow: hidden; }
.cut-stage::before, .cut-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; }
.cut-stage::before { height: 34%; background: var(--hill-1); clip-path: polygon(0 30%, 22% 12%, 46% 26%, 70% 8%, 100% 22%, 100% 100%, 0 100%); }
.cut-stage::after { height: 22%; background: var(--hill-2); clip-path: polygon(0 40%, 18% 22%, 40% 34%, 62% 16%, 84% 30%, 100% 20%, 100% 100%, 0 100%); }
.cut-cloud { position: absolute; left: 6%; top: 7%; width: 30%; height: auto; overflow: visible; filter: drop-shadow(0 4px 4px rgb(var(--shade) / .3)); transition: opacity .5s; }
.cut-cloud > path:first-child { fill: var(--paper); }
.cut-cloud .wifi { fill: none; stroke: var(--kite); stroke-width: 5; stroke-linecap: round; transition: stroke .4s; }
.cut-cloud .wifi-dot { fill: var(--kite); transition: fill .4s; }
.cut-label { position: absolute; left: 6%; top: 32%; width: 30%; margin: 0; text-align: center; font-size: 1rem; color: var(--ink-2); }
.cut-label .off-label, .is-cut .cut-label .on-label { display: none; }
.is-cut .cut-label .off-label { display: inline; color: var(--pers-ink); }
.is-cut .cut-cloud { opacity: .55; }
.is-cut .cut-cloud .wifi { stroke: var(--ink-2); }
.is-cut .cut-cloud .wifi-dot { fill: var(--ink-2); }
.cut-string { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.cut-string path { fill: none; stroke: var(--ink); stroke-width: .42; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 0; transition: stroke-dashoffset .8s cubic-bezier(.3, .7, .3, 1); }
.is-cut .cut-string path { stroke-dashoffset: 58; }
.cut-scissors { position: absolute; z-index: 2; left: 40%; top: 62%; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; border-radius: 50%; background: var(--paper); color: var(--pers-ink); box-shadow: var(--sh-1); rotate: -30deg; transition: opacity .6s .5s; }
.cut-scissors .ic { width: 1.4rem; height: 1.4rem; }
.is-cut .cut-scissors { animation: snip .45s ease-in-out 2; opacity: 0; }
@keyframes snip { 50% { scale: 1.25; rotate: -10deg; } }
.app-phone { position: absolute; z-index: 2; right: 6%; top: 14%; bottom: 5%; width: 38%; display: flex; flex-direction: column; padding: 6px; border-radius: 22px; background: var(--phone); rotate: 2deg; box-shadow: var(--sh-2); color: #2a1a0f; font-size: clamp(.62rem, 1.6vw, .74rem); }
.app-phone > * { background: #fffaf3; }
.ap-status { display: flex; justify-content: space-between; align-items: center; padding: .35rem .7rem .2rem; border-radius: 16px 16px 0 0; font-weight: 700; font-size: .85em; }
.ap-net { display: inline-flex; align-items: center; gap: .2rem; }
.ap-net .ic { width: .95em; height: .95em; }
.net-on { display: inline-flex; gap: .2rem; }
.net-off { display: none; color: #b8461f; }
.is-cut .net-on { display: none; }
.is-cut .net-off { display: inline-flex; }
.ap-bar { display: flex; align-items: center; gap: .4rem; padding: .4rem .6rem; background: #e8590c; color: #fff; }
.ap-tabs { display: flex; gap: .2rem; padding: .35rem .45rem; border-bottom: 1px solid #f0e2d2; }
.ap-tabs button { flex: 1; padding: .3rem; border: 0; border-radius: 999px; background: none; font: 600 1em/1 var(--font-sans); color: #7a5a40; cursor: pointer; }
.ap-tabs button[aria-selected="true"] { background: #ffe8d6; color: #b8461f; }
.ap-page { flex: 1; display: grid; align-content: start; gap: .35rem; padding: .6rem; border-radius: 0 0 16px 16px; }
.ap-h { font-family: var(--font-display); font-size: 1.15em; }
.ap-page i { height: .35rem; width: 85%; border-radius: 3px; background: #eadbca; }
.ap-page i.short { width: 55%; }
.ap-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-top: .25rem; }
.ap-cards span { height: 2.6rem; border-radius: 8px; background: radial-gradient(ellipse at 50% 60%, var(--b) 0 40%, transparent 41%), #fbeee0; }
.ap-pill { justify-self: start; display: inline-flex; align-items: center; gap: .25rem; margin: 0; padding: .15rem .5rem; border-radius: 999px; background: #2b2420; color: #fff; font-size: .82em; }
.ap-pill .ic { width: .8em; height: .8em; color: #8fd39f; }
.ap-off { flex: 1; display: grid; justify-items: center; align-content: start; gap: .3rem; padding: .8rem .6rem; text-align: center; border-radius: 0 0 16px 16px; background: radial-gradient(120% 60% at 50% -10%, rgb(232 89 12 / .18), transparent 70%), #fffaf3; }
.off-ic { position: relative; }
.off-badge { position: absolute; right: -.45rem; bottom: -.4rem; display: grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .2); }
.off-badge .ic { width: .7rem; height: .7rem; color: #6b7280; }
.ap-off b { font-size: 1.1em; margin-top: .3rem; }
.ap-off small { color: #7a5a40; font-size: .85em; }
.off-btn { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .65rem; border-radius: 999px; background: #e8590c; color: #fff; font-weight: 700; }
.off-btn .ic { width: .8em; height: .8em; }
.off-saved { margin-top: .2rem; font-size: .75em; text-transform: uppercase; letter-spacing: .08em; color: #7a5a40; }
.off-links { display: grid; gap: .2rem; width: 92%; }
.off-links span { padding: .2rem; border-radius: 6px; border: 1px solid #f0e2d2; color: #b8461f; }
.cut-toggle { display: inline-flex; align-items: center; gap: .7rem; padding: .6rem 1rem; border-radius: 12px; background: var(--paper); box-shadow: var(--sh-1); cursor: pointer; font-weight: 700; }
.cut-toggle span { display: inline-flex; align-items: center; gap: .4rem; }
.cut-toggle .ic { color: var(--pers-ink); }
.knots { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.knot-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem 1.1rem; border-radius: 6px; background: var(--paper); box-shadow: var(--sh-1); }
.knot-card:nth-child(2n) { rotate: .5deg; } .knot-card:nth-child(2n + 1) { rotate: -.4deg; }
.knot-no { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px dashed var(--pers); color: var(--pers-ink); font: 800 .95rem var(--font-display); }
.knot-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0 0 .25rem; font-size: 1.08rem; }
.knot-card .tag { --chip-h: 1.5rem; --chip-fs: .72rem; font-family: var(--font-mono); background: color-mix(in oklab, var(--must) 35%, var(--paper)); border-color: transparent; color: var(--ink); }
.knot-card p { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.55; }
.flow { display: flex; flex-wrap: wrap; gap: .3rem .55rem; padding: 0; margin: .55rem 0 0; list-style: none; }
.flow li { position: relative; padding: .14rem .55rem; border-radius: 3px; background: var(--paper-2); border: 1px solid var(--line); font-size: .72rem; font-weight: 600; font-family: var(--font-mono); }

/* ---------- Doctor and runtime ---------- */
.scene-side { max-width: 24rem; margin-top: 1.8rem; rotate: -1.2deg; }
.doctor-tabs .tab-content { padding-top: .4rem; }
.term-col { min-width: 0; }
.cutouts { position: relative; display: grid; gap: 1.6rem; justify-items: center; padding: 2.6rem 1.2rem; border-radius: 10px; background: color-mix(in oklab, var(--kraft) 85%, var(--bg)); box-shadow: inset 0 2px 8px rgb(var(--shade) / .18); }
.cutout { position: relative; display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: #2b2420; background: #fff; box-shadow: 0 2px 3px rgb(60 30 10 / .15), 0 14px 26px -14px rgb(60 30 10 / .5); }
.cutout .ic { width: 1.1rem; height: 1.1rem; }
.co-fab { padding: 4px; border-radius: 999px; rotate: -3deg; }
.uip-go { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; background: #2f78d8; color: #fff; font-weight: 700; }
.uip-x { display: grid; place-items: center; width: 2.1rem; color: #6b5a4e; }
.co-toast { padding: .45rem .45rem .45rem 1.1rem; border-radius: 14px; rotate: 2deg; }
.co-toast .uip-go { padding: .45rem .9rem; }
.co-badge { padding: .4rem .95rem; border-radius: 999px; background: #2b2420; color: #fff; font-size: .82rem; rotate: -2deg; }
.co-badge i { width: 8px; height: 8px; border-radius: 50%; background: #efbb45; }
.co-sheet { flex-direction: column; align-items: stretch; gap: .45rem; width: min(100%, 22rem); padding: 1.1rem; border-radius: 18px; rotate: 1deg; }
.co-sheet b { font-size: 1rem; }
.co-sheet span { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; background: #f6ecdc; font-size: .82rem; }
.co-sheet .ic { color: #2f78d8; }
.tape { position: absolute; z-index: 2; top: -11px; left: 50%; width: 70px; height: 20px; translate: -50% 0; rotate: -5deg; background: color-mix(in srgb, var(--must) 72%, transparent); clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 24% 8%, 100% 0, 96% 50%, 100% 100%, 76% 92%, 70% 100%, 64% 90%, 0 100%, 4% 50%); opacity: .9; }
.co-toast .tape { background: color-mix(in srgb, var(--kite) 45%, transparent); rotate: 4deg; }
.co-sheet .tape { background: color-mix(in srgb, var(--rose) 70%, transparent); }

/* ---------- Generator teaser: a corner of the cutting mat ---------- */
.mat-teaser { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .mat-teaser { grid-template-columns: 1fr 1.25fr; } }
.mat-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 7.5rem)); gap: 1.4rem; justify-content: center; padding: 2.4rem 2rem; border-radius: 16px; background-color: var(--mat); background-image: linear-gradient(var(--mat-line-2) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line-2) 1px, transparent 1px), linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px); background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; box-shadow: var(--sh-2); rotate: -1.5deg; }
.mask { display: block; width: 100%; height: auto; aspect-ratio: 1; box-shadow: 0 3px 0 rgb(0 0 0 / .12), 0 16px 26px -14px rgb(0 0 0 / .6); }
.m-circle { border-radius: 50%; }
.m-squircle { border-radius: 32%; }
.m-rounded { border-radius: 18%; }
.m-drop { border-radius: 50% 50% 12% 50%; }

/* ---------- Recipes on a clothesline ---------- */
.line-wrap { position: relative; padding-top: .2rem; }
.clothesline { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; }
.clothesline path { fill: none; stroke: var(--ink-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pegs { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.pegs li { display: flex; justify-content: center; padding-top: calc(var(--y) + .4rem); }
.peg-tag { position: relative; display: inline-flex; padding: 1.2rem .95rem .75rem; border-radius: 3px 3px 10px 10px; background: var(--pc, var(--paper)); color: #2b2420; font: 700 .95rem/1.2 var(--font-display); text-align: center; text-decoration: none; box-shadow: var(--sh-1); transform-origin: 50% 0; rotate: var(--r); transition: rotate .3s cubic-bezier(.3, 1.8, .5, 1); }
.peg-tag:hover { rotate: calc(var(--r) * -1.5); }
.pegs li:nth-child(5n + 1) .peg-tag { --pc: #ffe3a3; } .pegs li:nth-child(5n + 2) .peg-tag { --pc: #cfe3fb; } .pegs li:nth-child(5n + 3) .peg-tag { --pc: #f8c9b8; } .pegs li:nth-child(5n + 4) .peg-tag { --pc: #d3e8d6; } .pegs li:nth-child(5n + 5) .peg-tag { --pc: #f6d0d4; }
.peg { position: absolute; left: 50%; top: -14px; width: 10px; height: 26px; translate: -50% 0; border-radius: 3px; background: var(--wood); box-shadow: inset -3px 0 0 var(--wood-deep), 0 2px 2px rgb(0 0 0 / .2); }
@media (max-width: 900px) {
  .clothesline { display: none; }
  .pegs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; background: repeating-linear-gradient(180deg, var(--ink-2) 0 1.5px, transparent 1.5px 5.2rem); }
  .pegs li { padding: .7rem 0 1.2rem; height: 5.2rem; align-items: flex-start; }
}
@media (min-width: 901px) and (max-width: 1100px) { .pegs { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.4rem; } .clothesline { display: none; } .pegs li { padding-top: .6rem; } }

/* ---------- Guide booklets ---------- */
.booklets { display: grid; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); gap: 1.1rem; }
.booklets.two-col { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.booklet { --bc: var(--pers); position: relative; display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.4rem 1.1rem 1.3rem; border-left: 9px solid var(--bc); border-radius: 3px 12px 12px 3px; background: var(--paper); text-decoration: none; box-shadow: var(--sh-1); transition: transform .25s, box-shadow .25s; }
.booklet::after { content: ""; position: absolute; right: 0; top: 0; width: 18px; height: 18px; border-radius: 0 12px 0 4px; background: linear-gradient(225deg, var(--bg) 50%, color-mix(in oklab, var(--kraft) 70%, var(--paper)) 50%); }
.booklet:nth-child(5n + 2) { --bc: var(--kite); } .booklet:nth-child(5n + 3) { --bc: var(--must); } .booklet:nth-child(5n + 4) { --bc: var(--sage); } .booklet:nth-child(5n + 5) { --bc: var(--rose); }
.booklet:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: var(--sh-2); }
.booklet-ic { width: 3rem; height: 3rem; }
.booklet b { display: block; font: 750 1.04rem/1.25 var(--font-display); margin-bottom: .25rem; }
.booklet small { display: block; color: var(--ink-2); line-height: 1.45; }
.booklet em { display: block; margin-top: .35rem; font-style: normal; font-size: .95rem; color: var(--pers-ink); }

/* ---------- Folded notes (FAQ) ---------- */
.notes { display: grid; gap: .9rem; margin-top: 1.4rem; }
.note-fold.collapse { position: relative; border: 0; border-radius: 4px; background: var(--paper); box-shadow: var(--sh-1); }
.note-fold.collapse::after { content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; background: linear-gradient(315deg, var(--fold-bg, var(--bg)) 50%, color-mix(in oklab, var(--kraft) 65%, var(--paper)) 50%); box-shadow: -2px -2px 3px rgb(var(--shade) / .12); }
.band-kraft { --fold-bg: color-mix(in oklab, var(--kraft) 38%, var(--bg)); }
.note-fold .collapse-title { font: 700 1.04rem/1.35 var(--font-display); }
.note-fold[open] .collapse-title { color: var(--pers-ink); }
.collapse-content p { margin: 0; line-height: 1.65; color: var(--ink-2); }

/* ---------- Take off ---------- */
.takeoff { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0 1rem; --notch: var(--bg); }
.takeoff-in { display: grid; gap: 2rem 3.5rem; align-items: center; }
@media (min-width: 900px) { .takeoff-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.takeoff-art { max-width: 30rem; rotate: -1.5deg; }
.takeoff h2 { margin: 0 0 .5rem; }
.takeoff .lead { margin: 0 0 1.3rem; }
.takeoff .btn { margin-top: 1rem; }

/* ---------- Footer: paper hills, then the workshop ground ---------- */
.site-foot { position: relative; margin-top: 2rem; font-size: .9rem; }
.foot-hills { height: 110px; margin-bottom: -1px; }
.foot-hills .h3 { fill: var(--ground); }
.foot-ground { background: var(--ground); padding-bottom: 2rem; }
.foot-grid { display: grid; gap: 2rem; padding: 1rem 0 1.8rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.foot-about p { color: var(--ink-2); line-height: 1.6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.foot-links a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; font-weight: 700; }
.foot-title { margin: 0 0 .7rem; font: 700 1.1rem var(--font-hand); color: var(--pers-ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { color: var(--pers-ink); text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 3px; }
.foot-more li { display: grid; }
.foot-more small { color: var(--ink-2); font-size: .78rem; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1.4rem; border-top: 2px dashed var(--line); color: var(--ink-2); }
.foot-bottom p { margin: 0; }
.foot-made { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.foot-bottom a { color: var(--ink); font-weight: 600; }
.foot-ic { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 8px; }
.foot-ic:hover { background: var(--muted); }

/* ---------- Code frames (VS Code style, on paper) ---------- */
.frame { margin: 1.1rem 0; border: 1px solid var(--ed-border); border-radius: 10px; overflow: hidden; background: var(--ed-bg); box-shadow: 0 2px 0 rgb(var(--shade) / .06), 0 16px 30px -22px rgb(var(--shade) / .55); }
.frame-bar { display: flex; align-items: center; gap: .7rem; min-height: 2.4rem; padding: 0 .4rem 0 .8rem; background: var(--ed-bar); border-bottom: 1px solid var(--ed-border); font-size: .78rem; color: var(--ed-muted); }
.dots { display: inline-flex; gap: 6px; flex: none; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.frame-tab { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; color: var(--ed-text); }
.frame-tab > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-ic { flex: none; }
.frame-copy { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; height: 1.8rem; padding: 0 .6rem; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--ed-muted); font: 500 .76rem/1 var(--font-sans); cursor: pointer; }
.frame-copy:hover { border-color: var(--ed-border); color: var(--ed-text); }
.frame-copy .ic { width: .95rem; height: .95rem; }
.frame pre { margin: 0; padding: .9rem 1rem; overflow: auto; font-size: .84rem; line-height: 1.6; background: var(--ed-bg) !important; color: var(--ed-text); tab-size: 2; }
.frame pre code { font-family: var(--font-mono); }
.shiki span { color: var(--shiki-light); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shiki span { color: var(--shiki-dark); } }
:root[data-theme="dark"] .shiki span { color: var(--shiki-dark); }
pre.numbered code { counter-reset: ln; }
pre.numbered .line::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 2ch; margin-right: 1.1rem; text-align: right; color: var(--ed-gutter) !important; }
.frame-terminal, .frame-output { --ed-bg: var(--term-bg); --ed-bar: var(--term-bar); --ed-border: var(--term-line); --ed-text: var(--term-fg); --ed-muted: #a89c92; }
.frame-terminal .shiki span, .frame-output .shiki span { color: var(--term-fg); }
.frame-terminal pre .line::before { content: "$ "; color: #ffb38a; }
.frame-terminal pre .line:empty::before, .frame-terminal pre .cmt::before { content: ""; }
.term-out { font-size: .78rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.a-b { font-weight: 700; }
.a-d { opacity: .62; }
.f-r { color: #ff7b72; } .f-g { color: #7ee08a; } .f-y { color: #f0c35a; } .f-b { color: #8ec5ff; } .f-c { color: #6fd6dd; } .f-k2 { color: #9a8f88; } .f-sky { color: #7cbcff; } .f-sunset { color: #ff9e64; }

/* ---------- Page heads (docs, generator, guides) ---------- */
.page-head { position: relative; padding: 2rem 0 3rem; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 60%, var(--sky-3)); --notch: var(--sky-2); mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 18px 9px repeat-x; }
.page-head-in { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 960px) { .page-head-in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.page-head h1, .nf h1 { margin: 0 0 .8rem; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.03; letter-spacing: -.04em; font-weight: 800; }
.page-head .lead { max-width: 46rem; margin: 0; }
.head-art { max-width: 24rem; justify-self: center; rotate: 1.5deg; }
@media (max-width: 959px) { .head-art { max-width: 20rem; justify-self: start; } }
.crumbs { margin-bottom: .9rem; font-size: .85rem; }
.crumbs a { color: var(--ink-2); }

/* ---------- Prose (docs and guides) ---------- */
.prose-ik { min-width: 0; font-size: 1.03rem; line-height: 1.75; }
.prose-ik h2 { position: relative; font-size: clamp(1.5rem, 2.7vw, 1.95rem); margin: 2.8rem 0 .8rem; padding-top: 1.1rem; }
.prose-ik section > h2::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 2px dashed var(--line); }
.prose-ik h3 { position: relative; font-size: 1.22rem; margin: 2rem 0 .6rem; }
.prose-ik p { margin: 0 0 1rem; }
.prose-ik ul, .prose-ik ol { margin: 0 0 1rem; }
.prose-ik p, .prose-ik li { color: color-mix(in oklab, var(--ink) 84%, var(--ink-2)); }
.prose-ik a { color: var(--kite-ink); text-underline-offset: 3px; }
.prose-ik ul, .prose-ik ol { padding-left: 1.3rem; }
.prose-ik li + li { margin-top: .35rem; }
.prose-ik :not(pre) > code { padding: .1rem .35rem; border-radius: 5px; background: color-mix(in oklab, var(--kraft) 40%, var(--paper)); font-size: .87em; }
.prose-ik .table-wrap { overflow-x: auto; margin: 1.2rem 0; border-radius: 6px; background: var(--paper); box-shadow: var(--sh-1); }
.prose-ik table { width: 100%; font-size: .9rem; }
.prose-ik th { font-family: var(--font-display); background: color-mix(in oklab, var(--must) 22%, var(--paper)); }
.prose-ik td, .prose-ik th { vertical-align: top; }
.prose-ik td:first-child { white-space: nowrap; }
.anchor { position: absolute; left: -1.2em; color: var(--ink-2) !important; text-decoration: none; opacity: 0; transition: opacity .15s; }
h2:hover > .anchor, h3:hover > .anchor { opacity: 1; }
.steps-list li::marker { font-weight: 800; color: var(--pers-ink); }
.note { position: relative; margin: 1.6rem 0; padding: 1.1rem 1.3rem 1rem; border-radius: 3px; background: var(--note); box-shadow: var(--sh-1); rotate: -.3deg; }
.note::after { content: ""; position: absolute; right: 0; top: 0; width: 24px; height: 24px; background: linear-gradient(225deg, var(--bg) 50%, color-mix(in oklab, var(--note) 70%, #a07a30) 50%); box-shadow: -2px 2px 3px rgb(var(--shade) / .14); }
.note p { margin: 0; }
.note .note-title { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; font: 700 1.05rem var(--font-hand); color: var(--pers-ink); }

/* Docs layout: a pattern envelope's contents list */
.docs { display: grid; gap: 2rem; padding-top: 1.5rem; padding-bottom: 4rem; }
@media (min-width: 1000px) { .docs { grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; } }
.pattern-side { position: sticky; top: calc(var(--top) + 1.2rem); align-self: start; max-height: calc(100vh - var(--top) - 2.4rem); overflow: auto; padding: 1rem .8rem; border-radius: 4px; background: var(--paper); box-shadow: var(--sh-1); outline: 2px dashed color-mix(in oklab, var(--ink) 18%, transparent); outline-offset: -8px; }
.side-title { display: flex; align-items: center; gap: .4rem; margin: .2rem .4rem .7rem; font: 700 1.05rem var(--font-hand); color: var(--pers-ink); }
.side-ic { width: 1.8rem; height: 1.8rem; }
.pattern-side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .05rem; font-size: .9rem; }
.pattern-side a { display: flex; gap: .55rem; align-items: baseline; padding: .32rem .55rem; border-radius: 6px; text-decoration: none; color: var(--ink-2); }
.side-no { font: 700 .72rem var(--font-mono); color: color-mix(in oklab, var(--ink-2) 70%, transparent); }
.pattern-side a:hover, .pattern-side a.is-active { background: color-mix(in oklab, var(--must) 30%, var(--paper)); color: var(--ink); }
.pattern-side a.is-active .side-no { color: var(--pers-ink); }
@media (max-width: 999px) { .pattern-side { position: static; max-height: none; } .docs-side ol { columns: 2; } }
.docs-main > section:first-child h2 { margin-top: 0; }
.recipe { padding: .2rem 0; }

/* Guide layout */
.read-progress { position: fixed; top: 0; left: 0; z-index: 41; height: 4px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: repeating-linear-gradient(90deg, var(--pers) 0 10px, transparent 10px 15px); }
.guide-head { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 960px) { .guide-head { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.guide-head .lead { max-width: 46rem; margin: 0; }
.guide-art { max-width: 22rem; rotate: 1.5deg; }
@media (max-width: 959px) { .guide-art { max-width: 18rem; } }
.byline { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 1rem 0 0; font-size: .86rem; color: var(--ink-2); }
.read { display: grid; gap: 2rem; padding-top: 1.5rem; padding-bottom: 4rem; }
@media (min-width: 1000px) { .read { grid-template-columns: 15rem minmax(0, 46rem); justify-content: center; gap: 3.5rem; } }
.guide-cta { display: flex; gap: 1.4rem; align-items: center; margin: 3rem 0 1rem; padding: 1.5rem; }
.guide-cta h2 { margin: 0 0 .3rem; padding: 0; font-size: 1.4rem; }
.guide-cta p { margin: 0 0 .9rem; }
.guide-cta .ticket { --notch: var(--note); }
@media (max-width: 640px) { .guide-cta { flex-direction: column; align-items: flex-start; } }
.guides-page { padding-top: 1.5rem; padding-bottom: 4rem; }
.shelf-row { margin-bottom: 2.6rem; }
.shelf-row h2 { margin: 0 0 1.1rem; font-size: 1.35rem; }
.shelf-label { display: inline-block; padding: .2rem .9rem; border-radius: 3px; background: var(--wood); color: var(--ink); box-shadow: 0 3px 0 var(--wood-deep); rotate: -1deg; }

/* 404 */
.nf { position: relative; min-height: calc(100vh - var(--top) - 8rem); display: grid; align-items: center; padding: 3rem 0; background: linear-gradient(180deg, var(--sky-1), var(--sky-3)); }
.nf-in { display: grid; gap: 2rem 3.5rem; align-items: center; }
@media (min-width: 900px) { .nf-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.nf-art { max-width: 30rem; rotate: -1.5deg; }

/* ---------- Generator: the cutting mat ---------- */
.gen { padding: 0 0 2rem; }
.mat { position: relative; padding: 3rem 0; background-color: var(--mat); background-image: linear-gradient(var(--mat-line-2) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line-2) 1px, transparent 1px), linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: 30px 30px; box-shadow: inset 0 2px 10px rgb(0 0 0 / .25); }
.mat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: repeating-linear-gradient(90deg, var(--mat-line-2) 0 1px, transparent 1px 12px) 30px 0 / 100% 8px no-repeat, repeating-linear-gradient(90deg, var(--mat-line-2) 0 2px, transparent 2px 120px) 29px 0 / 100% 16px no-repeat; }
.mat::after { content: ""; position: absolute; left: 0; top: 22px; bottom: 0; width: 22px; background: repeating-linear-gradient(180deg, var(--mat-line-2) 0 1px, transparent 1px 12px) 0 8px / 8px 100% no-repeat, repeating-linear-gradient(180deg, var(--mat-line-2) 0 2px, transparent 2px 120px) 0 7px / 16px 100% no-repeat; }
.paper-card { position: relative; padding: 1.4rem; border-radius: 4px; background: var(--paper); box-shadow: 0 2px 2px rgb(0 0 0 / .12), 0 20px 34px -18px rgb(0 0 0 / .55); }
.card-title { margin: 0; font-size: 1.15rem; color: var(--pers-ink); }
.tape-l { left: 18%; } .tape-r { left: 82%; rotate: 6deg; background: color-mix(in srgb, var(--kite) 45%, transparent); }
.gen-grid { position: relative; z-index: 1; display: grid; gap: 2rem; }
@media (min-width: 1080px) { .gen-grid { grid-template-columns: 22rem minmax(0, 1fr); align-items: start; } }
.gen-form { display: grid; gap: 1rem; rotate: -.4deg; }
@media (min-width: 1080px) { .gen-form { position: sticky; top: calc(var(--top) + 1.4rem); } }
.drop { border-radius: 12px; border: 2px dashed color-mix(in oklab, var(--pers) 60%, transparent); background: color-mix(in oklab, var(--must) 12%, var(--paper)); transition: border-color .15s, background-color .15s; }
.drop.is-over { border-color: var(--kite); background: color-mix(in srgb, var(--kite) 12%, var(--paper)); }
.drop-in { display: grid; grid-template-columns: auto 1fr; gap: .4rem .9rem; align-items: center; padding: 1rem; cursor: pointer; }
.drop-in .btn { grid-column: 1 / -1; justify-self: start; }
.drop-preview { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 14px; background: repeating-conic-gradient(#e7ddd0 0 25%, #fff 0 50%) 0 0 / 14px 14px; overflow: hidden; }
.drop-preview canvas { width: 100%; height: 100%; }
.drop-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-text small { color: var(--ink-2); }
.drop-warn { margin: 0; padding: 0 1rem .8rem; font-size: .8rem; color: var(--pers-ink); }
.sample-btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.color-pair { display: flex; align-items: center; gap: .4rem; }
.color-pair .input { min-width: 0; font-family: var(--font-mono); }
.hint.is-long { color: var(--pers-ink); font-weight: 600; }
.gen-download { display: grid; gap: .4rem; padding-top: .8rem; border-top: 2px dashed var(--line); }
.gen-download .btn { justify-content: center; }
.gen-download .ic { width: 1.2rem; height: 1.2rem; }
.gen-previews { display: grid; gap: 1.4rem; min-width: 0; }
.gen-grid > * { min-width: 0; }
.pv { min-width: 0; }
.pv:nth-child(2n) { rotate: .3deg; }
.pv h2 { font-size: 1.2rem; margin: 0 0 1rem; letter-spacing: -.01em; }
.pv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.pv-head h2 { margin: 0; }
.air-switch { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; cursor: pointer; }
.pv-screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1rem; }
.pv-screens figure, .mask-row figure { margin: 0; display: grid; gap: .5rem; justify-items: center; }
figcaption { font-size: .8rem; color: var(--ink-2); text-align: center; }
.pv-wall { width: 100%; padding: 1.6rem .8rem; border-radius: 20px; background: linear-gradient(160deg, #3f7d64, #8db897 55%, #fde5cf); }
.pv-ios .pv-wall { background: linear-gradient(160deg, #6a4c93, #d9c9ea 50%, #fbd2bd); }
.pv-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; justify-items: center; }
.pv-app { display: grid; justify-items: center; gap: .3rem; }
.pv-app canvas { width: 3.2rem; height: 3.2rem; }
.pv-android .pv-app canvas { border-radius: 50%; }
.pv-ios .pv-app canvas { border-radius: 23%; }
.pv-app small { max-width: 4.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .65rem; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .5); }
.pv-ghost { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: rgb(255 255 255 / .35); }
.pv-ghost.sq { border-radius: 23%; }
.pv-desk { width: 100%; }
.pv-win { width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.pv-winbar { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; background: #f3f1ee; border-bottom: 1px solid #e5ddd1; font-size: .78rem; color: #2b2420; font-weight: 600; }
.pv-winbar canvas { width: 16px; height: 16px; }
.pv-winbody { height: 6.4rem; background: linear-gradient(#fff, #f8f4ee); }
.mask-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 1rem; }
.mask-box { position: relative; display: block; width: 7rem; height: 7rem; overflow: hidden; background: repeating-conic-gradient(#e7ddd0 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.mask-box canvas { width: 100%; height: 100%; display: block; }
.mask-box.m-circle { border-radius: 50%; }
.mask-box.m-squircle { border-radius: 32%; }
.mask-box.m-rounded { border-radius: 18%; }
.mask-box.m-drop { border-radius: 50% 50% 12% 50%; }
.mask-box.m-none { border-radius: 4px; outline: 1px solid var(--border); }
.zone { position: absolute; inset: 10%; border-radius: 50%; border: 2px dashed #e0552f; box-shadow: 0 0 0 999px rgb(224 85 47 / .12); pointer-events: none; }
.splash-row { display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 720px) { .splash-row { grid-template-columns: 12rem 1fr; } }
.splash { width: 100%; max-width: 12rem; margin-inline: auto; display: grid; place-content: center; justify-items: center; gap: .9rem; aspect-ratio: 9 / 18; border-radius: 26px; border: 6px solid var(--phone); }
.splash canvas { width: 5rem; height: 5rem; }
.splash b { font-size: .95rem; }
.splash-note p { margin: 0 0 1rem; color: var(--ink-2); line-height: 1.6; }
.theme-bar { display: flex; justify-content: space-between; padding: .7rem 1rem; border-radius: 12px; font-weight: 700; font-size: .85rem; }
.out-tabs .tab-content { padding-top: .6rem; }
.out-tabs .frame { margin: 0; }
.out-tabs pre { max-height: 26rem; }
.zip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .35rem; }
.zip-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem .7rem; border-radius: 6px; background: var(--paper-2); font-size: .8rem; }
.zip-list code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zip-list span { color: var(--ink-2); flex: none; }
.j-key { color: #0451a5; } .j-str { color: #a31515; } .j-num { color: #098658; } .j-tag { color: #800000; } .j-attr { color: #e50000; } .j-val { color: #0000ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .j-key { color: #9cdcfe; } :root:not([data-theme="light"]) .j-str { color: #ce9178; } :root:not([data-theme="light"]) .j-num { color: #b5cea8; } :root:not([data-theme="light"]) .j-tag { color: #569cd6; } :root:not([data-theme="light"]) .j-attr { color: #9cdcfe; } :root:not([data-theme="light"]) .j-val { color: #ce9178; } }
:root[data-theme="dark"] .j-key { color: #9cdcfe; } :root[data-theme="dark"] .j-str { color: #ce9178; } :root[data-theme="dark"] .j-num { color: #b5cea8; } :root[data-theme="dark"] .j-tag { color: #569cd6; } :root[data-theme="dark"] .j-attr { color: #9cdcfe; } :root[data-theme="dark"] .j-val { color: #ce9178; }

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