/* APABA Colorado · Team Review · Design tokens & site styles */

:root {
  /* Color — Editorial dark/cream foundation (committed direction) */
  --ink: #0F1D3A;
  --ink-soft: #1a2847;
  --ink-deeper: #0a1428;
  --paper: #FAF6F0;
  --paper-warm: #F4EEE2;
  --paper-deep: #ECE3D2;
  --charcoal: #1A1A1A;
  --text: #1A1A1A;
  --text-muted: #5a5247;
  --rule: rgba(26, 26, 26, 0.15);
  --rule-soft: rgba(26, 26, 26, 0.08);

  /* Accents — committed: vermilion + foundation gold */
  --accent: #C8553D;
  --accent-deep: #a83f2b;
  --gold: #C89B3C;
  --gold-deep: #a17e2b;

  /* Type families — committed: Garamond / Mona Sans */
  --serif: 'EB Garamond', 'GT Sectra', Georgia, 'Times New Roman', serif;
  --sans: 'Mona Sans', 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Berkeley Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Density — committed: editorial */
  --rhythm: 112px;
  --rhythm-sm: 64px;
  --grain-opacity: 0;

  /* Review stage */
  --stage-bg: #1f2024;
  --stage-fg: #E7EAF0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--stage-bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Page chrome (review stage) ─────────────────────────────── */
.review-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 80px;
  background: var(--stage-bg);
  color: var(--stage-fg);
  gap: 18px;
}

.review-caption {
  max-width: 820px;
  margin: 8px auto 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(231, 234, 240, 0.72);
  text-align: center;
  font-family: var(--sans);
}

