/* ==========================================================================
   wooden-board-games.com — "The Workshop" theme
   An engineering-drawing language for a custom wooden board game manufacturer:
   graphite title blocks, board-cream paper, copper accents, blueprint numbering,
   1px rule lines, fine drafting grid, monospace specification labels and
   offset card shadows. Distinct from the warm-paper Rulebook theme of the
   sister sites.
   Palette / typography per docs/SITE-BRIEF.md §0, class coverage per §7.
   System font stacks only: no webfonts, images or third-party scripts load
   from this stylesheet. Everything below is first-party CSS.
   --------------------------------------------------------------------------
   01 tokens             02 base                03 layout
   04 header             05 hero                06 sections & plates
   07 grids & cards      08 page furniture      09 tables
   10 product            11 prose               12 lists, docs & pager
   13 forms              14 footer              15 figures, badges, gallery
   16 lightbox           17 accessibility       18 responsive
   ========================================================================== */

/* 01 — design tokens ------------------------------------------------------ */
:root {
  /* palette */
  --graphite: #1E2023;
  --graphite-deep: #141619;
  --graphite-soft: #2A2D31;
  --paper: #F5F1E8;
  --paper-2: #EAE4D5;
  --card: #FFFDF6;
  --ink: #1E2023;
  --ink-2: #3D3B34;
  --muted: #6B665A;
  --copper: #B4592A;
  --copper-dark: #8E4420;
  --copper-soft: #E08A5C;
  --blueprint: #2C4A6E;
  --blueprint-soft: #4C6E93;
  --line: #D8D1C0;
  --line-2: #BFB6A1;
  --steel: #8C8675;
  --shadow: #D9D1BE;
  --shadow-lift: rgba(180, 89, 42, .34);
  /* type */
  --display: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  /* geometry */
  --radius: 0px;
  --wrap: 1240px;
  --gut: 24px;
  --head-h: 70px;
  /* drafting grid (kept low contrast so long-form pages stay readable) */
  --grid-minor: rgba(44, 74, 110, .05);
  --grid-major: rgba(44, 74, 110, .10);
  color-scheme: light;
}

/* 02 — base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--ink);
  font: 16px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
header, footer { display: block; }
form { margin: 0; }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
a {
  color: var(--copper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(180, 89, 42, .45);
  transition: color .12s ease, text-decoration-color .12s ease;
}
a:hover {
  color: var(--copper-dark);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--copper-dark);
}
h1, h2, h3, h4 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--ink);
}
h1 { font-size: clamp(32px, 4.4vw, 54px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 18px; line-height: 1.25; }
h4 { font-size: 15px; }
p { margin: 0 0 14px; }
strong, b { font-weight: 700; }
small { font-size: 12px; }
::selection { background: var(--copper); color: #FFF9F2; }
[id] { scroll-margin-top: calc(var(--head-h) + 12px); }

/* 03 — layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
main.wrap { display: block; min-height: 40vh; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  border: 0;
  padding: 0;
}

/* 04 — header (graphite title block) -------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--paper);
  background-color: var(--graphite);
  border-bottom: 2px solid var(--copper);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .45);
  background-image:
    linear-gradient(90deg, rgba(245, 241, 232, .05) 1px, transparent 1px),
    linear-gradient(rgba(245, 241, 232, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 110, 147, .16) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 100%;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--head-h);
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.1;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 31px;
  padding: 5px 6px;
  color: #FFF9F2;
  background: var(--copper);
  border: 1px solid var(--copper-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}
.brand-name { font-family: var(--display); }
.brand:hover { color: var(--copper-soft); text-decoration: none; }
.brand:hover .brand-mark { background: var(--copper-dark); }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.nav a {
  display: inline-block;
  padding: 7px 9px;
  border: 1px solid transparent;
  color: rgba(245, 241, 232, .8);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .065em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease,
              transform .12s ease, box-shadow .12s ease;
}
.nav a:hover {
  color: var(--paper);
  border-color: rgba(245, 241, 232, .32);
  background: rgba(245, 241, 232, .06);
  text-decoration: none;
}
.nav a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--copper);
  background: rgba(180, 89, 42, .2);
}
.nav a.cta {
  margin-left: 6px;
  padding: 7px 13px;
  color: #FFF9F2;
  background: var(--copper);
  border: 2px solid var(--copper-soft);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .4);
}
.nav a.cta:hover {
  color: #FFF9F2;
  background: var(--copper-dark);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, .4);
}
.mnav { display: none; }

/* 05 — hero (framed drawing sheet) ---------------------------------------- */
.hero {
  position: relative;
  margin: 26px 0 10px;
  padding: clamp(34px, 5vw, 60px) clamp(20px, 4vw, 54px) clamp(30px, 4vw, 48px);
  overflow: hidden;
  color: var(--paper);
  background-color: var(--graphite);
  border: 1px solid var(--graphite-deep);
  box-shadow: 8px 8px 0 rgba(180, 89, 42, .26);
  background-image:
    linear-gradient(rgba(245, 241, 232, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 232, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 110, 147, .22) 1px, transparent 1px),
    linear-gradient(rgba(76, 110, 147, .18) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245, 241, 232, .14);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background-image: repeating-linear-gradient(90deg, rgba(245, 241, 232, .3) 0 1px, transparent 1px 12px);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 22ch; color: var(--paper); }
