/* ==========================================================================
   LeashReport, sunny sidewalk design system
   Warm sand ground, sky blue ink work, tennis ball yellow markers.
   Display: Comfortaa. Body: Catamaran. Motif: dotted paw path.
   ========================================================================== */

:root {
  /* ---- brief palette ---- */
  --bg: #FDFAF3;
  --surface: #FFFFFF;
  --ink: #232016;
  --primary: #2E7FA6;
  --accent: #F2C94C;
  --muted: #6C6659;

  /* ---- derived sky blues ---- */
  --sky-50: #EFF6FA;
  --sky-100: #DCEBF3;
  --sky-200: #BCD9E7;
  --sky-300: #8FBFD4;
  --sky-600: #2A7599;
  --sky-700: #22617F;
  --sky-800: #1A4B62;
  --sky-900: #133648;

  /* ---- derived warm sands ---- */
  --sand-100: #FBF5E8;
  --sand-200: #F5EBD8;
  --sand-300: #EBDDC2;
  --sand-400: #DCCAA9;
  --sand-600: #A79576;

  /* ---- derived tennis ball ---- */
  --ball-100: #FDF3D2;
  --ball-200: #FAE7AB;
  --ball-400: #F2C94C;
  --ball-600: #C99F1F;
  --ball-800: #8A6C12;

  /* ---- support ---- */
  --grass: #55893F;
  --grass-soft: #E7F0DF;
  --brick: #C05A3E;
  --brick-soft: #FAE6E0;
  --line: #E7DFCE;
  --line-strong: #D8CCB2;

  /* ---- type scale, fluid ---- */
  --step--1: clamp(0.83rem, 0.80rem + 0.14vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.19rem, 1.12rem + 0.34vw, 1.42rem);
  --step-2:  clamp(1.42rem, 1.30rem + 0.58vw, 1.86rem);
  --step-3:  clamp(1.69rem, 1.48rem + 1.00vw, 2.44rem);
  --step-4:  clamp(2.01rem, 1.66rem + 1.68vw, 3.20rem);
  --step-5:  clamp(2.40rem, 1.83rem + 2.72vw, 4.20rem);

  /* ---- spacing ---- */
  --sp-1: 0.35rem;
  --sp-2: 0.6rem;
  --sp-3: 0.95rem;
  --sp-4: 1.4rem;
  --sp-5: 2rem;
  --sp-6: 2.9rem;
  --sp-7: 4.1rem;
  --sp-8: 5.6rem;
  --sp-9: 7.5rem;

  /* ---- radii, everything is rounded here ---- */
  --r-pill: 999px;
  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  /* ---- shadows, warm and soft ---- */
  --sh-1: 0 1px 2px rgba(35, 32, 22, 0.05), 0 3px 10px rgba(35, 32, 22, 0.05);
  --sh-2: 0 2px 6px rgba(35, 32, 22, 0.06), 0 14px 30px rgba(35, 32, 22, 0.08);
  --sh-3: 0 4px 10px rgba(35, 32, 22, 0.07), 0 26px 56px rgba(35, 32, 22, 0.11);
  --sh-ball: 0 10px 0 -4px var(--ball-200);

  --wrap: 1180px;
  --wrap-narrow: 800px;

  --font-display: "Comfortaa", "Trebuchet MS", "Verdana", sans-serif;
  --font-body: "Catamaran", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --ease-trot: cubic-bezier(0.22, 0.86, 0.32, 1);
}

/* ==========================================================================
   Reset and base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.2rem;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the sidewalk: faint slab joints running under the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(168, 150, 118, 0.11) 0 1px, transparent 1px 148px),
    radial-gradient(1200px 620px at 82% -8%, var(--sky-50) 0%, rgba(239, 246, 250, 0) 62%),
    radial-gradient(900px 460px at 6% 4%, var(--ball-100) 0%, rgba(253, 243, 210, 0) 58%);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 var(--sp-3);
  color: var(--ink);
}

h1 { font-size: var(--step-5); letter-spacing: -0.022em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--sp-3); }
p:last-child { margin-bottom: 0; }

a { color: var(--sky-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ball-800); }

strong { font-weight: 800; }

ul, ol { margin: 0 0 var(--sp-3); padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

hr {
  border: 0;
  height: 3px;
  margin: var(--sp-6) 0;
  background-image: radial-gradient(circle, var(--sand-400) 1.5px, transparent 1.6px);
  background-size: 12px 3px;
}

/* ==========================================================================
   Focus, skip link, screen reader helpers
   ========================================================================== */

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--sky-600);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.btn:focus-visible,
.pill:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  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;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: var(--r-pill);
  transition: top 0.2s var(--ease-trot);
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.4rem, var(--wrap-narrow)); margin-inline: auto; }

section { position: relative; }

.band { padding-block: var(--sp-8); }
.band-tight { padding-block: var(--sp-7); }

