/* ============================================
   FREYSTA VILLAGE EDITORIAL
   Modular design system for 60+ village pages
   ============================================ */

/* -- Local Fonts -- */
@font-face {
  font-family: 'Glacial Indifference';
  src: url('/assets/fonts/GlacialIndifference-Regular.woff2') format('woff2'),
       url('/assets/fonts/GlacialIndifference-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Glacial Indifference';
  src: url('/assets/fonts/GlacialIndifference-Bold.woff2') format('woff2'),
       url('/assets/fonts/GlacialIndifference-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.village-page {
  --color-cream: var(--surface-story);
  --color-warm-white: var(--surface-explore);
  --color-midnight: var(--surface-strong);
  --color-dark-panel: var(--surface-utility);
  --color-text-muted: #666666; /* WCAG AA fix: 4.86:1 on story, 5.47:1 on explore */
}

/* ============================================
   SCROLL-MARGIN — Offset for fixed header on anchor nav
   ============================================ */
.village-page [id] {
  scroll-margin-top: 90px;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo);
}

.js [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .v-chapter__heading {
    --heading-progress: 1;
  }
}

/* ============================================
   V-CHAPTER - Story chapter wrapper
   ============================================ */
.v-chapter {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  background: var(--color-cream);
}

#living.v-chapter {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.v-chapter--dark {
  background: var(--color-dark-panel);
  color: var(--color-text-inverse);
}

.v-chapter--compact {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.v-chapter--compact + .v-chapter--compact {
  padding-top: var(--space-md);
}

/* Tighter padding when compact chapter wraps a feature-box
   — placed after the adjacent-sibling rule so it wins at equal specificity */
.v-chapter--compact:has(.v-feature-box) {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

/* Extra breathing room after a feature-box card (the dark edge needs
   more whitespace before the next heading to feel balanced) */
.v-chapter--compact:has(.v-feature-box) + .v-chapter {
  padding-top: var(--space-2xl);
}

.v-chapter--compact.v-chapter--dark {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.v-chapter__heading {
  max-width: 1060px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-xl);
  border-top: none;
}

.v-chapter__title::after {
  content: '';
  display: block;
  width: calc(20px + 180px * var(--heading-progress, 0));
  height: 3px;
  background: #2d6a3f;
  margin-top: var(--space-md);
  will-change: width;
  transition: width 0.7s var(--ease-out-expo);
}

.v-chapter--dark .v-chapter__title::after {
  background: rgba(45, 106, 63, 0.8);
}

/* ============================================
   V-FEATURE-BOX - Dark card within light chapter
   ============================================ */
.v-feature-box {
  max-width: calc(1060px - (var(--space-xl) * 2));
  margin: 0 auto;
  background: var(--surface-utility);
  border-radius: 20px;
  padding: 40px var(--space-lg);
  box-shadow: 0 18px 50px rgba(10, 22, 40, 0.25);
  box-sizing: border-box;
}

.v-feature-box h2,
.v-feature-box h3,
.v-feature-box p,
.v-feature-box li,
.v-feature-box a {
  color: var(--color-text-inverse);
}

.v-feature-box .v-chapter__title::after {
  background: rgba(45, 106, 63, 0.8);
}

.v-feature-box .v-prose p {
  color: rgba(250, 248, 245, 0.7);
}

.v-feature-box .v-spread {
  padding: 0 var(--space-xl);
  margin-top: var(--space-lg);
  margin-bottom: 0;
}

.v-feature-box .v-spread__caption {
  color: rgba(250, 248, 245, 0.7);
}

.v-feature-box .v-spread + .v-prose {
  margin-top: var(--space-lg);
}

.v-feature-link-card {
  max-width: 1060px;
  margin: var(--space-lg) auto 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(250, 248, 245, 0.22);
  background: rgba(7, 21, 38, 0.48);
  box-shadow: inset 0 1px 0 rgba(250, 248, 245, 0.08);
}

.v-feature-link-card__inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.v-feature-link-card__thumb {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.v-feature-link-card__content {
  min-width: 0;
}

.v-feature-link-card__label {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.62);
}

.v-feature-link-card__title {
  margin: 0;
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.3;
  color: var(--color-text-inverse);
}

.v-feature-link-card__meta {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(250, 248, 245, 0.72);
}

.v-feature-link-card__inner:hover .v-feature-link-card__title {
  color: var(--color-gold);
}

.v-feature-link-card__inner:hover .v-feature-link-card__meta {
  color: var(--color-text-inverse);
}

@media (max-width: 700px) {
  .v-feature-box {
    padding: 32px 24px;
    border-radius: 14px;
  }

  .v-feature-link-card__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .v-feature-link-card__thumb {
    height: 140px;
  }
}

.v-chapter__title {
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text-primary);
}

.v-chapter--dark .v-chapter__title {
  color: var(--color-text-inverse);
}

/* ============================================
   V-PROSE - Text block
   ============================================ */
.v-prose {
  max-width: 1060px;
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-xl);
}

