@import url("./tokens.css");

/* ============================================================
   BASE
   ============================================================ */

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--line-body);
  font-feature-settings: "ss01","cv11","kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--bg); }

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap {
  width: 100%; max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: var(--wrap-pad); padding-right: var(--wrap-pad);
}
.wrap-narrow {
  width: 100%; max-width: 880px;
  margin: 0 auto;
  padding-left: var(--wrap-pad); padding-right: var(--wrap-pad);
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 16, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.site-header .row { padding: 16px 0; }
.brand-mark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  color: var(--text-strong); letter-spacing: -0.005em;
}
.brand-mark-icon { width: 28px; height: 28px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: 14px; color: var(--text-mute); font-weight: 500;
  position: relative; padding: 6px 0;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--gold-2); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold-2);
}

/* ============================================================
   TYPE
   ============================================================ */

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 500;
}
.eyebrow.with-rule::before {
  content: ""; width: 28px; height: 1px;
  background: var(--gold-2);
}
.eyebrow.no-rule::before { display: none; }
.eyebrow-electrical { color: var(--electrical-2); }
.eyebrow-electrical.with-rule::before { background: var(--electrical-2); }

.display {
  font-family: var(--serif); font-weight: 500;
  font-size: var(--fs-display);
  line-height: var(--line-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-strong);
  margin: 0;
}
.display-2 {
  font-family: var(--serif); font-weight: 500;
  font-size: var(--fs-display-2);
  line-height: var(--line-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-strong);
  margin: 0;
}
.h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: var(--fs-h1); line-height: var(--line-snug);
  letter-spacing: var(--ls-h); color: var(--text-strong); margin: 0;
}
.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: var(--fs-h2); line-height: var(--line-snug);
  letter-spacing: var(--ls-h); color: var(--text-strong); margin: 0;
}
.h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: var(--fs-h3); line-height: var(--line-snug);
  color: var(--text-strong); margin: 0;
}
.lede {
  font-size: var(--fs-lede); line-height: 1.45;
  color: var(--text-mute); max-width: 60ch;
}
.p { font-size: var(--fs-body); line-height: var(--line-body); color: var(--text); }
.p-lg { font-size: var(--fs-body-lg); }
.muted { color: var(--text-mute); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: var(--ls-mono); }
.accent { color: var(--gold-2); }
.accent-electrical { color: var(--electrical-2); }
.accent-verify { color: var(--verify-2); }

.pq {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.4;
  color: var(--text-strong); max-width: 32ch;
  border-left: 1px solid var(--gold);
  padding-left: 24px;
}

/* ============================================================
   SECTIONS — flat, no gradients
   ============================================================ */

.section { padding: var(--section-pad) 0; position: relative; }
.section-tight { padding: var(--section-pad-tight) 0; }
.section-paper {
  background: var(--paper);
  color: var(--ink);
}
.section-paper .display,
.section-paper .display-2,
.section-paper .h1,
.section-paper .h2,
.section-paper .h3 { color: var(--ink); }
.section-paper .lede,
.section-paper .p,
.section-paper .muted { color: var(--ink-mute); }
.section-paper .eyebrow { color: var(--green); }
.section-paper .eyebrow.with-rule::before { background: var(--green); }
.section-paper .pq { color: var(--ink); border-left-color: var(--green); }

/* Hero — flat, no gradient. Just deep ink with hairlines. */
.section-hero {
  padding: clamp(80px, 11vw, 180px) 0 clamp(60px, 8vw, 120px);
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
  position: relative;
}
.hero { padding: clamp(80px, 11vw, 160px) 0 clamp(40px, 5vw, 80px); }

/* Section ruled top */
.section-ruled { border-top: 1px solid var(--hair); }
.section-ruled.section-paper { border-top-color: var(--hair-paper); }

