/* program-md site: a backstage cue sheet. Black house lights, chalk type, gaffer-tape chartreuse.
   The pages shown are real engine output, so the site stays quiet around them. */
:root {
  --bg: #0e0f11;
  --panel: #15171a;
  --panel-2: #1b1e22;
  --line: #2b2e34;
  --chalk: #f2efe7;
  --mute: #9b9da4;
  --tape: #d8f246;
  --tape-ink: #14160a;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--chalk); font: 400 17px/1.6 var(--text); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tape); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.01em; }
h3 { font-size: 26px; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .9em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: 12px; top: -56px; background: var(--tape); color: var(--tape-ink); padding: 8px 14px; z-index: 20; font-weight: 600; }
.skip:focus { top: 12px; }
.cue { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.cue b { background: var(--tape); color: var(--tape-ink); padding: 2px 7px; margin-right: 10px; font-weight: 600; letter-spacing: .06em; }

.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; flex-wrap: wrap; }
.wordmark { font-family: var(--mono); font-weight: 500; font-size: 16px; color: var(--chalk); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark i { font-style: normal; background: var(--tape); color: var(--tape-ink); width: 26px; height: 26px; display: grid; place-items: center; font-weight: 600; font-size: 14px; border-radius: 3px; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--chalk); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--tape); }

section { padding: clamp(64px, 9vw, 112px) 0; }
.hero { padding-top: clamp(44px, 7vw, 92px); padding-bottom: clamp(56px, 8vw, 100px); overflow-x: clip; background: radial-gradient(900px 520px at 78% 18%, rgba(216,242,70,.07), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 4.7vw, 68px); letter-spacing: -.015em; margin-top: 22px; }
.hero h1 em { color: var(--tape); font-style: italic; }
.lede { font-size: 19px; color: #cfcdc5; margin-top: 24px; max-width: 54ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; background: var(--tape); color: var(--tape-ink); text-decoration: none; padding: 13px 22px; border-radius: 4px; font-weight: 600; font-size: 16px; border: 1px solid var(--tape); }
.btn:hover { background: var(--chalk); border-color: var(--chalk); }
.btn-quiet { background: transparent; color: var(--chalk); border-color: #4a4e56; }
.btn-quiet:hover { background: transparent; color: var(--tape); border-color: var(--tape); }
.one-liner { margin-top: 26px; }
.one-liner code { display: block; max-width: 100%; background: var(--panel); border: 1px solid var(--line); padding: 10px 14px; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--chalk); }

.stack { position: relative; aspect-ratio: 1 / .96; }
.stack a { position: absolute; display: block; }
.stack img { width: 100%; box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 30px 60px rgba(0,0,0,.55); }
.s-sheet { right: 3%; top: 0; width: 36%; transform: rotate(5deg); }
.s-book { right: 0; top: 17%; width: 90%; transform: rotate(-2.2deg); }
.s-phone { left: 0; bottom: 0; width: 29%; transform: rotate(-3deg); z-index: 2; }
.s-phone img { border-radius: 22px; border: 3px solid #2b2e34; }
.stack a:hover { z-index: 3; }
.stack figcaption { display: none; }

.outputs { border-block: 1px solid var(--line); background: var(--panel); }
.out-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.out { display: grid; gap: 18px; align-content: start; }
.out .shot { background: #0a0b0c; border: 1px solid var(--line); padding: 18px; display: grid; place-items: center; height: 320px; overflow: hidden; }
.out .shot img { height: auto; width: auto; max-width: 100%; max-height: 284px; box-shadow: none; filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); }
.out h3 { margin-top: 2px; }
.out p { color: #c3c1b9; font-size: 16px; }
.section-lede { color: #c3c1b9; margin-top: 16px; max-width: 62ch; font-size: 18px; }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 26px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps h3 { font-size: 30px; }
.steps p { color: #c3c1b9; font-size: 16px; }

.facts { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--line); }
.facts li { padding: 22px 24px; border-right: 1px solid var(--line); color: #c3c1b9; font-size: 15.5px; }
.facts li:last-child { border-right: 0; }
.facts b { display: block; color: var(--chalk); font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 6px; line-height: 1.1; }

.themes { display: grid; gap: 56px; margin-top: 52px; }
.theme { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.theme:nth-child(even) { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); }
.theme:nth-child(even) .theme-copy { order: 2; }
.theme-copy h3 { font-size: clamp(34px, 4vw, 48px); margin-top: 10px; }
.theme-copy p { color: #c3c1b9; margin-top: 14px; max-width: 40ch; }
.theme-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.theme-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.theme-shots img { width: 100%; box-shadow: 0 10px 26px rgba(0,0,0,.5); }

.install-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.install-grid div { min-width: 0; }
.install-grid h3 { font-size: 24px; }
pre { margin: 14px 0 0; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--tape); padding: 16px 18px; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: var(--chalk); }
.note { color: var(--mute); margin-top: 22px; font-size: 15px; }

.examples { border-top: 1px solid var(--line); }
.ex-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ex-list li { display: grid; grid-template-columns: 2.6fr 1.2fr auto; gap: 8px 22px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ex-list strong { font-family: var(--display); font-weight: 400; font-size: 26px; }
.ex-list span { color: var(--mute); font-size: 15px; }
.ex-links { display: flex; gap: 16px; font-family: var(--mono); font-size: 13px; flex-wrap: wrap; }

.foot { border-top: 1px solid var(--line); padding: 44px 0 64px; font-size: 15px; color: var(--mute); }
.foot-row { display: grid; gap: 12px; }
.foot .wordmark { font-size: 15px; }

.lost { min-height: 60vh; display: flex; align-items: center; padding: 60px 0; }
.lost h1 { font-size: clamp(40px, 6vw, 72px); margin-top: 16px; }

@media (max-width: 980px) {
  .hero-grid, .theme, .theme:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .theme:nth-child(even) .theme-copy { order: 0; }
  .stack { max-width: 560px; width: 100%; margin: 12px auto 0; }
  .out-grid, .install-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps { border-top: 0; }
  .facts li { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts li:last-child { border-bottom: 0; }
  .out .shot { height: 300px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 14px; }
  .ex-list li { grid-template-columns: minmax(0, 1fr); }
  .theme-shots { padding: 14px; gap: 12px; }
  .lede { font-size: 17.5px; }
}
