/* ==========================================================================
   Liberty Compassion — v2 "warm editorial"
   One surface family. One card. One section-header pattern. One accent.
   Plain CSS, no build step, Instatic-import safe.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..800;1,9..144,300..700&family=Poppins:wght@300;400;500;600&display=swap');

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces — one warm family, no jumps to pure black or pure white */
  --paper:      #faf7f2;   /* dominant surface, everywhere */
  --paper-2:    #f2ece3;   /* the only alternation */
  --paper-3:    #e9e2d7;   /* wells, inputs, hover fills */
  --card:       #ffffff;   /* raised surface — used sparingly */

  /* Ink — warm, tinted, never #000 */
  --ink:        #1d1613;
  --ink-2:      #574b44;
  --ink-3:      #8a7c73;

  /* Accent — one, desaturated into the warm family */
  --red:        #8a2430;
  --red-deep:   #8a2430;   /* the single committed dark section */

  /* Lines */
  --line:       rgba(29, 22, 19, 0.14);
  --line-soft:  rgba(29, 22, 19, 0.08);
  --line-inv:   rgba(250, 247, 242, 0.22);

  /* Type */
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:    'Poppins', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Fluid scale */
  --t--2: clamp(0.7rem, 0.68rem + 0.1vw, 0.76rem);
  --t--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.92rem);
  --t-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --t-1:  clamp(1.15rem, 1.08rem + 0.36vw, 1.38rem);
  --t-2:  clamp(1.4rem, 1.24rem + 0.8vw, 2rem);
  --t-3:  clamp(1.85rem, 1.5rem + 1.7vw, 3rem);
  --t-4:  clamp(2.3rem, 1.65rem + 3.1vw, 4.2rem);
  --t-5:  clamp(2.9rem, 1.8rem + 5.2vw, 6rem);

  /* Space & measure */
  --header-h: 78px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --sec-y:  clamp(4.5rem, 9vw, 9rem);
  --wrap:   1320px;
  --text:   1080px;

  /* Shape — varied, not uniform */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;

  /* Motion */
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 150ms;
  --base: 260ms;
  --slow: 480ms;

  /* Depth scale — no arbitrary 9999s */
  --z-base: 1;
  --z-sticky: 40;
  --z-drawer: 60;
  --z-header: 70;
  --z-grain: 80;
  --z-skip: 90;

  /* Tinted shadow — carries the paper hue, never flat black */
  --shadow: 0 18px 44px -20px rgba(138, 36, 48, 0.28);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-0);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain — breaks the digital flatness, unifies every surface */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'SOFT' 24, 'WONK' 1;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
  color: var(--ink);
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.3em; }

strong, b { font-weight: 600; }

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.v-skip {
  position: absolute;
  left: -9999px;
  z-index: var(--z-skip);
  padding: 0.9rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t--1);
}
.v-skip:focus { left: 1rem; top: 1rem; }

