/* =================================================================
   ffmpeg.party — design system
   Vanilla CSS, no build step. Eleventy passthrough-copies it.
   ================================================================= */

/* -----------------------------------------------------------------
   Tokens
   ----------------------------------------------------------------- */
:root {
  /* Surfaces — slightly cool near-black */
  --bg-0: oklch(0.14 0.012 240);
  --bg-1: oklch(0.17 0.013 240);
  --bg-2: oklch(0.20 0.014 240);
  --bg-3: oklch(0.24 0.015 240);
  --line: oklch(0.30 0.018 240);
  --line-strong: oklch(0.40 0.02 240);

  /* Ink */
  --ink-0: oklch(0.97 0.005 200);
  --ink-1: oklch(0.82 0.008 220);
  --ink-2: oklch(0.62 0.012 230);
  --ink-3: oklch(0.46 0.015 235);

  /* Teal signal */
  --teal: oklch(0.82 0.14 180);
  --teal-bright: oklch(0.88 0.16 180);
  --teal-dim: oklch(0.58 0.10 180);
  --teal-glow: oklch(0.82 0.14 180 / 0.22);

  /* Secondary signal colors */
  --amber: oklch(0.82 0.14 80);
  --magenta: oklch(0.72 0.18 340);
  --violet: oklch(0.72 0.14 290);

  /* Type */
  --fs-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --fs-display: 'Space Grotesk', system-ui, sans-serif;
  --fs-sans: 'Space Grotesk', system-ui, sans-serif;
}

/* -----------------------------------------------------------------
   Reset / base
   ----------------------------------------------------------------- */
.theme-new,
.theme-new * { box-sizing: border-box; }

body.theme-new {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--fs-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle grid */
  background-image:
    linear-gradient(oklch(1 0 0 / 0.012) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.012) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

.theme-new main { flex: 1; }

.theme-new a { color: var(--teal); text-decoration: none; }
.theme-new a:hover { color: var(--teal-bright); }

.theme-new .mono { font-family: var(--fs-mono); }

/* -----------------------------------------------------------------
   Shell (max-width container)
   ----------------------------------------------------------------- */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* -----------------------------------------------------------------
   Topbar
   ----------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg-0) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  will-change: transform;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 200ms linear;
}
.topbar.headroom--unpinned { transform: translateY(-100%); }
.topbar.headroom--pinned    { transform: translateY(0); }
.topbar.headroom--not-top   { box-shadow: 0 8px 24px oklch(0 0 0 / 0.35); }
.topbar__inner {
  display: flex; align-items: center; gap: 28px;
  height: 56px;
}

.brand {
  font-family: var(--fs-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 0;
  color: var(--ink-0);
}
.brand:hover { color: var(--ink-0); }
.brand__prompt { color: var(--teal); }
.brand__name { color: var(--ink-0); }
.brand__cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--teal);
  margin-left: 6px;
  transform: translateY(2px);
  animation: brand-blink 1.1s steps(2) infinite;
}
@keyframes brand-blink { 50% { opacity: 0; } }

/* Nav */
.nav {
  display: flex; gap: 2px;
  margin-left: auto;
  font-family: var(--fs-mono);
  font-size: 13px;
}
.nav a, .nav button, .nav .nav__item {
  color: var(--ink-1);
  padding: 7px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  position: relative;
}
.nav a:hover, .nav button:hover, .nav .nav__item:hover {
  color: var(--ink-0);
  background: var(--bg-2);
  border-color: var(--line);
}
.nav .caret { color: var(--ink-3); font-size: 10px; }

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__menu {
  position: absolute;
  left: 0; top: calc(100% + 4px);
  min-width: 240px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px;
  font-family: var(--fs-mono);
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.12s, transform 0.12s, visibility 0.12s;
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.5);
  z-index: 60;
}
.nav__dropdown.open .nav__menu,
.nav__dropdown:hover .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__menu a {
  display: block;
  color: var(--ink-1);
  padding: 7px 10px;
  border-radius: 3px;
  background: transparent;
  border: 1px solid transparent;
}
.nav__menu a:hover { color: var(--teal-bright); background: var(--bg-2); border-color: var(--line); }
.nav__menu .nav__divider { height: 1px; background: var(--line); margin: 4px 6px; }
.nav__menu .nav__menu-meta { color: var(--ink-3); margin-left: 8px; font-size: 11px; }