.v-prose::after {
  content: "";
  display: block;
  clear: both;
}

#living.v-chapter .v-prose:last-of-type {
  margin-bottom: var(--space-lg);
}

.v-prose--tight {
  margin-top: calc(-1 * var(--space-md));
  margin-bottom: var(--space-xl);
}

.v-prose p {
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.85;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.v-chapter--dark .v-prose p {
  color: rgba(250, 248, 245, 0.7);
}

.v-prose p:last-child {
  margin-bottom: 0;
}

.v-prose p.v-prose__spacer {
  margin: 0 0 var(--space-md);
  font-size: 0;
  line-height: 0;
}

.v-prose__lead {
  font-size: var(--text-xl) !important;
  font-weight: 500 !important;
  color: var(--color-text-primary) !important;
}

.v-chapter--dark .v-prose__lead {
  color: var(--color-text-inverse) !important;
}

/* Float image inside prose - editorial wrap */
.v-prose__float-image {
  float: right;
  width: 44%;
  margin: var(--space-xs) 0 var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.v-prose__float-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

.v-prose__float-image figcaption {
  padding: var(--space-sm) 0 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.v-prose a {
  color: #1f5f45;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.v-prose a:hover {
  color: #184a36;
}

.v-chapter--dark .v-prose a {
  color: var(--color-gold);
}

.v-feature-box .v-prose a {
  color: var(--color-gold);
}

.v-feature-box .v-prose a:hover {
  color: var(--color-text-inverse);
}

.v-split__text a {
  color: #1f5f45;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.v-split__text a:hover {
  color: #184a36;
}

.v-chapter--dark .v-split__text a {
  color: var(--color-gold);
}

.v-prose ul + p {
  margin-top: var(--space-lg);
}

/* ============================================
   V-SPREAD - Full-width image
   ============================================ */
.v-spread {
  max-width: 1060px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-xl);
}

.v-spread--bleed {
  max-width: none;
  padding: 0;
}

.v-spread__figure {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.v-spread__figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: inherit;
}

.v-spread__caption {
  width: 100%;
  max-width: var(--spread-caption-width, 100%);
  margin: 0 auto;
  padding: var(--space-sm) 0 0;
  /* Some fonts have negative left sidebearing on capitals; keep the first glyph
     from looking clipped against the content edge. */
  padding-left: 12px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  border-radius: 0;
  overflow: visible;
}

.v-spread--bleed .v-spread__caption {
  padding-left: 12px;
  padding-right: 0;
}

.v-spread__credit {
  opacity: 0.7;
}

/* Portrait image variant - narrower, centered */
.v-spread--portrait {
  max-width: 600px;
}

.v-spread--portrait .v-spread__figure img {
  max-height: none;
}

/* Sticky scene - cinematic image stays pinned while content scrolls over */
.v-sticky-scene {
  position: relative;
}

/* Full-bleed variant for feature strips */
.v-spread--cinematic {
  max-width: none;
  padding: 0;
  position: relative;
  height: 80vh;
  min-height: 550px;
  max-height: 900px;
  overflow: hidden;
  border-radius: 0;
}

/* Sticky variant - pins below fixed header */
.v-spread--sticky {
  position: sticky;
  top: 0; /* Clear the fixed header */
  z-index: 0;
}

/* Chapter that scrolls over the sticky image */
.v-chapter--over {
  position: relative;
  z-index: 1;
  padding-top: var(--space-3xl);
}

.v-spread--cinematic .v-spread__figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
}

.v-spread--cinematic .v-spread__figure img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 70%;
  border-radius: 0;
}