/* Section head — eyebrow column + title column */
.sec-head {
  display: grid; grid-template-columns: 240px 1fr; gap: 56px;
  margin-bottom: 48px; align-items: end;
}
.sec-head .label {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--gold-2);
  border-top: 1px solid var(--gold-2);
  padding-top: 8px;
}
.sec-head .title h2 { margin: 0 0 12px; }
.section-paper .sec-head .label { color: var(--green); border-top-color: var(--green); }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 22px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--green-2);
  background: var(--green);
  color: var(--text-strong);
  cursor: pointer; user-select: none;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
}
.btn:hover {
  background: var(--green-2);
  border-color: var(--gold-soft);
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 15px; }
.btn-outline {
  background: transparent; color: var(--text-strong);
  border: 1px solid var(--hair-2);
}
.btn-outline:hover {
  background: rgba(232, 224, 200, 0.04);
  border-color: var(--gold-2);
}
.btn-gold {
  background: var(--gold); color: var(--bg);
  border-color: var(--gold-2);
}
.btn-gold:hover { background: var(--gold-2); color: var(--bg); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ============================================================
   TRUST STRIP — small-caps gold metadata under buy/price CTA
   ============================================================ */

.trust-strip {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold-2);
}
.trust-strip .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border-right: 1px solid var(--hair);
}
.trust-strip .trust-item:first-child { padding-left: 0; }
.trust-strip .trust-item:last-child { border-right: none; padding-right: 0; }
.trust-strip .trust-item a {
  color: inherit;
  border-bottom: 1px dotted var(--gold-soft);
  padding-bottom: 1px;
  transition: border-color 0.18s ease;
}
.trust-strip .trust-item a:hover { border-bottom-color: var(--gold-2); }
.trust-strip .trust-icon {
  width: 12px; height: 14px;
  flex: 0 0 auto;
  color: var(--gold-2);
}
@media (max-width: 760px) {
  .trust-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trust-strip .trust-item { padding: 0; border-right: none; }
}

/* ============================================================
   STAT STRIP — flat, ruled
   ============================================================ */

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.stat {
  padding: 24px 28px;
  border-right: 1px solid var(--hair);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3vw, 40px); line-height: 1;
  color: var(--text-strong); letter-spacing: var(--ls-h);
}
.stat .lbl {
  font-family: var(--mono); font-size: var(--fs-mono-xs);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--text-mute); margin-top: 8px;
}
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--hair); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============================================================
   FEATURED EDITION — large editorial block
   ============================================================ */

.featured {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: stretch;
  margin-top: 32px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 48px 0;
}
.featured .copy { padding-right: 24px; display: flex; flex-direction: column; gap: 18px; }
.featured .edition-no {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--electrical-2);
  display: flex; align-items: center; gap: 12px;
}
.featured .edition-no::before {
  content: ""; width: 28px; height: 1px; background: var(--electrical-2);
}
.featured .title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08;
  color: var(--text-strong); letter-spacing: var(--ls-h); margin: 0;
}
.featured .lede {
  font-size: 16px; color: var(--text-mute); line-height: 1.55; max-width: 50ch;
}
.featured .meta-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--hair);
}
.featured .meta-row .cell {
  padding: 16px 0;
  border-right: 1px solid var(--hair);
  padding-right: 16px;
}
.featured .meta-row .cell:last-child { border-right: none; padding-right: 0; padding-left: 16px; }
.featured .meta-row .k {
  font-family: var(--mono); font-size: var(--fs-mono-xs);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 6px;
}
.featured .meta-row .v { font-size: 14px; color: var(--text); font-weight: 500; }
.featured .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.featured .preview {
  background: var(--bg-2);
  border: 1px solid var(--hair);
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
}
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .featured .copy { padding-right: 0; }
  .featured .meta-row { grid-template-columns: 1fr; }
  .featured .meta-row .cell { border-right: none; padding-left: 0; padding-right: 0;
    border-bottom: 1px solid var(--hair); }
  .featured .meta-row .cell:last-child { border-bottom: none; }
}

/* ============================================================
   ARTIFACT — flat editorial print plates (no gradients, no glow)
   ============================================================ */

