/*
  Global stylesheet — single source of truth for the site.

  Structure:
    1) Reset and base
    2) Design tokens (:root) — palette and typography are owned by the
       `brand-guidelines` skill. Spacing, radii, shadows, motion, and layout
       tokens are owned here.
    3) Layout primitives
    4) Components (site-wide reusable primitives only — page-specific
       styles live with their page builds, not here)
    5) Utilities
*/

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

/* ===== 1) Reset and base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

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

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 2) Design tokens ===== */
/* Palette and typography are written by the `brand-guidelines` skill from
   `build-assets/0-the-brand/tokens.json`. Spacing, radii, shadows, and
   transitions are owned here. */
:root {
  /* Palette (brand-guidelines) */
  --color-bg: #faf7f4;
  --color-surface: #ffffff;
  --color-surface-soft: #f1ebe5;
  --color-text: #12294d;
  --color-text-soft: #5c6b80;
  --color-primary: #c9462d;
  --color-primary-dark: #a93820;
  --color-primary-light: #fbe7e0;
  --color-accent: #2a7e8c;
  --color-focus: #2a7e8c;

  /* Typography (brand-guidelines) */
  --font-heading: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(60, 64, 67, 0.12);
  --shadow-md: 0 4px 14px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.12);

  /* Motion */
  --transition-fast: 180ms ease;
  --transition-base: 260ms ease;
  --transition-slow: 520ms ease;
  --easing-smooth: cubic-bezier(0.16, 0.84, 0.44, 1);

  /* Layout */
  --container-max: 72rem;

  /* Aesthetic dials — the `design-system` skill SETS these per brand to diverge
     the look (sharp vs soft, flat vs shadowed, square vs pill). Defaults below are
     a soft/rounded baseline; a brand's design stage should deliberately override
     them so two brands don't look like the same template reskinned. */
  /* Open Relationships shape language: soft, warm, editorial. Pill buttons and chips
     echo the rounded heart mark; cards are generously rounded with a whisper of shadow
     so long-form reading surfaces feel like paper, not panels. */
  --logo-height: 2.6rem;
  --logo-max-width: 20rem;
  --header-bg: var(--color-surface);
  --header-fg: var(--color-text);
  --btn-radius: var(--radius-pill);
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-sm);
  --card-border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  --chip-radius: var(--radius-pill);

  /* Long-form reading measure, used by article and location body copy. */
  --measure: 68ch;
}

/* Logo grows on wider screens — override the dial at the breakpoint, never per-page. */
@media (min-width: 1024px) {
  :root { --logo-height: 3.25rem; }
}

/* ===== 3) Layout primitives ===== */
.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.section {
  padding: var(--space-10) 0;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ===== 4) Components ===== */

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  color: var(--header-fg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* The header logo is an <img src="{{logo.src}}"> whose REAL file is injected by the CMS
   at upload — its aspect ratio is unknown at build time. HEIGHT is the primary driver
   (a generous --logo-height), so every logo renders at a consistent, prominent height
   regardless of ratio; --logo-max-width is a generous, viewport-relative safety cap that
   only clamps a very wide logo on small screens (it then scales down proportionally, never
   distorts). Never pin width AND height. Tune the dials per brand — never a per-page size. */
.site-logo img {
  height: auto;
  width: auto;
  max-height: var(--logo-height);
  max-width: min(var(--logo-max-width, 22rem), 55vw);
  object-fit: contain;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

.site-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* CMS-rendered menus — `{{menu.navigation}}` and `{{menu.footer}}` expand to
   <ul class="canvas-navigation-menu"> / <ul class="canvas-footer-menu"> with
   <li><a> children. Style the generated classes directly. */

.canvas-navigation-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.canvas-navigation-menu > li {
  margin: 0;
}

.canvas-navigation-menu a {
  color: var(--header-fg);
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.canvas-navigation-menu a:hover,
.canvas-navigation-menu a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.canvas-footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

/* Footers can carry many links. With 8+ items, flow them into responsive columns
   (auto-fill grid) instead of one long, sprawling wrapping row — multi-column on wide
   screens, collapsing toward a single column on mobile. Short footer menus keep the
   inline row above. Where :has() is unsupported it harmlessly stays the flex row. */
.canvas-footer-menu:has(> li:nth-child(8)) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
  align-items: start;
  gap: var(--space-2) var(--space-5);
}

.canvas-footer-menu > li {
  margin: 0;
}

.canvas-footer-menu a {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.canvas-footer-menu a:hover,
.canvas-footer-menu a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-text-soft);
  opacity: 0.6;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--btn-radius);
  min-height: 2.75rem;
  padding: 0.78rem 1.4rem;
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 3px; }

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--color-text) 16%, transparent);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-surface-soft) 75%, #fff);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--color-surface-soft) 65%, transparent);
}