.v-spread--cinematic .v-spread__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(36, 61, 79, 0.6) 0%,
    rgba(36, 61, 79, 0.15) 60%,
    transparent 100%
  );
}

.v-spread--cinematic .v-spread__caption {
  position: absolute;
  bottom: var(--space-2xl);
  left: var(--space-xl);
  color: var(--color-warm-white);
  padding: 0;
  max-width: none;
}

.v-spread--cinematic .v-spread__caption-title {
  display: block;
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.v-spread--cinematic .v-spread__credit {
  opacity: 0.5;
}

@media (max-width: 700px) {
  .v-spread--cinematic .v-spread__caption {
    bottom: var(--space-lg);
    left: var(--space-lg);
    right: var(--space-lg);
  }

  .v-spread--cinematic .v-spread__caption-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
  }
}

/* ============================================
   V-SPLIT - Image + text side by side
   ============================================ */
.v-split {
  max-width: 1060px;
  /* Large lead-in, tighter exit.
     Bottom spacing gets very noticeable when the right/left image is tall. */
  margin: var(--space-3xl) auto var(--space-xl);
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  /* Top-align text with side images to avoid big "dead space" when the image is taller than the text. */
  align-items: start;
}

/* When a split immediately follows a heading, the heading's own bottom
   margin provides enough separation — remove the split's top margin. */
.v-chapter__heading + .v-split {
  margin-top: 0;
}

/* When a split follows a prose block, the prose already provides bottom spacing.
   Avoid double-stacking vertical margins which can create huge "dead space". */
.v-prose + .v-split {
  margin-top: 0;
}

/* Reduce vertical gap when a split follows a text block (common rhythm tweak). */
.v-split--flush {
  margin-top: 0;
}

.v-split--reverse {
  direction: rtl;
}

.v-split--reverse > * {
  direction: ltr;
}

.v-split__image {
  overflow: visible;
}

.v-split__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.v-split__image figcaption {
  padding: var(--space-sm) 0 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.v-split__text p {
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.85;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.v-split__text p:last-child {
  margin-bottom: 0;
}

.v-split__text p.v-split__spacer {
  margin: 0 0 var(--space-sm);
  font-size: 0;
  line-height: 0;
}

.v-chapter--dark .v-split__text p {
  color: rgba(250, 248, 245, 0.7);
}

.v-chapter--dark .v-split__image figcaption {
  color: rgba(250, 248, 245, 0.5);
}

/* ============================================
   V-QUOTE - Standalone quotation
   ============================================ */
.v-quote {
  max-width: 800px;
  margin: var(--space-3xl) auto;
  padding: 0 var(--space-xl) 0 calc(var(--space-xl) + 2rem);
  border-left: 3px solid rgba(45, 106, 63, 0.4);
}

.v-quote__text {
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.v-chapter--dark .v-quote__text {
  color: var(--color-text-inverse);
}

.v-quote__source {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(45, 106, 63, 0.7);
}

/* ============================================
   V-QUOTE--WALL - Full-width dark quote wall
   ============================================ */
.v-quote--wall {
  max-width: none;
  margin: var(--space-3xl) 0;
  padding: var(--space-4xl) var(--space-xl);
  border-left: none;
  background: var(--surface-utility, #243D4F);
  text-align: center;
}

.v-quote--wall__blockquote {
  max-width: 900px;
  margin: 0 auto;
}

.v-quote--wall__text {
  font-family: 'Cormorant Garamond', var(--font-display), serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.25;
  color: var(--color-cream, #F1EBE3);
  margin: 0;
}

.v-quote--wall__source {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold, #c4918a);
  margin-top: var(--space-md);
}

/* ============================================
   V-ASIDE - Editorial fact panel (dark, immersive)
   ============================================ */
.v-aside {
  max-width: 1060px;
  margin: var(--space-4xl) auto;
  padding: var(--space-3xl) var(--space-3xl) var(--space-3xl) calc(var(--space-3xl) + 1rem);
  background: var(--color-dark-panel);
  border-left: 4px solid rgba(45, 106, 63, 0.6);
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 12px rgba(10, 22, 40, 0.12),
    0 16px 48px rgba(10, 22, 40, 0.16);
  position: relative;
}

.v-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(45, 106, 63, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(36, 61, 79, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.v-chapter--dark .v-aside {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: rgba(45, 106, 63, 0.6);
  box-shadow:
    0 4px 12px rgba(10, 22, 40, 0.2),
    0 16px 48px rgba(10, 22, 40, 0.25);
}

.v-chapter--dark .v-aside::before {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(45, 106, 63, 0.06) 0%, transparent 60%);
}

.v-aside__title {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-gold);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(250, 248, 245, 0.12);
}

.v-chapter--dark .v-aside__title {
  color: var(--color-text-inverse);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.v-aside__list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-2xl);
}

.v-aside__list li {
  position: relative;
  padding-left: calc(var(--space-md) + 6px);
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-base);
  color: rgba(250, 248, 245, 0.8);
  line-height: 1.7;
}

.v-chapter--dark .v-aside__list li {
  color: rgba(250, 248, 245, 0.7);
}

.v-aside__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--color-gold);
}

.v-aside__note {
  position: relative;
  display: block;
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-sm);
  font-style: italic;
  color: rgba(250, 248, 245, 0.5);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(250, 248, 245, 0.1);
}

