/* ============================================================
   DrawGestures — Sketchbook System
   colors_and_type.css

   Imports the Google Fonts the system uses, declares the
   palette tokens for all three palettes (paper / mono / vivid),
   and exposes semantic type primitives (h1/h2/p/etc).

   Pair this with sketchbook.css for the full chrome.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Caveat:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Palette: PAPER (default) ─────────────────────────────── */
:root,
:root[data-palette="paper"] {
  /* Surface */
  --paper:      #efe4cf;   /* page background */
  --paper-2:    #e7d8bb;   /* inset / illustration ground */

  /* Ink scale */
  --ink:        #1a1714;   /* primary text + primary strokes */
  --ink-soft:   #5e544a;   /* secondary text, construction lines */
  --ink-faint:  #8b8071;   /* tertiary, metadata, separators */

  /* Accent — the sanguine ("blood red conté") stroke */
  --sanguine:   #a44a3f;

  /* Rules */
  --rule:       rgba(26, 23, 20, 0.16);
  --rule-soft:  rgba(26, 23, 20, 0.08);

  /* Paper grain opacity (multiply blend) */
  --grain:      0.06;
}

/* ── Palette: MONO (press / print) ────────────────────────── */
:root[data-palette="mono"] {
  --paper:      #f4f3ef;
  --paper-2:    #ebeae5;
  --ink:        #0c0c0c;
  --ink-soft:   #555555;
  --ink-faint:  #9a9a9a;
  --sanguine:   #0c0c0c;     /* collapsed to ink */
  --rule:       rgba(12, 12, 12, 0.16);
  --rule-soft:  rgba(12, 12, 12, 0.08);
  --grain:      0.05;
}

/* ── Palette: VIVID (launch / campaign moments) ───────────── */
:root[data-palette="vivid"] {
  --paper:      #fff0e1;
  --paper-2:    #ffe1c4;
  --ink:        #160c08;
  --ink-soft:   #6e4a36;
  --ink-faint:  #a48871;
  --sanguine:   #e23d18;
  --rule:       rgba(22, 12, 8, 0.18);
  --rule-soft:  rgba(22, 12, 8, 0.10);
  --grain:      0.07;
}

/* ── Type tokens ──────────────────────────────────────────── */
:root {
  /* Families */
  --font-display: 'Newsreader', Georgia, serif;
  --font-body:    'Newsreader', Georgia, serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-hand:    'Caveat', cursive;

  /* Weights */
  --w-display:    300;   /* h1, h2 */
  --w-h3:         360;   /* card / sub-heads */
  --w-body:       360;
  --w-strong:     500;
  --w-italic-em:  400;   /* italic emphasis weight in body */

  /* Display size scale (clamps fluid across viewports) */
  --t-hero:       clamp(58px, 9.2vw, 156px);
  --t-display-1:  clamp(40px, 5.4vw, 76px);
  --t-display-2:  clamp(34px, 4.6vw, 56px);
  --t-display-3:  clamp(28px, 3.6vw, 46px);
  --t-h3:         28px;
  --t-lede:       22px;
  --t-body:       18px;
  --t-body-lg:    20px;
  --t-small:      16px;
  --t-meta:       14px;
  --t-mono-sm:    11px;
  --t-mono-xs:    10px;
  --t-hand:       22px;
  --t-numeral:    56px;

  /* Tracking */
  --tr-display:   -0.025em;
  --tr-hero:      -0.035em;
  --tr-h3:        -0.018em;
  --tr-mono:      0.22em;
  --tr-mono-wide: 0.24em;

  /* Leading */
  --lh-display:   0.92;
  --lh-h2:        1;
  --lh-h3:        1.05;
  --lh-body:      1.55;
  --lh-lede:      1.5;

  /* Spacing scale */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  44px;
  --s-8:  56px;
  --s-9:  72px;
  --s-10: 96px;
  --s-11: 120px;

  /* Layout */
  --page-max:        1240px;
  --page-narrow-max: 1080px;
  --page-pad:        56px;
  --page-pad-sm:     24px;
  --gutter-label:    220px;
  --gutter-gap:      56px;

  /* Radii */
  --r-pill:    999px;
  --r-phone:   36px;
  --r-phone-s: 24px;
  --r-chip:    14px;
  --r-tab:     6px;

  /* Borders */
  --bw:        1px;
  --bw-strong: 1.6px;   /* phone outline */
}