.artifact {
  background: var(--bg-2);
  border: 1px solid var(--hair);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.artifact > .artifact-body { flex: 1 1 auto; min-height: 0; }

/* Image-bearing artifacts — body is flush, frame handles padding */
.artifact-image > .artifact-body {
  padding: 0;
  background: var(--bg);
  display: flex;
}

/* The framed preview — fixed ratio, padded interior, contain by default */
.artifact-frame {
  position: relative;
  width: 100%;
  background: var(--bg);
  padding: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artifact-frame > img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Aspect ratios with sane height ceilings to keep cards from blowing up */
.artifact-frame.frame-doc-tall  { aspect-ratio: 4 / 5; max-height: 560px; }
.artifact-frame.frame-doc       { aspect-ratio: 3 / 4; max-height: 540px; }
.artifact-frame.frame-doc-short { aspect-ratio: 4 / 5; max-height: 420px; }
.artifact-frame.frame-table     { aspect-ratio: 5 / 3; max-height: 480px; }
.artifact-frame.frame-wide      { aspect-ratio: 16 / 9; }

/* Workbook / table-screenshot frames: tighter padding, no paper shadow */
.artifact-frame.frame-wide,
.artifact-frame.frame-table {
  padding: 14px;
  background: var(--bg);
}
.artifact-frame.frame-wide > img,
.artifact-frame.frame-table > img {
  border: 1px solid var(--hair);
}

/* Document/PDF previews get a paper-sheet treatment: shadow + hairline */
.frame-doc-tall  > img,
.frame-doc       > img,
.frame-doc-short > img {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--hair-2);
  background: var(--paper);
}

/* Override: when used inside .preview slot of featured card, frame fills slot */
.preview .artifact-frame { padding: 16px; }

/* Mobile: reduce frame padding so previews don't waste space on small screens */
@media (max-width: 760px) {
  .artifact-frame { padding: 12px; }
  .artifact-frame.frame-wide,
  .artifact-frame.frame-table { padding: 8px; }
}
.artifact-cap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair);
  background: var(--bg-3);
}
.artifact-cap .num {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow); color: var(--gold-2);
}
.artifact-cap .name {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--text-mute);
}
.artifact-body { padding: 0; }

/* Workbook artifact — flat solid blueprint surface, hairline cells */
.artifact-workbook {
  background: var(--electrical-deep);
}
.artifact-workbook .wb-frame {
  margin: 24px;
  background: var(--bg);
  border: 1px solid rgba(232, 224, 200, 0.18);
}
.artifact-workbook .wb-toolbar {
  display: flex; gap: 4px; padding: 8px 12px;
  border-bottom: 1px solid var(--hair);
  background: var(--bg-2);
}
.artifact-workbook .wb-toolbar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(232, 224, 200, 0.18);
  margin-right: 4px;
}
.artifact-workbook .wb-name {
  font-family: var(--mono); font-size: 11px; color: var(--text-mute);
  margin-left: 8px; letter-spacing: 0.06em;
}
.artifact-workbook table {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 11px;
  color: var(--text);
}
.artifact-workbook th {
  background: var(--bg-2);
  color: var(--gold-2); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 10px;
  padding: 8px 10px; text-align: left;
  border-bottom: 1px solid var(--gold-soft);
  border-right: 1px solid var(--hair);
}
.artifact-workbook th:last-child { border-right: none; }
.artifact-workbook td {
  padding: 7px 10px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair-soft);
  color: var(--text);
}
.artifact-workbook td:last-child { border-right: none; }
.artifact-workbook td.id { color: var(--electrical-2); }
.artifact-workbook td.dim { color: var(--text-faint); }
.artifact-workbook .wb-tabs {
  display: flex; gap: 0; padding: 0 12px;
  border-top: 1px solid var(--hair);
  background: var(--bg-2);
}
.artifact-workbook .wb-tabs span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 8px 14px;
  border-right: 1px solid var(--hair);
}
.artifact-workbook .wb-tabs span.active {
  color: var(--gold-2);
  background: var(--bg);
  border-bottom: 1px solid var(--bg);
  margin-bottom: -1px;
  border-top: 1px solid var(--gold-soft);
}

