/* Shared stylesheet for the generated pages (/store/ and /plugins/<slug>/).
   Copied to assets/site.css by scripts/build.mjs.

   index.html, support/index.html, and resume/index.html keep their own inline
   <style> blocks. The tokens and the topbar/footer rules below are transcribed
   from those pages so the new surfaces match exactly. If a token changes there,
   change it here too. */

:root {
  --bg: #101317;
  --bg-raised: #161b21;
  --panel: #1a2028;
  --key-face: #232a33;
  --line: #2a323d;
  --gold: #c8962e;
  --gold-bright: #e8b54a;
  --paper: #ede7da;
  --slate: #97a1ac;
  --slate-dim: #6b7580;
  --led-live: #3fd47e;
  --led-review: #e8b54a;
  --led-built: #58a6ff;
  --led-dev: #8b949e;
  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --accent: var(--gold);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* 1120px matches index.html's .wrap exactly. It used to be 880 here with a
   1180 .wrap-wide for galleries, which meant three different column widths on
   one site: the topbar shifted 30px when you navigated from the home page to a
   plugin page, and inside a plugin page the left edge jogged 150px between the
   header and the gallery. One width now, everywhere, and prose is held to a
   readable measure by max-width on the text itself (see .lede / .page-head p),
   the same way support/index.html already did it. */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }

/* ---------- top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 19, 23, 0.92);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1.1;
}
.brand-name small {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.14em; color: var(--gold);
  text-transform: uppercase;
}
.topnav {
  display: flex; gap: 28px; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.topnav a { color: var(--slate); }
.topnav a:hover { color: var(--gold-bright); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--gold); }
@media (max-width: 640px) { .topnav { display: none; } }

/* ---------- page head ---------- */
.page-head { padding: 64px 0 44px; border-bottom: 1px solid var(--line); }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1;
  letter-spacing: 0.01em; text-transform: uppercase; color: var(--paper);
  margin-bottom: 18px;
}
h1 .gold { color: var(--gold); }
.lede { max-width: 62ch; font-size: 1.04rem; }
.lede strong { color: var(--paper); font-weight: 600; }

/* ---------- buttons ---------- */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-block; padding: 13px 26px;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 4px; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: #14110a; font-weight: 500; }
.btn-gold:hover { background: var(--gold-bright); color: #14110a; text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--slate); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); text-decoration: none; }
.btn-lg { padding: 16px 34px; font-size: 0.88rem; }

/* ---------- status pips (transcribed from index.html) ---------- */
.status {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 5px var(--led); }
.status-live { --led: var(--led-live); color: var(--led-live); }
.status-review { --led: var(--led-review); color: var(--led-review); }
.status-built { --led: var(--led-built); color: var(--led-built); }
.status-dev { --led: var(--led-dev); color: var(--led-dev); }

/* ---------- sections ---------- */
section { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--paper); line-height: 1;
  margin-bottom: 24px;
}
h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--paper);
  margin-bottom: 12px;
}

/* ---------- plugin page: specs + buy ---------- */
.plugin-head h1 { color: var(--paper); }
.specs {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 26px 0 0;
}
.specs li {
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 18px; border-radius: 8px;
  background: linear-gradient(180deg, #2a323c, var(--key-face) 60%);
  border: 1px solid #333c47;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.05), inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  min-width: 92px;
}
.spec-n {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  line-height: 1; color: var(--accent);
}
.spec-l {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate-dim);
}

.buy { margin-top: 30px; }
.buy-note {
  margin-top: 10px; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-dim);
}
.buy-note strong { color: var(--led-live); font-weight: 500; }
.buy-pending {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 8px; max-width: 62ch;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-size: 0.93rem;
}

/* ---------- plugin page: gallery ---------- */
.shot { margin: 0; }
.shot a { display: block; }
.shot a:hover { text-decoration: none; }
.shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 1;
  object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel);
}
/* Claude Complete Controller's slides are 16:9, not 2:1. Cover-cropping them
   ate the title, so letterbox instead. Same call as the support hub. */
.shot.ratio-16-9 img { aspect-ratio: 16 / 9; object-fit: contain; background: #0b0d10; }
/* One slide per row. The old two-up grid rendered these 1920px information
   graphics at 555px, which put their baked-in body copy near 5px tall: real
   information reduced to wallpaper. Full column width is ~57% scale and
   legible, which is the whole point of showing the slide at all. */
.shot-list { display: grid; grid-template-columns: 1fr; gap: 26px; }

/* ---------- notes lists ---------- */
/* Capped: the wrap is 1120 now, and uncapped list copy ran 1072px lines. */
.notes { margin: 0 0 0 20px; max-width: 68ch; }
.notes li + li { margin-top: 10px; }
.notes strong { color: var(--paper); font-weight: 600; }
.notes code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 6px; color: var(--gold-bright);
}
.req-head { margin-top: 32px; }
.req { max-width: 66ch; }
.detail-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- plugin page: support ---------- */
.support-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .support-cols { grid-template-columns: 1fr; gap: 32px; } }
.support-more { margin-top: 14px; font-size: 0.92rem; }

/* ---------- store: cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px; overflow: hidden; color: var(--slate);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.card:hover {
  text-decoration: none; transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent);
}
.card-shot {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 1;
  object-fit: cover; border-bottom: 1px solid var(--line); background: var(--panel);
}
.card-shot.ratio-16-9 { aspect-ratio: 16 / 9; object-fit: contain; background: #0b0d10; }
.card-body { padding: 18px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.22rem; margin-bottom: 3px; }
.card:hover h3 { color: var(--gold-bright); }
.card-meta {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.card-note { font-size: 0.92rem; flex: 1; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card-go {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate-dim);
}
.card:hover .card-go { color: var(--gold); }

/* ---------- footer ---------- */
footer { padding: 40px 0 48px; }
footer .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--slate-dim);
}
/* 34px, matching index.html. It was 64px here, so the footer logo rendered
   nearly twice as tall on the generated pages as on the hand-written ones. */
footer img { height: 34px; opacity: 0.7; }
