/* zigulee — site styles. Colours sampled from zigulee.png. */

:root {
  --navy: #0a1a3c;
  --navy-2: #10264f;
  --ink: #061230;
  --cyan: #13c2d8;
  --cyan-deep: #0a9cc0;
  --orange: #f26c1f;
  --amber: #fca81a;
  --cream: #fff7e8;

  --bg: var(--cream);
  --bg-alt: #fdeccd;
  --surface: #ffffff;
  --text: var(--navy);
  --muted: #4a5878;
  --line: var(--ink);
  --shadow: var(--ink);
  --code-bg: var(--navy);
  --code-text: #e6f3ff;
  --chip-bg: #ffffff;
  --accent-text: #087f9e;

  --radius: 4px;
  --pixel: 3px;
  --font-pixel: "Silkscreen", ui-monospace, monospace;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--navy);
    --bg-alt: #0c2048;
    --surface: var(--navy-2);
    --text: #e6f3ff;
    --muted: #9db2d6;
    --line: #000a1f;
    --shadow: #000a1f;
    --code-bg: #071534;
    --chip-bg: var(--navy-2);
    --accent-text: var(--cyan);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--navy);
  --bg-alt: #0c2048;
  --surface: var(--navy-2);
  --text: #e6f3ff;
  --muted: #9db2d6;
  --line: #000a1f;
  --shadow: #000a1f;
  --code-bg: #071534;
  --chip-bg: var(--navy-2);
  --accent-text: var(--cyan);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