/* Spec table artifact — flat cream paper plate */
.artifact-spec {
  background: var(--paper);
  color: var(--ink);
}
.artifact-spec .spec-cap {
  padding: 18px 24px 4px;
  border-bottom: 1px solid var(--hair-paper);
}
.artifact-spec .spec-cap .num {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--green);
}
.artifact-spec .spec-cap .title {
  font-family: var(--serif); font-weight: 500;
  font-size: 18px; color: var(--ink); margin-top: 4px;
  letter-spacing: var(--ls-h);
}
.artifact-spec table {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-2);
}
.artifact-spec th {
  text-align: left; padding: 10px 24px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); font-weight: 500;
  border-top: 1px solid var(--hair-paper-2);
  border-bottom: 1px solid var(--hair-paper-2);
}
.artifact-spec td {
  padding: 8px 24px;
  border-bottom: 1px solid var(--hair-paper);
  font-size: 12px;
}
.artifact-spec td:first-child { font-weight: 500; color: var(--ink); }
.artifact-spec tr:last-child td { border-bottom: none; }

/* PDF cover artifact — single editorial cover */
.artifact-pdf {
  background: var(--bg-3);
}
.artifact-pdf .cover {
  margin: 32px auto;
  width: 80%;
  max-width: 280px;
  aspect-ratio: 8.5 / 11;
  background: var(--paper);
  color: var(--ink);
  padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--paper-edge);
  position: relative;
  box-shadow: var(--shadow-md);
}
.artifact-pdf .cover::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--electrical);
}
.artifact-pdf .cover-top {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--green);
  display: flex; justify-content: space-between;
}
.artifact-pdf .cover-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; line-height: 1.1;
  color: var(--ink); letter-spacing: -0.012em;
  margin-top: 28px;
}
.artifact-pdf .cover-sub {
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: var(--ink-mute); margin-top: 12px;
}
.artifact-pdf .cover-rule {
  height: 1px; background: var(--ink); margin: 22px 0;
}
.artifact-pdf .cover-bottom {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--ink-mute);
}

/* ZIP contents artifact — file tree on graphite */
.artifact-zip {
  background: var(--bg-2);
}
.artifact-zip pre {
  margin: 0; padding: 24px 28px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  color: var(--text-mute);
  overflow-x: auto;
}
.artifact-zip pre .dir { color: var(--gold-2); }
.artifact-zip pre .com { color: var(--text-faint); font-style: italic; }
.artifact-zip pre .file { color: var(--text); }

/* Artifact grid */
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.artifact-grid .span-2 { grid-column: span 2; }
@media (max-width: 760px) {
  .artifact-grid { grid-template-columns: 1fr; }
  .artifact-grid .span-2 { grid-column: span 1; }
}

/* ============================================================
   SOURCE / QA / LICENSE BADGE STRIP
   ============================================================ */

.badge-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  margin-top: 48px;
}
.badge-strip > .col {
  padding: 32px;
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 16px;
}
.badge-strip > .col:last-child { border-right: none; }
.badge-strip .col-head {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--text);
}
.badge-strip .col-head .pip { width: 8px; height: 8px; }
.badge-strip .col-head .pip.source { background: var(--electrical-2); }
.badge-strip .col-head .pip.qa { background: var(--verify-2); }
.badge-strip .col-head .pip.license { background: var(--gold-2); }
.badge-strip h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 19px; line-height: 1.2;
  color: var(--text-strong); letter-spacing: var(--ls-h); margin: 0;
}
.badge-strip p {
  font-size: 13px; color: var(--text-mute); line-height: 1.55; margin: 0;
}

/* Source seals row */
.seals {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px;
}
.seal {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--electrical-2);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em;
  color: var(--electrical-2); font-weight: 600;
  background: var(--electrical-deep);
}
.seal.gold {
  border-color: var(--gold-2); color: var(--gold-2);
  background: rgba(220, 184, 122, 0.06);
}

/* Verify checkmark */
.verify-mark {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--verify-2);
  background: rgba(45, 125, 91, 0.08);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--verify-2); font-weight: 500;
  align-self: flex-start;
}
.verify-mark::before {
  content: "✓"; font-size: 14px; line-height: 1;
}

/* License stamp */
.license-stamp {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--gold-2);
  background: rgba(220, 184, 122, 0.06);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 500;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .badge-strip { grid-template-columns: 1fr; }
  .badge-strip > .col { border-right: none; border-bottom: 1px solid var(--hair); }
  .badge-strip > .col:last-child { border-bottom: none; }
}