/* Mobile burger */
.nav__burger {
  display: none;
  align-items: center; gap: 7px;
  font-family: var(--fs-mono); font-size: 11px; color: var(--ink-1);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 6px 10px;
  background: var(--bg-1);
  cursor: pointer;
  margin-left: auto;
}
.nav__burger .bars { display: flex; flex-direction: column; gap: 2px; }
.nav__burger .bars i { display: block; width: 12px; height: 1.5px; background: var(--teal); }

/* Mobile drawer */
.nav__drawer {
  position: fixed; inset: 0;
  background: color-mix(in oklch, var(--bg-0) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 56px 24px 24px;
  overflow-y: auto;
}
.nav__drawer.open { display: flex; }
.nav__drawer-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--ink-1);
  font-family: var(--fs-mono);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.nav__drawer-section { margin-bottom: 22px; }
.nav__drawer-label {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.nav__drawer a {
  display: block;
  font-family: var(--fs-mono);
  font-size: 14px;
  color: var(--ink-1);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.nav__drawer a:hover { color: var(--teal); }

/* -----------------------------------------------------------------
   Hero
   ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__media {
  position: relative;
  height: 560px;
  background: #000 center/cover no-repeat;
}
.hero__media::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, oklch(0 0 0 / 0.18) 2px 3px),
    radial-gradient(ellipse at center, transparent 30%, oklch(0 0 0 / 0.55) 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero__media::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg-0));
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px;
}
.hero__hud {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--fs-mono); font-size: 11px;
  color: oklch(1 0 0 / 0.7);
  letter-spacing: 0.04em;
}
.hero__hud > div { display: flex; flex-direction: column; gap: 3px; }
.hero__hud b { color: var(--teal-bright); font-weight: 500; }
.hero__hud-right { text-align: right; }
.hero__footnote {
  font-family: var(--fs-mono); font-size: 11px;
  color: oklch(1 0 0 / 0.7); letter-spacing: 0.04em;
}

.hero__marker {
  position: absolute;
  left: 56%; top: 42%;
  font-family: var(--fs-mono);
  font-size: 12px;
  color: var(--teal-bright);
}
.hero__marker-line {
  width: 120px; height: 1px; background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  margin-bottom: 8px;
}
.hero__marker-tag {
  background: oklch(0 0 0 / 0.75);
  border: 1px solid var(--teal);
  padding: 8px 12px;
  display: inline-block;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 0 24px var(--teal-glow);
}
.hero__marker-tag b { color: var(--ink-0); font-weight: 500; }

.hero__bracket { position: absolute; width: 22px; height: 22px; border: 1px solid var(--teal); }
.hero__bracket.tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.hero__bracket.tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.hero__bracket.bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.hero__bracket.br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

/* -----------------------------------------------------------------
   Ticker
   ----------------------------------------------------------------- */
.ticker {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--fs-mono);
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex; gap: 48px;
  padding: 10px 0;
  animation: ticker 60s linear infinite;
}
.ticker__item { display: inline-flex; align-items: center; gap: 8px; }
.ticker__item .k { color: var(--teal); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* -----------------------------------------------------------------
   Section meta + headers
   ----------------------------------------------------------------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); position: relative; }