/* ── Semantic typography primitives ───────────────────────── */
/*
   Use these classes to apply the system's type styles
   to whatever element you want. They follow the rule that
   every display headline can italicise + tint a phrase via
   <span class="it"> inside.
*/

.t-hero {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--t-hero);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-hero);
}
.t-display-1 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--t-display-1);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.t-display-2 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--t-display-2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tr-display);
}
.t-display-3 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--t-display-3);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.t-h3 {
  font-family: var(--font-display);
  font-weight: var(--w-h3);
  font-size: var(--t-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--tr-h3);
}
.t-lede {
  font-family: var(--font-body);
  font-weight: var(--w-body);
  font-size: var(--t-lede);
  line-height: var(--lh-lede);
}
.t-body {
  font-family: var(--font-body);
  font-weight: var(--w-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
}
.t-meta,
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
}
.t-numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 200;
  font-size: var(--t-numeral);
  line-height: 1;
  color: var(--sanguine);
  letter-spacing: -0.02em;
}
.t-hand {
  font-family: var(--font-hand);
  color: var(--sanguine);
  font-size: var(--t-hand);
  line-height: 1.1;
  font-weight: 500;
}

/* The italic accent: every display headline gets at least one. */
.it {
  font-style: italic;
  color: var(--sanguine);
}

/* Body emphasis (italic but ink-coloured) */
.em {
  font-style: italic;
  font-weight: var(--w-italic-em);
  color: var(--ink);
}
/* Sketchbook system — shared tokens, type, reusable patterns. */
:root {
  --paper:     #efe4cf;
  --paper-2:   #e7d8bb;
  --ink:       #1a1714;
  --ink-soft:  #5e544a;
  --ink-faint: #8b8071;
  --sanguine:  #a44a3f;
  --rule:      rgba(26,23,20,0.16);
  --rule-soft: rgba(26,23,20,0.08);
  --grain:     0.06;
}
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 360;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; position: relative; }
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
::selection { background: var(--sanguine); color: var(--paper); }
a { color: inherit; text-decoration: none; }

/* Layout shell */
.page { max-width: 1240px; margin: 0 auto; padding: 0 56px; }
.page-narrow { max-width: 1080px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 720px) {
  .page, .page-narrow { padding: 0 24px; }
}

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--rule);
}
.mark {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.mark:not(.mark--with-logo)::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--sanguine);
  border-radius: 50%;
  margin-right: 10px;
  transform: translateY(-2px);
}
.mark--with-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.mark--with-logo .mark__logo {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 8px;
}
.mark--with-logo .mark__text {
  line-height: 1;
}
.topnav { display: flex; gap: 28px; font-size: 14px; color: var(--ink-soft); }
.topnav a { transition: color .15s ease; }
.topnav a:hover { color: var(--ink); }

/* Breadcrumbs */
.crumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 22px 0 0;
}
.crumbs .sep { color: var(--ink-faint); margin: 0 8px; }
.crumbs .now { color: var(--ink); }
.crumbs a { color: var(--ink-soft); transition: color .15s; }
.crumbs a:hover { color: var(--sanguine); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: 'Newsreader', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  transition: background .18s ease, color .18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--sanguine); border-color: var(--sanguine); }
.btn svg { width: 16px; height: 16px; }

/* Section heads (display title + index + meta) */
.section-head {
  display: flex; align-items: baseline; gap: 24px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.section-head .ix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
  flex: 0 0 auto;
}
.section-head h2 {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}
.section-head h2 .it { font-style: italic; color: var(--sanguine); }
.section-head .meta {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .section-head { flex-wrap: wrap; gap: 8px; }
  .section-head .meta { margin-left: 0; width: 100%; }
}

/* Eyebrow */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sanguine);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  height: 1px; width: 28px;
  background: currentColor;
  opacity: .6;
}