/* ============================================================
   CATALOG ROWS
   ============================================================ */

.catalog-strip { display: flex; flex-direction: column; gap: 0; margin-top: 32px;
  border-top: 1px solid var(--hair); }
.edition-line {
  display: grid;
  grid-template-columns: 220px 1fr 200px 32px;
  gap: 32px; align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
  transition: background 0.18s ease;
}
.edition-line:hover { background: rgba(232, 224, 200, 0.025); }
.edition-line .meta {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--gold-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.edition-line .meta::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.edition-line.available .meta { color: var(--gold-2); }
.edition-line.in-dev .meta { color: var(--text-mute); }
.edition-line .name {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; line-height: 1.2;
  color: var(--text-strong); letter-spacing: var(--ls-h);
}
.edition-line .desc {
  font-size: 14px; line-height: 1.5; color: var(--text-mute);
  margin-top: 4px; max-width: 60ch;
}
.edition-line .price-meta {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-mono); color: var(--text);
}
.edition-line .arr {
  font-size: 22px; color: var(--gold-2);
}
.edition-line.in-dev .arr { color: var(--text-faint); }
@media (max-width: 900px) {
  .edition-line { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .edition-line .arr { display: none; }
}

/* ============================================================
   POSTURE GRID — 3-up
   ============================================================ */

.posture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--hair-paper);
  border-bottom: 1px solid var(--hair-paper);
}
.posture-grid > .col {
  padding: 40px 32px;
  border-right: 1px solid var(--hair-paper);
}
.posture-grid > .col:last-child { border-right: none; }
.posture-grid .num {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.posture-grid h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 24px; line-height: 1.15;
  color: var(--ink); letter-spacing: var(--ls-h); margin: 0 0 14px;
}
.posture-grid p {
  font-size: 14.5px; line-height: 1.55; color: var(--ink-mute); margin: 0;
}
@media (max-width: 760px) {
  .posture-grid { grid-template-columns: 1fr; }
  .posture-grid > .col { border-right: none; border-bottom: 1px solid var(--hair-paper); }
  .posture-grid > .col:last-child { border-bottom: none; }
}

/* ============================================================
   BUYER PROFILE / WORKFLOWS — numbered grid
   ============================================================ */

.numbered-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.numbered-grid.three { grid-template-columns: repeat(3, 1fr); }
.numbered-grid > .item {
  padding: 32px;
  border-right: 1px solid var(--hair);
}
.numbered-grid > .item:last-child { border-right: none; }
.numbered-grid .num {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--electrical-2); margin-bottom: 16px;
  display: block;
}
.numbered-grid h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 20px; line-height: 1.2;
  color: var(--text-strong); letter-spacing: var(--ls-h); margin: 0 0 12px;
}
.numbered-grid p { font-size: 14px; line-height: 1.55; color: var(--text-mute); margin: 0; }
@media (max-width: 900px) {
  .numbered-grid, .numbered-grid.three { grid-template-columns: 1fr; }
  .numbered-grid > .item { border-right: none; border-bottom: 1px solid var(--hair); }
  .numbered-grid > .item:last-child { border-bottom: none; }
}

/* ============================================================
   FILE TREE
   ============================================================ */

.tree {
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  background: var(--bg-2);
  border: 1px solid var(--hair);
  padding: 28px 32px;
  color: var(--text-mute);
  margin-top: 32px;
  overflow-x: auto;
}
.tree .dir { color: var(--gold-2); }
.tree .com { color: var(--text-faint); font-style: italic; }
.tree .accent-blue { color: var(--electrical-2); }

/* ============================================================
   LINED ROWS (key/value spec)
   ============================================================ */

.lined { margin-top: 32px; border-top: 1px solid var(--hair); }
.lined .row {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.lined .row .k {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--gold-2); padding-top: 2px;
}
.lined .row .v { font-size: 15px; color: var(--text); line-height: 1.55; }
.lined .row .v .strong { color: var(--text-strong); font-weight: 500; }