.section:last-child { border-bottom: none; }
.section__header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 16px;
}
.section__meta {
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; align-items: baseline; gap: 14px;
}
.section__meta .num { color: var(--teal); }
.section__title {
  font-family: var(--fs-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}
.section__kicker {
  font-family: var(--fs-mono);
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 6px;
}
.section__right {
  font-family: var(--fs-mono); font-size: 12px;
  color: var(--ink-3); text-align: right;
}
.section__right a { color: var(--ink-1); border-bottom: 1px dashed var(--line-strong); }

/* -----------------------------------------------------------------
   Intro
   ----------------------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.intro__headline {
  font-family: var(--fs-display);
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 12px 0 0;
}
.intro__headline em { font-style: normal; color: var(--teal); }
.intro__body { color: var(--ink-1); font-size: 17px; max-width: 60ch; margin-top: 24px; }
.intro__body p + p { margin-top: 14px; }
.intro__body--mono {
  font-family: var(--fs-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.intro__body--mono .k { color: var(--teal); }
.intro__body--mono .pipe { color: var(--ink-3); }
.intro__kv {
  margin-top: 24px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--fs-mono); font-size: 12px;
}
.intro__kv div span { color: var(--ink-3); margin-right: 8px; }
.intro__kv div b { color: var(--teal); font-weight: 500; }

/* -----------------------------------------------------------------
   Tools rack
   ----------------------------------------------------------------- */
.rack {
  display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden;
  background: var(--bg-1);
}
.rack__head {
  display: grid;
  grid-template-columns: 80px 1.6fr 2fr 180px 40px;
  gap: 16px;
  padding: 12px 20px;
  background: var(--bg-2);
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.rack .row {
  display: grid;
  grid-template-columns: 80px 1.6fr 2fr 180px 40px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.rack .row:last-child { border-bottom: none; }
.rack .row:hover { background: var(--bg-2); }
.rack .row:hover .row__arrow { color: var(--teal); transform: translateX(4px); }
.row__id { font-family: var(--fs-mono); font-size: 11px; color: var(--ink-3); }
.row__name { display: flex; flex-direction: column; gap: 2px; }
.row__name b {
  font-family: var(--fs-mono);
  font-size: 15px; font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}
.row__name span { font-family: var(--fs-mono); font-size: 11px; color: var(--teal-dim); }
.row__desc { color: var(--ink-1); font-size: 14px; }
.row__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.row__arrow {
  font-family: var(--fs-mono); color: var(--ink-3);
  transition: all 0.15s; text-align: right;
}

/* -----------------------------------------------------------------
   Tags
   ----------------------------------------------------------------- */
.tag {
  font-family: var(--fs-mono);
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  color: var(--ink-1);
  border-radius: 3px;
  letter-spacing: 0.04em;
  display: inline-block;
}
.tag.teal { color: var(--teal); border-color: color-mix(in oklch, var(--teal) 35%, var(--line)); }
.tag.amber { color: var(--amber); border-color: color-mix(in oklch, var(--amber) 35%, var(--line)); }
.tag.magenta { color: var(--magenta); border-color: color-mix(in oklch, var(--magenta) 35%, var(--line)); }
.tag.violet { color: var(--violet); border-color: color-mix(in oklch, var(--violet) 35%, var(--line)); }

/* -----------------------------------------------------------------
   Guides grid (home)
   ----------------------------------------------------------------- */
.guides {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--bg-1);
}
.guide {
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
  cursor: pointer; position: relative;
  transition: background 0.12s;
  color: inherit; text-decoration: none;
}
.guide:nth-child(3n) { border-right: none; }
.guide:nth-last-child(-n+3) { border-bottom: none; }
.guide:hover { background: var(--bg-2); }
.guide__num {
  font-family: var(--fs-mono);
  font-size: 11px; color: var(--teal);
  letter-spacing: 0.08em;
}
.guide__title {
  font-family: var(--fs-display);
  font-size: 22px; letter-spacing: -0.02em;
  font-weight: 500; line-height: 1.15;
  color: var(--ink-0);
}
.guide__desc { font-size: 13px; color: var(--ink-2); margin-top: auto; }
.guide__meta {
  font-family: var(--fs-mono);
  font-size: 11px; color: var(--ink-3);
  display: flex; justify-content: space-between;
}

/* -----------------------------------------------------------------
   Footer
   ----------------------------------------------------------------- */
.theme-new .footer {
  padding: 48px 0 64px;
  font-family: var(--fs-mono);
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  background: transparent;
  margin-top: 0;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.theme-new .footer h4 {
  font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 12px;
  font-weight: 500;
}
.theme-new .footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.theme-new .footer a { color: var(--ink-1); }
.theme-new .footer a:hover { color: var(--teal); }
.footer__ascii {
  color: var(--teal-dim);
  font-size: 10px; line-height: 1.2;
  white-space: pre; opacity: 0.8;
  margin: 0;
}
.footer__intro { margin-top: 16px; max-width: 36ch; color: var(--ink-2); }
.footer__bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

/* -----------------------------------------------------------------
   Wizard / form
   ----------------------------------------------------------------- */
.page-head {
  padding: 56px 32px 28px;
  border-bottom: 1px dashed var(--line);
  max-width: 1280px;
  margin: 0 auto;
}
.crumbs {
  font-family: var(--fs-mono);
  font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.06em; margin-bottom: 14px;
}
.crumbs a { color: var(--ink-1); }
.crumbs .sep { margin: 0 8px; color: var(--ink-3); }
.crumbs .cur { color: var(--teal); }

.page-head__eyebrow {
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-title {
  font-family: var(--fs-display);
  font-size: 56px; letter-spacing: -0.035em;
  font-weight: 500; margin: 0;
  line-height: 1;
}
.page-title .accent { color: var(--teal); }
.page-sub {
  font-family: var(--fs-mono);
  font-size: 14px; color: var(--ink-2);
  margin-top: 14px;
}

.wizard {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 48px;
  padding: 40px 32px 80px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.wizard__form { min-width: 0; }
.wizard__preview { min-width: 0; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px;
  border: 1px solid color-mix(in oklch, var(--amber) 40%, var(--line));
  background: color-mix(in oklch, var(--amber) 8%, var(--bg-1));
  border-radius: 4px;
  font-family: var(--fs-mono);
  font-size: 12px;
  color: var(--ink-1);
  margin-bottom: 28px;
}
.notice .ico { color: var(--amber); flex-shrink: 0; }

.fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-1);
  margin-bottom: 20px;
}
.fieldset__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.fieldset__title {
  font-family: var(--fs-mono);
  font-size: 12px; color: var(--ink-0);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.fieldset__title .num { color: var(--teal); margin-right: 10px; }
.fieldset__hint {
  font-family: var(--fs-mono);
  font-size: 11px; color: var(--ink-3);
}
.fieldset__body {
  padding: 20px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.fieldset__body .span-2 { grid-column: span 2; }
.fieldset__body--single { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label {
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--ink-1);
  letter-spacing: 0.04em;
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0;
}
.field__label .flag { color: var(--teal); font-weight: 500; }
.field__hint {
  font-family: var(--fs-mono);
  font-size: 11px; color: var(--ink-3);
  margin-top: 2px;
}

.input, .select, .textarea {
  background: var(--bg-0);
  border: 1px solid var(--line);
  color: var(--ink-0);
  font-family: var(--fs-mono);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  width: 100%;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.textarea { resize: vertical; min-height: 80px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%2368d4c6' fill='none' stroke-width='1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.check-row { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.check, .radio {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fs-mono); font-size: 12px;
  color: var(--ink-1);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  background: var(--bg-0);
  transition: all 0.12s;
  user-select: none;
}
.check:hover, .radio:hover { border-color: var(--line-strong); color: var(--ink-0); }
.check input, .radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.check:has(input:checked), .radio:has(input:checked) {
  border-color: var(--teal);
  background: color-mix(in oklch, var(--teal) 10%, var(--bg-0));
  color: var(--teal-bright);
}
.check .box {
  width: 12px; height: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--teal);
  flex-shrink: 0;
}
.check:has(input:checked) .box {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--bg-0);
}
.check:has(input:checked) .box::after { content: '✓'; }
.radio .box {
  width: 12px; height: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.radio:has(input:checked) .box { border-color: var(--teal); }
.radio:has(input:checked) .box::after {
  content: '';
  position: absolute; inset: 2px;
  background: var(--teal); border-radius: 50%;
}

.btn-row {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--fs-mono);
  font-size: 12px;
  padding: 9px 16px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  color: var(--ink-1);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.12s;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { color: var(--ink-0); border-color: var(--teal-dim); }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--bg-0);
  font-weight: 600;
}
.btn.primary:hover { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--bg-0); }

/* Slider */
.slider-row { display: flex; align-items: center; gap: 14px; }
.slider {
  flex: 1;
  appearance: none;
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  outline: none;
}
.slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal-glow);
  cursor: pointer;
  border: none;
}
.slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal-glow);
  cursor: pointer;
  border: none;
}
.slider-val {
  font-family: var(--fs-mono);
  font-size: 12px;
  color: var(--teal);
  min-width: 36px;
  text-align: right;
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip {
  font-family: var(--fs-mono); font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 3px;
  cursor: pointer;
  background: var(--bg-0);
}
.chip:hover { border-color: var(--teal-dim); color: var(--teal); }
.chip[data-on="true"] {
  background: color-mix(in oklch, var(--teal) 12%, var(--bg-0));
  color: var(--teal);
  border-color: var(--teal-dim);
}

/* -----------------------------------------------------------------
   Tool about (collapsible) — bottom of wizard form
   ----------------------------------------------------------------- */
.tool-about {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-1);
  margin-top: 24px;
  overflow: hidden;
}
.tool-about > summary {
  padding: 14px 20px;
  font-family: var(--fs-mono);
  font-size: 12px;
  color: var(--ink-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s;
}
.tool-about > summary::-webkit-details-marker { display: none; }
.tool-about > summary::after {
  content: '▾';
  color: var(--teal);
  font-size: 11px;
  transition: transform 0.15s;
}
.tool-about[open] > summary {
  border-bottom-color: var(--line);
}
.tool-about[open] > summary::after { transform: rotate(180deg); }
.tool-about__body {
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink-1);
  line-height: 1.6;
}
.tool-about__body p { margin: 0 0 12px; }
.tool-about__body p:last-child { margin-bottom: 0; }
.tool-about__body strong { color: var(--ink-0); font-weight: 500; }
.tool-about__body code {
  background: var(--bg-0);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--fs-mono);
  font-size: 0.9em;
  color: var(--teal);
}
.tool-about__body a {
  color: var(--teal);
  border-bottom: 1px dashed color-mix(in oklch, var(--teal) 50%, transparent);
}
.tool-about__body a:hover { color: var(--teal-bright); }
.tool-about__body h3 {
  font-family: var(--fs-display);
  font-size: 17px;
  font-weight: 500;
  margin: 18px 0 8px;
  color: var(--ink-0);
}
.tool-about__body ul, .tool-about__body ol {
  padding-left: 22px;
  margin: 8px 0 14px;
}
.tool-about__body li { margin-bottom: 4px; }