.band-sand { background: linear-gradient(180deg, var(--sand-100) 0%, var(--sand-200) 100%); }
.band-sky {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(165deg, var(--sky-700) 0%, var(--sky-900) 100%);
  color: var(--sand-100);
}
.band-sky h2, .band-sky h3, .band-sky h4 { color: #FFFFFF; }
.band-sky a { color: var(--ball-200); }

.lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 62ch;
}

.section-head { max-width: 66ch; margin-bottom: var(--sp-6); }
.section-head p { color: var(--muted); font-size: var(--step-1); margin-bottom: 0; }
.band-sky .section-head p { color: var(--sky-200); }

/* ==========================================================================
   Motif 1: the eyebrow pill, worn like a collar tag
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sky-800);
  background: var(--surface);
  border: 2px solid var(--sky-200);
  border-radius: var(--r-pill);
  padding: 0.36rem 0.95rem 0.36rem 0.5rem;
  margin-bottom: var(--sp-3);
  box-shadow: var(--sh-1);
}
.band-sky .eyebrow {
  color: var(--sky-900);
  background: var(--ball-400);
  border-color: var(--ball-600);
}

/* the little paw that sits inside every eyebrow */
.paw {
  position: relative;
  width: 15px;
  height: 13px;
  flex: none;
  border-radius: 62% 62% 52% 52%;
  background: var(--accent);
  margin-top: 7px;
}
.paw::before {
  content: "";
  position: absolute;
  top: -7px; left: -3px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 5.5px -3px 0 var(--accent), 11px -1.5px 0 var(--accent), 16px 2.5px 0 var(--accent);
}
.paw-ink, .paw-ink::before { background: var(--sky-800); }
.paw-ink::before { box-shadow: 5.5px -3px 0 var(--sky-800), 11px -1.5px 0 var(--sky-800), 16px 2.5px 0 var(--sky-800); }

/* ==========================================================================
   Motif 2: the dotted paw path
   ========================================================================== */

.pathline {
  height: 4px;
  background-image: radial-gradient(circle, var(--sand-400) 2px, transparent 2.2px);
  background-size: 16px 4px;
  background-repeat: repeat-x;
  border: 0;
  margin: 0;
}
.pathline-sky { background-image: radial-gradient(circle, var(--sky-300) 2px, transparent 2.2px); }

.route-svg { width: 100%; height: auto; overflow: visible; }
.route-svg .route-base {
  fill: none;
  stroke: var(--sky-100);
  stroke-width: 9;
  stroke-linecap: round;
}
.route-svg .route-dots {
  fill: none;
  stroke: var(--primary);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0.1 17;
  animation: trot 9s linear infinite;
}
@keyframes trot {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -170; }
}
.route-svg .route-pin { fill: var(--accent); stroke: var(--sky-800); stroke-width: 3; }

/* ==========================================================================
   Motif 3: the tennis ball, seams and all
   ========================================================================== */

.ball {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #F8DE8A 0%, var(--accent) 46%, var(--ball-600) 100%);
  pointer-events: none;
  z-index: 0;
}
.ball::before, .ball::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  clip-path: inset(0 62% 0 0);
}
.ball::after { clip-path: inset(0 0 0 62%); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.95rem 1.7rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease-trot), box-shadow 0.18s var(--ease-trot),
              background-color 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--sky-800);
  box-shadow: 0 5px 0 var(--sky-800);
}
.btn-primary:hover {
  background: var(--sky-600);
  color: #FFFFFF;
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--sky-800);
}
.btn-ball {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--ball-600);
  box-shadow: 0 5px 0 var(--ball-600);
}
.btn-ball:hover {
  background: #F7D96F;
  color: var(--ink);
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ball-600);
}
.btn-ghost {
  background: var(--surface);
  color: var(--sky-800);
  border-color: var(--sky-200);
  box-shadow: var(--sh-1);
}
.btn-ghost:hover { background: var(--sky-50); color: var(--sky-900); transform: translateY(-2px); }
.btn-sm { padding: 0.65rem 1.15rem; font-size: var(--step--1); }
.btn-wide { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-block: 0.85rem;
  background: rgba(253, 250, 243, 0.72);
  backdrop-filter: blur(9px);
  transition: box-shadow 0.25s ease, background-color 0.25s ease, padding 0.25s ease;
}
.site-header.is-stuck {
  background: rgba(253, 250, 243, 0.95);
  box-shadow: 0 1px 0 var(--line), 0 12px 26px rgba(35, 32, 22, 0.07);
  padding-block: 0.5rem;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  justify-content: space-between;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brandmark:hover { color: var(--sky-700); }
.brandmark svg { width: 38px; height: 38px; flex: none; }
.brandmark span b { color: var(--primary); font-weight: 700; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  border: 2px solid var(--sky-200);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav { display: flex; align-items: center; gap: 0.3rem; }
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.site-nav a:hover { background: var(--ball-200); color: var(--ink); }
.header-cta { flex: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-block: var(--sp-7) var(--sp-8); position: relative; overflow: hidden; }
.hero .ball-1 { width: 118px; height: 118px; right: -34px; top: 8%; opacity: 0.55; }
.hero .ball-2 { width: 56px; height: 56px; left: 4%; bottom: 14%; opacity: 0.4; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: var(--sp-7);
  align-items: center;
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 em {
  font-style: normal;
  padding-inline: 0.08em;
  background-image: linear-gradient(180deg,
    transparent 0 58%, var(--ball-200) 58% 95%, transparent 95%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-5); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.trust-strip li {
  list-style: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.95rem 0.4rem 0.55rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--sh-1);
}
.trust-strip svg { width: 18px; height: 18px; flex: none; color: var(--primary); }

/* hero photograph, framed like a collar tag with a route drawn over it */
.hero-photo { position: relative; }
.hero-photo .frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 5px solid var(--surface);
  box-shadow: var(--sh-3);
  transform: rotate(-1.4deg);
  background: var(--sand-300);
}
.hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-route {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -30px;
  z-index: 3;
}

.report-chip {
  position: absolute;
  right: -8px;
  bottom: 12%;
  z-index: 4;
  background: var(--surface);
  border: 2px solid var(--sky-200);
  border-radius: var(--r-lg);
  padding: 0.7rem 0.95rem;
  box-shadow: var(--sh-2);
  transform: rotate(2.2deg);
  max-width: 232px;
  animation: wag 5.5s ease-in-out infinite;
}
.report-chip strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.report-chip span { font-size: 0.8rem; color: var(--muted); line-height: 1.4; display: block; }
.report-chip .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grass);
  margin-right: 0.35rem;
}
@keyframes wag {
  0%, 100% { transform: rotate(2.2deg); }
  50% { transform: rotate(-1.6deg); }
}