.v-chapter--dark .v-aside__note {
  color: rgba(250, 248, 245, 0.45);
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* -- Activities aside variant (wide panel with activity grid) -- */
.v-aside--activities {
  margin-bottom: 0;
}

.v-aside--activities .v-aside__subtitle {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  font-style: italic;
  color: rgba(250, 248, 245, 0.5);
  margin-bottom: var(--space-2xl);
}

.v-aside__activity-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: var(--space-xl);
  background: rgba(250, 248, 245, 0.06);
  border-radius: 0;
  overflow: hidden;
}

.v-aside__activity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-md);
  background: #1e3444;
  text-align: center;
  transition: background-color 0.35s ease;
  border-radius: 0;
}

.v-aside__activity:hover {
  background: rgba(45, 106, 63, 0.15);
}

.v-aside__activity-icon {
  width: 36px;
  height: 36px;
  color: var(--color-gold);
  transition: color 0.35s ease;
}

.v-aside__activity:hover .v-aside__activity-icon {
  color: var(--color-gold);
}

.v-aside__activity-name {
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(250, 248, 245, 0.75);
  transition: color 0.35s ease;
}

.v-aside__activity:hover .v-aside__activity-name {
  color: rgba(250, 248, 245, 0.95);
}

/* -- Narrow aside variant (short content, matches quote width) -- */
.v-aside--narrow {
  max-width: 800px;
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) calc(var(--space-2xl) + 1rem);
}

.v-aside--narrow .v-aside__list {
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

/* ============================================
   V-NUDGE - Contextual CTA panel
   ============================================ */
.v-nudge {
  max-width: 720px;
  width: min(92%, 720px);
  margin: var(--space-4xl) auto;
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) calc(var(--space-2xl) + 1rem);
  background: linear-gradient(
    155deg,
    rgba(236, 245, 239, 1) 0%,
    rgba(224, 238, 229, 1) 40%,
    rgba(232, 238, 231, 1) 65%,
    rgba(242, 233, 228, 1) 100%
  );
  border-left: 4px solid rgba(45, 106, 63, 0.6);
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 12px rgba(10, 22, 40, 0.12),
    0 16px 48px rgba(10, 22, 40, 0.16),
    0 22px 64px rgba(10, 22, 40, 0.18);
  position: relative;
}