/* -----------------------------------------------------------------
   Preview panel (wizard right column)
   ----------------------------------------------------------------- */
.preview {
  position: sticky; top: 80px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-1);
  overflow: hidden;
}
.preview__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.preview__head .dots { display: flex; gap: 5px; }
.preview__head .dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg-3);
}
.preview__head .dots span:first-child { background: var(--teal); }
.preview__body {
  padding: 18px;
  font-family: var(--fs-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-0);
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 280px;
  max-height: 520px;
  overflow: auto;
  background: var(--bg-0);
}
.preview__body:empty::before {
  content: '$ command will appear here…';
  color: var(--ink-3);
}
.preview__foot {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.preview__copy-status {
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--teal);
  align-self: center;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.15s;
}
.preview__copy-status.show { opacity: 1; }

/* -----------------------------------------------------------------
   Guide page (3-column TOC | prose | aside)
   ----------------------------------------------------------------- */
.guide-layout {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 48px;
  padding: 40px 32px 80px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.toc {
  position: sticky; top: 80px;
  font-family: var(--fs-mono); font-size: 12px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.toc__label {
  font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.toc a {
  display: block;
  color: var(--ink-2);
  padding: 5px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
}
.toc a.active { color: var(--teal); border-color: var(--teal); }
.toc a span { color: var(--ink-3); margin-right: 10px; }
.toc a:hover { color: var(--ink-0); }

.guide-prose { max-width: 72ch; min-width: 0; }
.guide-prose h1 {
  font-family: var(--fs-display);
  font-size: 54px; letter-spacing: -0.035em;
  font-weight: 500; margin: 0 0 10px; line-height: 1;
  color: var(--ink-0);
}
.guide-prose .lede {
  font-family: var(--fs-mono); font-size: 14px;
  color: var(--ink-2); margin-bottom: 40px;
}
.guide-prose h2 {
  font-family: var(--fs-display);
  font-size: 28px; letter-spacing: -0.02em;
  font-weight: 500;
  margin: 44px 0 14px;
  color: var(--ink-0);
}
.guide-prose h2[data-num]::before,
.about-prose h2[data-num]::before {
  content: '[ ' attr(data-num) ' ]';
  display: block;
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.guide-prose h3 {
  font-family: var(--fs-display);
  font-size: 19px; font-weight: 500;
  margin: 30px 0 10px;
  letter-spacing: -0.01em;
  color: var(--ink-0);
}
.guide-prose p { color: var(--ink-1); margin: 0 0 12px; }
.guide-prose a { color: var(--teal); border-bottom: 1px dashed color-mix(in oklch, var(--teal) 50%, transparent); }
.guide-prose a:hover { color: var(--teal-bright); border-color: var(--teal-bright); }
.guide-prose strong { color: var(--ink-0); }
.guide-prose ul, .guide-prose ol {
  color: var(--ink-1);
  padding-left: 22px;
  margin: 12px 0 18px;
}
.guide-prose ul li, .guide-prose ol li { margin-bottom: 6px; }
.callout {
  border-left: 2px solid var(--teal);
  background: color-mix(in oklch, var(--teal) 6%, var(--bg-1));
  padding: 14px 18px;
  font-size: 14px; color: var(--ink-1);
  margin: 18px 0;
}
.callout b { color: var(--teal); }

.snippet {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 16px 0;
  overflow: hidden;
}
.snippet__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--fs-mono); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.snippet__copy {
  color: var(--ink-1);
  background: none; border: none; padding: 0;
  font: inherit; letter-spacing: inherit;
  cursor: pointer;
}
.snippet__copy:hover { color: var(--teal); }
.snippet__copy.copied { color: var(--teal); }
.snippet pre {
  margin: 0;
  padding: 14px 16px;
  background: transparent;
  overflow-x: auto;
}
.snippet pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--fs-mono);
  font-size: 12.5px;
  color: var(--teal-bright);
  line-height: 1.65;
  white-space: pre;
}

.guide-prose code, .guide-prose code.inline {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--fs-mono);
  font-size: 0.92em;
  color: var(--teal);
}