/* Header CTAs follow the header foreground so they stay legible on a coloured band
   (no-op on the neutral default where --header-fg == --color-text). */
.site-header .btn-ghost {
  color: var(--header-fg);
  border-color: color-mix(in srgb, var(--header-fg) 20%, transparent);
}

.btn-sm {
  min-height: 2.2rem;
  padding: 0.55rem 1rem;
  font-size: 0.87rem;
}

.btn-lg {
  min-height: 3rem;
  padding: 0.9rem 1.7rem;
  font-size: 1.04rem;
}

.btn-block { width: 100%; }

.btn-icon {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  border-radius: 50%;
}

/* Card */
.card {
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  padding: var(--space-5);
}

.card-title {
  margin: 0 0 var(--space-2);
  font-size: 1.08rem;
}

.card-text {
  margin: 0;
  color: var(--color-text-soft);
}

/* Chip — pill-shaped tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--chip-radius);
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.chip-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Site footer */
.site-footer {
  padding: var(--space-10) 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

/* Member profile */
.profile-head {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-6);
}
.profile-avatar {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: var(--radius-pill);
  object-fit: cover;
}
.profile-id {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.profile-headline {
  font-size: 1.15rem;
  font-weight: 600;
}
.profile-bio {
  color: var(--color-text-soft);
  max-width: 60ch;
}
.profile-interests {
  margin-top: var(--space-3);
}

/* ---------------------------------------------------------------------------
   Native menu (hand-coded nav, CSS-only drawer)

   The brand chose native HTML menus. The toolkit's reference drawer uses an
   inline <script>, which gets a page rejected outright on a bulk ZIP import.
   This drawer is script-free: a visually hidden checkbox drives the open state
   through a sibling selector, so the page carries no custom JavaScript at all.
   --------------------------------------------------------------------------- */
.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  order: 3;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--header-fg);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle-input:focus-visible + .nav-toggle {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.nav-scrim {
  display: none;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav .nav-list a {
  color: var(--header-fg);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-nav .nav-list a:hover,
.site-nav .nav-list a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.site-nav .nav-list a.btn {
  border-bottom: 0;
}

.site-nav .nav-list a.btn:hover {
  color: #fff;
}

@media (max-width: 899px) {
  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 40;
    width: min(84vw, 20rem);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-12) var(--space-6) var(--space-8);
    overflow-y: auto;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }

  .site-nav .nav-list a {
    display: block;
    padding: var(--space-3) 0;
    font-size: 1.02rem;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  }

  .site-nav .nav-list a.btn {
    margin-top: var(--space-4);
    justify-content: center;
  }

  .nav-toggle-input:checked ~ .site-nav {
    transform: translateX(0);
  }

  .nav-toggle-input:checked ~ .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--color-text) 45%, transparent);
  }

  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

/* Footer legal row */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.footer-legal a {
  color: var(--color-text-soft);
  font-size: 0.84rem;
  transition: color var(--transition-fast);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav-list a {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
  color: var(--color-primary);
}

/* ---------------------------------------------------------------------------
   Editorial primitives
   --------------------------------------------------------------------------- */

/* Hero */
@media (min-width: 900px) {
  }

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
  max-width: 17ch;
}

.hero-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  line-height: 1.62;
  color: var(--color-text-soft);
  max-width: 52ch;
  margin: 0 0 var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* ---------------------------------------------------------------------------
   Full-bleed hero (homepage only)

   Traditional dating-landing treatment: the photograph fills the viewport below
   the sticky header, with the headline and primary CTA over it. The header stays
   a light band because the logo is full-colour on transparent and needs one.
   --------------------------------------------------------------------------- */
.hero-full {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 34rem;
  min-height: 74vh;
  min-height: 74svh;
  padding: var(--space-12) 0 var(--space-10);
}

