/* hotdogcms.org: "late shift". A dark-first look (with a full light mode)
   built on two condiments and one variable font. Recursive (SIL Open Font
   License, static/fonts/OFL.txt) has a Mono axis and a Casual axis; the site
   uses both, the way the wordmark does: code in Mono, headlines in Casual. */
@font-face {
  font-family: "Recursive";
  src: url("/fonts/recursive.woff2") format("woff2");
  font-weight: 300 1000;
  font-display: swap;
}

/* ---- Palette --------------------------------------------------------------
   Every color lives here. site.yaml's look: overrides the few the editor's
   Look panel offers; nothing below names a color directly. */
:root {
  --bg: #fbf8f3;
  --bg-2: #f4efe7;
  --surface: #ffffff;
  --surface-2: #f7f3ed;
  --text: #15111b;
  --muted: #5d5666;
  --line: #e6dfd5;
  --line-2: #d8cfc2;
  --accent: #c8352a;
  --accent-text: #ffffff;
  --accent-soft: #fbe5df;
  --mustard: #f4be2c;
  --ketchup: #e4483a;
  --relish: #127a4a;
  --sky: #1f6fd1;
  --hero: var(--bg);
  --hero-text: var(--text);
  --band: #15111b;
  --band-text: #fbf8f3;
  --grad: linear-gradient(100deg, #d62f20 0%, #e8601c 48%, #c98a00 100%);
  --grad-bright: linear-gradient(100deg, #ff4d3d 0%, #ff8a2a 50%, #ffc53d 100%);
  --glow-a: rgba(228, 72, 58, .16);
  --glow-b: rgba(244, 190, 44, .22);
  --grid: rgba(21, 17, 27, .055);
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 24px 60px -28px rgba(40, 20, 10, .28), 0 2px 6px -2px rgba(40, 20, 10, .08);
  --glass: rgba(251, 248, 243, .72);
  --code-bg: #15111b;
  --code-text: #f3ede4;
  --radius: 14px;
  --font: "Recursive", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Recursive", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0a0f; --bg-2: #100e15; --surface: #16131d; --surface-2: #1d1926;
    --text: #f7f2ea; --muted: #a39cae; --line: #262130; --line-2: #342d40;
    --accent: #ffc53d; --accent-text: #1a1206; --accent-soft: rgba(255, 197, 61, .12);
    --relish: #5fe3a1; --sky: #7cb8ff; --band: #07060a; --band-text: #f7f2ea;
    --grad: var(--grad-bright);
    --glow-a: rgba(255, 77, 61, .22); --glow-b: rgba(255, 197, 61, .16); --grid: rgba(255, 255, 255, .045);
    --shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255,255,255,.02);
    --glass: rgba(11, 10, 15, .66); --code-bg: #07060a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0a0f; --bg-2: #100e15; --surface: #16131d; --surface-2: #1d1926;
  --text: #f7f2ea; --muted: #a39cae; --line: #262130; --line-2: #342d40;
  --accent: #ffc53d; --accent-text: #1a1206; --accent-soft: rgba(255, 197, 61, .12);
  --relish: #5fe3a1; --sky: #7cb8ff; --band: #07060a; --band-text: #f7f2ea;
  --grad: var(--grad-bright);
  --glow-a: rgba(255, 77, 61, .22); --glow-b: rgba(255, 197, 61, .16); --grid: rgba(255, 255, 255, .045);
  --shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255,255,255,.02);
  --glass: rgba(11, 10, 15, .66); --code-bg: #07060a;
  color-scheme: dark;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--font);
  font-variation-settings: "MONO" 0, "CASL" 0;
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
::selection { background: var(--mustard); color: #1a1206; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, video { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; font-variation-settings: "CASL" .35; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 .5em; }
h3 { line-height: 1.25; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
code, kbd, pre { font-family: var(--font-mono); font-variation-settings: "MONO" 1, "CASL" 0; }
code { font-size: .88em; background: var(--accent-soft); padding: .12em .38em; border-radius: 6px; }
pre {
  background: var(--code-bg); color: var(--code-text); padding: 18px 20px; border-radius: var(--radius);
  overflow-x: auto; font-size: .9rem; line-height: 1.6; border: 1px solid var(--line);
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.muted { color: var(--muted); }

/* ---- Top bar ------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--glass);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
}
.top.scrolled::after { opacity: .9; }
.top-in { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; width: min(1320px, 100% - 32px); }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; margin-right: auto; display: inline-flex; align-items: center; gap: .55rem; }
.brand-logo { height: 32px; width: auto; display: block; }
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
#site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
#site-nav a, #site-nav .sub summary {
  display: block; padding: 7px 12px; border-radius: 999px; color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: .95rem; transition: color .15s, background .15s;
}
#site-nav a:hover, #site-nav .sub summary:hover { color: var(--text); background: var(--accent-soft); }
#site-nav a[aria-current="page"], #site-nav a.active, #site-nav .sub summary.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
/* A drop-down in the main menu (a menu item with a menu of its own name). */
#site-nav .sub { position: relative; }
#site-nav .sub summary { list-style: none; cursor: pointer; }
#site-nav .sub summary::-webkit-details-marker { display: none; }
#site-nav .sub summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
#site-nav .sub[open] summary::after { transform: rotate(-135deg); margin-bottom: -1px; }
#site-nav .sub[open] summary { color: var(--text); background: var(--accent-soft); }
#site-nav .sub ul {
  position: absolute; z-index: 40; top: calc(100% + 10px); left: -6px; min-width: 250px; display: block; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  animation: pop .16s ease-out;
}
#site-nav .sub li a { white-space: nowrap; border-radius: 10px; color: var(--text); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.theme { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.theme button { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.7rem; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.theme button:hover { color: var(--text); }
.theme button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 0 0 1px var(--line); }
.theme svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Sponsor: GitHub Sponsors' pink heart is its only color, as on the other
   Coffey Labs sites. First to go when the bar runs short; the footer link
   stays at every width. */
.sponsor { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .88rem; background: var(--surface-2); }
.sponsor:hover { color: var(--text); border-color: #db61a2; }
.sponsor svg { width: 14px; height: 14px; fill: none; stroke: #db61a2; stroke-width: 2; stroke-linejoin: round; }
.sponsor:hover svg { fill: #db61a2; }
@media (max-width: 1180px) { .top .sponsor { display: none; } }
.menu-btn { display: none; font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  #site-nav { display: none; order: 3; width: 100%; padding-bottom: 14px; }
  #site-nav.open { display: block; animation: pop .16s ease-out; }
  #site-nav ul { flex-direction: column; }
  #site-nav a, #site-nav .sub summary { border-radius: 12px; padding: 10px 12px; }
  #site-nav .sub ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; background: none; animation: none; }
  .theme { order: 2; }
}

/* ---- Buttons and small parts --------------------------------------------- */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; gap: .5em; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--b); color: var(--text); background: var(--surface); text-decoration: none;
  font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--text); }
.btn.primary {
  color: #1a1206; border-color: transparent;
  background: var(--grad-bright);
  box-shadow: 0 10px 30px -10px rgba(255, 110, 50, .65), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn.primary:hover { box-shadow: 0 16px 40px -12px rgba(255, 110, 50, .8), inset 0 1px 0 rgba(255,255,255,.4); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 750; color: var(--accent); margin: 0 0 16px; font-variation-settings: "MONO" 1; }
.eyebrow a { text-decoration: none; }
.pill {
  display: inline-flex; align-items: center; gap: .6em; padding: 5px 14px 5px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  font-size: .86rem; font-weight: 600; box-shadow: var(--shadow); margin-bottom: 26px;
}
.pill b { background: var(--grad-bright); color: #1a1206; border-radius: 999px; padding: 2px 9px; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; font-variation-settings: "MONO" 1; }
.pill:hover { border-color: var(--line-2); text-decoration: none; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.lede p { margin: 0 0 .6em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.copy {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-mono); font-variation-settings: "MONO" 1;
  font-size: .86rem; color: var(--text); max-width: 100%;
}
.copy code { background: none; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy code::before { content: "$ "; color: var(--accent); }
.copy button { flex: none; font: inherit; font-size: .78rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.copy button.done { background: var(--relish); color: #fff; border-color: transparent; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 7vw, 72px); background: var(--hero, transparent); color: var(--hero-text, inherit); overflow: hidden; isolation: isolate; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); max-width: 16ch; }
.hero .lede, .hero .eyebrow { color: inherit; }
.hero .lede { opacity: .88; }
.hero.with-picture .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-picture { margin: 0; }
.hero-picture img { display: block; width: 100%; height: auto; }
@media (max-width: 820px) { .hero.with-picture .wrap { grid-template-columns: 1fr; } .hero-picture { order: -1; } }

/* The backdrop: a grid that fades out and two condiment glows. */
.glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow::before {
  content: ""; position: absolute; inset: -1px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.glow i { position: absolute; border-radius: 50%; filter: blur(70px); }
.glow i:nth-child(1) { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; left: -12vw; top: 10%; background: var(--glow-a); animation: drift 18s ease-in-out infinite alternate; }
.glow i:nth-child(2) { width: 40vw; height: 40vw; max-width: 640px; max-height: 640px; right: -10vw; top: -14%; background: var(--glow-b); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(6vw, 4vh) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .glow i { animation: none; } }

.hero-live { padding-bottom: clamp(48px, 8vw, 96px); text-align: center; }
.hero-live .hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-live h1 {
  font-size: clamp(2.6rem, 7.6vw, 5.6rem); max-width: 15ch; margin: 0 auto .32em; line-height: .98; letter-spacing: -0.04em;
  font-weight: 900;
}
.hero-live h1 .ln { display: block; }
.hero-live h1 .ln.mono { font-variation-settings: "MONO" 1, "CASL" 0; font-weight: 700; letter-spacing: -0.06em; font-size: .86em; }
.hero-live h1 .ln.casual { font-variation-settings: "MONO" 0, "CASL" 1; }
.hero-live h1 .ln.grad { font-variation-settings: "MONO" 0, "CASL" 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-live .lede { margin-inline: auto; }
.hero-live .actions { justify-content: center; }
.hero-live .copy { margin-top: 22px; }

/* ---- The live editor (hero) ---------------------------------------------- */
.studio-wrap { position: relative; margin: clamp(80px, 10vw, 110px) auto 0; max-width: 1120px; text-align: left; }
.studio-wrap .peek { position: absolute; width: 112px; height: auto; top: -68px; right: 9%; z-index: 2; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.studio-wrap:hover .peek { transform: translateY(-6px) rotate(-3deg); }
.studio-wrap::after { content: ""; position: absolute; inset: 10% 8% -6%; z-index: -1; background: var(--grad-bright); filter: blur(90px); opacity: .22; border-radius: 50%; }
.studio {
  position: relative; z-index: 1; border-radius: 22px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--mustard) 18%, transparent);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: clamp(460px, 56vw, 560px);
}
.st-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.st-dots { display: flex; gap: 7px; }
.st-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.st-dots i:nth-child(1) { background: #ff5f57; } .st-dots i:nth-child(2) { background: #febc2e; } .st-dots i:nth-child(3) { background: #28c840; }
.st-tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-inline: auto; }
.st-tabs button { font: inherit; font-size: .82rem; font-weight: 650; border: 0; background: none; color: var(--muted); padding: 5px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.st-tabs button small { font-size: .68rem; font-weight: 600; opacity: .7; font-variation-settings: "MONO" 1; }
.st-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.2), inset 0 0 0 1px var(--line); }
.st-view { display: inline-flex; gap: 2px; }
.st-view button { width: 30px; height: 28px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.st-view button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.st-view svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 0; }
.st-pane { min-height: 0; display: flex; flex-direction: column; }
.st-pane + .st-pane { border-left: 1px solid var(--line); }
.st-label { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 650; color: var(--muted); padding: 8px 16px; border-bottom: 1px dashed var(--line); font-variation-settings: "MONO" 1; letter-spacing: .02em; }
.st-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--relish); box-shadow: 0 0 0 3px color-mix(in srgb, var(--relish) 25%, transparent); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.st-label .url { margin-left: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-src {
  flex: 1; width: 100%; resize: none; border: 0; outline: 0; background: var(--surface); color: var(--text);
  font-family: var(--font-mono); font-variation-settings: "MONO" 1, "CASL" 0; font-size: .92rem; line-height: 1.75;
  padding: 16px 18px; tab-size: 2; caret-color: var(--accent);
}
.st-src:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent-soft); border-radius: 0; }
.st-out-wrap { flex: 1; min-height: 0; overflow: auto; background: var(--bg-2); display: flex; justify-content: center; padding: 16px; }
.st-out {
  width: 100%; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px;
  transition: max-width .45s cubic-bezier(.4,0,.2,1); overflow-wrap: anywhere; font-size: .95rem; align-self: flex-start;
}
.st-out[data-w="tablet"] { max-width: 420px; }
.st-out[data-w="phone"] { max-width: 260px; font-size: .86rem; padding: 18px; }
.st-out > :first-child { margin-top: 0; }
.st-out h1 { font-size: 1.85rem; letter-spacing: -0.03em; font-variation-settings: "CASL" 1; margin: 0 0 .4em; }
.st-out h2 { font-size: 1.2rem; margin: 1.1em 0 .3em; font-variation-settings: "CASL" .6; }
.st-out p, .st-out ul { margin: 0 0 .75em; }
.st-out ul { padding-left: 1.2em; }
.st-out li::marker { color: var(--accent); }
.st-out blockquote { margin: 0 0 .8em; padding: 6px 14px; border-left: 3px solid var(--mustard); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.st-out .flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--mustard) 45%, transparent); } }
.st-out[contenteditable="true"] { outline: 0; box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 1px var(--accent); cursor: text; }
.st-tools { display: none; gap: 4px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--surface); align-items: center; }
.st-tools button { font: inherit; font-size: .82rem; min-width: 32px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font-weight: 700; }
.st-tools button:hover { border-color: var(--accent); }
.st-tools span { margin-left: auto; font-size: .74rem; color: var(--muted); font-variation-settings: "MONO" 1; }
.st-term { display: none; flex: 1; margin: 0; border: 0; border-radius: 0; background: var(--code-bg); color: var(--code-text); padding: 18px 20px; font-size: .84rem; overflow: auto; white-space: pre-wrap; }
.st-term .ok { color: #5fe3a1; } .st-term .bad { color: #ff7a6b; } .st-term .dim { color: #8d86a0; } .st-term .hi { color: #ffc53d; }
/* Modes: Visual hides the source, Terminal swaps it for a console. */
.studio[data-mode="visual"] .st-body { grid-template-columns: 1fr; }
.studio[data-mode="visual"] .st-pane.src { display: none; }
.studio[data-mode="visual"] .st-tools { display: flex; }
.studio[data-mode="visual"] .st-pane.out { border-left: 0; }
.studio[data-mode="terminal"] .st-src { display: none; }
.studio[data-mode="terminal"] .st-term { display: block; }
.st-foot { display: flex; align-items: center; gap: 10px 16px; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .8rem; color: var(--muted); flex-wrap: wrap; font-variation-settings: "MONO" 1; }
.st-foot .branch { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.st-foot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-checks { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 650; color: var(--relish); background: color-mix(in srgb, var(--relish) 12%, transparent); }
.st-checks.bad { color: var(--ketchup); background: color-mix(in srgb, var(--ketchup) 13%, transparent); }
.st-publish {
  margin-left: auto; font: inherit; font-variation-settings: "MONO" 0; font-weight: 750; font-size: .85rem; border: 0; cursor: pointer;
  padding: 7px 16px; border-radius: 999px; color: #1a1206; background: var(--grad-bright); box-shadow: 0 6px 20px -8px rgba(255,110,50,.7);
  display: inline-flex; align-items: center; gap: 8px; transition: filter .2s, transform .15s;
}
.st-publish:hover { transform: translateY(-1px); }
.st-publish:disabled { filter: grayscale(1); opacity: .55; cursor: not-allowed; transform: none; }
.st-toast {
  position: absolute; z-index: 3; left: 50%; bottom: 58px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: .86rem; font-weight: 600; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; transition: opacity .25s, transform .25s; white-space: nowrap;
}
.st-toast.show { opacity: 1; transform: translate(-50%, 0); }
.st-steps { display: flex; gap: 6px; }
.st-steps span { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 35%, transparent); transition: background .2s; }
.st-steps span.on { background: var(--mustard); }
.hero-note { font-size: .86rem; color: var(--muted); margin: 18px auto 0; text-align: center; }
@media (max-width: 760px) {
  .studio { height: auto; }
  .st-body { grid-template-columns: 1fr; grid-template-rows: 220px 300px; }
  .st-pane + .st-pane { border-left: 0; border-top: 1px solid var(--line); }
  .studio[data-mode="visual"] .st-body { grid-template-rows: 420px; }
  .st-view, .st-dots { display: none; }
  .st-tabs button small { display: none; }
  .studio-wrap .peek { width: 80px; top: -49px; }
  .st-saved { display: none; }
}

/* ---- Marquee -------------------------------------------------------------- */
.marquee-band { padding: 8px 0 clamp(24px, 4vw, 40px); }
.marquee-band p { text-align: center; color: var(--muted); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; margin: 0 0 16px; font-variation-settings: "MONO" 1; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: slide 50s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 650; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.marquee li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-bright); }
@keyframes slide { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) { .marquee ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee li[aria-hidden] { display: none; } .marquee { -webkit-mask-image: none; mask-image: none; } }

/* ---- Section heads ---------------------------------------------------------- */
.block { padding: clamp(56px, 9vw, 112px) 0; position: relative; }
.block.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 850; letter-spacing: -0.035em; font-variation-settings: "CASL" .8; margin-bottom: .3em; }
.head .intro, .intro { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.head.center .intro { margin-inline: auto; }
.intro p { margin: 0 0 .5em; }

/* ---- Bento ----------------------------------------------------------------- */
.bento { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bento > li { grid-column: span 2; }
.bento > li.wide { grid-column: span 4; }
.bento > li.half { grid-column: span 3; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento > li, .bento > li.half { grid-column: span 1; } .bento > li.wide { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento > li.wide { grid-column: span 1; } }
.btile {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 8px; transition: border-color .25s;
}
.btile::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), var(--glow-b), transparent 60%); opacity: 0; transition: opacity .3s; }
.btile:hover { border-color: var(--line-2); }
.btile:hover::before { opacity: 1; }
.btile h3 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "CASL" .7; position: relative; }
.btile p { margin: 0; color: var(--muted); position: relative; }
.btile .k { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-variation-settings: "MONO" 1; position: relative; }
.viz { position: relative; margin: 0 0 10px; height: 184px; min-height: 184px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; padding: 18px; font-size: .8rem; }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Flow: laptop → git → public host. */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; width: 100%; }
.node { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; font-weight: 700; font-size: .82rem; line-height: 1.3; }
.node small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.node .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin: 0 auto 8px; background: var(--accent-soft); color: var(--accent); }
.node .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node.locked { border-color: color-mix(in srgb, var(--relish) 50%, var(--line)); }
.node.locked .ic { background: color-mix(in srgb, var(--relish) 14%, transparent); color: var(--relish); }
.wire { width: 44px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); background-size: 22px 2px; animation: wire 1s linear infinite; position: relative; }
.wire::after { content: ""; position: absolute; right: -3px; top: -4px; border: 5px solid transparent; border-left-color: var(--accent); border-right: 0; }
@keyframes wire { to { background-position: 22px 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; justify-content: center; width: 100%; }
.chips span { font-size: .72rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-variation-settings: "MONO" 1; }
.chips span::before { content: "✕ "; color: var(--ketchup); }
@media (max-width: 520px) { .viz:has(.flow) { height: auto; } .flow { grid-template-columns: 1fr; } .wire { width: 2px; height: 22px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 11px); background-size: 2px 22px; } .wire::after { display: none; } }