.v-nudge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(45, 106, 63, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.v-nudge__heading {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.v-nudge__body {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.v-nudge__link {
  position: relative;
  display: inline-block;
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-primary);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.2);
  transition: border-color 0.3s ease;
}

.v-nudge__link:hover {
  border-bottom-color: var(--color-text-primary);
}

/* ============================================
   V-ACTIVITIES - Grid of activities
   ============================================ */
.v-activities {
  max-width: var(--container-content);
  margin: var(--space-2xl) auto;
  padding: 0 var(--space-xl);
}

.v-activities__title {
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.v-chapter--dark .v-activities__title {
  color: var(--color-text-inverse);
}

.v-activities__subtitle {
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.v-chapter--dark .v-activities__subtitle {
  color: rgba(250, 248, 245, 0.5);
}

.v-activities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
}

.v-activities__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  border: 1px solid var(--color-mist);
  border-radius: var(--radius-md);
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-align: center;
  transition: border-color 0.3s;
}

.v-chapter--dark .v-activities__item {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(250, 248, 245, 0.65);
}

.v-activities__item:hover {
  border-color: var(--color-gold);
}

.v-activities__icon {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}

.v-activities__note {
  max-width: 680px;
  margin: var(--space-xl) auto 0;
  padding: 0 var(--space-xl);
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.v-chapter--dark .v-activities__note {
  color: rgba(250, 248, 245, 0.65);
}

/* -- Narrow activities variant (within 680px text column) -- */
.v-activities--narrow {
  max-width: 680px;
  padding: 0 var(--space-xl);
}

.v-activities--narrow .v-activities__grid {
  grid-template-columns: repeat(3, 1fr);
}

.v-activities--narrow .v-activities__note {
  max-width: none;
  padding: 0;
}

/* ============================================
   V-GALLERY - Gallery
   ============================================ */
.v-gallery {
  padding: var(--space-2xl) var(--space-xl) var(--space-4xl);
  background: var(--surface-explore);
}

.v-gallery__header {
  max-width: var(--container-content);
  margin: 0 auto var(--space-3xl);
}

/* Section label - signals transition from editorial to photo essay */
.v-gallery__label {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(45, 106, 63, 0.85);
  margin-bottom: var(--space-2xl);
}

.v-gallery__label::before,
.v-gallery__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(45, 106, 63, 0.25), transparent);
}

.v-gallery__title {
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.v-gallery__credit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.v-gallery__grid {
  max-width: var(--container-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 260px 260px;
  gap: 8px;
}

.v-gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-dark-panel);
  border-radius: var(--radius-lg);
}

.v-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
  border-radius: inherit;
}

@media (hover: hover) {
  .v-gallery__item:hover img {
    transform: scale(1.03);
  }

  .v-gallery__item figcaption {
    opacity: 0;
  }

  .v-gallery__item:hover figcaption {
    opacity: 1;
  }
}

.v-gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-md) var(--space-md);
  background: linear-gradient(to top, rgba(36, 61, 79, 0.85), transparent);
  transition: opacity 0.3s;
}

@media (hover: none) {
  .v-gallery__item figcaption {
    opacity: 1;
    background: linear-gradient(to top, rgba(36, 61, 79, 0.7), transparent);
    padding: var(--space-md) var(--space-sm) var(--space-sm);
  }
}

.v-gallery__item figcaption span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-warm-white);
}

/* Gallery grid positions */
.v-gallery__item--feature {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.v-gallery__item--tall {
  grid-column: 8 / 10;
  grid-row: 1 / 3;
}

.v-gallery__item:nth-child(3) {
  grid-column: 10 / 13;
  grid-row: 1 / 2;
}

.v-gallery__item:nth-child(4) {
  grid-column: 10 / 12;
  grid-row: 2 / 3;
}

.v-gallery__item:nth-child(5) {
  grid-column: 12 / 13;
  grid-row: 2 / 3;
}

/* ============================================
   GALLERY — SHOWCASE (teaser grid + lightbox)
   Shows a curated preview; remaining images are
   hidden but accessible via the lightbox viewer.
   ============================================ */
.v-gallery--showcase .v-gallery__grid {
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 280px 180px;
  gap: 6px;
}

/* Showcase: visible preview items */
.v-gallery--showcase .v-gallery__item--showcase:nth-child(1) {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
}
.v-gallery--showcase .v-gallery__item--showcase:nth-child(2) {
  grid-column: 7 / 10;
  grid-row: 1 / 2;
}
.v-gallery--showcase .v-gallery__item--showcase:nth-child(3) {
  grid-column: 10 / 13;
  grid-row: 1 / 2;
}
.v-gallery--showcase .v-gallery__item--showcase:nth-child(4) {
  grid-column: 7 / 10;
  grid-row: 2 / 3;
}

/* 5th item: hosts the "View all" overlay */
.v-gallery--showcase .v-gallery__item--showcase:nth-child(5) {
  grid-column: 10 / 13;
  grid-row: 2 / 3;
  position: relative;
}

/* "View all X photos" overlay on last visible item */
.v-gallery__viewall {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(2px);
  z-index: 2;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: inherit;
}

.v-gallery__viewall:hover {
  background: rgba(10, 22, 40, 0.35);
}

.v-gallery__viewall-count {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  font-weight: 300;
  color: var(--color-warm-white);
  line-height: 1;
}

.v-gallery__viewall-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.35rem;
}

