/* ===============================================================================
   LIVING BRAND · SCAFFOLD.CSS
   ===============================================================================
   The shared page shell for a "living-styleguide-*" reference page: the reset,
   the .mast header, the .jobrow section heading, and the .el demo+spec grid
   (live component on the left, explanation on the right). Extracted 2026-09-11
   after finding it duplicated near-verbatim across ~26 pages, with small
   accidental drift in a few spots (a 320px/330px grid-column split, a 52px/56px
   heading margin, a missing .spec background) that got normalized to one value
   as part of this extraction rather than left to keep drifting.

   Depends on colors-light.css (or colors-dark.css — either half of the
   swappable pair) being linked first. This file only supplies structure,
   never a color value directly, which is what lets a page swap its color
   file without touching this one.

   A page overrides any rule here by re-declaring the selector in its own
   <style> block, AFTER these two <link> tags — normal CSS cascade, no !important
   needed. living-styleguide-cards.html's mirrored .spec panel (border-right
   instead of border-left) and living-styleguide-illustration.html's slightly
   larger .spec padding are both handled this way: real, kept intentionally,
   not treated as drift to eliminate.

   NOT included here: .page{} (max-width genuinely varies 1160/1200/1240px by
   content need) and code{} background tinting (several pages give inline code
   their own accent tint) — both stay page-local on purpose.
=================================================================================== */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--g-bg);color:var(--ink);font-family:'Inter',sans-serif;font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}
code{font-family:'JetBrains Mono',monospace;font-size:.92em}

.mast{padding:56px 0 32px;display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;border-bottom:2px solid var(--ink)}
.mast h1{font-family:'Fraunces',serif;font-weight:600;font-size:clamp(38px,5vw,64px);letter-spacing:-.02em;line-height:1}
.mast .sub{font-family:'JetBrains Mono',monospace;font-size:13px;letter-spacing:.04em;color:var(--g-soft);margin-top:12px}
.mast .badge{font-family:'JetBrains Mono',monospace;font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--teal-ink);background:rgba(15,181,166,.12);padding:8px 14px;border-radius:999px}

.jobrow{display:flex;align-items:baseline;gap:14px;margin:56px 0 6px}
.jobrow .n{font-family:'JetBrains Mono',monospace;font-size:13px;color:var(--teal-ink);font-weight:600}
.jobrow h2{font-family:'Fraunces',serif;font-weight:600;font-size:27px;letter-spacing:-.01em}
.jobnote{color:var(--g-soft);font-size:14px;max-width:760px;margin-bottom:24px}

/* each element: live demo + spec */
.el{display:grid;grid-template-columns:1fr 320px;gap:0;border:1px solid var(--g-line);border-radius:16px;overflow:hidden;margin-bottom:16px;background:#fff}
@media(max-width:880px){.el{grid-template-columns:1fr}}
.demo{padding:28px;background:var(--paper);display:flex;flex-direction:column;justify-content:center;gap:14px}
.spec{padding:22px;border-left:1px solid var(--g-line);background:var(--g-panel)}
@media(max-width:880px){.spec{border-left:0;border-top:1px solid var(--g-line)}}
.spec .st{font-family:'JetBrains Mono',monospace;font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--teal-ink);margin-bottom:8px}
.spec h4{font-family:'Fraunces',serif;font-size:17px;font-weight:600;margin-bottom:7px}
.spec p{font-size:13px;color:var(--g-soft);margin-bottom:10px}
.spec .when{font-size:12.5px;color:var(--ink);padding:9px 11px;background:var(--paper);border-left:2px solid var(--teal);border-radius:5px}
.spec .brand{border-left-color:var(--coral)}
.spec .brand b{color:var(--coral-ink)}

.socials{display:flex;align-items:center;gap:4px}
.social{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:var(--ink-soft);transition:background .15s,color .15s}
.social:hover{color:var(--ink);background:rgba(28,30,34,.06)}
.social svg{display:block}
