/* ========================================================================
   Essevo — Stijlgids
   Warme, eigentijdse identiteit. Eén CSS-bestand, geen frameworks.
   ======================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Kleuren */
  --c-primary:        #2563A8;
  --c-primary-700:    #1F4F8E;   /* hover  */
  --c-primary-800:    #173E73;   /* active */
  --c-primary-50:     #EAF1F8;   /* subtiele bg */
  --c-secondary:      #E8764B;
  --c-secondary-700: #CC5F37;
  --c-secondary-800: #B14E2A;
  --c-secondary-50:  #FDEEE6;
  --c-dark:           #1A3A5C;
  --c-text:           #1F2937;
  --c-text-muted:     #5B6573;
  --c-text-subtle:    #8B94A1;
  --c-border:         #E7E1DC;
  --c-border-strong:  #CFC8C2;
  --c-bg-warm:        #FFF8F5;
  --c-bg-warm-2:      #FBEFE7;
  --c-white:          #FFFFFF;
  --c-success:        #1F8A5B;
  --c-warning:        #B85C00;
  --c-danger:         #B33B3B;

  /* Spacing — 4px baseline */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 96px;
  --s-13: 128px;

  /* Radii */
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px; --r-full: 999px;

  /* Schaduwen */
  --shadow-sm: 0 1px 2px rgba(26,58,92,0.06);
  --shadow-md: 0 2px 8px rgba(26,58,92,0.08), 0 1px 2px rgba(26,58,92,0.04);
  --shadow-lg: 0 12px 32px -8px rgba(26,58,92,0.18), 0 2px 6px rgba(26,58,92,0.06);

  /* Container */
  --container: 1200px;
  --container-narrow: 880px;

  /* Type */
  --ff-sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-7); }

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg-warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

/* ---------- Layout shell ---------- */
.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  background: var(--c-dark);
  color: #DCE3EC;
  padding: var(--s-7) var(--s-6);
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
}
.sidebar .brand-mark {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--c-secondary);
  display: grid; place-items: center;
  color: var(--c-white);
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em;
}
.sidebar .brand-name {
  font-weight: 700; color: var(--c-white);
  font-size: 18px; letter-spacing: -0.01em;
}
.sidebar .brand-sub {
  font-size: 12px; color: #8FA3B8;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-top: 2px;
}

.toc {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 14px;
}
.toc a {
  display: block;
  color: #B7C3D2;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
}
.toc a:hover { background: rgba(255,255,255,0.04); color: var(--c-white); }
.toc a.active { color: var(--c-white); border-left-color: var(--c-secondary); background: rgba(255,255,255,0.04); }
.toc-num {
  display: inline-block; width: 22px;
  color: var(--c-secondary); font-variant-numeric: tabular-nums; font-weight: 600;
}

.sidebar-footer {
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: #8FA3B8; line-height: 1.5;
}

/* ---------- Content ---------- */
.content { padding: 0; }
.section {
  padding: var(--s-12) var(--s-11);
  border-bottom: 1px solid var(--c-border);
  scroll-margin-top: var(--s-5);
}
.section:nth-of-type(even) { background: var(--c-white); }
.section-inner { max-width: var(--container); margin: 0 auto; }

.section-tag {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--ff-mono);
  font-size: 12px; font-weight: 600; color: var(--c-secondary-800);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: var(--s-4);
}
.section-tag::before {
  content: ""; width: 18px; height: 1px; background: var(--c-secondary);
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff-sans);
  color: var(--c-dark);
  margin: 0;
  text-wrap: balance;
}