.hero .kicker { color: var(--copper-soft); }
.hero .lede { max-width: 68ch; color: rgba(245, 241, 232, .8); }
.hero a { color: var(--copper-soft); }
.hero a:hover { color: var(--paper); }
.kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--blueprint);
}
.lede {
  max-width: 72ch;
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 26px 0 30px;
  padding: 0;
}
.facts div {
  position: relative;
  padding: 14px 14px 12px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(245, 241, 232, .26);
}
.facts div::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--copper);
  border-left: 2px solid var(--copper);
}
.facts b {
  display: block;
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.facts span {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, .62);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

/* buttons: 2px solid border + hard offset shadow + press displacement */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--copper);
  color: #FFF9F2;
  border: 2px solid var(--graphite-deep);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--graphite-deep);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover {
  background: var(--copper-dark);
  color: #FFF9F2;
  text-decoration: none;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--graphite-deep);
}
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--graphite-deep); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--blueprint);
}
.btn.ghost:hover {
  background: rgba(44, 74, 110, .07);
  color: var(--blueprint);
  box-shadow: 1px 1px 0 var(--blueprint);
}
.hero .btn { border-color: var(--graphite-deep); box-shadow: 4px 4px 0 rgba(245, 241, 232, .2); }
.hero .btn:hover { box-shadow: 1px 1px 0 rgba(245, 241, 232, .2); }
.hero .btn.ghost {
  color: var(--paper);
  border-color: rgba(245, 241, 232, .7);
  box-shadow: 4px 4px 0 rgba(245, 241, 232, .18);
}
.hero .btn.ghost:hover {
  color: var(--paper);
  background: rgba(245, 241, 232, .08);
  border-color: var(--paper);
  box-shadow: 1px 1px 0 rgba(245, 241, 232, .18);
}

/* 06 — sections & numbered plates ----------------------------------------- */
.sec { padding: 30px 0 6px; }
.sec > h2 {
  margin-top: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -.005em;
}
.plate {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--blueprint);
}
.plate::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--copper);
  box-shadow: 2px 2px 0 rgba(30, 32, 35, .18);
}
.plate::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 7px, transparent 7px 12px);
}

/* 07 — grids & cards ------------------------------------------------------ */
.grid, .cat-grid { display: grid; gap: 16px; margin: 18px 0; }
.grid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
.cat-grid { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); counter-reset: cat; }
.cat-card, .card {
  position: relative;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}