.v-sr {
  position: absolute;
  left: 0;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.v-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.v-sec { padding-block: var(--sec-y); }
/* Optical correction — equal padding reads bottom-heavy */
.v-sec { padding-bottom: calc(var(--sec-y) * 1.08); }
.v-sec--tight { padding-block: clamp(3rem, 6vw, 6rem); }
.v-sec--alt  { background: var(--paper-2); }
.v-sec--deep { background: var(--red-deep); color: var(--paper); }

.v-sec--deep h1, .v-sec--deep h2, .v-sec--deep h3, .v-sec--deep h4 { color: var(--paper); }
.v-sec--deep .v-eyebrow { color: rgba(250, 247, 242, 0.62); }
.v-sec--deep .v-rule { background: var(--line-inv); }
.v-sec--deep .v-lede { color: rgba(250, 247, 242, 0.9); }
.v-sec--deep p { color: rgba(250, 247, 242, 0.78); }

/* 12-column grid */
.v-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.v-grid--rows { row-gap: clamp(2.5rem, 5vw, 4.5rem); }

.c-3, .c-4, .c-5, .c-6, .c-7, .c-8, .c-12 { grid-column: 1 / -1; }

@media (min-width: 860px) {
  /* `auto / span N` leaves the START free so .off-* can move the item without
     collapsing its width — `grid-column: span N` would set the start and the
     offset would silently shrink the column to a single track. */
  .c-3  { grid-column: auto / span 3; }
  .c-4  { grid-column: auto / span 4; }
  .c-5  { grid-column: auto / span 5; }
  .c-6  { grid-column: auto / span 6; }
  .c-7  { grid-column: auto / span 7; }
  .c-8  { grid-column: auto / span 8; }
}

.v-first { order: -1; }
@media (min-width: 860px) { .v-first { order: 0; } }

/* --------------------------------------------------------------------------
   4. The section-header pattern — used on EVERY section
   -------------------------------------------------------------------------- */

.v-rule {
  height: 1px;
  border: 0;
  margin: 0 0 1.5rem;
  background: var(--line);
}

.v-eyebrow {
  display: block;
  margin: 0 0 1.15rem;
  font-family: var(--sans);
  font-size: var(--t--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.v-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 860px) {
  .v-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .v-head--solo { grid-template-columns: minmax(0, 1fr); }
}
.v-head h2 { margin: 0; font-size: var(--t-3); }
.v-head__aside { padding-bottom: 0.35em; }
.v-head__aside p { color: var(--ink-2); font-size: var(--t-0); margin: 0; }
.v-sec--deep .v-head__aside p { color: rgba(250, 247, 242, 0.72); }

/* --------------------------------------------------------------------------
   5. Type helpers
   -------------------------------------------------------------------------- */

.v-lede {
  font-family: var(--display);
  font-size: var(--t-1);
  font-weight: 300;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
  line-height: 1.42;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.v-body { color: var(--ink-2); max-width: 62ch; }
.v-body--wide { max-width: 72ch; }

.v-note {
  font-size: var(--t--1);
  line-height: 1.6;
  color: var(--ink-3);
}
.v-sec--deep .v-note { color: rgba(250, 247, 242, 0.6); }

.v-italic { font-style: italic; font-variation-settings: 'SOFT' 40, 'WONK' 1; }

.v-quote {
  font-family: var(--display);
  font-size: var(--t-2);
  font-weight: 300;
  font-style: italic;
  line-height: 1.34;
  letter-spacing: -0.018em;
  margin: 0;
}

.v-statement {
  font-family: var(--display);
  font-size: var(--t-3);
  font-weight: 300;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  line-height: 1.22;
  letter-spacing: -0.026em;
  max-width: 20ch;
}

/* --------------------------------------------------------------------------
   6. Actions — one button, one arrow link. No ghost/outline pairs.
   -------------------------------------------------------------------------- */

.v-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.65rem;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--t--1);
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.v-btn:hover { background: var(--ink); }
.v-btn:active { transform: translateY(1px) scale(0.99); }
.v-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.v-sec--deep .v-btn { background: var(--paper); color: var(--red-deep); }
.v-sec--deep .v-btn:hover { background: #fff; }

/* Arrow link — the single forward-action motif, repeated everywhere */
.v-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--t--1);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.v-arrow svg { width: 14px; height: 14px; transition: transform var(--base) var(--ease-out); }
.v-arrow:hover { color: var(--red); border-bottom-color: var(--red); }
.v-arrow:hover svg { transform: translateX(4px); }
.v-sec--deep .v-arrow { color: var(--paper); border-bottom-color: var(--line-inv); }
.v-sec--deep .v-arrow:hover { border-bottom-color: var(--paper); }

.v-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */

.v-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--base) var(--ease), background var(--base) var(--ease);
}
.v-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(250, 247, 242, 0.96);
}

.v-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
  padding-block: 0.7rem;
}

.v-logo img {
  width: clamp(142px, 14vw, 178px);
  filter: brightness(0);
}