.hero-full-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--color-text);
}

/* The hero is art-directed rather than one image scaled: a 2.4:1 band on wide
   screens and a 3:4 crop on phones, both cropped around the subjects at source.
   So object-position stays centred; the framing is already correct in the file. */
.hero-full-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Scrim. Mobile reads bottom-up, so the darkest part sits under the copy. */
.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-text) 92%, transparent) 0%,
    color-mix(in srgb, var(--color-text) 74%, transparent) 34%,
    color-mix(in srgb, var(--color-text) 34%, transparent) 68%,
    color-mix(in srgb, var(--color-text) 12%, transparent) 100%
  );
}

/* Sits inside .container, so it is left-aligned by default. It must NOT carry
   .container itself: that class sets margin-inline:auto, which would centre the
   copy over the subject's face on wide screens. */
.hero-full-inner {
  position: relative;
  max-width: 38rem;
  margin-inline: 0;
}

@media (min-width: 900px) {
  /* Keep the copy clear of the right-hand side of the photograph, where the
     faces sit. Roughly the left 45 percent of the container. */
  .hero-full-inner {
    max-width: min(34rem, 46%);
  }
}

@media (min-width: 1400px) {
  .hero-full-inner {
    max-width: min(36rem, 42%);
  }
}

.hero-full-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

.hero-full-lede {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.6;
  color: color-mix(in srgb, #fff 88%, transparent);
  max-width: 46ch;
  margin: 0 0 var(--space-6);
}

.eyebrow-light {
  color: #f3a790;
}

/* Outlined CTA that stays legible on the photograph. */
.btn-on-photo {
  background: color-mix(in srgb, #fff 14%, transparent);
  color: #fff;
  border: 1px solid color-mix(in srgb, #fff 55%, transparent);
  backdrop-filter: blur(6px);
}

.btn-on-photo:hover {
  background: color-mix(in srgb, #fff 24%, transparent);
  border-color: #fff;
}

@media (min-width: 900px) {
  .hero-full {
    align-items: center;
    min-height: 42rem;
    min-height: 84vh;
    min-height: 84svh;
    padding: var(--space-12) 0;
  }

  /* On wide screens the copy sits left, so the scrim runs left-to-right and the
     right-hand side of the photograph stays visible. */
  .hero-full::after {
    background:
      linear-gradient(to right,
        color-mix(in srgb, var(--color-text) 86%, transparent) 0%,
        color-mix(in srgb, var(--color-text) 66%, transparent) 38%,
        color-mix(in srgb, var(--color-text) 22%, transparent) 68%,
        transparent 100%),
      linear-gradient(to top,
        color-mix(in srgb, var(--color-text) 45%, transparent) 0%,
        transparent 42%);
  }
}

/* ---------------------------------------------------------------------------
   Split hero with a photograph (country, city, article and comparison pages)
   --------------------------------------------------------------------------- */
.page-hero-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 860px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--space-12);
  }
}

/* One fixed ratio for every page photo, so portrait and landscape sources sit
   in an identically shaped frame and the pages stay visually consistent. */
.page-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
  background: var(--color-surface-soft);
  max-width: 26rem;
  width: 100%;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

@media (max-width: 859px) {
  .page-hero-media {
    aspect-ratio: 3 / 2;
    max-width: none;
  }
}

/* ---------------------------------------------------------------------------
   Homepage photo strip
   --------------------------------------------------------------------------- */
.photo-strip {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 700px) {
  .photo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .photo-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.photo-strip figure {
  margin: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-surface-soft);
  box-shadow: var(--card-shadow);
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  transition: transform var(--transition-base);
}

.photo-strip figure:hover img { transform: scale(1.04); }

/* The first two run taller on wide screens so the strip is not a flat row. */
@media (min-width: 1000px) {
  .photo-strip figure:nth-child(2n) { margin-top: var(--space-6); }
}

/* Chip bar directly under the hero */
.hero-chipbar {
  background: var(--color-surface);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  padding: var(--space-5) 0;
}

.hero-chipbar .chip-row {
  justify-content: center;
}

.hero-chipbar-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin: 0 0 var(--space-3);
}

/* Eyebrow label above a heading */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}

/* Section heading block */
.section-head {
  max-width: 46rem;
  margin: 0 0 var(--space-8);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
}