.cat-card:hover, .card:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow-lift);
  text-decoration: none;
}
.cat-card { display: block; padding: 18px 18px 14px; }
.cat-card::before {
  content: counter(cat, decimal-leading-zero);
  counter-increment: cat;
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 6px;
  color: var(--blueprint);
  background: var(--card);
  border: 1px solid var(--blueprint);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  transition: background-color .14s ease, color .14s ease;
}
.cat-card:hover::before { color: var(--paper); background: var(--blueprint); }
.cat-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.2; }
.cat-card p { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.cat-card .plate {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 9px;
  letter-spacing: .14em;
}
.cat-card .plate::before { width: 6px; height: 6px; }
/* cards that carry their own CAP plate do not need the square counter */
.cat-card:has(.plate)::before { display: none; }
.card { display: flex; flex-direction: column; overflow: hidden; }
.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.card-b { padding: 11px 12px 13px; }
.card-b h3 {
  margin: 0 0 5px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
}
.card-b p {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--blueprint);
}
.link {
  display: inline-block;
  margin-top: 10px;
  padding-bottom: 2px;
  color: var(--copper);
  border-bottom: 1px solid rgba(180, 89, 42, .4);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.cat-card:hover .link { color: var(--copper-dark); border-bottom-color: var(--copper-dark); }

/* 08 — page furniture: page hero & breadcrumbs ---------------------------- */
.page-hero { padding: 26px 0 22px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 26ch; margin-bottom: 12px; }
.page-hero .lede { margin-bottom: 0; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 18px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { color: var(--line-2); }
.crumbs span:last-child { color: var(--ink-2); }

/* split layout & side panel */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 30px;
  align-items: start;
  margin-top: 16px;
}
.panel {
  position: relative;
  padding: 18px 18px 20px;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
}
.panel h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--blueprint);
}
.panel h3:not(:first-child) { margin-top: 22px; }
.panel h3 + .spec-table { margin-top: 0; }
.panel .muted { font-size: 12.5px; }

/* 09 — tables (spec sheets) ----------------------------------------------- */
table {
  width: 100%;
  margin: 16px 0;
  border: 1px solid var(--ink);
  border-collapse: collapse;
  background: var(--card);
  font-size: 13.5px;
}
th, td {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { font-weight: 600; color: var(--ink-2); background: var(--paper-2); }
thead th {
  color: var(--paper);
  background: var(--graphite);
  border-color: var(--graphite-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: #FBF6E9; }
.spec-table { margin: 14px 0 20px; }
.spec-table tbody th {
  width: 36%;
  color: var(--ink-2);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.spec-table td { background: var(--card); }
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 1px solid var(--ink); }
/* horizontal scroll container, added progressively by app.js */
.table-scroll {
  max-width: 100%;
  margin: 16px 0;
  padding-bottom: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.table-scroll > table { margin: 0; }
.table-scroll > table.is-wide { min-width: 620px; }
.table-scroll:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* 10 — product page ------------------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: minmax(300px, 44%) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 38px);
  align-items: start;
  padding: 24px 0 8px;
}
.prod-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-self: start;
  position: sticky;
  top: calc(var(--head-h) + 14px);
  counter-reset: fig;
}
.prod-media figure { counter-increment: fig; }
.prod-media figure:first-child { grid-column: 1 / -1; }
.prod-media figure::after {
  content: "FIG " counter(fig, decimal-leading-zero);
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 3px 7px;
  color: var(--paper);
  background: var(--graphite);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  line-height: 1.4;
}
.prod-media img { cursor: zoom-in; }
.prod-info { min-width: 0; }
.prod-info h1 { margin-bottom: 12px; font-size: clamp(25px, 3vw, 36px); }
.spec-line {
  margin: 0 0 18px;
  padding: 10px 0;
  color: var(--muted);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.prod-info h2 {
  margin: 30px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: clamp(19px, 2vw, 24px);
}
.prod-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; }
.facts-block h2 { margin: 34px 0 6px; }
.facts-block h3 {
  position: relative;
  margin: 22px 0 7px;
  padding-left: 16px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.facts-block h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 7px;
  height: 7px;
  background: var(--copper);
}
.facts-block p { color: var(--ink-2); font-size: 15px; }
/* the same .facts block is reused on light paper inside the product page */
.facts-block .facts {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: none;
  margin: 16px 0 14px;
}
.facts-block .facts div { background: var(--card); border: 1px solid var(--line); }
.facts-block .facts b {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.facts-block .facts span {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  color: var(--muted);
}

/* 11 — prose (guides, capabilities, static pages) ------------------------- */
.prose { max-width: 900px; margin: 0 auto; padding: 24px 0 44px; }
.prose h1 { max-width: 24ch; margin-bottom: 14px; font-size: clamp(28px, 3.6vw, 42px); }
.prose h2 {
  margin: 38px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.prose h3 { margin: 26px 0 8px; font-size: 17.5px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.72; color: var(--ink-2); }
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 0 0 7px; }
.prose li::marker { color: var(--copper); font-family: var(--mono); font-size: .9em; }
.prose a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--copper-dark); }
/* buttons inside prose keep their own colour and no underline */
.prose .btn { color: #FFF9F2; text-decoration: none; }
.prose .btn:hover { color: #FFF9F2; text-decoration: none; }
.prose .btn.ghost { color: var(--ink); }
.prose .btn.ghost:hover { color: var(--blueprint); text-decoration: none; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 24px 0;
  padding: 10px 0 10px 20px;
  border-left: 3px solid var(--copper);
  background: linear-gradient(90deg, rgba(180, 89, 42, .06), transparent 70%);
  font-family: var(--display);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--copper-dark);
  font-family: var(--mono);
  font-size: .82em;
}
.prose pre {
  margin: 20px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--graphite-deep);
  border-left: 3px solid var(--copper);
  background: var(--graphite);
  color: #EDE8DC;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
}
.prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.prose hr {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px);
}
.prose figure { margin: 22px 0; }
.prose .lede { font-size: 17px; color: var(--ink-2); }
.prose .byline {
  margin: 18px 0 26px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  line-height: 1.65;
  color: var(--muted);
}
.prose table { font-size: 13px; }