.v-nav { display: none; }
@media (min-width: 1060px) {
  .v-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.3rem); }
}
.v-nav a {
  position: relative;
  font-size: var(--t--1);
  font-weight: 400;
  letter-spacing: 0.002em;
  padding-block: 0.4rem;
  color: var(--ink-2);
  transition: color var(--fast) var(--ease);
}
.v-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--base) var(--ease-out);
}
.v-nav a:hover { color: var(--ink); }
.v-nav a:hover::after,
.v-nav a[aria-current='page']::after { transform: scaleX(1); }
.v-nav a[aria-current='page'] { color: var(--ink); font-weight: 500; }

.v-header__cta { display: none; }
@media (min-width: 1060px) { .v-header__cta { display: inline-flex; } }

.v-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  border: 0; background: transparent; cursor: pointer;
}
@media (min-width: 1060px) { .v-burger { display: none; } }
.v-burger span:not(.v-sr) {
  display: block; height: 1.5px; width: 100%;
  background: var(--ink);
  transition: transform var(--base) var(--ease), opacity var(--fast) var(--ease);
}
.v-burger[aria-expanded='true'] span:not(.v-sr):nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.v-burger[aria-expanded='true'] span:not(.v-sr):nth-child(2) { opacity: 0; }
.v-burger[aria-expanded='true'] span:not(.v-sr):nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.v-drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: var(--z-drawer);
  background: var(--paper);
  padding: clamp(1.5rem, 6vw, 3rem) var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease-out), visibility var(--base);
  overflow-y: auto;
}
.v-drawer.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1060px) { .v-drawer { display: none; } }
.v-drawer > a:not(.v-btn) {
  padding-block: 0.85rem;
  font-family: var(--display);
  font-size: var(--t-2);
  font-weight: 400;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.v-drawer .v-btn { margin-top: 2rem; align-self: flex-start; }

body.v-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.v-hero { padding-block: clamp(3rem, 7vw, 6rem) 0; }

.v-hero__title {
  font-size: var(--t-5);
  font-weight: 300;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  line-height: 1.0;
  letter-spacing: -0.032em;
  max-width: 15ch;
  margin: 0 0 1.6rem;
}
.v-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  font-variation-settings: 'SOFT' 60, 'WONK' 1;
}

.v-hero__lede { max-width: 46ch; color: var(--ink-2); font-size: var(--t-1); line-height: 1.5; }
.v-hero__lede strong { color: var(--ink); font-weight: 600; }

.v-hero__media {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--paper-3);
}
.v-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .v-hero__media { aspect-ratio: 4 / 3; } }

/* Page hero (inner pages) */
.v-phero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem); }
.v-phero h1 {
  font-size: var(--t-4);
  font-weight: 400;
  letter-spacing: -0.028em;
  margin: 0;
  max-width: 16ch;
}
.v-phero h1 em { font-style: italic; color: var(--red); font-weight: 400; }
.v-phero__lede { margin-top: 1.5rem; max-width: 54ch; color: var(--ink-2); font-size: var(--t-1); line-height: 1.5; }

/* --------------------------------------------------------------------------
   9. Figures — every photo carries a caption pill
   -------------------------------------------------------------------------- */

.v-fig {
  position: relative;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-3);
}
.v-fig img { width: 100%; height: 100%; object-fit: cover; }
.v-fig--tall   { aspect-ratio: 4 / 5; }
.v-fig--wide   { aspect-ratio: 4 / 3; }
.v-fig--banner { aspect-ratio: 16 / 9; }
.v-fig--square { aspect-ratio: 1 / 1; }

.v-fig figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.34rem 0.7rem;
  border-radius: var(--r-xs);
  background: rgba(29, 22, 19, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: var(--t--2);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
  max-width: calc(100% - 1.7rem);
}

/* Offset pair — deliberate asymmetry, not a symmetric two-up */
.v-pair { display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); }
@media (min-width: 700px) {
  .v-pair { grid-template-columns: 1fr 0.66fr; align-items: start; }
  /* The drop on the second figure is what makes the column read as editorial
     rather than as a symmetric two-up. */
  .v-pair > :nth-child(2) { margin-top: clamp(3.5rem, 9vw, 8rem); }
}

/* --------------------------------------------------------------------------
   10. The index list — the primary content device
   -------------------------------------------------------------------------- */