.h-display { font-size: 56px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.h-1       { font-size: 44px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.h-2       { font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.h-3       { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
.h-4       { font-size: 18px; line-height: 1.4; font-weight: 600; }

.lead {
  font-size: 20px; line-height: 1.55; color: var(--c-text-muted);
  max-width: 64ch; margin-top: var(--s-4);
}
p { margin: 0 0 var(--s-4); max-width: 70ch; }
p.note { color: var(--c-text-muted); font-size: 14px; }

/* ---------- Cover ---------- */
.cover {
  background: linear-gradient(135deg, var(--c-bg-warm) 0%, var(--c-bg-warm-2) 100%);
  padding: var(--s-12) var(--s-11) var(--s-11);
  border-bottom: 1px solid var(--c-border);
}
.cover-meta {
  display: flex; gap: var(--s-7); flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: 12px;
  color: var(--c-text-muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: var(--s-7);
}
.cover-meta span strong { color: var(--c-dark); font-weight: 600; }
.cover h1 {
  font-size: 72px; line-height: 1.05; font-weight: 700;
  letter-spacing: -0.03em; color: var(--c-dark);
  max-width: 16ch;
}
.cover h1 em {
  font-style: normal; color: var(--c-secondary);
}
.cover .lead { font-size: 22px; max-width: 60ch; margin-top: var(--s-6); }
.cover-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4); margin-top: var(--s-10);
}
.cover-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.cover-card .num {
  font-family: var(--ff-mono);
  color: var(--c-secondary); font-weight: 600; font-size: 12px;
  letter-spacing: 0.14em;
}
.cover-card h3 { font-size: 18px; margin: var(--s-2) 0 var(--s-2); color: var(--c-dark); }
.cover-card p { font-size: 14px; color: var(--c-text-muted); margin: 0; }

/* ---------- Generic helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.stack-7 > * + * { margin-top: var(--s-7); }
.stack-5 > * + * { margin-top: var(--s-5); }
.stack-4 > * + * { margin-top: var(--s-4); }

code, .mono {
  font-family: var(--ff-mono);
  font-size: 0.875em;
  background: var(--c-primary-50);
  color: var(--c-primary-800);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

pre {
  font-family: var(--ff-mono);
  font-size: 13px;
  line-height: 1.6;
  background: var(--c-dark);
  color: #DCE3EC;
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: var(--s-4) 0;
}
pre code { background: transparent; color: inherit; padding: 0; }
pre .k { color: #F2B98A; }   /* keyword */
pre .p { color: #8FB9E8; }   /* property */
pre .v { color: #CFE5F5; }   /* value */
pre .c { color: #7E8B9C; font-style: italic; } /* comment */

/* ---------- Color swatches ---------- */
.swatch-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.swatch {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-white);
}
.swatch-chip {
  height: 140px;
  position: relative;
}
.swatch-chip::after {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 12px;
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: inherit; opacity: 0.85;
}
.swatch-body { padding: var(--s-4) var(--s-5); }
.swatch-name { font-weight: 600; font-size: 14px; color: var(--c-dark); }
.swatch-hex { font-family: var(--ff-mono); font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.swatch-role { font-size: 12px; color: var(--c-text-subtle); margin-top: 6px; line-height: 1.5; }

.tints-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3); margin-top: var(--s-4); }
.tint {
  border-radius: var(--r-md); padding: var(--s-4); min-height: 90px;
  display: flex; flex-direction: column; justify-content: flex-end;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em;
}

/* ---------- Type specimens ---------- */
.specimen { border-top: 1px solid var(--c-border); padding: var(--s-5) 0; display: grid; grid-template-columns: 200px 1fr; gap: var(--s-6); align-items: baseline; }
.specimen:first-of-type { border-top: 0; }
.specimen-meta { font-family: var(--ff-mono); font-size: 12px; color: var(--c-text-muted); line-height: 1.6; }
.specimen-meta b { color: var(--c-dark); font-weight: 600; display: block; font-size: 13px; }
.specimen-text { color: var(--c-dark); }

/* ---------- Components canvas ---------- */
.canvas {
  background: var(--c-bg-warm); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--s-7);
}
.canvas.white { background: var(--c-white); }
.canvas-label {
  font-family: var(--ff-mono); font-size: 11px; color: var(--c-text-subtle);
  text-transform: uppercase; letter-spacing: 0.14em;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-5);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--ff-sans);
  font-weight: 500; font-size: 15px; line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}
.btn:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}

.btn-primary { background: var(--c-primary); color: var(--c-white); }
.btn-primary:hover { background: var(--c-primary-700); }
.btn-primary:active { background: var(--c-primary-800); }