/* ==========================================================================
   Problem cards, laid out in a zigzag along the sidewalk
   ========================================================================== */

.zig {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.zig .card { margin: 0; }
.zig .card:nth-child(odd) { transform: translateY(-14px); }
.zig .card:nth-child(even) { transform: translateY(14px); }

.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--sh-1);
  transition: transform 0.25s var(--ease-trot), box-shadow 0.25s var(--ease-trot),
              border-color 0.2s ease;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0.7rem; }
.card:hover { border-color: var(--sky-200); box-shadow: var(--sh-2); }
.zig .card:hover { transform: rotate(-1.2deg) translateY(-4px); }

.cost-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  background: var(--brick-soft);
  color: #8A3620;
  border-radius: var(--r-pill);
  padding: 0.3rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
}

/* ==========================================================================
   How it works, four steps strung on the paw path
   ========================================================================== */

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: var(--sp-7);
  align-items: start;
}
.steps { position: relative; padding-left: 4.4rem; }
.steps::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 4px;
  background-image: radial-gradient(circle, var(--sky-300) 2px, transparent 2.2px);
  background-size: 4px 15px;
}
.step { position: relative; margin-bottom: var(--sp-5); }
.step:last-child { margin-bottom: 0; }
.step-no {
  position: absolute;
  left: -4.4rem;
  top: -2px;
  width: 3.1rem; height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--sky-800);
  color: var(--sky-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 4px 0 var(--ball-600);
}
.step h3 { margin-bottom: 0.35rem; font-size: var(--step-1); }
.step p { color: var(--muted); margin-bottom: 0; }

.section-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 5px solid var(--surface);
  box-shadow: var(--sh-3);
  transform: rotate(1.6deg);
  position: relative;
}
.section-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-note {
  background: var(--sky-900);
  color: var(--sand-100);
  font-size: 0.86rem;
  padding: 0.7rem 1rem;
  line-height: 1.45;
}

/* ==========================================================================
   Features
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }

.feature {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  position: relative;
  transition: transform 0.25s var(--ease-trot), box-shadow 0.25s var(--ease-trot), border-color 0.2s ease;
}
.feature:hover {
  transform: rotate(-1deg) translateY(-5px);
  box-shadow: var(--sh-2);
  border-color: var(--sky-200);
}
.feature .well {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  background: var(--sky-50);
  border: 2px solid var(--sky-200);
  margin-bottom: var(--sp-3);
  transition: border-radius 0.4s var(--ease-trot), background-color 0.25s ease;
}
.feature:hover .well { border-radius: 54% 46% 48% 52% / 46% 54% 48% 52%; background: var(--ball-100); }
.feature .well svg { width: 30px; height: 30px; color: var(--sky-800); }
.feature h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.feature p { color: var(--muted); margin-bottom: 0; font-size: 0.96rem; }

/* ==========================================================================
   Outcomes
   ========================================================================== */

.outcome {
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.outcome .figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.3rem);
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
}
.outcome h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.outcome p { color: var(--sky-200); font-size: 0.95rem; margin-bottom: 0; }