/* Hidden items: invisible in the grid but picked up by lightbox JS */
.v-gallery--showcase .v-gallery__item--hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.v-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(36, 61, 79, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.v-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.v-lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-warm-white);
  cursor: pointer;
  transition: border-color 0.3s;
}

.v-lightbox__close:hover {
  border-color: var(--color-gold);
}

.v-lightbox__close svg {
  width: 18px;
  height: 18px;
}

.v-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-warm-white);
  cursor: pointer;
  transition: border-color 0.3s;
}

.v-lightbox__nav:hover {
  border-color: var(--color-gold);
}

.v-lightbox__nav--prev { left: var(--space-lg); }
.v-lightbox__nav--next { right: var(--space-lg); }

.v-lightbox__nav svg {
  width: 18px;
  height: 18px;
}

.v-lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.v-lightbox__image {
  max-width: 100%;
  max-height: calc(85vh - 50px);
  object-fit: contain;
}

.v-lightbox__caption {
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(250, 248, 245, 0.6);
}

.v-lightbox__counter {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(250, 248, 245, 0.4);
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .v-lightbox {
    overscroll-behavior: contain;
  }

  .v-lightbox__nav--prev,
  .v-lightbox__nav--next {
    top: auto;
    bottom: var(--space-xl);
    transform: none;
  }

  .v-lightbox__nav--prev {
    left: var(--space-xl);
  }

  .v-lightbox__nav--next {
    right: var(--space-xl);
  }

  .v-lightbox__content {
    max-width: 96vw;
    max-height: 75vh;
  }

  .v-lightbox__counter {
    bottom: var(--space-md);
  }
}

/* ============================================
   V-BREATHER - Transition space with teaser text
   ============================================ */
.v-breather {
  background: var(--surface-explore);
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
}

.v-breather__inner {
  max-width: 680px;
  margin: 0 auto;
}

.v-breather__text {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin: 0;
  opacity: 0.85;
}

/* ============================================
   V-TOUR - Aerial 360deg view
   ============================================ */
.v-tour {
  padding: var(--space-xl) var(--space-xl) var(--space-4xl);
  background: var(--surface-explore);
}

.v-tour__header {
  max-width: var(--container-content);
  margin: 0 auto var(--space-3xl);
}

/* Section label - matches gallery/explore pattern */
.v-tour__label {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(45, 106, 63, 0.85);
  margin-bottom: var(--space-2xl);
}

.v-tour__label::before,
.v-tour__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(45, 106, 63, 0.25), transparent);
}

.v-tour__title {
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.v-tour__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 600px;
}

.v-tour__embed {
  max-width: var(--container-max);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-dark-panel);
  box-shadow: var(--shadow-lg);
}

.v-tour__embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.v-tour__credit {
  max-width: var(--container-max);
  margin: var(--space-md) auto 0;
  text-align: right;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.v-tour__credit a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast);
}

.v-tour__credit a:hover {
  color: var(--color-text-secondary);
}

/* Touch/desktop instruction hints */
.v-tour__hint--touch {
  display: none;
}

@media (hover: none) {
  .v-tour__hint--desktop {
    display: none;
  }
  .v-tour__hint--touch {
    display: inline;
  }
}

/* Actions row below embed */
.v-tour__actions {
  max-width: var(--container-max);
  margin: var(--space-md) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v-tour__actions .v-tour__credit {
  margin: 0;
}

.v-tour__open-link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast);
}

.v-tour__open-link:hover {
  color: var(--color-text-secondary);
}

/* ============================================
   V-EXPLORE-PHASE - Unified explore background
   ============================================ */
.v-explore-phase {
  background: var(--surface-explore);
  padding-top: 72px;
  padding-bottom: 72px;
}