.guide-prose table {
  width: 100%; border-collapse: collapse;
  margin: 10px 0 20px;
  font-family: var(--fs-mono); font-size: 12.5px;
}
.guide-prose th, .guide-prose td {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.guide-prose th {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  background: var(--bg-2);
}
.guide-prose tbody tr:hover { background: var(--bg-1); }

.aside {
  position: sticky; top: 80px;
  font-family: var(--fs-mono); font-size: 11.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  background: var(--bg-1);
}
.aside h4 {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-3);
  margin: 0 0 12px; font-weight: 500;
}
.aside ul {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.aside a { color: var(--ink-1); }
.aside a:hover { color: var(--teal); }
.aside .divider { height: 1px; background: var(--line); margin: 14px -18px; }
.aside__value { color: var(--ink-1); font-size: 12px; }

.post-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-family: var(--fs-mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* -----------------------------------------------------------------
   About page
   ----------------------------------------------------------------- */
.about-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.about-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, color-mix(in oklch, var(--teal) 22%, transparent), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 80%, color-mix(in oklch, var(--magenta) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 80% at 50% 100%, color-mix(in oklch, var(--violet) 14%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  pointer-events: none;
}
.about-hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, oklch(0 0 0 / 0.18) 2px 3px),
    linear-gradient(oklch(1 0 0 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.025) 1px, transparent 1px);
  background-size: 100% 3px, 48px 48px, 48px 48px;
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.about-hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.about-hero__prompt {
  font-family: var(--fs-mono);
  font-size: 11px; color: var(--teal);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.about-hero__title {
  font-family: var(--fs-display);
  font-size: 72px; letter-spacing: -0.04em;
  font-weight: 500; line-height: 1;
  margin: 16px 0 18px;
  max-width: 16ch;
  color: var(--ink-0);
}
.about-hero__title .accent {
  background: linear-gradient(90deg, var(--teal-bright), var(--teal-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-hero__sub {
  font-family: var(--fs-mono);
  font-size: 15px; color: var(--ink-1);
  max-width: 60ch; margin: 0 0 32px;
  line-height: 1.55;
}
.about-hero__kv {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--fs-mono); font-size: 12px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  max-width: 600px;
}
.about-hero__kv > div { display: flex; flex-direction: column; gap: 3px; }
.about-hero__kv span {
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.about-hero__kv b { color: var(--teal); font-weight: 500; }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  padding: 48px 32px 80px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.about-prose { max-width: 72ch; min-width: 0; }
.about-prose h2 {
  font-family: var(--fs-display);
  font-size: 28px; letter-spacing: -0.02em;
  font-weight: 500;
  margin: 40px 0 14px;
  color: var(--ink-0);
}
.about-prose h2:first-child { margin-top: 0; }
.about-prose h3 {
  font-family: var(--fs-display);
  font-size: 19px; font-weight: 500;
  margin: 26px 0 10px;
  color: var(--ink-0);
}
.about-prose p {
  color: var(--ink-1);
  margin: 0 0 14px;
  line-height: 1.6;
}
.about-prose a {
  color: var(--teal);
  border-bottom: 1px dashed color-mix(in oklch, var(--teal) 50%, transparent);
}
.about-prose a:hover { color: var(--teal-bright); border-color: var(--teal-bright); }
.about-prose strong, .about-prose b { color: var(--ink-0); font-weight: 500; }
.about-prose ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.about-prose ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-1);
  line-height: 1.55;
}
.about-prose ul li::before {
  content: '▸';
  position: absolute;
  left: 0; top: 0;
  color: var(--teal);
  font-family: var(--fs-mono);
  font-size: 13px;
}
.about-prose code {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--fs-mono);
  font-size: 0.92em;
  color: var(--teal);
}

/* -----------------------------------------------------------------
   Basic page (Privacy, 404, simple content)
   ----------------------------------------------------------------- */
.basic-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.basic-page__head {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 22px;
  margin-bottom: 28px;
}
.basic-page__title {
  font-family: var(--fs-display);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.05;
  color: var(--ink-0);
}
.basic-page__title .accent { color: var(--teal); }
.basic-page__sub {
  font-family: var(--fs-mono);
  font-size: 13px;
  color: var(--ink-2);
  margin: 12px 0 0;
}

/* -----------------------------------------------------------------
   404
   ----------------------------------------------------------------- */
.notfound {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 32px;
}
.notfound__code {
  font-family: var(--fs-mono);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.notfound__title {
  font-family: var(--fs-display);
  font-size: 96px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 18px;
  color: var(--ink-0);
}
.notfound__title .accent {
  background: linear-gradient(90deg, var(--teal-bright), var(--teal-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound__body {
  font-family: var(--fs-mono);
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 36px;
  max-width: 60ch;
  line-height: 1.6;
}
.notfound__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-1);
  overflow: hidden;
}
.notfound__list a {
  display: block;
  padding: 16px 20px;
  color: var(--ink-1);
  font-family: var(--fs-mono);
  font-size: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}
.notfound__list a:nth-child(2n) { border-right: none; }
.notfound__list a:hover { background: var(--bg-2); color: var(--teal); }
.notfound__list a b { color: var(--ink-0); display: block; margin-bottom: 2px; font-weight: 500; }
.notfound__list a span { color: var(--ink-3); font-size: 11px; }
@media (max-width: 640px) {
  .notfound { padding: 56px 16px; }
  .notfound__title { font-size: 64px; }
  .notfound__list { grid-template-columns: 1fr; }
  .notfound__list a { border-right: none; }
}

/* Apply basic-page mobile padding */
@media (max-width: 640px) {
  .basic-page { padding: 36px 16px 60px; }
  .basic-page__title { font-size: 32px; }
}

/* -----------------------------------------------------------------
   Resources page
   ----------------------------------------------------------------- */
.resources-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 40px 32px 80px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.resources-body {
  display: flex; flex-direction: column;
  gap: 56px;
  min-width: 0;
}
.rescat { scroll-margin-top: 72px; }
.rescat__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.rescat__title {
  font-family: var(--fs-display);
  font-size: 32px; font-weight: 500;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
  color: var(--ink-0);
}
.reslist {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-1);
  overflow: hidden;
}
.resitem {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.12s;
  align-items: flex-start;
}
.resitem:last-child { border-bottom: none; }
.resitem:hover { background: var(--bg-2); }
.resitem:hover .resitem__arrow { color: var(--teal); transform: translate(3px, -3px); }
.resitem__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.resitem__title {
  font-family: var(--fs-display);
  font-size: 19px; font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 8px;
}
.resitem__arrow {
  color: var(--ink-3);
  font-size: 14px;
  transition: all 0.15s;
  margin-left: 2px;
}
.resitem__url {
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--teal-dim);
  letter-spacing: 0.02em;
  word-break: break-all;
}
.resitem__desc {
  font-size: 13.5px;
  color: var(--ink-1);
  margin-top: 4px;
  line-height: 1.55;
  max-width: 70ch;
}
.resitem__meta {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 8px;
}
.resitem__kind {
  font-family: var(--fs-mono);
  font-size: 10px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.1em;
  background: var(--bg-0);
}
/* -----------------------------------------------------------------
   Blog
   ----------------------------------------------------------------- */
.blog-layout {
  padding: 40px 32px 64px;
  display: flex; flex-direction: column; gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.blog-featured {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--teal) 6%, var(--bg-1)), var(--bg-1));
  padding: 40px 44px;
  cursor: pointer;
  transition: border-color 0.12s;
  position: relative;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
}
.blog-featured::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 240px; height: 240px;
  background: radial-gradient(circle at top right, var(--teal-glow), transparent 70%);
  pointer-events: none;
}
.blog-featured:hover { border-color: var(--teal-dim); }
.blog-featured__tag {
  font-family: var(--fs-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.blog-featured__title {
  font-family: var(--fs-display);
  font-size: 44px; letter-spacing: -0.03em;
  font-weight: 500; line-height: 1.05;
  margin: 0 0 14px;
  max-width: 22ch;
  color: var(--ink-0);
}
.blog-featured__excerpt {
  color: var(--ink-1);
  font-size: 17px;
  margin: 0 0 20px;
  max-width: 60ch;
  line-height: 1.5;
}
.blog-featured__meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--fs-mono); font-size: 12px;
  color: var(--ink-3);
}