/* Footer CTA (dark sketchbook) */
.footer-cta {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.footer-cta .page {
  padding-top: 96px;
  padding-bottom: 64px;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.footer-cta .eyebrow {
  color: #d9a999;
  margin-bottom: 24px;
}
.footer-cta h2 {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.footer-cta h2 .it { font-style: italic; color: #e7a594; }
.footer-cta p {
  color: rgba(239, 228, 207, 0.7);
  font-size: 19px; line-height: 1.5;
  max-width: 48ch; margin: 0 0 36px;
}
.footer-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-cta .btn { border-color: rgba(239,228,207,0.4); color: var(--paper); }
.footer-cta .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.footer-cta .btn.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.footer-cta .btn.primary:hover { background: #e7a594; color: var(--ink); border-color: #e7a594; }
.footer-cta .small {
  grid-column: 1 / -1;
  padding-top: 56px;
  margin-top: 24px;
  border-top: 1px solid rgba(239,228,207,0.18);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239,228,207,0.55);
}
@media (max-width: 900px) {
  .footer-cta .page { grid-template-columns: 1fr; }
}

/* Page bottom — credits row */
.colophon {
  padding: 48px 0 56px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  gap: 24px;
}
.colophon .socials { display: flex; gap: 16px; }
.colophon .socials a { display: inline-flex; }
.colophon .socials svg { width: 16px; height: 16px; }

/* Gesture figure svg shared styles */
.figure-svg { stroke: var(--ink); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.figure-svg .light { stroke: var(--ink-soft); stroke-width: 1.1; opacity: 0.6; }
.figure-svg .main { stroke-width: 2.4; }
.figure-svg .accent { stroke: var(--sanguine); stroke-width: 1.8; }
.figure-svg .ghost { stroke: var(--ink-soft); stroke-width: 1.1; opacity: 0.35; }

/* ====================================================================
   Guide-specific patterns (extracted from design/Gesture Drawing Guides.html)
   ==================================================================== */

/* Footer CTA right-side figure + stamp */
.footer-cta .right-fig {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 380px;
  margin-left: auto;
}
.footer-cta .right-fig svg { width: 100%; height: 100%; display: block; }
.footer-cta .right-fig .figure-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
}
.footer-cta .right-fig .stamp {
  position: absolute;
  bottom: 8%;
  right: -8%;
  font-family: 'Caveat', cursive;
  color: #e7a594;
  font-size: 32px;
  transform: rotate(-8deg);
  line-height: 1;
  max-width: 200px;
  text-align: center;
}
@media (max-width: 900px) {
  .footer-cta .right-fig { display: none; }
}

/* Topbar active state */
.topnav a.is-current { color: var(--ink); }

/* Hero */
.gp-hero { position: relative; padding: 88px 0 56px; }
.gp-hero .eyebrow { margin-bottom: 28px; }
.gp-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.gp-hero h1 .it { font-style: italic; font-weight: 300; color: var(--sanguine); }
.gp-hero h1 .em-rule {
  display: inline-block;
  width: 0.7em;
  height: 0.07em;
  background: currentColor;
  vertical-align: 0.22em;
  margin: 0 0.18em 0 0.04em;
}
.gp-hero .lede {
  max-width: 56ch;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  margin: 32px 0 40px;
  font-weight: 360;
}
.gp-hero .lede a { color: var(--sanguine); border-bottom: 1px solid currentColor; }
.gp-hero .cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.gp-hero .hand-note {
  font-family: var(--font-hand);
  color: var(--sanguine);
  font-size: 22px;
  margin-left: 8px;
  transform: rotate(-2deg);
  display: inline-block;
}
.gp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
  gap: 48px;
  align-items: end;
}
.gp-hero-figure {
  position: relative;
  aspect-ratio: 3 / 4;
  align-self: end;
  margin-bottom: -8px;
}
.gp-hero-figure svg { width: 100%; height: 100%; display: block; }
.gp-hero-figure .figure-img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: bottom center; }
.gp-hero-figure .note {
  position: absolute;
  top: 18%; left: -56px;
  font-family: 'Caveat', cursive;
  font-weight: 500;
  color: var(--sanguine);
  font-size: 22px;
  line-height: 1.1;
  transform: rotate(-6deg);
  max-width: 180px;
}
.gp-hero-figure .note .arrow { display: block; margin-top: 4px; }
@media (max-width: 980px) {
  .gp-hero-grid { grid-template-columns: 1fr; }
  .gp-hero-figure { max-width: 320px; margin: 0 auto; }
  .gp-hero-figure .note { display: none; }
}

/* Intro two-col */
.gp-intro {
  padding: 64px 0 72px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}
.gp-intro .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 4px;
}
.gp-intro .label .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 200;
  font-style: italic;
  font-size: 56px;
  color: var(--sanguine);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.gp-intro .body { font-size: 22px; line-height: 1.5; max-width: 60ch; }
.gp-intro .body p { margin: 0 0 22px; }
.gp-intro .body .strong { font-weight: 500; font-style: italic; color: var(--ink); }
.gp-intro .body a { color: var(--sanguine); border-bottom: 1px solid currentColor; }
@media (max-width: 820px) {
  .gp-intro { grid-template-columns: 1fr; gap: 24px; }
}

/* Featured pillar guide */
.gp-featured {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: stretch;
  padding: 32px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.gp-featured .fig {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.gp-featured .fig svg { width: 100%; height: 100%; display: block; }
.gp-featured .fig .figure-img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.gp-featured .fig .corner {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.gp-featured .fig .corner-r {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-hand);
  color: var(--sanguine);
  font-size: 22px;
  transform: rotate(4deg);
}
.gp-featured .meta {
  display: flex; flex-direction: column;
  justify-content: center;
}
.gp-featured .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--sanguine);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.gp-featured .kicker .pipe { color: var(--ink-faint); }
.gp-featured h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 14ch;
}
.gp-featured h3 .it { font-style: italic; color: var(--sanguine); }
.gp-featured .desc {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 50ch;
  margin: 0 0 32px;
}
.gp-featured .actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 24px; border-top: 1px solid var(--rule);
}
@media (max-width: 900px) {
  .gp-featured { grid-template-columns: 1fr; gap: 32px; }
  .gp-featured .fig { aspect-ratio: 3 / 2; }
}