/* ==========================================================================
   Social proof
   ========================================================================== */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.testimonial {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  margin: 0;
  position: relative;
  box-shadow: var(--sh-1);
  transition: transform 0.3s var(--ease-trot), box-shadow 0.3s var(--ease-trot);
}
.testimonial:nth-child(1) { transform: rotate(-1.1deg); }
.testimonial:nth-child(2) { transform: rotate(0.5deg); }
.testimonial:nth-child(3) { transform: rotate(1.3deg); }
.testimonial:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--sh-2); }
.testimonial::before {
  content: "";
  position: absolute;
  top: -13px; left: 26px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 2px 6px rgba(35, 32, 22, 0.16);
}
.testimonial p { font-size: 1.02rem; }
.testimonial footer {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 3px dotted var(--sand-300);
  font-size: 0.9rem;
  line-height: 1.45;
}
.testimonial cite { font-style: normal; font-family: var(--font-display); font-weight: 700; display: block; }
.testimonial .role { color: var(--muted); }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  background: var(--sky-50);
  border: 3px dashed var(--sky-200);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-4);
}
.metric { text-align: center; }
.metric b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  line-height: 1.05;
  color: var(--sky-800);
}
.metric span { font-size: 0.92rem; color: var(--muted); }

/* ==========================================================================
   Pricing, three collar tags on a hook
   ========================================================================== */

.tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: start; }
.tier {
  background: var(--surface);
  border: 3px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 3.4rem var(--sp-4) var(--sp-4);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-trot), box-shadow 0.25s var(--ease-trot);
}
.tier::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid var(--sand-400);
  background: var(--bg);
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.tier-featured {
  border-color: var(--primary);
  box-shadow: var(--sh-2);
  transform: scale(1.03);
}
.tier-featured:hover { transform: scale(1.03) translateY(-6px); }
.tier-featured::before { border-color: var(--primary); }
.ribbon {
  position: absolute;
  top: -17px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--accent);
  color: var(--sky-900);
  border: 2px solid var(--sky-800);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}
.tier h3 { font-size: var(--step-2); margin-bottom: 0.2rem; }
.tier .who { color: var(--muted); font-size: 0.92rem; min-height: 3rem; }
.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.9rem + 1.9vw, 3.1rem);
  line-height: 1;
  color: var(--sky-800);
  display: block;
  margin: var(--sp-3) 0 0.2rem;
}
.price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: var(--sp-4) 0; }
.tier li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 12px; height: 10px;
  border-radius: 62% 62% 52% 52%;
  background: var(--accent);
}
.tier li::after {
  content: "";
  position: absolute;
  left: 1px; top: 0.16em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 4.5px -2px 0 var(--accent), 9px 0 0 var(--accent);
}
.tier .btn { margin-top: auto; }
.billing-note {
  margin-top: var(--sp-5);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-list { border-top: 3px dotted var(--sand-300); }
.faq-item { border-bottom: 3px dotted var(--sand-300); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 1.15rem 0.3rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--r-md);
}
.faq-q:hover { color: var(--sky-700); }
.faq-icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--sky-200);
  background: var(--sky-50);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.3s var(--ease-trot), background-color 0.2s ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--sky-800);
  border-radius: 2px;
}
.faq-icon::before { width: 14px; height: 2.5px; }
.faq-icon::after { width: 2.5px; height: 14px; transition: opacity 0.2s ease; }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--accent); transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { opacity: 0; }
.faq-a { padding: 0 0.3rem 1.35rem; max-width: 78ch; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Contact form
   ========================================================================== */

.form-card {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--sh-3);
}
.field { margin-bottom: var(--sp-3); }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--sand-100);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 0.78rem 0.95rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.9rem;
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232E7FA6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sky-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--sky-100);
  outline: none;
}
.field [aria-invalid="true"] { border-color: var(--brick); background: var(--brick-soft); }
.err {
  display: none;
  color: #8A3620;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 0.3rem;
}
.err.is-shown { display: block; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--sky-50);
  border: 2px solid var(--sky-100);
  border-radius: var(--r-md);
  padding: 0.9rem 1rem;
  margin: var(--sp-4) 0 var(--sp-3);
}
.consent input { width: 22px; height: 22px; flex: none; margin-top: 3px; accent-color: var(--primary); }
.consent label { font-family: var(--font-body); font-weight: 500; font-size: 0.92rem; margin: 0; }

.form-aside {
  background: var(--sky-900);
  color: var(--sand-100);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  border: 3px solid var(--sky-800);
}
.form-aside h2 { color: #FFFFFF; }
.form-aside p { color: var(--sky-200); }
.form-aside ul { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.form-aside li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.8rem;
  color: var(--sand-100);
  font-size: 0.96rem;
}
.form-aside li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 12px; height: 10px;
  border-radius: 62% 62% 52% 52%;
  background: var(--accent);
}
.reassure { margin-top: var(--sp-4); font-size: 0.92rem; color: var(--muted); }

/* ==========================================================================
   Author byline block
   ========================================================================== */

