/* interplane.io: one stylesheet, system fonts only, light and dark from the reader's setting. */
:root {
  --bg: #fbfaf7;
  --bg-raised: #ffffff;
  --fg: #1a1c20;
  --muted: #5b6270;
  --line: #e2ded6;
  --accent: #b86e0a;
  --accent-ink: #7a4705;
  --plane: #f2a93b;
  --ok: #1e6f3d;
  --bad: #a32b22;
  --wait: #7a5a00;
  --code-bg: #f1eee8;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.06), 0 12px 32px rgba(20, 20, 30, 0.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101317;
    --bg-raised: #171b21;
    --fg: #e8e9ec;
    --muted: #9ba3b0;
    --line: #2a313b;
    --accent: #f2a93b;
    --accent-ink: #ffd089;
    --plane: #f2a93b;
    --ok: #7bd89a;
    --bad: #ff8a80;
    --wait: #f0c674;
    --code-bg: #1d222a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code, pre { font: 0.92em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h2 { font-size: 1.75rem; margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
strong.ok { color: var(--ok); }
strong.bad { color: var(--bad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-raised); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; z-index: 10; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); vertical-align: middle; }

/* Width and rhythm */
main, footer, .hero { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
main > section { padding: 56px 0; border-top: 1px solid var(--line); }
main > section:first-child { border-top: 0; }
.prose { max-width: 44rem; }
.section-lede { color: var(--muted); max-width: 44rem; margin-bottom: 2em; }
.fine { color: var(--muted); font-size: 0.92rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.kicker { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; margin-bottom: 1.2em; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: 0.06em; margin-bottom: 0.3em; }
.hero h1::after { content: ""; display: block; width: 4.5rem; height: 4px; background: var(--plane); margin-top: 0.4em; border-radius: 2px; }
.tagline { font-size: 1.35rem; line-height: 1.35; font-weight: 600; max-width: 30ch; }
.lede { color: var(--muted); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6em; }
.button { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raised); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.hero-art { margin: 0; }
.hero-art img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); }

/* Problem */
blockquote { margin: 1.6em 0 0; padding: 0 0 0 18px; border-left: 4px solid var(--plane); font-size: 1.15rem; font-weight: 600; line-height: 1.4; }

/* Modules */
.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; counter-reset: module; }
.modules li { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 16px; position: relative; counter-increment: module; }
.modules li::before { content: counter(module, decimal-leading-zero); position: absolute; top: 18px; right: 20px; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; }
.modules h3 { margin-bottom: 0.2em; }
.modules .question { color: var(--accent-ink); font-weight: 600; margin-bottom: 0.6em; }
.modules p { font-size: 0.97rem; }
.modules .spec { font-size: 0.9rem; }

/* Receipt */
.receipt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 1.4em; }
.cell { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.big { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.label { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* Status */
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-raised); margin-bottom: 28px; }
.pill { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; color: #fff; }
.pill.ok { background: var(--ok); }
.pill.bad { background: var(--bad); }
.pill.wait { background: var(--wait); }
.pill.none { background: var(--muted); }
.verdict-text { flex: 1 1 20rem; }
.stages { margin-bottom: 28px; }
.stage-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-raised); }
.stage { display: grid; grid-template-columns: 4rem 9rem 1fr 15rem; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: baseline; }
.stage:first-child { border-top: 0; }
.stage .version { font-weight: 700; }
.stage .layer { font-weight: 600; }
.stage .goal { color: var(--muted); font-size: 0.95rem; }
.stage .state { font-size: 0.92rem; text-align: right; }
.stage.next .state { color: var(--accent-ink); font-weight: 600; }
.stage.planned { color: var(--muted); }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 28px; }
.counts { margin: 0 0 1em; padding-left: 1.1em; }
.counts li { margin-bottom: 4px; }
.report-list { margin: 0; padding-left: 1.1em; }
.report-list li { margin-bottom: 10px; }
.report-list .headline { color: var(--muted); }

/* Footer */
footer { padding: 32px 16px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 24px; }
  .hero-art { order: -1; }
  main > section { padding: 40px 0; }
  .stage { grid-template-columns: 3.5rem 1fr; }
  .stage .goal { grid-column: 1 / -1; }
  .stage .state { grid-column: 1 / -1; text-align: left; }
  .big { font-size: 1.6rem; }
}