.bloglist {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.blogrow {
  display: grid;
  grid-template-columns: 88px 1fr 32px;
  gap: 28px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s;
}
.blogrow:last-child { border-bottom: none; }
.blogrow:hover { background: var(--bg-1); }
.blogrow:hover .blogrow__title { color: var(--teal); }
.blogrow:hover .blogrow__arrow { color: var(--teal); transform: translateX(4px); }
.blogrow__date {
  font-family: var(--fs-mono);
  display: flex; flex-direction: column;
  padding-top: 2px;
}
.blogrow__date b {
  font-size: 28px;
  color: var(--ink-0);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.blogrow__date span {
  font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em; margin-top: 4px;
}
.blogrow__body { min-width: 0; }
.blogrow__head {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--fs-mono); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 8px;
}
.blogrow__tag {
  color: var(--teal);
  padding: 2px 8px;
  border: 1px solid color-mix(in oklch, var(--teal) 35%, var(--line));
  border-radius: 3px;
}
.blogrow__title {
  font-family: var(--fs-display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin-bottom: 6px;
  transition: color 0.12s;
}
.blogrow__excerpt {
  color: var(--ink-2);
  font-size: 14px;
  max-width: 70ch;
  line-height: 1.5;
}
.blogrow__arrow {
  color: var(--ink-3);
  font-family: var(--fs-mono);
  padding-top: 8px;
  transition: all 0.15s;
  text-align: right;
}

/* -----------------------------------------------------------------
   Responsive — desktop-first, then tablet, then mobile
   ----------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1023px) {
  .shell { padding: 0 24px; }

  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0 36px;
  }
  .intro__headline { font-size: 40px; }

  .wizard {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px 60px;
  }
  .preview {
    position: static;
    max-height: none;
  }

  .guide-layout {
    grid-template-columns: 1fr 220px;
    gap: 32px;
    padding: 32px 24px 60px;
  }
  .toc { display: none; }

  .resources-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px 60px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 24px 60px;
  }

  .guides { grid-template-columns: repeat(2, 1fr); }
  .guide:nth-child(3n) { border-right: 1px solid var(--line); }
  .guide:nth-child(2n) { border-right: none; }
  .guide:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .guide:nth-last-child(-n+2) { border-bottom: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .rack__head { display: none; }
  .rack .row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 18px;
  }
  .rack .row__id { font-size: 10px; }
  .rack .row__arrow { display: none; }

  .resitem { grid-template-columns: 1fr; }
  .resitem__meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }

  .hero__media { height: 460px; }
  .hero__marker { left: 50%; transform: translateX(-50%); top: 50%; }
}

/* Mobile */
@media (max-width: 640px) {
  body.theme-new { font-size: 14px; }

  .shell { padding: 0 16px; }

  .topbar__inner { gap: 12px; height: 52px; }
  .nav { display: none; }
  .nav__burger { display: inline-flex; }

  .hero__media { height: 360px; }
  .hero__overlay { padding: 18px; }
  .hero__hud { font-size: 10px; }

  .section { padding: 40px 0; }
  .section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .section__title { font-size: 28px; }
  .section__right { text-align: left; }

  .intro__headline { font-size: 32px; }
  .intro__body { font-size: 15px; }

  .page-head { padding: 36px 16px 20px; }
  .page-title { font-size: 36px; }

  .wizard { padding: 24px 16px 24px; gap: 20px; }
  .fieldset__body { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .fieldset__body .span-2 { grid-column: span 1; }
  .fieldset__head { padding: 12px 14px; }

  .preview { position: static; max-height: none; }

  .guide-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 48px;
    gap: 24px;
  }
  .aside { position: static; }

  .resources-layout { padding: 24px 16px 48px; }
  .reslist { border-radius: 5px; }
  .resitem { padding: 14px 16px; gap: 8px; }

  .about-hero { padding: 40px 0 32px; }
  .about-hero__inner { padding: 0 16px; }
  .about-hero__title { font-size: 44px; }
  .about-hero__sub { font-size: 13px; }
  .about-layout { padding: 32px 16px 48px; gap: 24px; }

  .guides { grid-template-columns: 1fr; }
  .guide { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .guide:last-child { border-bottom: none !important; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .theme-new .footer { padding: 32px 0 40px; }

  .blog-layout { padding: 24px 16px 40px; }
  .blog-featured { padding: 24px 22px; }
  .blog-featured__title { font-size: 30px; }
  .blogrow {
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding: 18px 0;
  }
  .blogrow__arrow { display: none; }
}

/* -----------------------------------------------------------------
   Reduced motion
   ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .brand__cursor,
  .ticker__track {
    animation: none;
  }
  .brand__cursor { opacity: 1; }
  .ticker { overflow-x: auto; }
  .topbar { transition: none; }
  .topbar.headroom--unpinned { transform: none; }
}