.byline {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--sand-200);
  border: 3px dotted var(--sand-400);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-7);
}
.byline img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); }
.byline p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.byline strong { color: var(--ink); font-family: var(--font-display); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--sky-900);
  color: var(--sky-200);
  padding-block: var(--sp-8) var(--sp-4);
  margin-top: var(--sp-8);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background-image: radial-gradient(circle, var(--accent) 2.4px, transparent 2.6px);
  background-size: 20px 5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: var(--sp-5);
}
.site-footer h3 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--sky-200); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-brand .brandmark { color: #FFFFFF; }
.footer-brand .brandmark span b { color: var(--accent); }
.footer-brand p { font-size: 0.94rem; margin-top: var(--sp-3); max-width: 34ch; }
.socials { display: flex; gap: 0.5rem; margin-top: var(--sp-4); }
.socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.socials a:hover svg { color: var(--sky-900); }
.footer-base {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: 0.88rem;
}

/* ==========================================================================
   Interior pages
   ========================================================================== */

.page-head {
  padding-block: var(--sp-7) var(--sp-5);
  background: linear-gradient(180deg, var(--sand-100), rgba(251, 245, 232, 0));
  border-bottom: 4px dotted var(--sand-300);
}
.page-head p { color: var(--muted); font-size: var(--step-1); max-width: 62ch; margin-bottom: 0; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: var(--sp-3); }
.crumbs a { color: var(--sky-700); }

.prose { padding-block: var(--sp-6) var(--sp-7); }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-6); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-5); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3A3629; }
.prose dl { margin: 0 0 var(--sp-4); }
.prose dt { font-family: var(--font-display); font-weight: 700; margin-top: var(--sp-3); }
.prose dd { margin: 0.2rem 0 0; color: var(--muted); }

.fact-box {
  background: var(--surface);
  border: 3px solid var(--sky-100);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-4) 0;
  box-shadow: var(--sh-1);
}
.fact-box dl { display: grid; grid-template-columns: 15rem 1fr; gap: 0.5rem 1rem; margin: 0; }
.fact-box dt { margin: 0; }
.fact-box dd { margin: 0; }

.author-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--sp-6); align-items: start; }
.author-card {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  box-shadow: var(--sh-2);
  text-align: center;
  position: sticky;
  top: 6.5rem;
}
.author-card img { border-radius: var(--r-lg); width: 100%; height: auto; margin-bottom: var(--sp-3); }
.author-card .who { font-size: 0.9rem; color: var(--muted); }
.profile-links { list-style: none; padding: 0; margin: var(--sp-3) 0 0; text-align: left; }
.profile-links li { margin-bottom: 0.45rem; }
.profile-links a { font-weight: 600; font-size: 0.92rem; }

.map-group {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
}
.map-group h2 { margin-top: 0; font-size: var(--step-2); }
.map-group ul { list-style: none; padding: 0; margin: 0; }
.map-group li { padding: 0.6rem 0; border-bottom: 2px dotted var(--sand-300); }
.map-group li:last-child { border-bottom: 0; }
.map-group a { font-family: var(--font-display); font-weight: 700; }
.map-group span { display: block; color: var(--muted); font-size: 0.92rem; }

.notice-page { text-align: center; padding-block: var(--sp-9) var(--sp-8); }
.notice-page .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 2rem + 12vw, 8rem);
  line-height: 0.9;
  color: var(--sky-800);
  margin-bottom: var(--sp-3);
}
.notice-page .actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-5); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-trot), transform 0.6s var(--ease-trot);
}
.reveal.d1.is-in { transition-delay: 0.08s; }
.reveal.d2.is-in { transition-delay: 0.16s; }
.reveal.d3.is-in { transition-delay: 0.24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .zig { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero-grid, .steps-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
  .grid-3, .quotes, .tags { grid-template-columns: 1fr; }
  .tier-featured { transform: none; }
  .tier-featured:hover { transform: translateY(-6px); }
  .author-layout { grid-template-columns: 1fr; }
  .author-card { position: static; }
  .hero-photo .frame, .section-photo { transform: none; }

  .nav-toggle { display: inline-grid; }
  .site-nav {
    display: none;
    position: absolute;
    left: 1.2rem; right: 1.2rem;
    top: calc(100% + 0.4rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--surface);
    border: 3px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-3);
    box-shadow: var(--sh-3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.75rem 0.9rem; font-size: 1.02rem; }
  .header-cta { display: none; }
  .site-nav .nav-cta { display: inline-flex; }
}

@media (min-width: 961px) {
  .site-nav .nav-cta { display: none; }
}

@media (max-width: 720px) {
  .band { padding-block: var(--sp-7); }
  .zig, .grid-2, .metric-strip, .fact-box dl { grid-template-columns: 1fr; }
  .zig .card:nth-child(odd), .zig .card:nth-child(even) { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card, .form-aside { padding: var(--sp-5) var(--sp-4); }
  .steps { padding-left: 3.6rem; }
  .step-no { left: -3.6rem; width: 2.6rem; height: 2.6rem; font-size: 1rem; }
  .steps::before { left: 1.2rem; }
  .report-chip {
    position: static;
    max-width: none;
    margin-top: var(--sp-3);
    transform: none;
    animation: none;
  }
  .hero-route { position: static; margin-top: var(--sp-3); }
  .hero .ball-1 { width: 74px; height: 74px; }
}

@media (max-width: 420px) {
  .btn { width: 100%; }
  .hero-actions { gap: 0.7rem; }
  .testimonial:nth-child(1), .testimonial:nth-child(2), .testimonial:nth-child(3) { transform: none; }
}

/* ==========================================================================
   Reduced motion, everything settles down
   ========================================================================== */

@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .report-chip { animation: none; }
  .route-svg .route-dots { animation: none; stroke-dasharray: 0.1 17; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .form-card { display: none; }
  body { background: #FFFFFF; }
}

/* ==========================================================================
   The Midday Route, the magazine
   Same sand, sky and tennis ball tokens as the rest of the site. The cards
   sit on the sidewalk like collar tags and keep the wagging tilt on hover.
   ========================================================================== */

/* ---- shared: breadcrumb trail, dotted like the paw path ---- */

.mag-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  margin: 0;
  padding: 0;
}
.mag-crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 0.55rem; }
.mag-crumbs li + li::before {
  content: "";
  width: 14px;
  height: 4px;
  flex: none;
  background-image: radial-gradient(circle, var(--sand-400) 2px, transparent 2.2px);
  background-size: 7px 4px;
}
.mag-crumbs li:last-child span { color: var(--muted); }

/* ==========================================================================
   Magazine index: masthead
   ========================================================================== */

.mag-masthead {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-7) var(--sp-6);
  background: linear-gradient(180deg, var(--sand-100) 0%, rgba(251, 245, 232, 0) 100%);
}
.mag-masthead-ball {
  width: 128px;
  height: 128px;
  right: -38px;
  top: 14%;
  opacity: 0.5;
}
.mag-masthead h1 {
  margin-bottom: var(--sp-3);
  max-width: 16ch;
}
.mag-masthead .mag-standfirst { max-width: 60ch; }
.mag-masthead-path { margin-top: var(--sp-6); }