.btn-cta { background: var(--c-secondary); color: var(--c-white); }
.btn-cta:hover { background: var(--c-secondary-700); }
.btn-cta:active { background: var(--c-secondary-800); }
.btn-cta:focus-visible { outline-color: var(--c-secondary); }

.btn-outline {
  background: transparent; color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary-50); }

.btn-text {
  background: transparent; color: var(--c-primary);
  padding-left: 4px; padding-right: 4px;
  border-radius: 0;
}
.btn-text:hover { color: var(--c-primary-700); }
.btn-text::after {
  content: "→"; margin-left: 4px; transition: margin-left 120ms ease;
}
.btn-text:hover::after { margin-left: 8px; }

.btn-disabled, .btn[disabled] {
  background: #E1DCD7; color: #98928D; cursor: not-allowed;
}

.btn-row { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.btn-grid { display: grid; grid-template-columns: repeat(4, max-content); gap: var(--s-4) var(--s-5); align-items: center; }
.btn-grid .lbl { font-family: var(--ff-mono); font-size: 11px; color: var(--c-text-subtle); text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label { font-size: 13px; font-weight: 500; color: var(--c-dark); }
.field input[type=text], .field input[type=email], .field textarea, .field select {
  font-family: var(--ff-sans); font-size: 15px; color: var(--c-text);
  background: var(--c-white);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  padding: 12px 14px; line-height: 1.4;
  transition: border-color 120ms, box-shadow 120ms;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(37,99,168,0.18);
}
.field .hint { font-size: 12px; color: var(--c-text-muted); }
.field.error input { border-color: var(--c-danger); }
.field.error .hint { color: var(--c-danger); }

.choice { display: flex; align-items: center; gap: var(--s-3); padding: 6px 0; font-size: 14px; }
.choice input { width: 18px; height: 18px; accent-color: var(--c-primary); }

/* ---------- Cards ---------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--c-border-strong); }

.card-service .glyph {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--c-primary-50); color: var(--c-primary);
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-weight: 600; font-size: 18px;
  margin-bottom: var(--s-2);
}
.card-service h4 { font-size: 18px; color: var(--c-dark); }
.card-service p { font-size: 14px; color: var(--c-text-muted); margin: 0; }
.card-service .more { font-size: 14px; color: var(--c-primary); font-weight: 500; margin-top: auto; padding-top: var(--s-4); display: inline-flex; align-items: center; gap: 6px; }
.card-service .more::after { content: "→"; transition: margin-left 120ms; }
.card-service:hover .more::after { margin-left: 4px; }

.card-case {
  padding: 0; overflow: hidden; gap: 0;
}
.case-image {
  aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(45deg, rgba(26,58,92,0.05) 0 6px, transparent 6px 14px),
    linear-gradient(135deg, var(--c-primary-50), var(--c-bg-warm-2));
  position: relative;
}
.case-image::after {
  content: "Casebeeld 16:9";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 11px; color: var(--c-text-subtle);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.card-case .case-body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.card-case .case-meta { font-family: var(--ff-mono); font-size: 11px; color: var(--c-secondary-700); text-transform: uppercase; letter-spacing: 0.14em; }
.card-case h4 { font-size: 20px; color: var(--c-dark); }
.card-case p { font-size: 14px; color: var(--c-text-muted); margin: 0; }

.card-testimonial {
  background: var(--c-bg-warm);
  border-color: var(--c-bg-warm-2);
}
.card-testimonial .quote {
  font-size: 22px; line-height: 1.45;
  color: var(--c-dark); font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
  position: relative;
  padding-left: var(--s-5);
}
.card-testimonial .quote::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; background: var(--c-secondary);
  border-radius: var(--r-full);
}
.card-testimonial .who { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.card-testimonial .avatar {
  width: 44px; height: 44px; border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--c-primary-50), var(--c-bg-warm-2));
  border: 1px solid var(--c-border);
}
.card-testimonial .who-name { font-weight: 600; font-size: 14px; color: var(--c-dark); }
.card-testimonial .who-role { font-size: 13px; color: var(--c-text-muted); }

.card-profile { text-align: left; padding: 0; gap: 0; }
.card-profile .portrait {
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(135deg, rgba(26,58,92,0.06) 0 4px, transparent 4px 10px),
    linear-gradient(160deg, var(--c-bg-warm-2), var(--c-primary-50));
  position: relative;
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
}
.card-profile .portrait::after {
  content: "Portret 4:5"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 11px; color: var(--c-text-subtle);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.card-profile .pbody { padding: var(--s-5) var(--s-6) var(--s-6); }
.card-profile h4 { font-size: 20px; color: var(--c-dark); }
.card-profile .role { font-size: 13px; color: var(--c-secondary-700); font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 4px; }
.card-profile p { font-size: 14px; color: var(--c-text-muted); margin-top: var(--s-3); }

/* ---------- Nav / chrome ---------- */
.topnav {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-5);
  display: flex; align-items: center; gap: var(--s-6);
}
.topnav .logo {
  display: flex; align-items: center; gap: var(--s-2);
  font-weight: 700; color: var(--c-dark); letter-spacing: -0.01em;
  font-size: 18px;
}
.topnav .logo-mark {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  background: var(--c-secondary); color: var(--c-white);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.topnav nav { display: flex; gap: var(--s-5); margin-left: var(--s-6); }
.topnav nav a {
  color: var(--c-text); font-size: 14px; text-decoration: none; font-weight: 500;
  padding: 6px 4px; border-bottom: 2px solid transparent;
}
.topnav nav a:hover { color: var(--c-primary); }
.topnav nav a.current { color: var(--c-dark); border-bottom-color: var(--c-secondary); }
.topnav .nav-cta { margin-left: auto; }

/* ---------- Section / page mockups ---------- */
.mockup {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mockup-bar {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 10px var(--s-4);
  background: #F2EDE8;
  border-bottom: 1px solid var(--c-border);
}
.mockup-bar .dot { width: 10px; height: 10px; border-radius: var(--r-full); background: #D4CDC6; }
.mockup-bar .url {
  margin-left: var(--s-3);
  font-family: var(--ff-mono); font-size: 11px;
  background: var(--c-white); border-radius: var(--r-sm);
  padding: 4px 10px; color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}

.page-section { padding: var(--s-10) var(--s-9); }
.page-section.warm { background: var(--c-bg-warm); }
.page-section.dark { background: var(--c-dark); color: var(--c-white); }
.page-section.dark h1, .page-section.dark h2, .page-section.dark h3 { color: var(--c-white); }
.page-section.dark p { color: #C8D3E0; }

.hero {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: var(--s-10); padding: var(--s-12) var(--s-9);
  background: linear-gradient(180deg, var(--c-bg-warm) 0%, var(--c-white) 100%);
  align-items: center;
}
.hero h1 {
  font-size: 52px; line-height: 1.08; letter-spacing: -0.025em;
  color: var(--c-dark); font-weight: 700;
  max-width: 14ch;
}
.hero h1 em { color: var(--c-secondary); font-style: normal; }
.hero p.lead { font-size: 19px; max-width: 44ch; }
.hero-actions { margin-top: var(--s-6); display: flex; gap: var(--s-3); align-items: center; }
.hero-art {
  aspect-ratio: 4/5;
  border-radius: var(--r-2xl);
  background:
    repeating-linear-gradient(135deg, rgba(232,118,75,0.08) 0 6px, transparent 6px 16px),
    linear-gradient(160deg, var(--c-bg-warm-2), var(--c-primary-50));
  position: relative; overflow: hidden;
}
.hero-art::after {
  content: "Hero-portret (mei 2026)";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--c-text-muted); text-transform: uppercase;
}

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.trio .card-service h4 { font-size: 20px; }

.cta-strip {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7); padding: var(--s-10) var(--s-9);
  background: var(--c-dark); color: var(--c-white);
  align-items: center;
}
.cta-strip h2 { color: var(--c-white); font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; max-width: 16ch; }
.cta-strip p { color: #C8D3E0; max-width: 44ch; }
.cta-strip .actions { display: flex; justify-content: flex-end; gap: var(--s-3); }

/* ---------- Do/Don't ---------- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.rule {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--s-5) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.rule-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 600;
  align-self: flex-start;
  padding: 4px 10px; border-radius: var(--r-full);
}
.rule.do .rule-tag { background: rgba(31,138,91,0.10); color: var(--c-success); }
.rule.dont .rule-tag { background: rgba(179,59,59,0.08); color: var(--c-danger); }
.rule h4 { font-size: 16px; color: var(--c-dark); }
.rule p { font-size: 14px; color: var(--c-text-muted); margin: 0; }

/* ---------- Spacing scale visual ---------- */
.spacing-row {
  display: grid; grid-template-columns: 80px 80px 1fr 1fr; gap: var(--s-4);
  align-items: center; padding: var(--s-3) 0;
  border-top: 1px solid var(--c-border); font-size: 14px;
}
.spacing-row:first-of-type { border-top: 0; }
.spacing-bar { height: 16px; background: var(--c-primary); border-radius: 2px; }
.spacing-row .token { font-family: var(--ff-mono); font-weight: 600; color: var(--c-dark); }
.spacing-row .px { font-family: var(--ff-mono); color: var(--c-text-muted); }
.spacing-row .use { color: var(--c-text-muted); font-size: 13px; }

/* ---------- Icons ---------- */
.icon-row { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; }
.icon-tile {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--c-white); border: 1px solid var(--c-border);
  display: grid; place-items: center; color: var(--c-dark);
}
.icon-tile svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tone of voice samples ---------- */
.tov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.tov-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); }
.tov-card h5 { font-size: 13px; font-family: var(--ff-mono); color: var(--c-secondary-700); margin: 0 0 var(--s-3); text-transform: uppercase; letter-spacing: 0.14em; }
.tov-card .ex { font-size: 16px; color: var(--c-dark); line-height: 1.5; }
.tov-card .ex.bad { color: var(--c-text-muted); text-decoration: line-through; text-decoration-color: var(--c-danger); text-decoration-thickness: 1px; }
.tov-card .ex.good { font-weight: 500; }

/* ---------- Contrast table ---------- */
.contrast-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.contrast-table th, .contrast-table td {
  text-align: left; padding: 12px var(--s-4);
  border-bottom: 1px solid var(--c-border);
}
.contrast-table th { font-weight: 600; color: var(--c-dark); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--ff-mono); }
.contrast-table .preview { font-weight: 500; padding: 8px var(--s-3); border-radius: var(--r-sm); display: inline-block; }
.contrast-table .pass { color: var(--c-success); font-family: var(--ff-mono); font-size: 12px; font-weight: 600; }
.contrast-table .ratio { font-family: var(--ff-mono); color: var(--c-text-muted); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.checklist li {
  display: grid; grid-template-columns: 24px 1fr 200px; gap: var(--s-3);
  align-items: center;
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--s-3) var(--s-5);
  font-size: 14px;
}
.checklist .box {
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid var(--c-border-strong);
}
.checklist .where {
  font-family: var(--ff-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  text-align: right; color: var(--c-text-muted);
}
.checklist .where.elementor { color: var(--c-primary); }
.checklist .where.css { color: var(--c-secondary-700); }

/* ---------- Imagery cards ---------- */
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.image-tile {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-border); background: var(--c-white);
}
.image-tile .img { aspect-ratio: 4/5; position: relative; }
.image-tile .img::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--c-text-muted);
}
.image-tile.portrait .img {
  background:
    repeating-linear-gradient(135deg, rgba(26,58,92,0.06) 0 4px, transparent 4px 10px),
    linear-gradient(160deg, var(--c-bg-warm-2), var(--c-primary-50));
}
.image-tile.scene .img {
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(45deg, rgba(232,118,75,0.08) 0 6px, transparent 6px 14px),
    linear-gradient(160deg, var(--c-bg-warm), var(--c-bg-warm-2));
}
.image-tile.square .img {
  aspect-ratio: 1/1;
  background:
    repeating-linear-gradient(0deg, rgba(26,58,92,0.05) 0 2px, transparent 2px 8px),
    linear-gradient(160deg, var(--c-primary-50), var(--c-bg-warm));
}
.image-tile .cap { padding: var(--s-3) var(--s-4); font-size: 13px; color: var(--c-text-muted); }
.image-tile .cap b { color: var(--c-dark); font-weight: 600; display: block; }