/* Read-link arrow */
.read-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
}
.read-link .arrow {
  display: inline-block; width: 38px; height: 1px; background: var(--ink);
  position: relative;
  transition: width .25s ease, background .25s ease;
}
.read-link .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}
.read-link:hover { color: var(--sanguine); }
.read-link:hover .arrow,
.read-link:hover .arrow::after { background: var(--sanguine); border-color: var(--sanguine); }
.read-link:hover .arrow { width: 54px; }

.stats {
  display: flex; gap: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* Guide card grid */
.gp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding-top: 24px;
}
.gp-card {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 32px;
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.gp-card:nth-child(2n+1) {
  padding-right: 40px;
  border-right: 1px solid var(--rule);
}
.gp-card:nth-child(2n) { padding-left: 40px; }
.gp-card:nth-last-child(-n+2) { border-bottom: none; }
.gp-card .fig {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.gp-card .fig svg { width: 100%; height: 100%; display: block; }
.gp-card .fig .figure-img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.gp-card .fig .ix {
  position: absolute;
  bottom: 10px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.gp-card .body { display: flex; flex-direction: column; }
.gp-card .kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--sanguine);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.gp-card .kicker .pipe { color: var(--ink-faint); }
.gp-card h3 {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 14px;
  max-width: 22ch;
}
.gp-card h3 a { color: inherit; }
.gp-card h3 .it { font-style: italic; color: var(--sanguine); }
.gp-card .desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 38ch;
}
.gp-card .actions {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.gp-card .actions .read {
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.gp-card:hover .actions .read { color: var(--sanguine); border-color: var(--sanguine); }
.gp-card .stat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .gp-grid { grid-template-columns: 1fr; }
  .gp-card,
  .gp-card:nth-child(2n+1),
  .gp-card:nth-child(2n) {
    grid-template-columns: 1fr;
    padding: 32px 0;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Two-col body sections */
.gp-twocol {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}
.gp-twocol .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
  padding-top: 6px;
}
.gp-twocol .label .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 200;
  font-style: italic;
  font-size: 56px;
  color: var(--sanguine);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.gp-twocol h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 36px;
}
.gp-twocol h2 .it { font-style: italic; color: var(--sanguine); }
.gp-twocol h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.gp-twocol h3 .it { color: var(--sanguine); }
.gp-twocol p {
  margin: 0 0 22px;
  font-size: 19px;
  line-height: 1.55;
  max-width: 60ch;
}
.gp-twocol a {
  color: var(--sanguine);
  border-bottom: 1px solid currentColor;
}
.gp-twocol blockquote {
  margin: 28px 0;
  padding-left: 22px;
  border-left: 2px solid var(--sanguine);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}
.gp-twocol blockquote p { margin: 0; }
.gp-twocol .callout {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.gp-twocol .callout strong { font-style: italic; color: var(--sanguine); display: block; margin-bottom: 6px; font-weight: 400; }
.gp-twocol figure { margin: 28px 0; }
.gp-twocol figure img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.gp-twocol figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.gp-twocol table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  margin: 28px 0;
  border-top: 1px solid var(--rule);
}
.gp-twocol table th,
.gp-twocol table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.gp-twocol table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}
.gp-twocol table tr:last-child td { border-bottom: 1px solid var(--rule); }
.gp-twocol hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}
@media (max-width: 820px) {
  .gp-twocol { grid-template-columns: 1fr; gap: 16px; padding: 56px 0; }
}