/* Git graph. */
.gitg .lane { fill: none; stroke: var(--line-2); stroke-width: 3; stroke-linecap: round; }
.gitg .br { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.gitg .c { fill: var(--surface); stroke: var(--line-2); stroke-width: 3; }
.gitg .c.a { stroke: var(--accent); }
.gitg .c.m { fill: var(--accent); stroke: var(--accent); }
.gitg text { font: 650 11px var(--font-mono); font-variation-settings: "MONO" 1; fill: var(--muted); }
.gitg text.t { fill: var(--accent); }
.gitg circle { transform-box: fill-box; transform-origin: center; }
.js .gitg .c.a, .js .gitg .c.m, .js .gitg text.t { opacity: 0; }
.in .gitg .br { animation: draw 2.2s .3s cubic-bezier(.6,0,.3,1) forwards; }
.in .gitg .c.a, .in .gitg .c.m, .in .gitg text.t { animation: fade .5s both; }
.in .gitg .d1 { animation-delay: .9s; } .in .gitg .d2 { animation-delay: 1.4s; } .in .gitg .d3 { animation-delay: 2.2s; }
html:not(.js) .gitg .br { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gitg .br { stroke-dashoffset: 0; } .js .gitg .c.a, .js .gitg .c.m, .js .gitg text.t { opacity: 1; } .in .gitg * { animation: none !important; } }

/* Mini preview with device widths. */
.mini { width: 100%; display: grid; gap: 10px; justify-items: center; }
.mini .url { font: 600 .72rem var(--font-mono); font-variation-settings: "MONO" 1; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.mini .url b { color: var(--relish); }
.mini .pg { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; animation: widths 7s ease-in-out infinite; }
.mini .pg i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.mini .pg i:first-child { width: 60%; height: 11px; background: var(--grad-bright); }
.mini .pg i:nth-child(3) { width: 80%; } .mini .pg i:nth-child(4) { width: 45%; }
@keyframes widths { 0%, 25% { max-width: 100%; } 35%, 60% { max-width: 62%; } 70%, 92% { max-width: 34%; } }
@media (prefers-reduced-motion: reduce) { .mini .pg { animation: none; } }

/* Check list. */
.checks { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.checks li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-weight: 600; font-size: .8rem; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: .7rem; background: color-mix(in srgb, var(--relish) 16%, transparent); color: var(--relish); flex: none; }
.checks li.warn::before { content: "!"; background: color-mix(in srgb, var(--ketchup) 16%, transparent); color: var(--ketchup); }
.in .checks li { animation: slidein .45s both; }
.in .checks li:nth-child(2) { animation-delay: .12s; } .in .checks li:nth-child(3) { animation-delay: .24s; } .in .checks li:nth-child(4) { animation-delay: .36s; }
@keyframes slidein { from { opacity: 0; transform: translateX(-10px); } }

/* Skill levels. */
.levels { width: 100%; display: grid; gap: 10px; }
.levels .seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.levels .seg span { position: relative; z-index: 1; text-align: center; font-weight: 700; font-size: .74rem; padding: 6px 0; color: var(--muted); transition: color .3s; }
.levels .seg::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px; background: var(--grad-bright); transition: transform .5s cubic-bezier(.4,0,.2,1); transform: translateX(calc(var(--lv, 0) * 100%)); }
.levels .seg span.on { color: #1a1206; }
.levels .show { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 64px; font-size: .78rem; display: grid; align-content: center; }
.levels .show > div { display: none; }
.levels .show > div.on { display: block; animation: fade .35s both; }
.levels .show b { font-variation-settings: "CASL" 1; font-size: 1.05rem; }
.levels .show code { background: none; padding: 0; }

/* Form tile. */
.mform { width: 100%; max-width: 280px; display: grid; gap: 4px; }
.mform .fl { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mform .fi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .78rem; margin-bottom: 4px; }
.mform .fi.tall { min-height: 44px; }
.mform .fb { position: relative; height: 32px; margin-top: 4px; }
.mform .send, .mform .sent { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 999px; font-weight: 750; font-size: .8rem; transition: opacity .4s, transform .4s; }
.mform .send { background: var(--grad-bright); color: #1a1206; }
.mform .sent { background: color-mix(in srgb, var(--relish) 16%, var(--surface)); color: var(--relish); opacity: 0; transform: scale(.9); }
.mform.done .send { opacity: 0; transform: scale(1.06); }
.mform.done .sent { opacity: 1; transform: none; }

/* Terminal tile. */
.term { width: 100%; margin: 0; border: 0; text-align: left; background: var(--code-bg); color: var(--code-text); font-size: .76rem; line-height: 1.7; padding: 14px 16px; border-radius: 12px; white-space: pre-wrap; }
.term .p { color: #ffc53d; } .term .ok { color: #5fe3a1; } .term .dim { color: #8d86a0; }
.where { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.where span { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

/* ---- Numbers --------------------------------------------------------------- */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; }
.stats li { padding: clamp(20px, 3vw, 34px); border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-variation-settings: "CASL" 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; white-space: nowrap; }
.stats span { display: block; color: var(--muted); font-size: .92rem; margin-top: 8px; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } .stats li:nth-child(3) { border-left: 0; } .stats li:nth-child(n+3) { border-top: 1px solid var(--line); } }
.stats-note { text-align: center; color: var(--muted); font-size: .92rem; margin: 18px 0 0; }

/* ---- Showcase: sites built with HotDog ----------------------------------- */
.showcase { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.showcase li { position: relative; }
.showcase .shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); transition: transform .25s, border-color .25s; }
.showcase .bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #120f18; border-bottom: 1px solid rgba(255,255,255,.06); }
.showcase .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3b3546; }
.showcase .bar span { margin-left: 6px; font: 600 .72rem var(--font-mono); font-variation-settings: "MONO" 1; color: #8d86a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.showcase li:hover .shot { transform: translateY(-3px); border-color: var(--line-2); }
.showcase .kind { margin: 16px 0 4px; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 750; color: var(--accent); font-variation-settings: "MONO" 1; }
.showcase h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; font-variation-settings: "CASL" .6; }
.showcase h3 a { color: var(--text); text-decoration: none; }
.showcase h3 a::after { content: ""; position: absolute; inset: 0; }
.showcase li:hover h3 a { color: var(--accent); }
.showcase li > p:last-child { margin: 0; color: var(--muted); }
.showcase-more { text-align: center; margin: clamp(28px, 4vw, 44px) 0 0; }
@media (prefers-reduced-motion: reduce) { .showcase .shot { transition: none; } .showcase li:hover .shot { transform: none; } }

/* ---- Split: words on one side, a terminal on the other ------------------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 850; letter-spacing: -0.035em; font-variation-settings: "CASL" .8; }
.split .body { color: var(--muted); font-size: 1.08rem; }
.split .body p { margin: 0 0 .9em; }
.split .body a { font-weight: 650; }
.window { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--code-bg); }
.window .wbar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #120f18; border-bottom: 1px solid rgba(255,255,255,.06); }
.window .wbar i { width: 11px; height: 11px; border-radius: 50%; background: #3b3546; }
.window .wbar span { margin-left: 8px; font: 600 .76rem var(--font-mono); font-variation-settings: "MONO" 1; color: #8d86a0; }
.window pre { margin: 0; border: 0; border-radius: 0; background: none; color: var(--code-text); min-height: 330px; font-size: .84rem; line-height: 1.75; white-space: pre-wrap; }
.window pre .p { color: #ffc53d; } .window pre .ok { color: #5fe3a1; } .window pre .dim { color: #8d86a0; } .window pre .hi { color: #ff8a6b; }
.window pre .cur { display: inline-block; width: .6em; height: 1.1em; vertical-align: -0.2em; background: #ffc53d; animation: blink 1s steps(1) infinite; }

/* ---- Packs ------------------------------------------------------------------ */
.packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.packs li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.packs li:hover { transform: translateY(-2px); border-color: var(--line-2); }
.packs .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.packs .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.packs li:nth-child(3n+2) .ic { background: color-mix(in srgb, var(--relish) 14%, transparent); color: var(--relish); }
.packs li:nth-child(3n) .ic { background: color-mix(in srgb, var(--sky) 14%, transparent); color: var(--sky); }
.packs b { display: block; font-size: .95rem; font-variation-settings: "MONO" 1; font-weight: 700; }
.packs span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; margin-top: 2px; }
.packs-cmd { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

/* ---- Make it yours (look remix) ------------------------------------------ */
.remix { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; align-items: stretch; }
@media (max-width: 880px) { .remix { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 16px; align-content: start; }
.panel h3 { margin: 0 0 -6px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-variation-settings: "MONO" 1; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 52px; height: 52px; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; padding: 0; position: relative; overflow: hidden; background: var(--surface-2); transition: transform .15s; }
.swatches button:hover { transform: translateY(-2px); }
.swatches button[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.swatches button i { position: absolute; inset: 0; }
.swatches button i + i { inset: 48% 0 0 48%; border-top-left-radius: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts button { font: inherit; font-size: .84rem; font-weight: 650; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; }
.opts button[aria-pressed="true"] { color: var(--text); border-color: var(--text); background: var(--surface); }
.yaml { margin: 0; font-size: .78rem; padding: 14px 16px; line-height: 1.6; }
.yaml .k { color: #7cb8ff; } .yaml .v { color: #ffc53d; } .yaml .c { color: #8d86a0; }
.contrast { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 650; color: var(--relish); font-variation-settings: "MONO" 1; margin: 0; }
.contrast.bad { color: var(--ketchup); }
/* The little site the panel changes. Its colors are its own variables. */
.demo-site {
  --d-bg: #fbf8f3; --d-text: #15111b; --d-accent: #c8352a; --d-on: #fff; --d-hero: #f4e9d8; --d-r: 14px; --d-font: var(--font); --d-var: "CASL" 0;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--d-bg); color: var(--d-text);
  font-family: var(--d-font); font-variation-settings: var(--d-var); display: flex; flex-direction: column; min-height: 440px;
}
.demo-site, .demo-site * { transition: background-color .45s, color .45s, border-radius .3s, border-color .45s; }
.demo-site .d-nav { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid color-mix(in srgb, var(--d-text) 12%, transparent); font-size: .85rem; }
.demo-site .d-nav b { margin-right: auto; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.demo-site .d-nav b::before { content: ""; width: 18px; height: 18px; border-radius: calc(var(--d-r) / 2.5); background: var(--d-accent); }
.demo-site .d-nav span { opacity: .7; }
.demo-site .d-hero { background: var(--d-hero); padding: 36px 28px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.demo-site .d-hero > span { display: flex; gap: 6px; }
.demo-site .d-hero small { color: var(--d-accent); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }
.demo-site h4 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 8px; letter-spacing: -0.02em; font-family: var(--d-font); font-variation-settings: var(--d-var); }
.demo-site .d-hero p { margin: 0 0 18px; opacity: .8; font-size: .92rem; max-width: 40ch; }
.demo-site .d-btn { display: inline-block; padding: 9px 18px; border-radius: var(--d-r); background: var(--d-accent); color: var(--d-on); font-weight: 700; font-size: .85rem; }
.demo-site .d-btn + .d-btn { background: none; color: var(--d-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-text) 25%, transparent); }
.demo-site .d-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 20px 22px; }
.demo-site .d-cards div { border: 1px solid color-mix(in srgb, var(--d-text) 12%, transparent); border-radius: var(--d-r); padding: 12px; font-size: .78rem; }
.demo-site .d-cards div b { display: block; font-size: .85rem; margin-bottom: 3px; color: var(--d-accent); }
@media (max-width: 520px) { .demo-site .d-cards { grid-template-columns: 1fr; } .demo-site .d-nav span { display: none; } }

/* ---- Cards (generic) ---------------------------------------------------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; position: relative; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; font-variation-settings: "CASL" .6; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:has(h3 a):hover { transform: translateY(-2px); }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 6px 0 0; color: var(--muted); }
.card time { color: var(--muted); font-size: .84rem; font-variation-settings: "MONO" 1; }
.more { font-weight: 700; }

/* ---- Closing band -------------------------------------------------------- */
.closing { position: relative; overflow: hidden; isolation: isolate; background: var(--band); color: var(--band-text); padding: clamp(72px, 11vw, 140px) 0; text-align: center; }
.closing::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; z-index: -1; background: radial-gradient(ellipse at 50% 100%, rgba(255, 110, 50, .45), rgba(255, 197, 61, .12) 40%, transparent 70%); }
.closing::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%);
}
.closing h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -0.045em; font-variation-settings: "CASL" 1; max-width: 16ch; margin: 0 auto .3em; line-height: 1; }
.closing .lede { color: inherit; opacity: .78; margin-inline: auto; }
.closing .actions { justify-content: center; }
.closing .btn:not(.primary) { background: rgba(255,255,255,.06); color: var(--band-text); --b: rgba(255,255,255,.18); }
.closing .btn:not(.primary):hover { border-color: var(--band-text); }
.closing .copy { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--band-text); margin-top: 22px; }
.closing .copy button { background: rgba(255,255,255,.1); color: var(--band-text); border-color: rgba(255,255,255,.18); }
.closing .copy code::before { color: #ffc53d; }
.closing code { background: rgba(255,255,255,.1); }

/* ---- Reveal on scroll ----------------------------------------------------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; } .js .rv.d2 { transition-delay: .16s; } .js .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ---- Pages and articles -------------------------------------------------- */
.page { padding: clamp(40px, 7vw, 80px) 0; }
.page > h1, .article-head h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 900; letter-spacing: -0.04em; font-variation-settings: "CASL" .9; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { margin-top: 1.5em; }
.prose blockquote { margin: 1.4em 0; padding: 10px 20px; border-left: 3px solid var(--mustard); background: var(--surface-2); border-radius: 0 14px 14px 0; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { font-weight: 700; color: var(--text); border-bottom-width: 2px; }
.prose img { border-radius: 14px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.article-head { margin-bottom: 32px; }
.meta { color: var(--muted); margin: 0; font-variation-settings: "MONO" 1; font-size: .9rem; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.tags a { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--text); text-decoration: none; font-size: .85rem; }
.site-banner { background: var(--text); color: var(--bg); font-size: .92rem; text-align: center; }
.site-banner p { margin: 0; padding: 9px 0; }
.site-banner a { font-weight: 700; margin-left: .4em; color: var(--mustard); }
.site-banner.alert { background: var(--ketchup); color: #fff; }
.site-banner.alert a { color: #fff; }
.pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.pages ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.pages a { display: inline-block; min-width: 2.4em; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); }
.pages a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text, #fff); font-weight: 600; }
.pages .gap { padding: 8px 4px; color: var(--muted); }
.pages .newer, .pages .older { min-width: 6.5em; }
.pages .older { text-align: right; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.pager a { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; text-decoration: none; color: var(--text); background: var(--surface); font-weight: 650; transition: border-color .2s; }
.pager a:hover { border-color: var(--accent); }
.pager span { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; font-variation-settings: "MONO" 1; }
.pager .newer { text-align: right; grid-column: 2; }
.terms { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.terms a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); }
.terms span { color: var(--muted); font-size: .85em; margin-left: 4px; }

/* ---- Footer -------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; background: var(--bg); }
.foot-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 16px; padding: 26px 0; width: min(1320px, 100% - 32px); }
/* The links get the row underneath; the credit stays centred above them. */
.foot-in > ul { grid-column: 1 / -1; justify-self: center; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.foot li { white-space: nowrap; }
.foot .credit { text-align: center; }
.foot .credit a { font-weight: 700; text-decoration: none; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; justify-items: center; text-align: center; } .foot-in > ul { grid-column: auto; justify-self: center; } }
.foot p { margin: 0; }
.foot ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---- Privacy notice and consent ----------------------------------------- */
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.table-wrap { overflow-x: auto; }
.privacy-facts { width: 100%; border-collapse: collapse; font-size: .92rem; }
.privacy-facts th, .privacy-facts td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.video { margin: 0; }
.video video { display: block; width: 100%; height: auto; border-radius: 20px; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow); }
.video figcaption { color: var(--muted); font-size: .95rem; margin-top: 12px; }