.mag-standfirst {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}

.mag-masthead-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.mag-masthead-facts li {
  margin: 0;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.4rem 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--sh-1);
}

/* ==========================================================================
   Magazine index: the card grid
   ========================================================================== */

.mag-index { padding-block: var(--sp-6) var(--sp-8); }

.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5) var(--sp-4);
  align-items: start;
}

.mag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform 0.25s var(--ease-trot), box-shadow 0.25s var(--ease-trot),
              border-color 0.2s ease;
}
.mag-card:hover {
  transform: rotate(-1deg) translateY(-5px);
  box-shadow: var(--sh-2);
  border-color: var(--sky-200);
}
.mag-card:focus-within {
  border-color: var(--sky-300);
  box-shadow: var(--sh-2);
}

.mag-card-shot {
  position: relative;
  background: var(--sand-300);
  border-bottom: 2px solid var(--line);
}
.mag-card-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.mag-card-tag {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: var(--accent);
  color: var(--sky-900);
  border: 2px solid var(--ball-600);
  border-radius: var(--r-pill);
  padding: 0.22rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--sh-1);
}

.mag-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: var(--sp-4);
}
.mag-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}
.mag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ball-400);
  flex: none;
}
.mag-card-title {
  font-size: var(--step-1);
  line-height: 1.2;
  margin: 0;
}
.mag-card-title a {
  color: var(--ink);
  text-decoration: none;
}
.mag-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
}
.mag-card:hover .mag-card-title a { color: var(--sky-700); }
.mag-card-dek {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}
.mag-card-more {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--sky-700);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.mag-arrow {
  width: 22px;
  height: 4px;
  background-image: radial-gradient(circle, var(--sky-300) 2px, transparent 2.2px);
  background-size: 7px 4px;
  transition: width 0.25s var(--ease-trot);
}
.mag-card:hover .mag-arrow { width: 34px; }

/* the lead card runs the full width and reads like a cover story */
.mag-card.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  border-width: 3px;
  border-color: var(--sky-200);
  box-shadow: var(--sh-2);
}
.mag-card.lead:hover { transform: translateY(-5px); }
.mag-card.lead .mag-card-shot {
  flex: 0 0 52%;
  border-bottom: 0;
  border-right: 2px solid var(--line);
}
.mag-card.lead .mag-card-shot img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-text {
  justify-content: center;
  gap: 0.7rem;
  padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-5);
}
.mag-card.lead .mag-card-title { font-size: var(--step-3); }
.mag-card.lead .mag-card-dek { font-size: var(--step-0); }
.mag-card.lead .mag-card-tag {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--sky-800);
}

.mag-index-cta-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: var(--sp-6);
  align-items: center;
}
.mag-index-cta-inner p { color: var(--sky-200); margin-bottom: 0; max-width: 62ch; }
.mag-index-cta-actions { display: flex; flex-direction: column; gap: var(--sp-3); }
.mag-index-cta-actions .btn { width: 100%; text-align: center; }

/* ==========================================================================
   Article page: topline, head, byline
   ========================================================================== */