.section-lede {
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--color-text-soft);
  margin: 0;
}

/* Long-form prose */
.prose {
  max-width: var(--measure);
  font-size: 1.04rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: var(--space-5);
}

.prose h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.prose h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.28;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose p {
  margin: 0;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: var(--space-2);
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover {
  color: var(--color-primary-dark);
}

.prose strong {
  color: var(--color-text);
  font-weight: 700;
}

.prose blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  border-left: 3px solid var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--color-text);
}

/* Pull-out note inside prose */
.callout {
  background: var(--color-surface-soft);
  border-radius: var(--card-radius);
  padding: var(--space-6);
  border: var(--card-border);
}

.callout-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

.callout p {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.65;
}

/* Card variants */
.card-feature .card-title {
  font-size: 1.16rem;
  margin-bottom: var(--space-3);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.card-list {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-list .card-text {
  flex: 1 1 auto;
}

/* Link card, used for country and city indexes */
.link-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--color-surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: var(--space-5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.link-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.link-card-meta {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.55;
}

.link-card-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
  padding-top: var(--space-3);
}

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--card-radius);
  border: var(--card-border);
  background: var(--color-surface);
  box-shadow: var(--card-shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  vertical-align: top;
  line-height: 1.55;
}

.compare-table thead th {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  background: var(--color-surface-soft);
  border-bottom: 2px solid color-mix(in srgb, var(--color-text) 12%, transparent);
}

.compare-table tbody th {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
  width: 30%;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table .col-ours {
  background: color-mix(in srgb, var(--color-primary-light) 45%, transparent);
}

/* FAQ accordion, native details element, no script */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: var(--measure);
}

.faq-item {
  background: var(--color-surface);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--color-primary) 32%, transparent);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
  flex: 0 0 auto;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-answer {
  margin: var(--space-3) 0 var(--space-2);
  color: var(--color-text-soft);
  line-height: 1.7;
  max-width: 64ch;
}

.faq-answer + .faq-answer {
  margin-top: var(--space-3);
}

/* Stat row */
.stat-row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.stat {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-4);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
}

.stat-label {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin-top: var(--space-1);
  line-height: 1.5;
}

/* Join band, the closing call to action on every page */
.join-band {
  background: var(--color-text);
  color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-6);
  text-align: center;
}

.join-band .section-title {
  color: var(--color-surface);
  margin-bottom: var(--space-4);
}

.join-band p {
  color: color-mix(in srgb, var(--color-surface) 78%, transparent);
  max-width: 48ch;
  margin: 0 auto var(--space-6);
  line-height: 1.65;
}

.join-band .btn-secondary {
  background: var(--color-surface);
  border-color: transparent;
  color: var(--color-text);
}

/* Pricing tier wordmark */
.tier-mark {
  margin: 0 0 var(--space-4);
}

.tier-mark img {
  height: 1.75rem;
  width: auto;
}

/* Small print, used for the stock imagery disclaimer */
.fine-print {
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--color-text-soft);
  max-width: 68ch;
  margin: 0;
}

/* Table of contents on long pages */
.toc {
  background: var(--color-surface-soft);
  border-radius: var(--card-radius);
  padding: var(--space-5) var(--space-6);
  max-width: var(--measure);
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 var(--space-3);
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.toc a {
  color: var(--color-text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Byline */
.byline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin: 0;
}

.byline-sep {
  opacity: 0.5;
}

/* Related content */
.related-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

/* ---------------------------------------------------------------------------
   Motion, subtle level. Entrance only, CSS driven, no script.
   The reduced-motion block in section 1 collapses all of it to zero.
   --------------------------------------------------------------------------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: rise-in var(--transition-slow) var(--easing-smooth) both;
}

.reveal-1 { animation-delay: 60ms; }
.reveal-2 { animation-delay: 140ms; }
.reveal-3 { animation-delay: 220ms; }
.reveal-4 { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ===== 5) Utilities ===== */
.text-center { text-align: center; }
.muted { color: var(--color-text-soft); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }

.section-lg { padding: var(--space-12) 0; }
.bg-soft { background: var(--color-surface-soft); }
.bg-surface { background: var(--color-surface); }
.measure { max-width: var(--measure); }
.gap-6 { gap: var(--space-6); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