/* Learn list */
.learn-list { list-style: none; margin: 0; padding: 0; }
.learn-list li {
  display: grid;
  grid-template-columns: 56px 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}
.learn-list li:first-child { border-top: 1px solid var(--rule); }
.learn-list li:last-child { border-bottom: 1px solid var(--rule); }
.learn-list .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 200;
  font-size: 36px;
  color: var(--sanguine);
  line-height: 1;
}
.learn-list .topic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.learn-list .desc {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.learn-list .desc a { color: var(--sanguine); border-bottom: 1px solid currentColor; }
@media (max-width: 720px) {
  .learn-list li { grid-template-columns: 40px 1fr; }
  .learn-list .topic { grid-column: 2; }
  .learn-list .desc { grid-column: 2; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 19px;
  line-height: 1.5;
}
.steps li:first-child { border-top: 1px solid var(--rule); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  flex: 0 0 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--sanguine);
}
.steps li a {
  color: var(--ink);
  font-style: italic;
  border-bottom: 1px solid var(--rule);
  transition: color .15s, border-color .15s;
}
.steps li a:hover { color: var(--sanguine); border-color: var(--sanguine); }

/* Pullquote */
.pullquote {
  padding: 100px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.pullquote .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--sanguine);
  text-transform: uppercase;
  margin-bottom: 36px;
  display: flex; gap: 14px; align-items: center;
}
.pullquote .label::before {
  content: "";
  width: 28px; height: 1px; background: currentColor;
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.pullquote blockquote .em { color: var(--sanguine); font-style: italic; }
.pullquote .caption {
  margin-top: 40px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 50ch;
  line-height: 1.55;
}

/* FAQ */
.faq { padding: 88px 0; border-bottom: 1px solid var(--rule); }
.faq-list { display: grid; grid-template-columns: 1fr; }
.qa {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}
.qa:first-child { border-top: 1px solid var(--rule); }
.qa .ix {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--sanguine);
  text-transform: uppercase;
}
.qa .body { font-size: 19px; line-height: 1.5; }
.qa .q {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--ink);
}
.qa .body p { margin: 0 0 12px; }
.qa .body p:last-child { margin-bottom: 0; }
.qa a { color: var(--sanguine); border-bottom: 1px solid currentColor; }
@media (max-width: 720px) {
  .qa { grid-template-columns: 1fr; gap: 8px; }
}