.mag-topline { padding-block: var(--sp-5) 0; }

.mag-article-head {
  padding-block: var(--sp-4) var(--sp-5);
  background: linear-gradient(180deg, rgba(251, 245, 232, 0) 0%, var(--sand-100) 100%);
}
.mag-article-head h1 {
  font-size: var(--step-4);
  margin-bottom: var(--sp-3);
}
.mag-article-head .mag-standfirst {
  font-size: var(--step-1);
  color: #4A463A;
  max-width: 60ch;
  margin-bottom: var(--sp-4);
}

.mag-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 3px dotted var(--sand-400);
}
.mag-by {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--ball-200);
  border-radius: var(--r-pill);
  padding: 0.35rem 1rem;
  border: 2px solid var(--ball-400);
}
.mag-by:hover { background: var(--accent); color: var(--ink); }
.mag-byline-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  color: var(--muted);
}
.mag-byline-meta li { margin: 0; display: inline-flex; align-items: center; gap: 0.4rem; }
.mag-byline-meta li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky-300);
  flex: none;
}

/* ---- the featured photograph, framed like the hero shot ---- */

.mag-figure { margin: var(--sp-5) 0 var(--sp-6); }
.mag-figure-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 5px solid var(--surface);
  box-shadow: var(--sh-3);
  background: var(--sand-300);
  transform: rotate(-0.8deg);
}
.mag-figure-frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-figure figcaption {
  margin: var(--sp-4) auto 0;
  max-width: 66ch;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   Article body: the reading measure
   ========================================================================== */

.mag-body {
  max-width: 68ch;
  margin-inline: auto;
  font-size: var(--step-0);
  line-height: 1.78;
  color: #3A3629;
}
.mag-body > h2 {
  font-size: var(--step-2);
  line-height: 1.18;
  margin: var(--sp-6) 0 var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 4px dotted var(--sand-300);
  color: var(--ink);
}
.mag-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.mag-body > h3 {
  font-size: var(--step-1);
  margin: var(--sp-5) 0 var(--sp-2);
  color: var(--sky-800);
}
.mag-body p { margin: 0 0 var(--sp-4); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--sp-4); padding-left: 1.35rem; }
.mag-body li { margin-bottom: 0.55rem; }
.mag-body li::marker { color: var(--primary); font-weight: 800; }
.mag-body strong { color: var(--ink); }
.mag-body a { color: var(--sky-700); text-decoration-thickness: 2px; }
.mag-body a:hover { color: var(--ball-800); }

.mag-body blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--sky-50);
  border: 2px solid var(--sky-100);
  border-left: 7px solid var(--primary);
  border-radius: var(--r-md);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--sky-900);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }

.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-5) 0;
  font-size: 0.95rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.mag-body th, .mag-body td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.mag-body thead th {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--sand-200);
  color: var(--ink);
}
.mag-body tbody tr:nth-child(even) { background: var(--sand-100); }
.mag-body tbody tr:last-child td { border-bottom: 0; }

/* ---- the contextual read on, a collar tag dropped into the column ---- */

.inline-read {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: var(--sp-5) 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--ball-100);
  border: 2px solid var(--ball-200);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--sky-900);
}
.inline-read::before {
  content: "";
  width: 15px;
  height: 13px;
  flex: none;
  margin-top: 0.55rem;
  border-radius: 62% 62% 52% 52%;
  background: var(--ball-600);
  box-shadow: -3px -7px 0 -1.5px var(--ball-600), 2.5px -10px 0 -1.4px var(--ball-600),
              8px -8.5px 0 -1.5px var(--ball-600), 13px -5px 0 -1.8px var(--ball-600);
}
.inline-read a { color: var(--sky-800); text-decoration-thickness: 2px; }
.inline-read a:hover { color: var(--ball-800); }

/* ==========================================================================
   Article call to action
   ========================================================================== */

.mag-cta {
  position: relative;
  overflow: hidden;
  max-width: 68ch;
  margin: var(--sp-7) auto 0;
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
  background:
    radial-gradient(620px 260px at 12% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(165deg, var(--sky-700) 0%, var(--sky-900) 100%);
  border: 3px solid var(--sky-800);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
  color: var(--sand-100);
}
.mag-cta-ball {
  position: absolute;
  right: -30px;
  top: -26px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #F8DE8A 0%, var(--accent) 46%, var(--ball-600) 100%);
  opacity: 0.9;
  pointer-events: none;
}
.mag-cta-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ball-200);
  margin-bottom: var(--sp-2);
}
.mag-cta h2 {
  font-size: var(--step-2);
  color: #FFFFFF;
  margin-bottom: var(--sp-3);
  max-width: 22ch;
  position: relative;
}
.mag-cta p {
  color: var(--sky-200);
  margin-bottom: var(--sp-4);
  max-width: 56ch;
}
.mag-cta .btn { position: relative; }

/* ==========================================================================
   Author box
   ========================================================================== */

