:root {
  color-scheme: light dark;
  --bg: light-dark(#fff, #0b0b0b);
  --panel: light-dark(#f6f5f3, #161615);
  --raised: light-dark(#efeeeb, #232322);
  --knob: light-dark(#fff, #3a3a38);
  --fg: light-dark(#111, #ededed);
  --muted: light-dark(#6b6b6b, #9a9a9a);
  --line: light-dark(#e4e2de, #262626);
  --you: light-dark(#8f5100, #f0b45e);
  --you-soft: light-dark(#fbeed8, #2c2111);
  --doing: light-dark(#08705f, #4fcfb9);
  --doing-soft: light-dark(#dcf2ed, #0f2724);
  --stuck: light-dark(#b8184a, #ff8fab);
  --stuck-soft: light-dark(#fce4eb, #351620);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --rule: repeating-linear-gradient(var(--bg) 0 31px, var(--line) 31px 32px);
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip-path: none; z-index: 9;
  padding: 8px 14px; background: var(--fg); color: var(--bg); border-radius: 999px; text-decoration: none; font-size: 14px; }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; }
.brand { font-size: 17px; font-weight: 500; letter-spacing: -0.03em; text-decoration: none; }
.mast-right { display: flex; align-items: center; gap: 14px; }
.reg { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }

.theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--raised); }
[hidden] { display: none !important; }
.theme button { width: 30px; height: 26px; border: 0; border-radius: 999px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.theme button[aria-pressed=true] { background: var(--knob); color: var(--fg); }

.hero { padding: 56px 0 72px; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--fg); }
.hero h1 { font-weight: 400; letter-spacing: -0.045em; line-height: 0.96; font-size: clamp(42px, 7.4vw, 92px); margin: 0 0 28px; text-wrap: balance; max-width: 14ch; }
.hero h1 em { font-style: italic; font-weight: 400; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 38em; margin: 0 0 36px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { font: 500 14px/1.2 var(--sans); border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.ghost { background: none; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }

.roll { margin: 56px 0 0; border-top: 1px solid var(--fg); }
.roll-head, .roll-row { display: grid; grid-template-columns: 72px 1fr 160px 140px; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.roll-head { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 10px; }
.roll-row .who { font-weight: 500; }
.roll-row .id { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.you { color: var(--you); background: var(--you-soft); }
.pill.doing { color: var(--doing); background: var(--doing-soft); }
.pill.stuck { color: var(--stuck); background: var(--stuck-soft); }
.pill.quiet { color: var(--muted); background: var(--raised); }

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section h2 { font-weight: 400; letter-spacing: -0.035em; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 12px; max-width: 16ch; }
.section .sub { color: var(--muted); max-width: 40em; margin: 0 0 40px; }
.idx { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--panel); border-radius: 22px; padding: 28px 26px 32px; min-width: 0; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.12em; }
.step h3 { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; margin: 14px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.file { background: var(--panel); border-radius: 22px; padding: 8px; overflow: hidden; }
.file-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 12px; font-size: 13px; color: var(--muted); }
.file pre { margin: 0; padding: 20px 22px 24px; overflow: auto; font: 13px/1.65 var(--mono); background: var(--bg); border-radius: 16px; }
.file code { font: inherit; }

.shot-block { display: grid; gap: 20px; }
.shot { background: var(--panel); border-radius: 22px; padding: 12px; margin-top: 20px; }
.shot img { border-radius: 14px; width: 100%; }
.shot figcaption { padding: 10px 8px 4px; font-size: 13px; color: var(--muted); }
.demo-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--you); background: var(--you-soft); padding: 6px 12px; border-radius: 999px; font-weight: 500; margin-bottom: 16px; }
.demo-label i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .demo-label i { animation: none; } html { scroll-behavior: auto; } }

.board { background: var(--panel); border-radius: 22px; padding: 22px; }
.board .asks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.ask, .card { background: var(--bg); border-radius: 18px; padding: 16px 18px; }
.ask .top, .card .head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ask .q { margin-top: 8px; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; flex: none; }
.hue0 { background: #12a38b; } .hue1 { background: #e2711d; } .hue2 { background: #3b82f6; }
.card .name { font-weight: 500; color: var(--fg); font-size: 14px; }
.card .now { margin-top: 10px; font-size: 15px; letter-spacing: -0.01em; }
.card .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.host { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.host figure { margin: 0; background: var(--panel); border-radius: 22px; padding: 8px; }
.host figcaption { padding: 8px 16px 10px; font-size: 13px; color: var(--muted); }
.host pre { margin: 0; padding: 18px 20px; overflow: auto; font: 13px/1.65 var(--mono); background: var(--bg); border-radius: 16px; }

.source { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 14px; color: var(--muted); max-width: 36em; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 18px; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; font-size: 16px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 22px; color: var(--muted); max-width: 42em; }

.foot { padding: 36px 0 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

@media (max-width: 960px) {
  .steps, .cards, .host { grid-template-columns: 1fr; }
  .board .asks { grid-template-columns: 1fr; }
  .roll-head, .roll-row { grid-template-columns: 56px 1fr 120px; }
  .roll-row .id, .roll-head span:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .mast { padding: 14px 0 10px; }
  .reg { display: none; }
  .hero { padding: 28px 0 40px; }
  .hero h1 { font-size: 42px; letter-spacing: -0.04em; }
  .lede { font-size: 17px; }
  .section { padding: 48px 0; }
  .roll { margin-top: 36px; }
  .roll-head, .roll-row { grid-template-columns: 1fr auto; gap: 8px; }
  .roll-head span:first-child, .roll-row .no { display: none; }
  .step, .board, .shot, .file, .host figure { border-radius: 18px; }
  .faq summary { font-size: 16px; }
}