.v-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.v-index > li { margin: 0; border-bottom: 1px solid var(--line); }
.v-sec--deep .v-index,
.v-sec--deep .v-index > li { border-color: var(--line-inv); }

.v-index__row {
  display: grid;
  /* Fixed first column so every row's number and title share one baseline
     grid — `auto` sized itself to each row's own content and broke alignment. */
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  grid-template-areas:
    'num body go'
    'num meta go';
  gap: 0.5rem clamp(1.25rem, 3vw, 2.75rem);
  align-items: start;
  padding: clamp(1.5rem, 2.8vw, 2.35rem) clamp(0.5rem, 1.5vw, 1.25rem);
  margin-inline: calc(clamp(0.5rem, 1.5vw, 1.25rem) * -1);
  border-radius: var(--r-sm);
  transition: background var(--base) var(--ease);
}
a.v-index__row:hover { background: var(--paper-3); }
.v-sec--deep a.v-index__row:hover { background: rgba(250, 247, 242, 0.07); }

.v-index__num {
  grid-area: num;
  font-family: var(--display);
  font-size: var(--t--1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--red);
  padding-top: 0.35em;
  min-width: 2.2ch;
}
.v-sec--deep .v-index__num { color: rgba(250, 247, 242, 0.55); }

.v-index__body { grid-area: body; }
.v-index__body h3 {
  margin: 0 0 0.35rem;
  font-size: var(--t-2);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.v-index__body p { margin: 0; color: var(--ink-2); font-size: var(--t--1); max-width: 58ch; }
.v-sec--deep .v-index__body p { color: rgba(250, 247, 242, 0.75); }

.v-index__meta {
  grid-area: meta;
  align-self: start;
  font-size: var(--t--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.v-sec--deep .v-index__meta { color: rgba(250, 247, 242, 0.5); }

.v-index__go {
  grid-area: go;
  align-self: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background var(--base) var(--ease), border-color var(--base) var(--ease), color var(--base) var(--ease);
}
.v-index__go svg { width: 13px; height: 13px; }
a.v-index__row:hover .v-index__go { background: var(--red); border-color: var(--red); color: var(--paper); }
.v-sec--deep .v-index__go { border-color: var(--line-inv); }
.v-sec--deep a.v-index__row:hover .v-index__go { background: var(--paper); border-color: var(--paper); color: var(--red-deep); }

@media (max-width: 700px) {
  .v-index__row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    grid-template-areas: 'num body' 'num meta';
  }
  .v-index__go { display: none; }
}

/* --------------------------------------------------------------------------
   11. Stats — rules, not boxes
   -------------------------------------------------------------------------- */

.v-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--line);
}
.v-sec--deep .v-stats, .v-sec--deep .v-stat { border-color: var(--line-inv); }

.v-stat {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.75rem) clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .v-stat + .v-stat { border-left: 1px solid var(--line); padding-left: clamp(1.25rem, 2.5vw, 2rem); }
}

.v-stat__num {
  display: block;
  font-family: var(--display);
  font-size: var(--t-4);
  font-weight: 300;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--red);
}
.v-sec--deep .v-stat__num { color: var(--paper); }

.v-stat__label {
  display: block;
  margin-top: 0.8rem;
  font-size: var(--t--1);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 24ch;
}
.v-sec--deep .v-stat__label { color: rgba(250, 247, 242, 0.72); }

/* --------------------------------------------------------------------------
   12. Cards — one type, no border + shadow + white cliché
   -------------------------------------------------------------------------- */

.v-cards { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 760px) {
  .v-cards--2 { grid-template-columns: repeat(2, 1fr); }
  .v-cards--3 { grid-template-columns: repeat(2, 1fr); }
}
/* Must come after the 760px rule, or it never wins at desktop widths. */
@media (min-width: 1000px) {
  .v-cards--3 { grid-template-columns: repeat(3, 1fr); }
}