@media (max-width: 768px) {
  .v-explore-phase {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-xl);
  }

  .v-gallery {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    padding-bottom: var(--space-xl);
  }

  .v-gallery__header {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .v-gallery__label {
    gap: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .v-gallery__title {
    margin-bottom: var(--space-sm);
  }

  .v-tour {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    padding-top: var(--space-lg);
  }

  .v-tour {
    padding-bottom: var(--space-lg);
  }

  .v-tour__header {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .v-tour__label {
    gap: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .v-tour__embed {
    aspect-ratio: 9 / 16;
    max-height: 70vh;
    width: min(92%, 420px);
    margin-left: auto;
    margin-right: auto;
  }

  .v-tour__embed iframe {
    transform: scale(0.65);
    transform-origin: 0 0;
    width: 153.846%;
    height: 153.846%;
  }

  .v-tour__credit {
    margin-top: var(--space-sm);
  }

  .v-tour__actions {
    margin-top: var(--space-sm);
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .v-tour__embed {
    aspect-ratio: 16 / 9;
    max-height: 70vh;
  }

  .v-tour__embed iframe {
    transform: none;
    width: 100%;
    height: 100%;
  }

  .v-tour__actions {
    margin-top: var(--space-sm);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .v-tour__actions .v-tour__credit {
    text-align: left;
  }
}

/* ============================================
   V-VIDEO-SHOWCASE - Dark box on story surface
   ============================================ */
.v-video-showcase {
  background: var(--surface-story);
  padding: var(--space-4xl) var(--space-xl);
  position: relative;
}

.v-video-showcase__inner {
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  background: var(--surface-utility);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 18px 50px rgba(10, 22, 40, 0.25);
}

/* -- Header -- */
.v-video-showcase__header {
  margin-bottom: var(--space-2xl);
}

.v-video-showcase__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.v-video-showcase__title {
  font-family: 'Glacial Indifference', var(--font-display), sans-serif;
  font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  font-weight: 400;
  color: var(--color-text-inverse);
  margin: 0 0 var(--space-md);
  line-height: 1.2;
}

.v-video-showcase__intro {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  font-style: italic;
  line-height: 1.7;
  color: rgba(250, 248, 245, 0.75);
  max-width: 960px;
  margin: 0;
}

/* -- Video Frame -- */
.v-video-showcase__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-dark-panel);
  box-shadow:
    0 4px 12px rgba(10, 22, 40, 0.2),
    0 16px 48px rgba(10, 22, 40, 0.25);
}

.v-video-showcase__player {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  object-fit: contain;
}

/* -- Footer -- */
.v-video-showcase__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.v-video-showcase__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.v-video-showcase__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(250, 248, 245, 0.6);
  background: rgba(250, 248, 245, 0.08);
  padding: 0.35em 0.85em;
  border-radius: 2rem;
  border: 1px solid rgba(250, 248, 245, 0.1);
  transition: all 0.3s ease;
}

.v-video-showcase__tag:hover {
  background: rgba(250, 248, 245, 0.12);
  color: rgba(250, 248, 245, 0.8);
}

.v-video-showcase__credit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(250, 248, 245, 0.6);
  font-style: italic;
  margin: 0;
}

@media (max-width: 768px) {
  .v-video-showcase {
    padding: var(--space-xl) var(--space-md) var(--space-3xl);
  }

  .v-video-showcase__inner {
    padding: 32px 24px;
  }

  .v-video-showcase__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .v-video-showcase {
    padding: var(--space-2xl) var(--space-sm);
  }

  .v-video-showcase__inner {
    padding: var(--space-xl) var(--space-md);
    border-radius: 14px;
  }
}

/* Legacy v-video (kept for backwards compatibility) */
.v-video {
  padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
  background: var(--color-warm-white);
}

.v-video__frame {
  max-width: 1060px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-dark-panel);
  box-shadow: var(--shadow-lg);
}

.v-video__player {
  width: 100%;
  height: auto;
  display: block;
}