.mag-author {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  max-width: 68ch;
  margin: var(--sp-6) auto var(--sp-7);
  padding: var(--sp-4) var(--sp-5);
  background: var(--sand-200);
  border: 3px dotted var(--sand-400);
  border-radius: var(--r-xl);
}
.mag-author img {
  width: 92px;
  height: 92px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: var(--sh-1);
}
.mag-author-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.mag-author-text p { font-size: 0.96rem; line-height: 1.65; color: var(--muted); margin-bottom: 0.6rem; }
.mag-author-link { margin-bottom: 0; }
.mag-author-link a { font-family: var(--font-display); font-weight: 700; }

/* ==========================================================================
   Read also
   ========================================================================== */

.mag-related {
  padding-block: var(--sp-6) var(--sp-7);
  background: linear-gradient(180deg, var(--sand-100) 0%, var(--sand-200) 100%);
  border-top: 4px dotted var(--sand-300);
}
.mag-related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.mag-related-head h2 { font-size: var(--step-2); margin: 0; }
.mag-related-all {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.mag-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.mag-rel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--sh-1);
  transition: transform 0.25s var(--ease-trot), box-shadow 0.25s var(--ease-trot),
              border-color 0.2s ease;
}
.mag-rel:hover {
  transform: rotate(-1.1deg) translateY(-5px);
  box-shadow: var(--sh-2);
  border-color: var(--sky-200);
  color: var(--ink);
}
.mag-rel-shot { display: block; background: var(--sand-300); border-bottom: 2px solid var(--line); }
.mag-rel-shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-text { display: block; padding: var(--sp-4); }
.mag-rel-date {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.mag-rel-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}
.mag-rel:hover .mag-rel-title { color: var(--sky-700); }
.mag-rel-dek {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ==========================================================================
   Home page magazine strip
   ========================================================================== */

.mag-home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.mag-home-head .section-head { margin-bottom: 0; }
.mag-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.mag-home-grid .mag-card:nth-child(even) { transform: translateY(14px); }
.mag-home-grid .mag-card:nth-child(even):hover { transform: rotate(-1deg) translateY(9px); }
.mag-home-foot { margin-top: var(--sp-6); text-align: center; }

/* ==========================================================================
   Author page and site map magazine lists
   ========================================================================== */

.mag-list { list-style: none; padding: 0; margin: 0; }
.mag-list li {
  padding: 0.7rem 0;
  border-bottom: 2px dotted var(--sand-300);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
}
.mag-list li:last-child { border-bottom: 0; }
.mag-list a { font-family: var(--font-display); font-weight: 700; }
.mag-list time { font-size: 0.88rem; color: var(--muted); white-space: nowrap; }

/* ==========================================================================
   Magazine responsive, down to a 360 pixel sidewalk
   ========================================================================== */

@media (min-width: 961px) and (max-width: 1180px) {
  .site-nav a { padding-inline: 0.6rem; font-size: 0.9rem; }
}

@media (max-width: 960px) {
  .mag-grid, .mag-home-grid, .mag-related-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-shot {
    flex: none;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }
  .mag-card.lead .mag-card-shot img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-index-cta-inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .mag-home-grid .mag-card:nth-child(even) { transform: none; }
  .mag-home-grid .mag-card:nth-child(even):hover { transform: rotate(-1deg) translateY(-5px); }
  .mag-figure-frame { transform: none; }
}

@media (max-width: 720px) {
  .mag-grid, .mag-home-grid, .mag-related-grid { grid-template-columns: 1fr; }
  .mag-masthead { padding-block: var(--sp-6) var(--sp-5); }
  .mag-masthead h1 { max-width: none; }
  .mag-article-head h1 { font-size: var(--step-3); }
  .mag-related { padding-block: var(--sp-5) var(--sp-6); }
  .mag-author { flex-direction: column; align-items: center; text-align: center; }
  .mag-author-text p { text-align: left; }
}

@media (max-width: 420px) {
  .mag-card-text, .mag-rel-text { padding: var(--sp-3); }
  .mag-cta, .mag-author { padding-inline: var(--sp-4); border-radius: var(--r-lg); }
  .mag-cta h2 { max-width: none; }
  .mag-figure-frame { border-width: 4px; border-radius: var(--r-lg); }
  .mag-body blockquote { padding: var(--sp-3) var(--sp-4); font-size: var(--step-0); }
  .mag-body table { display: block; overflow-x: auto; }
  .mag-masthead-facts li { width: 100%; }
  .mag-byline { gap: 0.6rem; }
  .mag-related-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .mag-card:hover, .mag-rel:hover, .mag-home-grid .mag-card:nth-child(even):hover { transform: none; }
  .mag-arrow, .mag-card:hover .mag-arrow { transition: none; }
}

/* the magazine rack on the home page, a sky wash between the questions and the form */
.mag-home {
  background: linear-gradient(180deg, var(--sky-50) 0%, rgba(239, 246, 250, 0) 78%);
  border-top: 4px dotted var(--sky-200);
}
.mag-home .section-head { max-width: 62ch; }



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