/* ---------- Logo ---------- */
.logo-img { display: block; height: 40px; width: auto; }
.sidebar .logo-img { height: 28px; }
.topnav .logo-img { height: 30px; }
.foot .logo-img { height: 34px; margin-bottom: var(--s-4); }
.logo-stage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.logo-stage > div {
  border-radius: var(--r-lg); padding: var(--s-10);
  display: grid; place-items: center;
  border: 1px solid var(--c-border);
}
.logo-stage .on-light { background: var(--c-white); }
.logo-stage .on-dark { background: var(--c-dark); border-color: var(--c-dark); }
.logo-stage .logo-img { height: 60px; }
.logo-clearspace {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(var(--c-bg-warm-2), var(--c-bg-warm-2)) top left/100% 1px no-repeat,
    linear-gradient(var(--c-bg-warm-2), var(--c-bg-warm-2)) bottom left/100% 1px no-repeat,
    linear-gradient(var(--c-bg-warm-2), var(--c-bg-warm-2)) top left/1px 100% no-repeat,
    linear-gradient(var(--c-bg-warm-2), var(--c-bg-warm-2)) top right/1px 100% no-repeat,
    var(--c-white);
  border-radius: var(--r-md);
}
.logo-clearspace::before, .logo-clearspace::after {
  content: ""; position: absolute;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--c-secondary-700); text-transform: uppercase;
}
.logo-clearspace::before { content: "↕ x"; top: 6px; left: 8px; }
.logo-clearspace::after  { content: "↔ x"; bottom: 6px; right: 8px; }