/* 12 — lists, notes, doc lists & pager ------------------------------------ */
.notes {
  display: grid;
  gap: 0;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}
.notes li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.notes li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 12px;
}
.doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0 28px;
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: doc;
}
.doc-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}
.doc-list li::before {
  content: counter(doc, decimal-leading-zero);
  counter-increment: doc;
  flex: 0 0 auto;
  padding: 1px 4px;
  border: 1px solid var(--line-2);
  color: var(--blueprint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  line-height: 1.4;
}
.doc-list a { color: var(--ink-2); text-decoration: none; }
.doc-list a:hover { color: var(--copper); text-decoration: underline; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; }
.pager .page {
  display: inline-block;
  padding: 7px 12px;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 2px 2px 0 var(--shadow);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.pager .page:hover {
  color: var(--copper-dark);
  background: var(--card);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--shadow-lift);
  text-decoration: none;
}
.pager .page.on {
  color: var(--paper);
  background: var(--graphite);
  border-color: var(--graphite);
  box-shadow: 2px 2px 0 var(--copper);
  cursor: default;
}
.pager .page.on:hover { color: var(--paper); transform: none; box-shadow: 2px 2px 0 var(--copper); }

/* numbered process steps (order of a custom run) */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
  margin: 20px 0 10px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: start;
  padding: 15px 16px 14px;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / 3;
  margin-top: 1px;
  padding: 3px 6px;
  color: var(--copper);
  border: 1px solid var(--copper);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.35;
}
.steps b {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}
.steps span {
  grid-column: 2;
  grid-row: 2;
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* 13 — forms & calculator ------------------------------------------------- */
.quote-form { display: grid; gap: 14px; max-width: 620px; margin: 10px 0 0; }
.quote-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.quote-form input, .quote-form textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: inset 2px 2px 0 rgba(30, 32, 35, .04);
  font: 15px/1.55 var(--sans);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: var(--steel); }