.v-video__caption {
  max-width: 1060px;
  margin: var(--space-md) auto 0;
  padding: 0 var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.v-video__credit {
  opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .v-split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .v-split--reverse {
    direction: ltr;
  }

  .v-split--text-first-mobile {
    display: flex;
    flex-direction: column;
  }

  .v-split--text-first-mobile .v-split__text {
    order: -1;
  }

  .v-gallery__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 200px 200px 200px;
  }

  .v-gallery__item--feature {
    grid-column: 1 / 7;
    grid-row: 1 / 2;
  }

  .v-gallery__item--tall {
    grid-column: 1 / 3;
    grid-row: 2 / 4;
  }

  .v-gallery__item:nth-child(3) {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
  }

  .v-gallery__item:nth-child(4) {
    grid-column: 5 / 7;
    grid-row: 2 / 3;
  }

  .v-gallery__item:nth-child(5) {
    grid-column: 3 / 7;
    grid-row: 3 / 4;
  }

  /* Showcase gallery tablet */
  .v-gallery--showcase .v-gallery__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 220px 180px;
  }
  .v-gallery--showcase .v-gallery__item--showcase:nth-child(1) {
    grid-column: 1 / 7;
    grid-row: 1 / 2;
  }
  .v-gallery--showcase .v-gallery__item--showcase:nth-child(2) {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
  .v-gallery--showcase .v-gallery__item--showcase:nth-child(3) {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
  }
  .v-gallery--showcase .v-gallery__item--showcase:nth-child(4) {
    display: none;
  }
  .v-gallery--showcase .v-gallery__item--showcase:nth-child(5) {
    grid-column: 5 / 7;
    grid-row: 2 / 3;
  }
}

@media (max-width: 900px) {
  .v-prose__float-image {
    float: none;
    width: 100%;
    margin: var(--space-xl) 0;
  }
}

@media (max-width: 1024px) {
  .v-chapter {
    padding: var(--space-lg) var(--space-xl) var(--space-lg);
  }

  .v-chapter__heading {
    margin-bottom: var(--space-md);
  }

  .v-chapter--compact {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
  }

  .v-chapter--compact + .v-chapter--compact {
    padding-top: var(--space-sm);
  }

  .v-chapter--compact.v-chapter--dark {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
  }

  #living.v-chapter {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .v-spread {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .v-prose {
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .v-chapter {
    padding: var(--space-lg) var(--space-lg) var(--space-md);
  }

  .v-chapter__heading {
    margin-bottom: var(--space-md);
  }

  .v-chapter--compact {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
  }

  .v-chapter--compact + .v-chapter--compact {
    padding-top: var(--space-sm);
  }

  .v-chapter--compact.v-chapter--dark {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
  }

  #living.v-chapter {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
  }

  .v-spread {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .v-prose {
    margin-bottom: var(--space-lg);
  }

  .v-prose,
  .v-quote,
  .v-aside {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  #living.v-chapter .v-prose:last-of-type {
    margin-bottom: var(--space-sm);
  }

  .v-prose--tight {
    margin-top: calc(-1 * var(--space-sm));
    margin-bottom: var(--space-md);
  }

  .v-quote {
    padding-left: calc(var(--space-lg) + 1.5rem);
  }

  .v-quote--wall {
    padding: var(--space-2xl) var(--space-md);
  }

  .v-quote--wall__text {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }

  .v-aside {
    padding: var(--space-2xl) calc(var(--space-lg) + 0.75rem) var(--space-2xl) calc(var(--space-lg) + 0.75rem);
  }

  .v-nudge {
    padding: var(--space-xl) var(--space-lg) var(--space-xl) calc(var(--space-lg) + 0.75rem);
  }

  .v-spread {
    padding: 0 var(--space-lg);
  }

  .v-split {
    padding: 0 var(--space-lg);
  }

  .v-activities__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v-aside__activity-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v-gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .v-gallery__item--feature,
  .v-gallery__item--tall,
  .v-gallery__item:nth-child(3),
  .v-gallery__item:nth-child(4),
  .v-gallery__item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1;
  }

  .v-gallery__item--feature {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }

  /* Showcase gallery mobile */
  .v-gallery--showcase .v-gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 140px;
    gap: 4px;
  }
  .v-gallery--showcase .v-gallery__item--showcase {
    aspect-ratio: auto;
    height: 100%;
  }
  .v-gallery--showcase .v-gallery__item--showcase:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .v-gallery--showcase .v-gallery__item--showcase:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .v-gallery--showcase .v-gallery__item--showcase:nth-child(3) {
    display: none;
  }
  .v-gallery--showcase .v-gallery__item--showcase:nth-child(4) {
    display: none;
  }
  .v-gallery--showcase .v-gallery__item--showcase:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .v-spread--cinematic {
    height: 50vh;
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .v-activities__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .v-activities--narrow .v-activities__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .v-aside__activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .v-aside__list {
    grid-template-columns: 1fr;
  }
}