.v-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.v-sec--deep .v-card { border-color: var(--line-inv); }
.v-card h3 { margin: 0; font-size: var(--t-1); font-weight: 500; letter-spacing: -0.015em; }
.v-card p { margin: 0; color: var(--ink-2); font-size: var(--t--1); }
.v-sec--deep .v-card p { color: rgba(250, 247, 242, 0.75); }
.v-card .v-arrow { margin-top: auto; padding-top: 1rem; align-self: flex-start; }

/* Card with a figure on top */
.v-card--fig { padding-top: 0; border-top: 0; gap: 1.15rem; }
.v-card--fig .v-fig { margin-bottom: 0.25rem; }

.v-book {
  display: grid;
  grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
  gap: clamp(1.1rem, 2.5vw, 1.9rem);
  align-items: start;
}
.v-book__cover {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(29, 22, 19, 0.16));
}
.v-book__body { display: flex; flex-direction: column; gap: 0.5rem; }
.v-book__body h3 { margin: 0; }
.v-book__body p { margin: 0; color: var(--ink-2); font-size: var(--t--1); }
@media (min-width: 700px) { .v-book { grid-template-columns: minmax(0, 152px) minmax(0, 1fr); } }

/* Well — a raised surface, used sparingly for genuinely elevated content */
.v-well {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow);
}
.v-sec--alt .v-well { background: var(--paper); box-shadow: none; border: 1px solid var(--line-soft); }
.v-sec--deep .v-well { background: rgba(250, 247, 242, 0.07); box-shadow: none; }
.v-well h3 { margin: 0 0 0.6rem; font-size: var(--t-1); font-weight: 500; }

/* --------------------------------------------------------------------------
   13. Router — "where do you fit?" self-select
   -------------------------------------------------------------------------- */