/* ─── Top nav (Back / Hub / Forward + page jumps + Variants) ── */
.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-bottom: 4px;
}
.nav-cluster {
  display: inline-flex;
  background: rgba(255, 251, 244, 0.04);
  border: 1px solid rgba(255, 251, 244, 0.10);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.nav-cluster a,
.nav-cluster button {
  border: 0;
  background: transparent;
  color: rgba(231, 234, 240, 0.78);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-cluster a:hover,
.nav-cluster button:hover {
  background: rgba(255, 251, 244, 0.06);
  color: #fff;
}
.nav-cluster a.active {
  background: var(--accent);
  color: var(--paper);
}
.nav-cluster .label {
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ─── Laptop screen frame (MacBook-style, 1440 × 900 inner) ──── */
.laptop-frame {
  position: relative;
  width: 1500px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.laptop-bezel {
  position: relative;
  width: 100%;
  background: #131418;
  border-radius: 18px 18px 6px 6px;
  padding: 24px 16px 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 10px 30px rgba(0, 0, 0, 0.35);
}

.laptop-camera {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #2a2c33;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.laptop-screen {
  width: 100%;
  height: 900px;
  max-height: calc(100vh - 240px);
  background: var(--paper);
  border-radius: 4px;
  overflow: auto;
  scroll-behavior: smooth;
}

/* Hinge — thin gradient strip below the bezel */
.laptop-hinge {
  width: 100%;
  height: 6px;
  background: linear-gradient(180deg, #1c1e23 0%, #0c0d10 100%);
  border-radius: 0 0 4px 4px;
}

/* Base — narrower, suggests laptop body / keyboard underside */
.laptop-base {
  width: 90%;
  height: 14px;
  background: linear-gradient(180deg, #2a2c33 0%, #14161b 100%);
  border-radius: 0 0 18px 18px;
  position: relative;
}
.laptop-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16%;
  height: 5px;
  background: #0a0b0e;
  border-radius: 0 0 8px 8px;
}

/* ─── Variants panel (slide-in from bottom-right) ────────────── */
#variants-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 420px;
  max-width: calc(100vw - 32px);
  background: #0E1219;
  color: #E7EAF0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  font-family: var(--sans);
  z-index: 200;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
  max-height: 80vh;
  overflow-y: auto;
}
body.variants-open #variants-panel {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.vp-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.vp-title {
  font-size: 13.5px;
  font-weight: 700;
}
.vp-sub {
  font-size: 11px;
  color: rgba(255, 251, 244, 0.55);
  margin-top: 4px;
  line-height: 1.55;
}
.vp-close {
  background: transparent;
  border: 0;
  color: rgba(255, 251, 244, 0.6);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.vp-close:hover { color: #fff; }
.vp-section {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.vp-section:first-of-type { border-top: 0; }
.vp-row-head { margin-bottom: 10px; }
.vp-name { font-size: 12.5px; font-weight: 700; }
.vp-help {
  font-size: 10.5px;
  color: rgba(255, 251, 244, 0.5);
  margin-top: 4px;
  line-height: 1.5;
}
.vp-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 3px;
}
.vp-seg.vp-seg-4 { grid-template-columns: repeat(4, 1fr); }
.vp-seg button {
  border: 0;
  background: transparent;
  color: rgba(255, 251, 244, 0.65);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.vp-seg button:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.vp-seg button.on {
  background: var(--accent);
  color: #fff;
}
.vp-section-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vp-toggle {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}
.vp-toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 32px;
  height: 18px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
  margin: 2px 0 0;
}
.vp-toggle input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.vp-toggle input:checked {
  background: var(--accent);
}
.vp-toggle input:checked::after {
  transform: translateX(14px);
}
.vp-toggle-label {
  font-size: 12.5px;
  font-weight: 700;
  display: block;
}
.vp-toggle-help {
  font-size: 10.5px;
  color: rgba(255, 251, 244, 0.5);
  margin-top: 2px;
  display: block;
  line-height: 1.5;
}
.vp-foot {
  font-size: 10.5px;
  color: rgba(255, 251, 244, 0.45);
  line-height: 1.6;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.vp-foot a {
  color: rgba(255, 251, 244, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 251, 244, 0.4);
  text-underline-offset: 2px;
}
.vp-foot a:hover { color: #fff; }

/* Paper grain texture (toggleable via Variants) */
body.has-grain::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ─── Hub (index.html) ───────────────────────────────────────── */
.hub {
  width: 1180px;
  max-width: 100%;
  background: #0E1219;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 48px 56px 40px;
  color: #E7EAF0;
}
.hub-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 24px;
  margin-bottom: 28px;
  gap: 32px;
}
.hub-head h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.hub-head h1 .accent {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hub-head .sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.hub-head .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-align: right;
  line-height: 1.7;
  white-space: nowrap;
}
.hub-head .meta b { color: #fff; font-weight: 600; }

.lede {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 820px;
  margin: 0 0 28px;
}
.lede em { color: var(--accent); font-style: italic; }

.summary {
  background: rgba(200, 85, 61, 0.06);
  border: 1px solid rgba(200, 85, 61, 0.20);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.summary .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(248, 178, 158, 0.95);
  text-transform: uppercase;
}
.summary .label b {
  display: block;
  color: #F8B29E;
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.summary .label span { display: block; opacity: 0.7; margin-top: 4px; }
.summary ol {
  margin: 0; padding-left: 18px;
  font-size: 12.5px; line-height: 1.65;
  color: rgba(255,255,255,0.78);
  columns: 2; column-gap: 28px;
}
.summary ol li { margin-bottom: 4px; break-inside: avoid; }
.summary ol li b { color: #fff; }

.group-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin: 28px 0 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.grid.row4 { grid-template-columns: repeat(4, 1fr); }

.pcard {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: #E7EAF0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.pcard:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 85, 61, 0.45);
  background: rgba(200, 85, 61, 0.05);
}
.pcard .name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 10px;
}
.pcard .name .ord {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.pcard .desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}
.pcard .footer {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}
.pcard .pill {
  background: rgba(200, 85, 61, 0.18);
  color: #F8B29E;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.pcard .pill.gold { background: rgba(200, 155, 60, 0.18); color: #F0CB7E; }
.pcard .pill.dark { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }

.swatch {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.swatch .chip {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.swatch .name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.swatch .hex {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* ─── Inside-frame: original mockup styles (full copy of styles.css) ─── */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--charcoal);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.eyebrow-accent { color: var(--accent); }

.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.display-md {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }
.rule-thick { border: none; border-top: 2px solid var(--charcoal); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 0;
  border: 1px solid transparent;
  transition: all 160ms ease;
  cursor: pointer;
  text-align: center;
  justify-content: center;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--charcoal); }
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.5); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn-arrow::after { content: "→"; font-family: var(--serif); margin-left: 4px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container-wide { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) {
  .container, .container-wide { padding: 0 24px; }
}

.photo-placeholder {
  position: relative;
  background: linear-gradient(135deg, #d8cfbf 0%, #c2b69e 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #2a2418;
}
.photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 14px, rgba(0,0,0,0.05) 14px, rgba(0,0,0,0.05) 15px);
  pointer-events: none;
}
.photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.photo-placeholder.dark { background: linear-gradient(135deg, #2a2818 0%, #1a1812 100%); color: #d4c89a; }
.photo-placeholder .photo-note {
  position: relative;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  z-index: 2;
  background: rgba(250, 246, 240, 0.92);
  color: #1a1812;
  margin: 14px;
  max-width: 320px;
  border-left: 2px solid var(--accent);
}
.photo-placeholder.dark .photo-note {
  background: rgba(15, 14, 10, 0.85);
  color: #d4c89a;
  border-left-color: var(--gold);
}
.photo-note .photo-note-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}
.photo-tone-warm    { background: linear-gradient(135deg, #c9b89a 0%, #a89272 100%); }
.photo-tone-rust    { background: linear-gradient(135deg, #b89580 0%, #8a6b54 100%); }
.photo-tone-stone   { background: linear-gradient(160deg, #b8b09e 0%, #8c8474 100%); }
.photo-tone-ink     { background: linear-gradient(135deg, #3a4458 0%, #1f2738 100%); color: #c8d0e0; }
.photo-tone-evening { background: linear-gradient(160deg, #6a5a48 0%, #2a2418 100%); color: #d4c89a; }
.photo-tone-sage    { background: linear-gradient(135deg, #9aa890 0%, #6f7d68 100%); }

.link-row {
  display: grid;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  transition: padding 200ms ease;
  cursor: pointer;
}
.link-row:hover { padding-left: 12px; }
.link-row:last-child { border-bottom: 1px solid var(--rule); }

::selection { background: var(--accent); color: var(--paper); }

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