.dont-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-5); }
.dont-tile { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.dont-tile .demo { aspect-ratio: 16/10; display: grid; place-items: center; background: var(--c-bg-warm); position: relative; }
.dont-tile .demo .x {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: var(--r-full);
  background: var(--c-danger); color: var(--c-white);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.dont-tile .cap { padding: var(--s-3) var(--s-4); font-size: 13px; color: var(--c-text-muted); }

/* ---------- Lists demo ---------- */
.list-demo ul { padding-left: 1.25em; }
.list-demo ul li::marker { color: var(--c-secondary); }
.list-demo ol { padding-left: 1.25em; }
.list-demo ol li::marker { color: var(--c-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.list-demo li { margin-bottom: 6px; }

/* ---------- About profile section in mockup ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); padding: var(--s-10) var(--s-9); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); padding: 0 var(--s-9) var(--s-10); }
.value { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); }
.value .n { font-family: var(--ff-mono); font-size: 11px; color: var(--c-secondary-700); letter-spacing: 0.14em; text-transform: uppercase; }
.value h4 { font-size: 18px; color: var(--c-dark); margin-top: var(--s-2); }
.value p { font-size: 14px; color: var(--c-text-muted); margin-top: var(--s-2); }

/* ---------- Footer mock ---------- */
.foot {
  background: var(--c-dark); color: #C8D3E0;
  padding: var(--s-9) var(--s-9) var(--s-7);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7); }
.foot h6 { color: var(--c-white); font-size: 13px; margin: 0 0 var(--s-3); letter-spacing: 0.04em; font-weight: 600; }
.foot a { color: #C8D3E0; text-decoration: none; display: block; font-size: 14px; padding: 4px 0; }
.foot a:hover { color: var(--c-white); }
.foot .meta { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: #A8B6C6; display: flex; justify-content: space-between; }

/* ---------- Print niceties ---------- */
@media print {
  .sidebar { display: none; }
  .shell { grid-template-columns: 1fr; }
  .section { page-break-inside: avoid; }
}

/* ---------- Responsive scaling notes baked into the doc ---------- */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .section { padding: var(--s-9) var(--s-7); }
  .cover { padding: var(--s-9) var(--s-7); }
  .cover h1 { font-size: 48px; }
  .grid-2, .grid-3, .grid-4, .trio, .rules, .image-grid, .swatch-row, .tov-grid, .logo-stage, .dont-strip { grid-template-columns: 1fr; }
  .hero, .cta-strip, .about-grid { grid-template-columns: 1fr; }
  .specimen { grid-template-columns: 1fr; }
}