.v-router { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 640px)  { .v-router { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .v-router { grid-template-columns: repeat(4, 1fr); } }

.v-route {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  background: var(--paper);
  transition: background var(--base) var(--ease);
}
.v-route:hover { background: var(--card); }
.v-route__k { font-size: var(--t--2); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.v-route h3 { margin: 0; font-size: var(--t-1); font-weight: 500; letter-spacing: -0.015em; }
.v-route p { margin: 0; font-size: var(--t--1); color: var(--ink-2); }
.v-route .v-icon { width: 26px; height: 26px; color: var(--red); margin-bottom: 0.5rem; }
.v-route .v-arrow { margin-top: auto; padding-top: 1.1rem; align-self: flex-start; border-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Ledger — financials & any label/value table
   -------------------------------------------------------------------------- */

.v-ledger { width: 100%; border-collapse: collapse; font-size: var(--t--1); }
.v-ledger caption { text-align: left; margin-bottom: 1.25rem; color: var(--ink-2); font-size: var(--t--1); }
.v-ledger th, .v-ledger td {
  padding: 0.9rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.v-ledger th:first-child, .v-ledger td:first-child { text-align: left; padding-left: 0; }
.v-ledger td:last-child, .v-ledger th:last-child { padding-right: 0; }
.v-ledger thead th {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--ink);
}
.v-ledger tbody th { font-weight: 500; color: var(--ink); }
.v-ledger td { color: var(--ink-2); }
.v-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.v-defs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.25rem; font-size: var(--t--1); }
.v-defs dt { font-weight: 500; color: var(--ink); }
.v-defs dd { margin: 0; color: var(--ink-2); }
.v-sec--deep .v-defs dt { color: var(--paper); }
.v-sec--deep .v-defs dd { color: rgba(250, 247, 242, 0.75); }

/* --------------------------------------------------------------------------
   15. Timeline
   -------------------------------------------------------------------------- */

.v-time { list-style: none; margin: 0; padding: 0; }
.v-time > li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.25rem, 2.4vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.v-time > li:first-child { border-top: 1px solid var(--line); }
.v-sec--deep .v-time > li { border-color: var(--line-inv); }
.v-time__when {
  font-family: var(--display);
  font-size: var(--t-1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--red);
  letter-spacing: -0.01em;
}
.v-sec--deep .v-time__when { color: rgba(250, 247, 242, 0.62); }
.v-time__what h3 { margin: 0 0 0.3rem; font-size: var(--t-1); font-weight: 500; letter-spacing: -0.015em; }
.v-time__what p { margin: 0; color: var(--ink-2); font-size: var(--t--1); max-width: 60ch; }
.v-sec--deep .v-time__what p { color: rgba(250, 247, 242, 0.75); }
@media (min-width: 860px) { .v-time > li { grid-template-columns: 8rem 1fr; } }
@media (max-width: 600px) { .v-time > li { grid-template-columns: 1fr; gap: 0.35rem; } }

/* --------------------------------------------------------------------------
   16. Give — amount tiles
   -------------------------------------------------------------------------- */

.v-give {
  display: grid;
  align-content: start;   /* stack from the top; stretch spreads the content */
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* A light card inside a deep section has to flip ALL its ink back, or the
   inherited light-on-dark colours render white-on-cream and vanish. */
.v-sec--deep .v-give { background: var(--paper); box-shadow: none; color: var(--ink); }
.v-sec--deep .v-give h1,
.v-sec--deep .v-give h2,
.v-sec--deep .v-give h3,
.v-sec--deep .v-give h4,
.v-sec--deep .v-give .v-defs dt,
.v-sec--deep .v-give strong { color: var(--ink); }
.v-sec--deep .v-give p,
.v-sec--deep .v-give li,
.v-sec--deep .v-give .v-note,
.v-sec--deep .v-give .v-defs dd { color: var(--ink-2); }
.v-sec--deep .v-give a { color: var(--red); }
.v-sec--deep .v-give .v-checks li::before { background: var(--red); }

.v-give h3 { margin: 0; font-size: var(--t-1); font-weight: 500; }

.v-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.v-tile {
  padding: 0.8rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--display);
  font-size: var(--t-1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.v-tile:hover { border-color: var(--red); }
.v-tile[aria-pressed='true'] { background: var(--red); border-color: var(--red); color: var(--paper); }
.v-tile:active { transform: translateY(1px); }

.v-give__hint { min-height: 2.6em; font-size: var(--t--1); color: var(--ink-2); margin: 0; }

.v-payments { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.v-payments span { font-size: var(--t--2); color: var(--ink-3); letter-spacing: 0.06em; }

/* PayFast's own markup uses tables — tidy without fighting it */
.v-payfast table { border-collapse: collapse; width: 100%; }
.v-payfast td { padding: 0; vertical-align: middle; }
.v-payfast label { font-weight: 500; padding-right: 0.5rem; }
.v-payfast input[type='number'] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-family: var(--display);
  font-size: var(--t-1);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.v-payfast input[type='number']:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(138, 36, 48, 0.12);
}
.v-payfast input[type='image'] { margin-top: 1rem; max-width: 180px; cursor: pointer; transition: opacity var(--fast) var(--ease); }
.v-payfast input[type='image']:hover { opacity: 0.85; }

.v-qr { width: 152px; border-radius: var(--r-sm); }

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */

.v-form { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .v-form { grid-template-columns: 1fr 1fr; }
  .v-full { grid-column: 1 / -1; }
}

.v-field { display: flex; flex-direction: column; gap: 0.45rem; }
.v-field label { font-size: var(--t--1); font-weight: 500; }
.v-field input, .v-field textarea, .v-field select {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--t-0);
  line-height: 1.4;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.v-field textarea { min-height: 148px; resize: vertical; }
.v-field input::placeholder, .v-field textarea::placeholder { color: var(--ink-3); }
.v-field input:focus, .v-field textarea:focus, .v-field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(138, 36, 48, 0.12);
}
.v-field input[aria-invalid='true'], .v-field textarea[aria-invalid='true'] { border-color: #9c2b23; }
.v-field .v-err { font-size: var(--t--2); color: #9c2b23; min-height: 1.2em; }

.v-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.v-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.v-status { grid-column: 1 / -1; font-size: var(--t--1); min-height: 1.4em; margin: 0; }
.v-status[data-state='error'] { color: #9c2b23; }
.v-status[data-state='ok'] { color: #2f6b3f; }

/* --------------------------------------------------------------------------
   18. Partners
   -------------------------------------------------------------------------- */

.v-partners { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 560px)  { .v-partners { grid-template-columns: repeat(2, 1fr); } }
/* Five Tzedek partners: 3 + 2 at desktop. A 4-column rule strands the
   fifth on a row of its own. At two columns the trailing card spans the
   full width so the grid doesn't end on an empty cell. */
@media (min-width: 560px) and (max-width: 899px) {
  .v-partners > :last-child { grid-column: span 2; }
}
@media (min-width: 900px) { .v-partners { grid-template-columns: repeat(3, 1fr); } }

.v-tzedek-note { margin-top: 1.1rem; font-style: normal; }
.v-tzedek-note::before { content: "*"; margin-right: 0.15rem; }

.v-partner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: var(--paper);
  transition: background var(--base) var(--ease);
}
.v-partner:hover { background: var(--card); }
.v-partner__logo { height: 76px; display: flex; align-items: center; }
/* Cap width as well as height: Ikholwa is ~4:1 where the others are square,
   so a height-only limit let it render four times as wide as its neighbours. */
.v-partner__logo img { max-height: 76px; max-width: 150px; width: auto; object-fit: contain; }
.v-partner h3 { margin: 0; font-size: var(--t-0); font-weight: 500; }
.v-partner p { margin: 0; font-size: var(--t--1); color: var(--ink-2); }
.v-partner .v-arrow { margin-top: auto; padding-top: 0.9rem; align-self: flex-start; border-bottom: 0; }

/* --------------------------------------------------------------------------
   19. Lists
   -------------------------------------------------------------------------- */

.v-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.v-checks li { position: relative; margin: 0; padding-left: 1.5rem; font-size: var(--t--1); color: var(--ink-2); }
.v-checks li::before {
  content: '';
  position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.v-sec--deep .v-checks li { color: rgba(250, 247, 242, 0.78); }
.v-sec--deep .v-checks li::before { background: rgba(250, 247, 242, 0.6); }

.v-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v-inline li { margin: 0; }
.v-inline span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-size: var(--t--2);
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

.v-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 7vw, 6rem); }

.v-footer__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 5vw, 4.5rem); }
@media (min-width: 860px) { .v-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }

.v-footer__logo img { width: clamp(170px, 18vw, 215px); filter: brightness(0); }
.v-footer__reg { margin-top: 1.75rem; font-size: var(--t--1); line-height: 1.85; color: var(--ink-2); }

.v-footer h4 {
  font-family: var(--sans);
  font-size: var(--t--2);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
}
.v-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.v-footer nav li { margin: 0; }
.v-footer nav a {
  font-size: var(--t-0);
  color: var(--ink-2);
  transition: color var(--fast) var(--ease);
}
.v-footer nav a:hover { color: var(--red); }

.v-socials { display: flex; gap: 0.6rem; margin-top: 1.75rem; }
.v-social {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.v-social svg { width: 16px; height: 16px; }
.v-social:hover { background: var(--red); border-color: var(--red); color: var(--paper); }

.v-footer__bar {
  border-top: 1px solid var(--line);
  padding-block: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--t--1);
  color: var(--ink-3);
}
.v-footer__bar a { border-bottom: 1px solid var(--line); }
.v-footer__bar a:hover { color: var(--red); border-bottom-color: var(--red); }

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */

.v-mt    { margin-top: clamp(2rem, 4vw, 3.25rem); }
.v-mt-sm { margin-top: 1.35rem; }
.v-mb    { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.v-stack { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.v-icon  { width: 26px; height: 26px; color: var(--red); }

/* --------------------------------------------------------------------------
   22. Motion — staggered entry, transform + opacity only
   -------------------------------------------------------------------------- */

[data-in] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-in].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-in] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   23. Print
   -------------------------------------------------------------------------- */

@media print {
  .v-header, .v-drawer, .v-footer__bar, body::after { display: none !important; }
  body { background: #fff; color: #000; }
  .v-sec--deep { background: #fff !important; color: #000 !important; }
}