code { font-family: var(--font-code); font-size: 0.88em; }
:not(pre) > code {
  background: color-mix(in srgb, var(--cyan) 16%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- pixel primitives ---------- */
.px-box {
  background: var(--surface);
  border: var(--pixel) solid var(--line);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--shadow);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.2em;
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--amber);
  border: var(--pixel) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 80ms, box-shadow 80ms;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.cyan { background: var(--cyan); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: 4px 4px 0 var(--shadow); }

.chip {
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  padding: 0.35em 0.8em;
  background: var(--chip-bg);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.chip[aria-pressed="true"], .chip[aria-selected="true"] {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
}
.chip:focus-visible, .btn:focus-visible, .tab:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* logo-like two-tone heading: cyan top, orange bottom */
.two-tone {
  font-family: var(--font-pixel);
  font-weight: 700;
  background: linear-gradient(180deg, var(--cyan) 0 52%, var(--orange) 52% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--pixel) solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-logo img { height: 34px; display: block; image-rendering: pixelated; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.4em 0.7em;
  border-radius: var(--radius);
}
.nav-links a:hover, .nav-links a.active { background: var(--cyan); color: var(--ink); }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}
.icon-btn svg { width: 20px; height: 20px; }
.nav-menu { display: none; }

@media (max-width: 860px) {
  .nav-menu { display: grid; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    padding: 12px 16px 16px;
    background: var(--bg);
    border-bottom: var(--pixel) solid var(--line);
  }
  .nav-links.open { display: flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-logo { width: min(520px, 100%); image-rendering: pixelated; display: block; }
.tagline {
  font-family: var(--font-pixel);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  margin: 20px 0 12px;
  color: var(--accent-text);
}
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; font-size: 0.92rem; color: var(--muted); }
.hero-meta span::before { content: "■ "; color: var(--orange); }

/* The ball rolls across the hero, bouncing on the divider below it. */
.ball {
  position: absolute;
  bottom: 0;
  left: -40px;
  width: 34px; height: 34px;
  animation: ball-roll 11s linear infinite;
  pointer-events: none;
}
.ball-hop {
  display: block;
  width: 100%; height: 100%;
  /* up decelerating, down accelerating: a parabola */
  animation: ball-hop 0.42s cubic-bezier(.33, .66, .66, 1) infinite alternate;
}
.ball-body {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: radial-gradient(circle at 34% 30%, #fff1c2 0 10%, var(--amber) 11% 42%, var(--orange) 43%);
  transform-origin: 50% 100%;
  animation: ball-squash 0.84s linear infinite;
}
@keyframes ball-roll { to { left: calc(100% + 40px); } }
@keyframes ball-hop { to { transform: translateY(-84px); } }
/* squashed only at the start and end of each hop, when it touches the line */
@keyframes ball-squash {
  0%, 100% { transform: scale(1.25, 0.72); }
  7%, 93% { transform: scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) { .ball { display: none; } html { scroll-behavior: auto; } }

/* live demo: a mock zigulee window */
.demo { position: relative; }
.demo-code { overflow: hidden; }
.demo-window {
  position: absolute;
  right: -12px; bottom: -36px;
  width: 250px;
  border: var(--pixel) solid var(--ink);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--shadow);
  overflow: hidden;
  font-family: var(--font-body);
  transition: all 200ms;
}
.demo-title {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.demo-title i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.demo-title i:nth-child(1) { background: #ff5f57; }
.demo-title i:nth-child(2) { background: #febc2e; }
.demo-title i:nth-child(3) { background: #28c840; }
.demo-title b { margin-left: 6px; font-weight: 500; }
.demo-body { padding: 16px; display: grid; gap: 8px; }
.demo-body p { margin: 0 0 4px; text-align: center; font-size: 0.95rem; }
.demo-body button { font: inherit; font-size: 0.9rem; padding: 7px; cursor: pointer; transition: all 120ms; }
.demo-styles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 60px; max-width: calc(100% - 270px); }
.hero .wrap { position: relative; z-index: 1; }

/* the four widget styles, approximated */
.demo-window.fluent { background: #f3f3f3; color: #1b1b1b; }
.demo-window.fluent button { background: #fff; border: 1px solid #d1d1d1; border-bottom-color: #b5b5b5; border-radius: 4px; color: #1b1b1b; }
.demo-window.fluent button.primary { background: #005fb8; border-color: #00509c; color: #fff; }
.demo-window.cupertino { background: #ececec; color: #222; }
.demo-window.cupertino button { background: #fff; border: 0; border-radius: 6px; box-shadow: 0 0.5px 2px rgba(0,0,0,0.3); font-size: 0.82rem; padding: 5px; }
.demo-window.cupertino button.primary { background: linear-gradient(#3b8cf7, #1a73f0); color: #fff; }
.demo-window.material { background: #fef7ff; color: #1d1b20; }
.demo-window.material button { background: transparent; border: 1px solid #79747e; border-radius: 20px; color: #6750a4; font-weight: 500; }
.demo-window.material button.primary { background: #6750a4; color: #fff; border-color: #6750a4; }
.demo-window.minimal { background: #fff; color: #000; }
.demo-window.minimal .demo-title { background: #000; color: #fff; }
.demo-window.minimal button { background: #fff; border: 2px solid #000; border-radius: 0; color: #000; font-family: var(--font-code); }
.demo-window.minimal button.primary { background: #000; color: #fff; }
.demo-window.dark.fluent { background: #202020; color: #fff; }
.demo-window.dark.fluent button { background: #2d2d2d; border-color: #3a3a3a; color: #fff; }
.demo-window.dark.fluent button.primary { background: #60cdff; color: #000; }
.demo-window.dark.cupertino { background: #1e1e1e; color: #eee; }
.demo-window.dark.cupertino button { background: #5a5a5a; color: #fff; }
.demo-window.dark.material { background: #141218; color: #e6e0e9; }
.demo-window.dark.material button { color: #d0bcff; border-color: #938f99; }
.demo-window.dark.material button.primary { background: #d0bcff; color: #381e72; }
.demo-window.dark.minimal { background: #000; color: #fff; }
.demo-window.dark.minimal .demo-title { background: #fff; color: #000; }
.demo-window.dark.minimal button { background: #000; color: #fff; border-color: #fff; }
.demo-window.dark.minimal button.primary { background: #fff; color: #000; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .demo-styles { margin-top: 16px; max-width: none; }
  .demo-window { position: relative; right: auto; bottom: auto; margin: -40px 0 0 auto; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); border-block: var(--pixel) solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  background: var(--orange);
  color: #fff;
  padding: 0.25em 0.7em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
h2.two-tone { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; margin: 0 0 14px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 24px; }
.feature .glyph {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.feature:nth-child(3n+1) .glyph { background: var(--cyan); }
.feature:nth-child(3n+2) .glyph { background: var(--orange); }
.feature:nth-child(3n) .glyph { background: var(--amber); }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* platforms */
.platforms { margin-top: 44px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 2px solid color-mix(in srgb, var(--line) 25%, transparent); vertical-align: top; }
th { font-family: var(--font-pixel); font-weight: 400; font-size: 0.82rem; background: var(--cyan); color: var(--ink); border-bottom: var(--pixel) solid var(--line); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- code blocks ---------- */
pre {
  margin: 0;
  padding: 18px 20px;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-code);
  font-size: 0.84rem;
  line-height: 1.65;
  overflow-x: auto;
  tab-size: 4;
}
.codebox { overflow: hidden; padding: 0; background: var(--code-bg); }
.codebar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 14px;
  background: var(--ink);
  color: #9db2d6;
  font-family: var(--font-code);
  font-size: 0.78rem;
  border-bottom: 2px solid #000a1f;
}
.codebar .dots { display: flex; gap: 5px; margin-right: 6px; }
.codebar .dots i { width: 9px; height: 9px; display: block; }
.codebar .dots i:nth-child(1) { background: var(--orange); }
.codebar .dots i:nth-child(2) { background: var(--amber); }
.codebar .dots i:nth-child(3) { background: var(--cyan); }
.copy {
  margin-left: auto;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: #9db2d6;
  background: transparent;
  border: 1px solid #2a4170;
  border-radius: 3px;
  padding: 3px 8px;
  cursor: pointer;
}
.copy:hover { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }

/* syntax colours (on the always-dark code background) */
.t-kw { color: #ff9f5a; font-weight: 600; }
.t-ty { color: #43dbee; }
.t-str { color: #ffd166; }
.t-num { color: #ffb38a; }
.t-com { color: #6b84b3; font-style: italic; }
.t-prop { color: #a6e3ff; }
.t-col { color: #ffd166; }
.t-dir { color: #ff7bbf; }
.t-fn { color: #8cf0b0; }
.t-op { color: #ff9f5a; }
.t-swatch { display: inline-block; width: 0.8em; height: 0.8em; border: 1px solid #fff6; margin-right: 3px; vertical-align: -1px; }

/* ---------- quick start ---------- */
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.step-text h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  margin-right: 12px;
  font-family: var(--font-pixel);
  background: var(--amber);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.step-text p { color: var(--muted); margin: 8px 0 0; }
.step-text .note { font-size: 0.9rem; border-left: 4px solid var(--orange); padding-left: 12px; margin-top: 14px; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- how-tos ---------- */
.howto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.howto { padding: 0; overflow: hidden; }
.howto summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary .tag {
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  padding: 0.2em 0.5em;
  border: 2px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  background: var(--cyan);
  margin-top: 3px;
}
.howto summary .tag.zig { background: var(--amber); }
.howto summary .tag.cli { background: var(--orange); color: #fff; }
.howto summary h3 { margin: 0; }
.howto summary p { margin: 4px 0 0; color: var(--muted); font-size: 0.93rem; }
.howto summary .plus { font-family: var(--font-pixel); font-size: 1.4rem; line-height: 1; transition: transform 150ms; }
.howto[open] summary .plus { transform: rotate(45deg); }
.howto .howto-body { border-top: var(--pixel) solid var(--line); }
.howto .howto-body p { padding: 14px 22px; margin: 0; font-size: 0.93rem; color: var(--muted); background: var(--surface); }
@media (max-width: 860px) { .howto-grid { grid-template-columns: 1fr; } }

/* ---------- language ---------- */
.lang { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.tablist { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 90px; }
.tab {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 10px 14px;
  background: transparent;
  color: var(--text);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.tab:hover { border-color: var(--line); }
.tab[aria-selected="true"] { background: var(--cyan); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--shadow); }
.tabpanel h3 { font-size: 1.4rem; }
.tabpanel > p { color: var(--muted); margin: 0 0 18px; }
.tabpanel ul { color: var(--muted); margin: 18px 0 0; padding-left: 1.2em; }
.tabpanel li { margin-bottom: 4px; }
.types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.types code { font-size: 0.85rem; padding: 0.3em 0.6em !important; border: 2px solid var(--line); background: var(--surface) !important; }
@media (max-width: 860px) {
  .lang { grid-template-columns: 1fr; }
  .tablist { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .tab { white-space: nowrap; }
}

/* ---------- components ---------- */
.comp-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.search {
  flex: 1 1 260px;
  font: inherit;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  border: var(--pixel) solid var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
}
.search:focus { outline: 3px solid var(--cyan); outline-offset: 1px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.comp-count { font-family: var(--font-pixel); font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.comp {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 100ms, box-shadow 100ms;
}
.comp:hover, .comp:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); outline: none; }
.comp header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.comp h4 { margin: 0; font-family: var(--font-code); font-size: 0.98rem; overflow-wrap: anywhere; }
.kind { font-family: var(--font-pixel); font-size: 0.62rem; padding: 0.15em 0.45em; border-radius: 3px; border: 1.5px solid var(--ink); color: var(--ink); white-space: nowrap; }
.kind.widget { background: var(--cyan); }
.kind.element { background: var(--amber); }
.comp p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comp p code { font-size: 0.82em; }
.comp footer { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 0.75rem; }
.comp .cat { color: var(--accent-text); font-weight: 600; }
.comp .stats { color: var(--muted); }

/* component detail dialog */
.comp-dialog {
  width: min(900px, 100% - 24px);
  max-height: calc(100dvh - 40px);
  padding: 0;
  background: var(--bg);
  color: var(--text);
  border: var(--pixel) solid var(--line);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--shadow);
  overflow: hidden;
}
.comp-dialog::backdrop { background: rgba(6, 18, 48, 0.6); backdrop-filter: blur(3px); }
.comp-detail { display: flex; flex-direction: column; max-height: calc(100dvh - 46px); overflow-y: auto; }
.cd-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 20px 24px 12px;
  background: var(--bg-alt);
}
.cd-head h3 { font-family: var(--font-code); font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 6px 0 0; overflow-wrap: anywhere; }
.cd-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 0.85rem; color: var(--muted); }
.cd-nav {
  position: sticky; top: 0; z-index: 2;
  display: flex; gap: 4px;
  padding: 8px 20px;
  background: var(--bg-alt);
  border-bottom: var(--pixel) solid var(--line);
}
.cd-nav a { font-family: var(--font-pixel); font-size: 0.75rem; color: var(--text); text-decoration: none; padding: 0.3em 0.6em; border-radius: 3px; }
.cd-nav a:hover { background: var(--cyan); color: var(--ink); }
.cd-body { padding: 8px 24px 24px; }
.cd-body h4 {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  margin: 28px 0 12px;
  scroll-margin-top: 56px;
  display: flex; align-items: center; gap: 8px;
}
.cd-body h4 .count { font-size: 0.7rem; background: var(--orange); color: #fff; padding: 0.1em 0.45em; border-radius: 3px; }
.cd-abstract { font-size: 1.15rem; margin: 16px 0 0; padding-left: 14px; border-left: 5px solid var(--cyan); }
.cd-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: cd; }
.cd-steps li { position: relative; padding: 6px 0 6px 36px; color: var(--muted); font-size: 0.95rem; }
.cd-steps li::before {
  counter-increment: cd; content: counter(cd);
  position: absolute; left: 0; top: 7px;
  width: 24px; height: 24px; display: grid; place-items: center;
  font-family: var(--font-pixel); font-size: 0.7rem;
  background: var(--amber); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 3px;
}
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.props { font-size: 0.87rem; }
table.props th { font-size: 0.7rem; padding: 8px 12px; }
table.props td { padding: 8px 12px; }
table.props td:first-child { font-weight: 400; }
table.props td:last-child { min-width: 200px; color: var(--muted); }
.ptype { font-family: var(--font-code); font-size: 0.82rem; color: var(--accent-text); white-space: nowrap; }
.access { font-family: var(--font-pixel); font-size: 0.62rem; padding: 0.15em 0.45em; border-radius: 3px; border: 1.5px solid var(--line); white-space: nowrap; }
.access.in { background: color-mix(in srgb, var(--cyan) 30%, transparent); }
.access.out { background: color-mix(in srgb, var(--orange) 30%, transparent); }
.access.in-out { background: color-mix(in srgb, var(--amber) 40%, transparent); }
.dim { color: var(--muted); opacity: 0.7; }
.sigs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sigs li { padding: 8px 12px; background: var(--surface); border: 2px solid color-mix(in srgb, var(--line) 30%, transparent); border-radius: var(--radius); font-size: 0.9rem; }
.sigs li span { color: var(--muted); }
.cd-foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px 24px 22px; border-top: 2px dashed color-mix(in srgb, var(--line) 30%, transparent); }
.cd-foot .btn { font-size: 0.75rem; }
@media (max-width: 600px) {
  .cd-head, .cd-body { padding-left: 16px; padding-right: 16px; }
  .cd-foot { padding: 14px 16px; }
}
.empty { color: var(--muted); padding: 30px 0; }

.styles-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.style-card { padding: 18px; }
.style-card h4 { font-family: var(--font-pixel); font-size: 0.9rem; margin: 0 0 4px; }
.style-card p { margin: 0; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 860px) { .styles-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- roadmap ---------- */
.timeline { position: relative; display: grid; gap: 18px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 6px; bottom: 6px; width: 4px; background: repeating-linear-gradient(var(--line) 0 8px, transparent 8px 14px); }
.phase { position: relative; padding: 18px 22px; }
.phase::before {
  content: "";
  position: absolute;
  left: -33px; top: 22px;
  width: 18px; height: 18px;
  border: var(--pixel) solid var(--ink);
  background: var(--cyan);
}
.phase.wip::before { background: var(--amber); animation: blink 1.2s steps(2) infinite; }
.phase.next::before { background: var(--surface); }
@keyframes blink { 50% { background: var(--orange); } }
@media (prefers-reduced-motion: reduce) { .phase.wip::before { animation: none; } }
.phase header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.phase h3 { margin: 0; }
.phase .num { font-family: var(--font-pixel); font-size: 0.8rem; color: var(--accent-text); }
.status { font-family: var(--font-pixel); font-size: 0.66rem; padding: 0.2em 0.55em; border: 2px solid var(--ink); border-radius: 3px; color: var(--ink); margin-left: auto; }
.status.done { background: var(--cyan); }
.status.wip { background: var(--amber); }
.status.next { background: var(--surface); color: var(--text); border-color: var(--line); }
.phase p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.roadmap-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.parity { padding: 22px; }
.parity h3 { margin-bottom: 14px; }
.bar-row { margin-bottom: 14px; }
.bar-row .lbl { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 4px; }
.bar { height: 16px; border: 2px solid var(--line); background: var(--bg); display: flex; }
.bar span { display: block; height: 100%; }
.bar .d { background: var(--cyan); }
.bar .p { background: var(--amber); }
.bar .m { background: var(--orange); }
.legend { display: flex; gap: 14px; font-size: 0.8rem; color: var(--muted); margin: 6px 0 22px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 11px; height: 11px; border: 1.5px solid var(--line); margin-right: 5px; vertical-align: -1px; }
.next-list { list-style: none; padding: 0; margin: 0; }
.next-list li { padding: 10px 0 10px 28px; position: relative; border-top: 2px dashed color-mix(in srgb, var(--line) 30%, transparent); font-size: 0.94rem; }
.next-list li::before { content: "▶"; position: absolute; left: 4px; color: var(--orange); font-size: 0.8rem; top: 13px; }
@media (max-width: 960px) { .roadmap-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
body > footer { padding: 56px 0; background: var(--ink); color: #9db2d6; border-top: var(--pixel) solid #000a1f; }
body > footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
body > footer img { height: 32px; image-rendering: pixelated; }
body > footer a { color: var(--cyan); }
body > footer small { font-size: 0.85rem; }

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
}
@media (min-width: 861px) and (max-width: 1060px) { .features { grid-template-columns: repeat(2, 1fr); } }