/* Article hero (smaller variant for individual guide pages) */
.gp-article-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.gp-article-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  max-width: 18ch;
}
.gp-article-hero h1 .it { font-style: italic; color: var(--sanguine); }
.gp-article-hero .lede {
  max-width: 56ch;
  font-size: 21px;
  line-height: 1.5;
  margin: 0 0 28px;
}
.gp-article-hero .meta-row {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; gap: 26px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.gp-article-hero .eyebrow { margin-bottom: 22px; }

/* External-reading list */
.external-list { list-style: none; padding: 0; margin: 0; }
.external-list li {
  padding: 14px 0;
  border-top: 1px solid var(--rule-soft);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px;
}
.external-list li:first-child { border-top: 1px solid var(--rule); }
.external-list li:last-child { border-bottom: 1px solid var(--rule); }
.external-list a {
  color: var(--ink);
  font-style: italic;
  font-size: 18px;
}
.external-list a:hover { color: var(--sanguine); }
.external-list .out {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* Where-to-next list */
.next-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.next-list li {
  padding: 22px 0;
  border-top: 1px solid var(--rule-soft);
}
.next-list li:first-child { border-top: 1px solid var(--rule); }
.next-list li:last-child { border-bottom: 1px solid var(--rule); }
.next-list a {
  display: grid;
  grid-template-columns: 56px 200px 1fr 90px;
  gap: 24px;
  align-items: baseline;
}
.next-list .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 200;
  font-size: 36px;
  color: var(--sanguine);
  line-height: 1;
}
.next-list .topic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
}
.next-list .desc {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.next-list .ix {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
}
.next-list a:hover .topic { color: var(--sanguine); }
@media (max-width: 720px) {
  .next-list a { grid-template-columns: 40px 1fr; }
  .next-list .topic { grid-column: 2; }
  .next-list .desc { grid-column: 2; }
  .next-list .ix { display: none; }
}

/* Shared gesture figure styles */
.figure-svg { stroke: var(--ink); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.figure-svg .light { stroke: var(--ink-soft); stroke-width: 1.1; opacity: 0.6; }
.figure-svg .main { stroke-width: 2.4; }
.figure-svg .accent { stroke: var(--sanguine); stroke-width: 1.8; fill: none; }
.figure-svg .ghost { stroke: var(--ink-soft); stroke-width: 1.1; opacity: 0.35; }

/* ====================================================================
   Home page patterns (extracted from design/DrawGestures Home.html)
   ==================================================================== */

/* Home hero */
.h-hero { padding: 64px 0 96px; border-bottom: 1px solid var(--rule); position: relative; }
.h-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: end;
}
.h-hero .eyebrow { margin-bottom: 32px; }
.h-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 7.2vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  max-width: 12ch;
}
.h-hero h1 .it { font-style: italic; color: var(--sanguine); }
.h-hero .lede {
  max-width: 50ch;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 32px;
}
.h-hero .lede .strong { font-weight: 500; font-style: italic; }
.h-hero .cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.h-hero .hand-note {
  font-family: var(--font-hand);
  color: var(--sanguine);
  font-size: 22px;
  margin-left: 8px;
  transform: rotate(-2deg);
  display: inline-block;
  line-height: 1.1;
}
.h-hero .ratings {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.h-hero .ratings .stars { color: var(--sanguine); letter-spacing: 0.05em; font-size: 14px; }
.h-hero .ratings .sep { color: var(--ink-faint); }

/* Phone mock column */
.h-hero-mock { position: relative; align-self: stretch; min-height: 580px; }
.phone {
  position: absolute;
  top: 0; right: 0;
  width: 280px;
  aspect-ratio: 320/660;
  background: var(--paper);
  border: 1.6px solid var(--ink);
  border-radius: 36px;
  padding: 14px 12px;
  transform: rotate(2.5deg);
  box-shadow: 4px 6px 0 var(--ink-soft);
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 18px;
  background: var(--ink);
  border-radius: 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--paper-2);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  padding: 36px 16px 16px;
  box-sizing: border-box;
  display: flex; flex-direction: column;
  gap: 12px;
}
.phone--screenshot { padding: 0; overflow: hidden; }
.phone--screenshot .phone-shot {
  width: 100%; height: 100%;
  display: block;
  border-radius: 34px;
  object-fit: cover;
  object-position: top center;
}
.ps-row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.ps-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
}
.ps-block {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px;
  background: var(--paper);
}
.ps-tabs { display: flex; gap: 6px; }
.ps-tab {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 4px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink-soft);
}
.ps-tab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ps-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ps-mode {
  font-family: var(--font-display);
  font-size: 12px;
  text-align: center;
  padding: 6px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--paper);
}
.ps-mode.on { background: var(--sanguine); color: var(--paper); border-color: var(--sanguine); font-style: italic; }
.ps-intervals { display: flex; gap: 4px; flex-wrap: wrap; }
.ps-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 5px 8px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  background: var(--paper);
}
.ps-pill.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ps-add {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 5px 8px;
  border-radius: 12px;
  border: 1px dashed var(--ink);
  color: var(--ink);
}
.ps-cta {
  margin-top: auto;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px;
  border-radius: 14px;
}

