/* Ostrakon homepage. Pebble orange, black ink and a bit of terminal. */

:root {
  --bg: #f6f6f4;
  --bg-alt: #ececea;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, .12);
  --orange: #ff5500;
  --orange-light: #ff8a4d;
  --orange-dark: #e04b00;
  --on-orange: #111111;
  --accent: #c43e00;
  --glow: rgba(255, 85, 0, .18);
  --term-bg: #161616;
  --term-bar: #222222;
  --term-ink: #ececec;
  --term-dim: #9a9a9a;
  --term-green: #a6d17f;
  --term-amber: #f0b45a;
  --term-blue: #8cc4e6;
  --pbl-bar: #2f6c8e;
  --pbl-tag: #2a7d9c;
  --watch: #262626;
  --watch-edge: #444444;
  --shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 12px 32px -12px rgba(0, 0, 0, .25);
  --radius: 14px;
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111;
    --bg-alt: #181818;
    --surface: #1d1d1d;
    --ink: #f2f2f2;
    --ink-2: #cfcfcf;
    --muted: #9a9a9a;
    --line: rgba(255, 255, 255, .12);
    --orange: #ff5500;
    --orange-light: #ff8a4d;
    --orange-dark: #ff6a1f;
    --accent: #ff7a33;
    --glow: rgba(255, 85, 0, .22);
    --term-bg: #0a0a0a;
    --term-bar: #171717;
    --watch: #0b0b0b;
    --watch-edge: #3a3a3a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111111;
  --bg-alt: #181818;
  --surface: #1d1d1d;
  --ink: #f2f2f2;
  --ink-2: #cfcfcf;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, .12);
  --orange: #ff5500;
  --orange-light: #ff8a4d;
  --orange-dark: #ff6a1f;
  --accent: #ff7a33;
  --glow: rgba(255, 85, 0, .22);
  --term-bg: #0a0a0a;
  --term-bar: #171717;
  --watch: #0b0b0b;
  --watch-edge: #3a3a3a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--orange); color: var(--on-orange); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
code, kbd, pre, .mono { font-family: var(--mono); }
code {
  font-size: .86em;
  padding: .1em .38em;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
kbd {
  font-size: .9em;
  padding: 0 .4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
}
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--surface); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- shard logo ---------- */
.shard { display: inline-block; overflow: visible; }
.shard-sm { width: 28px; height: 28px; }
.shard .body { fill: var(--orange); stroke: #000; stroke-linejoin: round; }
.shard .ink path { fill: none; stroke: #000; stroke-linecap: round; }
.shard[data-animate] .ink path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: scratch .32s ease-out forwards;
}
@keyframes scratch { to { stroke-dashoffset: 0; } }
/* drops in with a squash and stretch, like the loading animation on the watch */
.shard[data-animate] { transform-origin: 50% 82%; animation: drop-in .6s ease-out both; }
@keyframes drop-in {
  0% { transform: translateY(-60%) scale(.8, 1.25); opacity: 0; }
  35% { transform: translateY(0) scale(1.2, .8); opacity: 1; }
  60% { transform: translateY(-8%) scale(.95, 1.06); }
  80% { transform: translateY(0) scale(1.02, .98); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shard[data-animate] { animation: none; }
  .shard[data-animate] .ink path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 700 1.05rem var(--mono); letter-spacing: -.02em;
}
.nav-links { display: none; gap: 4px; margin-left: 12px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none;
  font: .9rem var(--mono); padding: 6px 10px; border-radius: 8px;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-links a::before { content: "./"; color: var(--muted); }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn, .gh-btn {
  height: 36px; min-width: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  font: 600 .82rem var(--mono); text-decoration: none; cursor: pointer;
}
.icon-btn:hover, .gh-btn:hover { border-color: var(--orange); }
.gh-btn svg { width: 16px; height: 16px; }
.stars { padding-left: 8px; border-left: 1px solid var(--line); color: var(--ink-2); }
.stars::before { content: "★ "; color: var(--accent); }
@media (max-width: 420px) { .gh-btn span:not(.stars) { display: none; } #term-open { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange); color: var(--on-orange);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -8px var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); }
.btn-icon { font-family: var(--mono); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.glyph-field {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 55%);
  mask-image: linear-gradient(100deg, transparent 5%, #000 55%);
}
.glyph-field svg { width: 100%; height: 100%; }
.glyph-field path { fill: none; stroke: var(--ink); stroke-width: .5; stroke-linecap: round; }
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -200px; top: -200px;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.eyebrow {
  margin: 0 0 12px; font: .85rem var(--mono); color: var(--ink-2);
  text-transform: lowercase;
}
.blink { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h1 {
  display: flex; align-items: center; gap: .2em;
  margin: 0; font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1;
  letter-spacing: -.045em; font-weight: 800;
}
.shard-hero { width: 1.15em; height: 1.15em; flex: none; margin-left: -.08em; filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 34em; margin: 20px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.release-line { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin: 14px 0 32px; min-height: 1.4em; }
.release-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.release-line.ok .dot { background: #5aa84a; box-shadow: 0 0 0 4px rgba(90,168,74,.18); }
.release-line.none .dot { background: var(--term-amber); }

/* ---------- terminal ---------- */
.term {
  background: var(--term-bg); color: var(--term-ink);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.06);
  min-width: 0;
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: var(--term-bar);
  font: .75rem var(--mono); color: var(--term-dim);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e0604a; }
.term-bar i:nth-child(2) { background: #e9b04a; }
.term-bar i:nth-child(3) { background: #6cbf55; }
.term-bar span { margin-left: 8px; }
.term-body {
  margin: 0; padding: 16px 18px; font: .84rem/1.65 var(--mono);
  white-space: pre; overflow-x: auto; color: var(--term-ink);
}
.term-hero .term-body { min-height: 15.5em; white-space: pre-wrap; word-break: break-word; }
.t-p { color: var(--term-green); }
.t-c { color: var(--term-dim); }
.t-d { color: var(--term-blue); }
.t-o { color: var(--term-amber); }
.t-e { color: #f08a7a; }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--term-ink); animation: blink 1s steps(1) infinite; }
.copy {
  margin-left: auto; font: .72rem var(--mono); color: var(--term-dim);
  background: transparent; border: 1px solid rgba(255,255,255,.14); border-radius: 6px;
  padding: 2px 8px; cursor: pointer;
}
.copy:hover { color: var(--term-ink); border-color: var(--term-dim); }

/* ---------- watch ---------- */
.hero-watch { display: flex; flex-direction: column; align-items: center; }
.watch {
  --s: 1.5;
  position: relative;
  padding: calc(34px * var(--s) / 1.5) calc(26px * var(--s) / 1.5);
  background: linear-gradient(145deg, #3a3a3a, var(--watch) 55%);
  border-radius: 44px;
  box-shadow:
    0 0 0 2px var(--watch-edge),
    0 2px 0 3px #161616,
    0 40px 60px -30px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255,255,255,.12);
  transform: rotate(-3deg);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.watch:hover { transform: rotate(0); }
/* straps */
.watch::before, .watch::after {
  content: ""; position: absolute; left: 18%; right: 18%; height: 70px; z-index: -1;
  background: linear-gradient(90deg, #1f1f1f, #333333 50%, #1f1f1f);
  border-radius: 10px;
}
.watch::before { top: -58px; border-radius: 14px 14px 4px 4px; }
.watch::after { bottom: -58px; border-radius: 4px 4px 14px 14px; }
.watch-face {
  background: #0b0b0b; padding: 10px; border-radius: 10px;
  box-shadow: inset 0 0 0 1px #000, inset 0 2px 6px rgba(0,0,0,.8);
}
.watch-screen {
  width: calc(200px * var(--s)); height: calc(228px * var(--s));
  background: #fff; overflow: hidden; position: relative;
}
.watch-screen img {
  display: block; width: 100%; height: 100%;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
/* nothing to do for that button here */
.watch.nudge .watch-screen { animation: nudge .25s ease-in-out; }
@keyframes nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .watch.nudge .watch-screen { animation: none; } }
.watch-brand {
  text-align: center; margin-top: 10px;
  font: 700 .72rem var(--sans); letter-spacing: .3em; color: #8a8a8a; text-transform: lowercase;
}
.wbtn {
  position: absolute; width: 8px; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(90deg, #555555, #383838);
  border-radius: 3px;
}
.wbtn:hover { background: var(--orange); }
.wbtn:active { transform: scaleX(.6); }
.wbtn-back { left: -8px; top: 26%; height: 54px; }
.wbtn-up { right: -8px; top: 18%; height: 54px; }
.wbtn-select { right: -8px; top: 42%; height: 64px; }
.wbtn-down { right: -8px; top: 68%; height: 54px; }
.wbtn::after { content: ""; position: absolute; inset: -6px -10px; } /* larger hit area */
.watch-caption { margin: 74px 0 0; font-size: .8rem; text-align: center; }
@media (max-width: 480px) {
  .watch { --s: 1.15; border-radius: 34px; }
  .hero-watch .watch-caption .muted { display: block; }
}

/* ---------- spec strip ---------- */
.spec { border-block: 1px solid var(--line); background: var(--bg-alt); }
.spec-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line); background-clip: content-box;
}
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .spec-grid { grid-template-columns: repeat(6, 1fr); } }
.spec-grid > div { background: var(--bg-alt); padding: 18px 16px; display: flex; flex-direction: column; }
.spec .k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.spec .v { font-size: 1.6rem; font-weight: 700; color: var(--ink); }

/* ---------- etymology ---------- */
.etym { padding-top: 64px; }
.dict {
  max-width: 760px; margin: 0 auto; padding: 28px 30px;
  border-left: 3px solid var(--orange);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.dict p { margin: 0 0 10px; }
.dict p:last-child { margin: 0; }
.dict-head { font-size: 1.4rem; }
.dict-head b { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.h2 {
  margin: 0 0 8px; font: 800 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--sans);
  letter-spacing: -.03em;
}
.hash { color: var(--accent); font-family: var(--mono); font-weight: 400; }
.section-lede { color: var(--ink-2); margin: 0 0 40px; max-width: 40em; }
.footnote { margin: 28px 0 0; font-size: .9rem; }

/* features */
.feature-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--orange) 50%, var(--line)); }
.card-head { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.c-com { color: var(--muted); font-weight: 400; }
.c-fn { color: var(--accent); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin: 10px 0; font-size: .95rem; color: var(--ink-2); }
.ticks li b { color: var(--ink); }
.ticks li::before {
  content: "[x]"; position: absolute; left: 0; top: .1em;
  font: 700 .72rem var(--mono); color: var(--accent);
}

/* pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; }
@media (min-width: 860px) { .pipeline { flex-direction: row; align-items: center; } }
.node {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.node b { font-size: 1.05rem; color: var(--ink); }
.node .muted { font-size: .78rem; }
.node-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.node-you { border-color: var(--orange); box-shadow: 0 0 0 4px var(--glow), var(--shadow); }
.link {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 56px; min-width: 120px; font-size: .72rem; color: var(--muted);
}
.link::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, var(--orange) 0 6px, transparent 6px 12px);
  background-size: 2px 24px; animation: flow-v 1s linear infinite;
}
.link span { position: relative; background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
@keyframes flow-v { to { background-position: 0 24px; } }
@keyframes flow-h { to { background-position: 24px 0; } }
@media (min-width: 860px) {
  .link::before {
    left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 12px);
    background-size: 24px 2px; animation-name: flow-h;
  }
}
@media (prefers-reduced-motion: reduce) { .link::before { animation: none; } }

/* playground */
.play { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .play { grid-template-columns: 1fr auto; } }
.play-in { min-width: 0; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font: 600 .82rem var(--mono); padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
}
.chip:hover { border-color: var(--orange); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-act { margin-left: auto; color: var(--accent); }
.chip-act.rec { background: var(--orange); color: var(--on-orange); border-color: var(--orange); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--glow); } }
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 6px; }
textarea, input[type="text"] {
  width: 100%; font: .95rem/1.5 var(--mono); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; resize: vertical;
}
textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--glow); }
.md-out {
  margin: 0; min-height: 6em; padding: 14px 16px; border-radius: 10px;
  background: var(--term-bg); color: var(--term-ink); font: .88rem/1.6 var(--mono);
  white-space: pre-wrap; word-break: break-word;
}
.md-out .m-h { color: var(--term-amber); font-weight: 700; }
.md-out .m-t { color: var(--term-green); }
.md-out .m-tag { color: var(--term-blue); }
.kw-table summary { cursor: pointer; font-size: .85rem; color: var(--ink-2); padding: 6px 0; }
.kw-table summary::before { content: "$ "; color: var(--accent); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; background: var(--surface); }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.play-out { display: flex; flex-direction: column; align-items: center; padding-top: 40px; }

/* mock watch screen with Pebble-ish rendering */
.watch-mini { transform: rotate(2deg); }
.pbl { font-family: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; color: #000; }
.pbl-bar {
  background: var(--pbl-bar); color: #fff; text-align: center;
  font-weight: 700; font-size: calc(14px * var(--s)); line-height: 1.35;
}
.pbl-body { padding: calc(3px * var(--s)) calc(5px * var(--s)); font-size: calc(17px * var(--s)); line-height: 1.22; overflow: hidden; height: calc(100% - 20px * var(--s)); }
.pbl-body > div { margin: 0 0 calc(2px * var(--s)); word-wrap: break-word; }
.pbl-h1 { font-weight: 800; font-size: 1.3em; line-height: 1.1; }
.pbl-h2 { font-weight: 800; font-size: 1.15em; }
.pbl-h3 { font-weight: 700; }
.pbl-task { display: flex; gap: .3em; }
.pbl-task::before { content: "☐"; flex: none; }
.pbl-task.done { color: #777; }
.pbl-task.done::before { content: "☑"; }
.pbl-bullet { display: flex; gap: .3em; }
.pbl-bullet::before { content: "•"; flex: none; }
.pbl-quote { border-left: calc(2px * var(--s)) solid #000; padding-left: .3em; font-style: italic; }
.pbl-tag { color: var(--pbl-tag); }
.pbl-empty { color: #888; font-style: italic; }

/* screens */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 10px 16px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font: 700 .95rem var(--mono);
}
.tab small { font: 400 .72rem var(--sans); color: var(--muted); }
.tab[aria-selected="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px var(--glow); }
.shots {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (min-width: 900px) { .shots { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; } }
.shot { margin: 0; text-align: center; }
.shot-frame {
  display: inline-block; padding: 8px; background: #111; border-radius: 16px;
  box-shadow: var(--shadow); transition: transform .2s ease;
}
.shot:hover .shot-frame { transform: translateY(-4px) rotate(-1deg); }
.shot-frame { max-width: 240px; width: 100%; }
.shot img { display: block; width: 100%; }
.shot.round .shot-frame { border-radius: 50%; padding: 10px; }
.shot.round img { border-radius: 50%; }
.shot figcaption { margin-top: 10px; font-size: .82rem; color: var(--ink-2); }
.shot figcaption b { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.plat-list {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--muted);
}
.plat-list li { border: 1px dashed var(--line); padding: 4px 10px; border-radius: 8px; }
.plat-list b { color: var(--ink); margin-right: 4px; }

/* setup */
.setup-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .setup-grid { grid-template-columns: 1fr 1.1fr; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.steps li:first-child { padding-top: 0; }
.step-n {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 700;
  background: var(--orange); color: var(--on-orange);
}
.settings-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.settings-shots img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.settings-shots img:nth-child(2) { transform: translateY(24px); }
@media (max-width: 520px) { .settings-shots { grid-template-columns: 1fr 1fr; } .settings-shots img:nth-child(3) { display: none; } }

/* hack */
.hack-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .hack-grid { grid-template-columns: 1.2fr 1fr; } }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* footer */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr; } }
.foot-grid p { margin: 12px 0 0; max-width: 34em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; }
.foot-links a { color: var(--ink-2); }
.foot-note { grid-column: 1 / -1; margin: 0; }

/* ---------- shell overlay ---------- */
.shell {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
}
@media (min-width: 720px) { .shell { align-items: center; } }
.shell[hidden] { display: none; }
.shell-win { width: 100%; max-width: 760px; display: flex; flex-direction: column; max-height: min(560px, 80vh); animation: drop .2s ease-out; }
@keyframes drop { from { transform: translateY(16px); opacity: 0; } }
.shell-body { flex: 1; overflow-y: auto; white-space: pre-wrap; word-break: break-word; min-height: 200px; padding-bottom: 4px; }
.shell-line { display: flex; gap: 10px; padding: 0 18px 16px; font: .84rem var(--mono); align-items: center; }
.shell-line input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--term-ink); font: inherit; caret-color: var(--term-green);
}
.shell-line input:focus { box-shadow: none; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 140; width: 100%; height: 100%; }