.section-paper .lined { border-top-color: var(--hair-paper); }
.section-paper .lined .row { border-bottom-color: var(--hair-paper); }
.section-paper .lined .row .k { color: var(--green); }
.section-paper .lined .row .v { color: var(--ink); }

ol.lined { list-style: none; padding: 0; margin: 32px 0 0; }
ol.lined li.row { display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--hair); align-items: start; }
ol.lined li.row .k {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--gold-2);
}
ol.lined li.row .v { font-size: 15px; color: var(--text); line-height: 1.55; }
.section-paper ol.lined li.row { border-bottom-color: var(--hair-paper); }
.section-paper ol.lined li.row .k { color: var(--green); }
.section-paper ol.lined li.row .v { color: var(--ink); }

@media (max-width: 760px) {
  .lined .row, ol.lined li.row { grid-template-columns: 1fr; gap: 6px; }
}

/* ============================================================
   FORMS
   ============================================================ */

.notify {
  display: grid; grid-template-columns: 1fr auto;
  max-width: 520px;
  border: 1px solid var(--hair-2);
  background: var(--bg-2);
}
.notify input {
  background: transparent; border: none;
  height: 52px; padding: 0 18px;
  font-family: var(--sans); font-size: 14px;
  color: var(--text); outline: none;
}
.notify input::placeholder { color: var(--text-faint); }
.notify:focus-within { border-color: var(--gold-2); }
.notify button {
  height: 52px; padding: 0 24px;
  background: var(--green); color: var(--text-strong);
  border: none; border-left: 1px solid var(--green-2);
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}
.notify button:hover { background: var(--green-2); }

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-mono); color: var(--text-faint);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-mute); transition: color 0.18s ease; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .sep { color: var(--text-faint); }

/* ============================================================
   FAQ
   ============================================================ */

.faq details {
  border-bottom: 1px solid var(--hair);
  padding: 22px 0;
}
.faq details[open] summary { color: var(--gold-2); }
.faq summary {
  list-style: none; cursor: pointer;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3;
  color: var(--text-strong); letter-spacing: var(--ls-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: color 0.18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 18px;
  color: var(--gold-2); transition: transform 0.18s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 14px 0 0; font-size: 15px; line-height: 1.6;
  color: var(--text-mute); max-width: 70ch;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #060B09;
  border-top: 1px solid var(--hair);
  margin-top: clamp(80px, 9vw, 140px);
  padding: 64px 0 32px;
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hair);
}
.site-footer .col a.paused { color: var(--paused); }
.site-footer .col a.paused:hover { color: var(--text-mute); }
.site-footer .tagline {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--text-mute); margin: 16px 0 0; max-width: 28ch;
}
.site-footer .col h4 {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 16px; font-weight: 500;
}
.site-footer .col a {
  display: block; font-size: 13.5px; color: var(--text-mute);
  padding: 6px 0; transition: color 0.18s ease;
}
.site-footer .col a:hover { color: var(--text); }
.site-footer .marker {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; color: var(--text-mute);
  margin-top: 32px;
}
.site-footer .marker .accent { color: var(--gold-2); font-style: normal; font-weight: 500; }
.site-footer .legal {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: var(--fs-mono);
  color: var(--text-faint); margin-top: 24px;
  letter-spacing: var(--ls-mono);
}
@media (max-width: 900px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer .legal { flex-direction: column; gap: 8px; align-items: start; }
}

/* ============================================================
   PROSE (legal pages)
   ============================================================ */

.prose h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2;
  color: var(--text-strong); margin: 56px 0 16px;
  letter-spacing: var(--ls-h);
}
.prose h2:first-child { margin-top: 0; }
.prose .p { margin: 0 0 14px; color: var(--text); }
.prose .mono { color: var(--gold-2); }

/* ============================================================
   LINKS
   ============================================================ */

.link {
  color: var(--text-strong);
  border-bottom: 1px solid var(--gold-2);
  padding-bottom: 1px;
  transition: color 0.18s ease;
}
.link:hover { color: var(--gold-2); }
.section-paper .link { color: var(--green); border-bottom-color: var(--gold); }