/* Marginalia: pull quote beside phone */
.h-hero-quote {
  position: absolute;
  bottom: 16px; left: 0;
  max-width: 280px;
  transform: rotate(-1.5deg);
}
.h-hero-quote .stars { color: var(--sanguine); font-size: 14px; margin-bottom: 8px; }
.h-hero-quote blockquote {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
  border-left: 1px solid var(--sanguine);
  padding-left: 14px;
}
.h-hero-quote cite {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-style: normal;
  padding-left: 14px;
  display: block;
}
.h-hero-arrow { position: absolute; bottom: 130px; left: 230px; color: var(--sanguine); }
@media (max-width: 980px) {
  .h-hero-grid { grid-template-columns: 1fr; }
  .h-hero-mock { min-height: 520px; margin-top: 32px; }
  .phone { right: auto; left: 50%; transform: translateX(-50%) rotate(2.5deg); }
  .h-hero-quote { position: static; transform: none; margin-top: 32px; max-width: none; }
  .h-hero-arrow { display: none; }
}

/* Home About */
.h-about {
  padding: 96px 0;
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 56px;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.h-about .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
  padding-top: 4px;
}
.h-about .label .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 200;
  font-style: italic;
  font-size: 56px;
  color: var(--sanguine);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.h-about h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 36px;
  max-width: 18ch;
}
.h-about h2 .it { font-style: italic; color: var(--sanguine); }
.h-about .body { font-size: 20px; line-height: 1.55; color: var(--ink); max-width: 56ch; }
.h-about .body p { margin: 0 0 24px; }
.h-about .body .strong { font-weight: 500; font-style: italic; }
.h-about .body a { color: var(--sanguine); border-bottom: 1px solid currentColor; }
.h-about .sub-h {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 40px 0 12px;
}
.h-about .reasons { list-style: none; padding: 0; margin: 0 0 24px; }
.h-about .reasons li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 17px;
  line-height: 1.5;
}
.h-about .reasons li:first-child { border-top: 1px solid var(--rule); }
.h-about .reasons li:last-child { border-bottom: 1px solid var(--rule); }
.h-about .reasons .ix {
  flex: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--sanguine);
  padding-top: 4px;
}
.glance {
  border: 1px solid var(--ink);
  padding: 28px;
  position: relative;
  background: var(--paper-2);
}
.glance::before, .glance::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.glance::before { top: -8px; left: -8px; }
.glance::after { bottom: -8px; right: -8px; }
.glance h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.glance dl { margin: 0 0 24px; display: grid; gap: 16px; }
.glance dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--sanguine);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.glance dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.glance .links {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.glance .links a {
  color: var(--sanguine);
  display: inline-flex; align-items: center; gap: 8px;
}
.glance .links a::after { content: "→"; font-family: serif; font-size: 12px; }
@media (max-width: 1080px) {
  .h-about { grid-template-columns: 180px 1fr; }
  .glance { grid-column: 2; max-width: 480px; }
}
@media (max-width: 820px) {
  .h-about { grid-template-columns: 1fr; gap: 24px; }
  .glance { grid-column: 1; max-width: none; }
}

/* Home features */
.h-features { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.h-features .head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  margin-bottom: 64px;
  align-items: end;
}
.h-features .head .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.h-features .head .label .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 200;
  font-style: italic;
  font-size: 56px;
  color: var(--sanguine);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.h-features .head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 16ch;
}
.h-features .head h2 .it { font-style: italic; color: var(--sanguine); }
.h-features .head p {
  grid-column: 2;
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 55ch;
}
@media (max-width: 820px) {
  .h-features .head { grid-template-columns: 1fr; }
  .h-features .head p { grid-column: 1; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.feature {
  display: flex; flex-direction: column;
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.feature:nth-child(3n) { border-right: none; padding-right: 0; padding-left: 32px; }
.feature:nth-child(3n+1) { padding-left: 0; }
.feature:nth-child(3n+2) { padding-left: 32px; padding-right: 32px; }
.feature:nth-last-child(-n+3) { border-bottom: none; }
.feature .ix {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--sanguine);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.feature .illo {
  width: 100%;
  aspect-ratio: 5/3;
  margin-bottom: 28px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.feature .illo svg { width: 100%; height: 100%; display: block; }
.feature .illo .illo-img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.feature h3 {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0 0 14px;
}
.feature h3 .it { font-style: italic; color: var(--sanguine); }
.feature p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 36ch;
}
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3n) { border-right: 1px solid var(--rule); padding-right: 32px; }
  .feature:nth-child(3n+2) { padding-left: 0; padding-right: 0; }
  .feature:nth-child(2n) { border-right: none; padding-right: 0; padding-left: 32px; }
  .feature:nth-child(2n+1) { padding-left: 0; padding-right: 32px; border-right: 1px solid var(--rule); }
  .feature:nth-last-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .feature:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(2n), .feature:nth-child(2n+1), .feature:nth-child(3n) {
    border-right: none !important; padding: 32px 0 !important;
    border-bottom: 1px solid var(--rule);
  }
  .feature:last-child { border-bottom: none; }
}

/* Reviews */
.h-reviews { padding: 96px 0; border-bottom: 1px solid var(--rule); position: relative; }
.h-reviews .lead {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 56px;
  margin-bottom: 64px;
  align-items: end;
}
.h-reviews .lead .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.h-reviews .lead .label .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 200;
  font-style: italic;
  font-size: 56px;
  color: var(--sanguine);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.h-reviews .lead h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 14ch;
}
.h-reviews .lead h2 .it { font-style: italic; color: var(--sanguine); }
.h-reviews .lead .avg { text-align: right; font-family: var(--font-display); }
.h-reviews .lead .avg .num {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: 68px;
  line-height: 1;
  color: var(--sanguine);
  letter-spacing: -0.02em;
}
.h-reviews .lead .avg .out {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}
@media (max-width: 980px) {
  .h-reviews .lead { grid-template-columns: 1fr; }
  .h-reviews .lead .avg { text-align: left; }
}
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; }
.review {
  padding: 40px 40px 40px 0;
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: start;
}
.review:nth-child(2n) { border-right: none; padding-right: 0; padding-left: 40px; }
.review .marker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 200;
  font-size: 56px;
  color: var(--sanguine);
  line-height: 1;
}
.review .body { font-size: 19px; line-height: 1.5; }
.review .stars {
  color: var(--sanguine);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.review .stars .dim { color: var(--ink-faint); }
.review blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}
.review .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.review .meta .pipe { color: var(--ink-faint); }
@media (max-width: 820px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .review, .review:nth-child(2n) { padding: 32px 0; border-right: none; }
}