.quote-form input:focus, .quote-form textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(180, 89, 42, .2), inset 2px 2px 0 rgba(30, 32, 35, .04);
}
.quote-form textarea { min-height: 130px; resize: vertical; }
.quote-form button { justify-self: start; margin-top: 2px; }
.quote-form #quote-status {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .03em;
  line-height: 1.6;
}
.quote-form.is-sending .btn {
  opacity: .65;
  cursor: progress;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--graphite-deep);
}
.calc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
}
.calc label {
  display: grid;
  gap: 5px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.calc input {
  padding: 8px 9px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font: 15px var(--sans);
}
.calc-out {
  grid-column: 1 / -1;
  padding: 12px 14px;
  color: var(--paper);
  background: var(--graphite);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.calc p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }

/* 14 — footer (graphite title block) -------------------------------------- */
.site-foot {
  margin-top: 52px;
  padding: 44px 0 0;
  color: rgba(245, 241, 232, .72);
  background-color: var(--graphite);
  border-top: 2px solid var(--copper);
  background-image:
    linear-gradient(90deg, rgba(245, 241, 232, .045) 1px, transparent 1px),
    linear-gradient(rgba(245, 241, 232, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 110, 147, .16) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 100%;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
}
.site-foot .brand { margin-bottom: 12px; color: var(--paper); }
.site-foot .muted { margin-bottom: 10px; color: rgba(245, 241, 232, .58); font-size: 13px; line-height: 1.7; }
.site-foot h4 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(245, 241, 232, .16);
  color: var(--copper-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.site-foot ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.5; }
.site-foot li { margin: 0 0 8px; }
.site-foot a { color: rgba(245, 241, 232, .78); text-decoration: none; }
.site-foot a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--copper-soft);
  text-underline-offset: 3px;
}
.foot-meta {
  padding-top: 14px;
  padding-bottom: 18px;
  border-top: 1px solid rgba(245, 241, 232, .16);
  color: rgba(245, 241, 232, .5);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* 15 — figures, gallery, badges & tags ------------------------------------ */
figure {
  position: relative;
  margin: 0 0 18px;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
}
figure img { display: block; width: 100%; height: auto; }
figure figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.figure {
  margin: 20px 0;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
}
.figure img { display: block; width: 100%; height: auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.gallery figure { margin: 0; box-shadow: 2px 2px 0 var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in; }
code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--copper-dark);
  font-family: var(--mono);
  font-size: .85em;
}
pre {
  margin: 18px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--graphite-deep);
  border-left: 3px solid var(--copper);
  background: var(--graphite);
  color: #EDE8DC;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
}
pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
blockquote {
  margin: 22px 0;
  padding: 8px 0 8px 20px;
  border-left: 3px solid var(--copper);
  color: var(--ink-2);
  font-family: var(--display);
  font-size: 17px;
  font-style: italic;
}
.badge, .tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--blueprint);
  background: var(--blueprint);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.6;
  text-transform: uppercase;
  vertical-align: middle;
}
.tag { border-color: var(--copper); background: transparent; color: var(--copper-dark); }