.figure-svg .accent2 { stroke: var(--sanguine); stroke-width: 1.2; opacity: 0.7; }

/* ─────────────────────────────────────────────────────────────
   Auth pages (login, register, password reset, success)
   Single shared vocabulary — extends layouts.sketchbook
   ───────────────────────────────────────────────────────────── */
.auth-wrap { padding: 64px 0 96px; }
.auth-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) {
  .auth-grid { grid-template-columns: 1fr; gap: 24px; }
}
.auth-gutter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.auth-gutter .num {
  color: var(--sanguine);
  font-size: 22px;
  font-family: var(--font-display);
  font-style: italic;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0;
  text-transform: none;
}
.auth-card {
  border-top: 1px solid var(--rule);
  padding: 32px 0 0;
  max-width: 480px;
}
.auth-card h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.auth-card h1 .it { font-style: italic; color: var(--sanguine); }
.auth-card .lede {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 48ch;
}

/* Form primitives */
.auth-form { display: flex; flex-direction: column; gap: 22px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.auth-field input,
.auth-input {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  width: 100%;
  border-radius: 0;
  outline: none;
  transition: border-color .15s ease;
}
.auth-field input:focus,
.auth-input:focus { border-bottom-color: var(--sanguine); }
.auth-field input::placeholder { color: var(--ink-faint); }
.auth-field.has-error input { border-bottom-color: var(--sanguine); }
.auth-error,
.auth-field .err {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--sanguine);
}
.auth-notice {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding: 14px 18px;
  border-left: 2px solid var(--sanguine);
  background: var(--paper-2);
  margin-bottom: 24px;
}

/* Inline alt links + divider */
.auth-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.auth-alt {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-soft);
}
.auth-alt a {
  color: var(--sanguine);
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
.auth-divider {
  display: flex; align-items: center; gap: 18px;
  margin: 18px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; border-top: 1px solid var(--rule);
}

/* Google btn — sketchbook take */
.auth-google {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  width: 100%;
  transition: background .18s ease, color .18s ease;
}
.auth-google:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.auth-google:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-google svg { width: 18px; height: 18px; }

/* Big success mark */
.auth-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  color: var(--sanguine);
  margin: 0 0 24px;
}