/* 16 — lightbox (image viewer, opened by app.js) -------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 48px);
  background: rgba(20, 22, 25, .93);
}
.lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 2 * clamp(12px, 4vw, 48px));
  border: 2px solid var(--paper);
  box-shadow: 8px 8px 0 rgba(180, 89, 42, .55);
  background: var(--paper);
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 9px 14px;
  color: var(--paper);
  background: var(--graphite);
  border: 2px solid var(--paper);
  box-shadow: 3px 3px 0 var(--copper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}
.lightbox-close:hover { color: #FFF9F2; background: var(--copper); }

/* 17 — accessibility & motion -------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
.site-head :focus-visible { outline-color: var(--copper-soft); }
.hero :focus-visible { outline-color: var(--copper-soft); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
  .cat-card:hover, .card:hover, .btn:hover, .pager .page:hover { transform: none; }
}
@media print {
  body { background: #fff; }
  .site-head, .site-foot, .mnav, .pager, .hero-cta, .prod-cta, .lightbox { display: none !important; }
  .hero, .panel, .cat-card, .card, figure, .figure, .calc { box-shadow: none; }
  .hero { color: var(--ink); background: #fff; border: 1px solid var(--ink); }
  .hero h1, .hero .lede, .hero .kicker { color: var(--ink); }
  .facts div { background: #fff; border-color: var(--ink); }
  .facts b, .facts span { color: var(--ink); }
  a { color: var(--ink); text-decoration: underline; }
}

/* 18 — responsive --------------------------------------------------------- */
@media (max-width: 1040px) {
  .nav { font-size: 11.5px; }
  .nav a { padding: 6px 7px; letter-spacing: .05em; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .prod-media { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { max-width: none; }
  .page-hero h1 { max-width: none; }
}
@media (max-width: 720px) {
  .site-head .wrap {
    flex-wrap: wrap;
    gap: 0 12px;
    min-height: 0;
    padding-top: 9px;
    padding-bottom: 0;
  }
  .brand { font-size: 18px; }
  .steps { grid-template-columns: 1fr; }
  .mnav { display: block; position: relative; margin-left: auto; }
  .mnav summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--paper);
    background: var(--graphite-soft);
    border: 2px solid rgba(245, 241, 232, .55);
    border-radius: var(--radius);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
  }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary::marker { content: ""; }
  .mnav summary::after { content: "+"; font-size: 14px; line-height: 1; color: var(--copper-soft); }
  .mnav[open] summary { background: var(--copper); border-color: var(--copper-soft); }
  .mnav[open] summary::after { content: "\2013"; }
  .mnav summary:hover { background: var(--copper-dark); }
  .mnav-body {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 90;
    min-width: 250px;
    padding: 8px 0;
    background: var(--graphite-deep);
    border: 1px solid rgba(245, 241, 232, .28);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .4);
  }
  .mnav-body a {
    display: block;
    padding: 10px 16px;
    color: rgba(245, 241, 232, .84);
    border-bottom: 1px solid rgba(245, 241, 232, .08);
    font-size: 14px;
    text-decoration: none;
  }
  .mnav-body a:last-child { border-bottom: 0; }
  .mnav-body a:hover { color: var(--paper); background: rgba(180, 89, 42, .24); text-decoration: none; }
  /* horizontal, swipeable section strip below the brand row */
  .nav {
    order: 3;
    flex: 0 0 100%;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 9px calc(-1 * var(--gut)) 0;
    padding: 0 var(--gut) 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(245, 241, 232, .22);
    white-space: nowrap;
  }
  .nav a.cta { margin-left: 0; }
  .hero { margin: 16px 0 6px; padding: 28px 18px 26px; box-shadow: 5px 5px 0 rgba(180, 89, 42, .26); }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); }
  .hero .lede { font-size: 15.5px; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 20px 0 24px; }
  .facts div { padding: 11px 11px 10px; }
  .facts b { font-size: 18px; }
  .sec { padding: 24px 0 4px; }
  .plate { margin-top: 26px; }
  .cat-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .page-hero { padding: 20px 0 18px; }
  .crumbs { padding-top: 14px; }
  .prose { padding: 18px 0 34px; }
  .prose p, .prose li { font-size: 15px; }
  .prose h2 { margin-top: 32px; }
  .prod-media { grid-template-columns: 1fr 1fr; }
  .quote-form { max-width: none; }
  .doc-list { grid-template-columns: 1fr; }
  table { font-size: 12.5px; }
  th, td { padding: 7px 9px; }
  .spec-table tbody th { width: 42%; }
  .foot-grid { gap: 24px; }
  .lightbox { padding: 12px; }
  .lightbox img { max-height: 78vh; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: clamp(26px, 7.6vw, 34px); }
  .site-foot { padding-top: 34px; }
}
@media (max-width: 390px) {
  .grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
