/* RetreatSeats: coastal calm design system. Shell white, sea glass, deep ocean blue. */

:root {
  --bg: #F7FAFA;
  --surface: #FFFFFF;
  --ink: #1A2226;
  --primary: #26596B;
  --accent: #A9D2CB;
  --muted: #5D6A70;

  --primary-rgb: 38, 89, 107;
  --accent-rgb: 169, 210, 203;
  --ink-rgb: 26, 34, 38;

  --tint-1: rgba(var(--primary-rgb), 0.04);
  --tint-2: rgba(var(--primary-rgb), 0.08);
  --tint-3: rgba(var(--primary-rgb), 0.14);
  --glass: rgba(var(--accent-rgb), 0.32);
  --glass-soft: rgba(var(--accent-rgb), 0.16);
  --line: rgba(var(--ink-rgb), 0.12);
  --line-strong: rgba(var(--ink-rgb), 0.22);

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;

  --r-sm: 4px; --r-md: 10px; --r-lg: 20px; --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(var(--ink-rgb), 0.05);
  --shadow-2: 0 10px 30px rgba(var(--ink-rgb), 0.07);
  --shadow-3: 0 24px 60px rgba(var(--ink-rgb), 0.10);

  --display: "Forum", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-xs: 0.78rem; --t-sm: 0.9rem; --t-base: 1.02rem; --t-lg: 1.18rem;
  --t-xl: 1.5rem; --t-2xl: 2rem; --t-3xl: 2.6rem; --t-4xl: 3.4rem; --t-5xl: 4.2rem;

  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: #F7FAFA;
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(var(--accent-rgb), 0.30), rgba(var(--accent-rgb), 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 30%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.14; letter-spacing: 0.005em; margin: 0 0 var(--s4); }
h1 { font-size: clamp(2.3rem, 5.4vw, var(--t-5xl)); }
h2 { font-size: clamp(1.9rem, 3.6vw, var(--t-3xl)); }
h3 { font-size: var(--t-xl); }
p { margin: 0 0 var(--s4); }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 var(--s4); padding-left: 1.1rem; }
li { margin-bottom: var(--s2); }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.wrap-narrow { max-width: 780px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.skip-link {
  position: absolute; left: var(--s4); top: -4rem; z-index: 200;
  background: var(--surface); color: var(--primary); font-weight: 700;
  padding: var(--s3) var(--s5); border: 1px solid var(--primary); border-radius: var(--r-pill);
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--s4); }

/* ---------- horizon rule motif ---------- */
.horizon {
  height: 1px; border: 0; margin: 0;
  background-image: linear-gradient(90deg,
    rgba(var(--ink-rgb), 0) 0%,
    rgba(var(--primary-rgb), 0.30) 18%,
    rgba(var(--primary-rgb), 0.30) 82%,
    rgba(var(--ink-rgb), 0) 100%);
}
.eyebrow {
  font-family: var(--body);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 var(--s3); display: flex; align-items: center; gap: var(--s3);
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background-image: linear-gradient(90deg, rgba(var(--primary-rgb), 0.35), rgba(var(--primary-rgb), 0)); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.header-inner { display: flex; align-items: center; gap: var(--s5); min-height: 74px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--display); font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.wordmark svg { width: 30px; height: 30px; flex: none; }
.wordmark b { font-weight: 400; }
.wordmark span { color: var(--primary); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 700; letter-spacing: 0.03em; padding: var(--s2) 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: rgba(var(--primary-rgb), 0.9); transition: right 0.35s ease; }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }

.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); width: 44px; height: 40px; margin-left: auto; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: rgba(var(--ink-rgb), 0.85); margin: 4px auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--body); font-weight: 700; font-size: var(--t-sm); letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem; border-radius: var(--r-pill); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-primary { background-color: rgba(var(--primary-rgb), 1); color: #FFFFFF; box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.24); }
.btn-primary:hover { background-color: rgba(var(--primary-rgb), 0.88); transform: translateY(-1px); }
.btn-ghost { background-color: rgba(255, 255, 255, 0.7); color: var(--primary); border-color: rgba(var(--primary-rgb), 0.35); }
.btn-ghost:hover { background-color: var(--glass-soft); }
.btn-lg { padding: 1rem 2rem; font-size: var(--t-base); }
.header-cta { flex: none; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding: var(--s9) 0; position: relative; }
.section-tint { background-image: linear-gradient(180deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.04) 55%, rgba(255, 255, 255, 0) 100%); }
.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head p { color: var(--muted); font-size: var(--t-lg); margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding: var(--s8) 0 var(--s7); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(180deg, rgba(var(--primary-rgb), 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 84px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: var(--s8); align-items: center; position: relative; }
.hero h1 { margin-bottom: var(--s5); }
.hero .lede { font-size: var(--t-lg); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin: var(--s6) 0 var(--s6); }

.trust-strip { list-style: none; margin: 0; padding: var(--s5) 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.trust-strip li { margin: 0; font-size: var(--t-sm); color: var(--muted); display: flex; gap: var(--s2); align-items: flex-start; }
.trust-strip svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.trust-strip b { display: block; color: var(--ink); font-size: var(--t-base); font-family: var(--display); font-weight: 400; }

.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--r-lg) var(--r-lg) 140px var(--r-lg); box-shadow: var(--shadow-3); }
.hero-figure::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 62%; height: 58%;
  border: 1px solid rgba(var(--primary-rgb), 0.28); border-radius: 0 0 140px 0; z-index: -1;
}
.figure-note {
  position: absolute; left: -20px; bottom: 28px;
  background-color: rgba(255, 255, 255, 0.94); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s3) var(--s4); box-shadow: var(--shadow-2);
  font-size: var(--t-xs); color: var(--muted); max-width: 220px;
}
.figure-note b { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--primary); font-weight: 400; }

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

.card {
  background-color: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s6); box-shadow: var(--shadow-1); position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: rgba(var(--primary-rgb), 0.28); }
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--muted); margin-bottom: 0; font-size: var(--t-sm); }
.card .cost { display: inline-block; margin-top: var(--s4); font-family: var(--display); font-size: 1.05rem; color: var(--primary); border-top: 1px solid rgba(var(--primary-rgb), 0.25); padding-top: var(--s3); }

.icon-wrap { width: 46px; height: 46px; border-radius: var(--r-pill); background-color: var(--glass-soft); display: grid; place-items: center; margin-bottom: var(--s4); }
.icon-wrap svg { width: 24px; height: 24px; }
svg.line-icon { fill: none; stroke: #26596B; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--s5); }
.step { position: relative; padding-left: 4.2rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px; font-family: var(--display); font-size: 1.9rem;
  color: var(--primary); width: 3rem; border-bottom: 1px solid rgba(var(--primary-rgb), 0.3); padding-bottom: var(--s2);
}
.step h3 { margin-bottom: var(--s2); }
.step p { color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.split img { border-radius: var(--r-lg) 140px var(--r-lg) var(--r-lg); box-shadow: var(--shadow-2); }

/* ---------- bed map motif ---------- */
.bedmap { border: 1px solid var(--line); border-radius: var(--r-md); background-color: #FFFFFF; padding: var(--s5); box-shadow: var(--shadow-2); }
.bedmap-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px dashed var(--line); font-size: var(--t-sm); }
.bedmap-row:last-child { border-bottom: 0; }
.bedmap-row span.room { width: 8.5rem; color: var(--muted); flex: none; }
.beds { display: flex; gap: 6px; flex-wrap: wrap; }
.bed { width: 22px; height: 14px; border-radius: 3px; border: 1px solid rgba(var(--primary-rgb), 0.35); background-color: rgba(255, 255, 255, 1); }
.bed.filled { background-color: rgba(var(--primary-rgb), 0.75); border-color: rgba(var(--primary-rgb), 0.75); }
.reveal .bed.filled { opacity: 0; transform: translateY(4px); }
.reveal.is-visible .bed.filled { animation: bedfill 0.5s ease forwards; }
.bedmap-row:nth-child(1) .bed.filled { animation-delay: 0.05s; }
.bedmap-row:nth-child(2) .bed.filled { animation-delay: 0.35s; }
.bedmap-row:nth-child(3) .bed.filled { animation-delay: 0.65s; }
.bedmap-row:nth-child(4) .bed.filled { animation-delay: 0.95s; }
@keyframes bedfill { to { opacity: 1; transform: none; } }
.bedmap-legend { font-size: var(--t-xs); color: var(--muted); margin: var(--s4) 0 0; }

/* ---------- outcomes ---------- */
.outcome { border-top: 2px solid rgba(var(--primary-rgb), 0.35); padding-top: var(--s4); }
.outcome .figure { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--primary); display: block; margin-bottom: var(--s3); }
.outcome h3 { font-size: var(--t-lg); }
.outcome p { color: var(--muted); font-size: var(--t-sm); margin: 0; }

/* ---------- testimonials ---------- */
.testimonial { background-color: #FFFFFF; border: 1px solid var(--line); border-left: 3px solid rgba(var(--primary-rgb), 0.55); border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--s6); margin: 0; box-shadow: var(--shadow-1); }
.testimonial p { font-family: var(--display); font-size: 1.24rem; line-height: 1.45; margin-bottom: var(--s5); }
.testimonial footer { font-size: var(--t-xs); color: var(--muted); line-height: 1.6; }
.testimonial footer b { display: block; color: var(--ink); font-size: var(--t-sm); }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s7); padding: var(--s6); border: 1px solid rgba(var(--primary-rgb), 0.25); border-radius: var(--r-md); background-image: linear-gradient(180deg, rgba(var(--accent-rgb), 0.22), rgba(255, 255, 255, 0.6)); text-align: center; }
.results div b { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--primary); line-height: 1.1; }
.results div span { font-size: var(--t-xs); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); align-items: start; }
.tier { background-color: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s6); box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.tier.featured { border-color: rgba(var(--primary-rgb), 0.55); box-shadow: var(--shadow-2); position: relative; }
.tier.featured::before { content: "Recommended"; position: absolute; top: -13px; left: var(--s6); background-color: rgba(var(--primary-rgb), 1); color: #FFFFFF; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); }
.tier h3 { margin-bottom: var(--s2); }
.tier .price { font-family: var(--display); font-size: 2.9rem; color: var(--ink); line-height: 1; }
.tier .per { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s5); display: block; }
.tier ul { list-style: none; padding: 0; margin: 0 0 var(--s6); border-top: 1px solid var(--line); padding-top: var(--s5); }
.tier li { font-size: var(--t-sm); padding-left: 1.6rem; position: relative; color: var(--muted); }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 6px; border-left: 1.5px solid rgba(var(--primary-rgb), 0.9); border-bottom: 1.5px solid rgba(var(--primary-rgb), 0.9); transform: rotate(-45deg); }
.tier .btn { margin-top: auto; }
.billing-note { text-align: center; color: var(--muted); font-size: var(--t-sm); margin-top: var(--s6); }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: var(--s5) 3rem var(--s5) 0; font-family: var(--display); font-size: var(--t-lg); color: var(--ink); cursor: pointer; position: relative; }
.faq-q::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid rgba(var(--primary-rgb), 0.9); border-bottom: 1.5px solid rgba(var(--primary-rgb), 0.9); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s ease; }
.faq-q[aria-expanded="true"]::after { transform: translateY(-25%) rotate(-135deg); }
.faq-a { padding: 0 var(--s6) var(--s5) 0; color: var(--muted); font-size: var(--t-sm); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ---------- form ---------- */
.contact-shell { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s8); align-items: start; }
.form-card { background-color: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s7); box-shadow: var(--shadow-2); }
.field { margin-bottom: var(--s5); }
.field label { display: block; font-size: var(--t-sm); font-weight: 700; margin-bottom: var(--s2); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: var(--t-base); color: var(--ink);
  background-color: rgba(255, 255, 255, 1); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(var(--primary-rgb), 0.8); outline: none; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.16); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.error { color: #8A2F27; font-size: var(--t-xs); margin: var(--s2) 0 0; }
.consent { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--t-sm); margin-bottom: var(--s5); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.form-note { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s4); }
.contact-aside ul { list-style: none; padding: 0; }
.contact-aside li { border-bottom: 1px solid var(--line); padding-bottom: var(--s3); font-size: var(--t-sm); color: var(--muted); }

/* ---------- byline ---------- */
.byline { display: flex; gap: var(--s4); align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s5) 0; margin-top: var(--s8); font-size: var(--t-sm); color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(var(--accent-rgb), 0.24)); border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s5); margin-top: var(--s8); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s6); }
.site-footer h2 { font-size: var(--t-sm); font-family: var(--body); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--s4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s3); }
.site-footer a { color: var(--ink); text-decoration: none; font-size: var(--t-sm); }
.site-footer a:hover { text-decoration: underline; }
.footer-brand p { font-size: var(--t-sm); color: var(--muted); max-width: 30ch; }
.socials { display: flex; gap: var(--s3); margin-top: var(--s4); }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); display: grid; place-items: center; background-color: rgba(255, 255, 255, 0.75); }
.socials svg { width: 17px; height: 17px; }
.footer-base { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; font-size: var(--t-xs); color: var(--muted); }

/* ---------- prose pages ---------- */
.page-head { padding: var(--s8) 0 var(--s6); border-bottom: 1px solid var(--line); background-image: linear-gradient(180deg, rgba(var(--accent-rgb), 0.20), rgba(255, 255, 255, 0)); }
.prose { max-width: 760px; padding: var(--s7) 0 var(--s8); }
.prose h2 { font-size: var(--t-2xl); margin-top: var(--s7); }
.prose h3 { margin-top: var(--s5); }
.prose dl { margin: 0 0 var(--s5); }
.prose dt { font-weight: 700; margin-top: var(--s3); }
.prose dd { margin: 0 0 var(--s2); color: var(--muted); }
.author-grid { display: grid; grid-template-columns: 260px 1fr; gap: var(--s7); align-items: start; }
.author-grid img { border-radius: var(--r-md); box-shadow: var(--shadow-2); }
.map-group { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s6); background-color: #FFFFFF; margin-bottom: var(--s5); }
.map-group li { margin-bottom: var(--s3); }
.map-group li span { display: block; color: var(--muted); font-size: var(--t-sm); }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-shell { grid-template-columns: 1fr; gap: var(--s6); }
  .grid-3, .grid-4, .tiers, .results { grid-template-columns: repeat(2, 1fr); }
  .author-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .figure-note { left: auto; right: 12px; bottom: 12px; }
}
@media (max-width: 760px) {
  :root { --s9: 4rem; --s8: 3rem; }
  .nav { position: absolute; top: 74px; left: 0; right: 0; background-color: #FFFFFF; border-bottom: 1px solid var(--line); padding: var(--s5); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: var(--s4); }
  .nav-toggle { display: block; order: 3; }
  .header-cta { display: none; }
  .grid-2, .grid-3, .grid-4, .tiers, .results, .trust-strip, .field-row { grid-template-columns: 1fr; }
  .bedmap-row { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 var(--s4); }
  .form-card { padding: var(--s5); }
}

@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; }
  .reveal { opacity: 1; transform: none; }
  .reveal .bed.filled { opacity: 1; transform: none; }
}

/* ================= The Retreat Roster: magazine ================= */

.mag-crumbs { padding: var(--s5) 0 0; font-size: var(--t-xs); color: var(--muted); }
.mag-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); margin: 0; padding: 0; }
.mag-crumbs li { margin: 0; display: flex; align-items: center; gap: var(--s3); }
.mag-crumbs li + li::before { content: ""; width: 14px; height: 1px; background-color: rgba(var(--primary-rgb), 0.45); flex: none; }
.mag-crumbs a { color: var(--primary); text-decoration: none; }
.mag-crumbs a:hover { text-decoration: underline; }
.mag-crumbs [aria-current="page"] { color: var(--muted); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- magazine masthead ---------- */
.mag-masthead { padding: var(--s6) 0 var(--s5); }
.mag-masthead h1 { max-width: 16ch; margin-bottom: var(--s5); }
.mag-masthead-meta { color: var(--muted); font-size: var(--t-sm); max-width: 58ch; margin: var(--s5) 0 var(--s6); }
.mag-standfirst { font-family: var(--display); font-size: clamp(1.22rem, 2.3vw, 1.62rem); line-height: 1.42; color: var(--ink); max-width: 40ch; margin-bottom: 0; }

/* ---------- index grid ---------- */
.mag-index { padding-top: var(--s7); }
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6) var(--s5); }
.mag-card {
  background-color: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.mag-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: rgba(var(--primary-rgb), 0.28); }
.mag-card-media { display: block; background-color: var(--glass-soft); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.mag-kicker { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); margin: 0 0 var(--s3); }
.mag-card-title { font-size: 1.3rem; line-height: 1.22; margin: 0 0 var(--s3); }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary); text-decoration: underline; }
.mag-card-dek { color: var(--muted); font-size: var(--t-sm); margin-bottom: var(--s5); }
.mag-card-meta { margin: auto 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: var(--t-xs); color: var(--muted); }

.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; border-color: rgba(var(--primary-rgb), 0.3); }
.mag-card.lead .mag-card-media { flex: 1 1 56%; }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-body { flex: 1 1 44%; padding: var(--s7) var(--s6); justify-content: center; background-image: linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), rgba(255, 255, 255, 0) 60%); }
.mag-card.lead .mag-card-title { font-size: clamp(1.6rem, 2.6vw, var(--t-2xl)); }
.mag-card.lead .mag-card-dek { font-size: var(--t-base); }

.mag-index-foot { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); }

/* ---------- article header ---------- */
.mag-article { padding-bottom: var(--s8); }
.mag-head { padding: var(--s6) 0 var(--s5); }
.mag-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 20ch; margin-bottom: var(--s5); }
.mag-head .mag-standfirst { color: var(--muted); max-width: 48ch; }
.mag-byline { margin-top: var(--s6); padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); align-items: baseline; }
.mag-byline-who { margin: 0; font-size: var(--t-sm); font-weight: 700; }
.mag-byline-who a { color: var(--primary); }
.mag-byline-meta { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--t-xs); color: var(--muted); }

.mag-figure { margin: var(--s6) 0 var(--s7); }
.mag-figure img { width: 100%; border-radius: var(--r-lg) var(--r-lg) 120px var(--r-lg); box-shadow: var(--shadow-2); }
.mag-figure figcaption { margin-top: var(--s3); font-size: var(--t-xs); color: var(--muted); max-width: 60ch; }

/* ---------- article body ---------- */
.mag-prose { max-width: 68ch; font-size: 1.08rem; line-height: 1.72; }
.mag-prose p { margin: 0 0 var(--s5); }
.mag-prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: var(--s7) 0 var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.mag-prose h3 { font-size: var(--t-xl); margin: var(--s6) 0 var(--s3); }
.mag-prose ul, .mag-prose ol { margin: 0 0 var(--s5); padding-left: 1.3rem; }
.mag-prose li { margin-bottom: var(--s3); }
.mag-prose a { color: var(--primary); }
.mag-prose blockquote {
  margin: var(--s6) 0; padding: var(--s5) var(--s6);
  border-left: 3px solid rgba(var(--primary-rgb), 0.55);
  background-color: rgba(var(--accent-rgb), 0.14);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--display); font-size: 1.2rem; line-height: 1.5;
}
.mag-prose blockquote p:last-child { margin-bottom: 0; }
.mag-prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s6); font-size: var(--t-sm); display: block; overflow-x: auto; }
.mag-prose th, .mag-prose td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
.mag-prose thead th { font-family: var(--display); font-weight: 400; font-size: var(--t-base); color: var(--primary); border-bottom: 1px solid var(--line-strong); background-color: rgba(var(--accent-rgb), 0.14); }

.inline-read {
  margin: var(--s6) 0; padding: var(--s4) var(--s5);
  border: 1px solid rgba(var(--primary-rgb), 0.26); border-left-width: 3px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background-color: rgba(var(--accent-rgb), 0.12);
  font-size: var(--t-sm); color: var(--muted);
}
.inline-read a { font-weight: 700; }

/* ---------- call to action ---------- */
.mag-cta {
  max-width: 68ch; margin: var(--s8) 0 0; padding: var(--s7) var(--s6);
  border: 1px solid rgba(var(--primary-rgb), 0.28); border-radius: var(--r-lg);
  background-image: linear-gradient(180deg, rgba(var(--accent-rgb), 0.26), rgba(255, 255, 255, 0.7));
  box-shadow: var(--shadow-1);
}
.mag-cta h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 22ch; }
.mag-cta p { color: var(--muted); max-width: 52ch; }
.mag-cta-act { margin: var(--s5) 0 0; }

/* ---------- author box ---------- */
.mag-author {
  max-width: 68ch; margin: var(--s7) 0 0; padding: var(--s6);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background-color: #FFFFFF; box-shadow: var(--shadow-1);
  display: grid; grid-template-columns: 120px 1fr; gap: var(--s6); align-items: start;
}
.mag-author img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--r-pill); box-shadow: var(--shadow-1); }
.mag-author h2 { font-size: var(--t-xl); margin-bottom: var(--s3); }
.mag-author p { font-size: var(--t-sm); color: var(--muted); }
.mag-author p:last-child { margin-bottom: 0; }

/* ---------- read also ---------- */
.mag-related { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--line); }
.mag-related > h2 { font-size: var(--t-2xl); margin-bottom: var(--s6); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.mag-rel { background-color: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.mag-rel:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.mag-rel-media { display: block; background-color: var(--glass-soft); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title { font-size: 1.12rem; line-height: 1.24; margin: var(--s5) var(--s5) var(--s3); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary); text-decoration: underline; }
.mag-rel-dek { margin: 0 var(--s5) var(--s4); font-size: var(--t-xs); color: var(--muted); }
.mag-rel-meta { margin: auto var(--s5) var(--s5); font-size: var(--t-xs); color: var(--muted); }

/* ---------- home page magazine teaser ---------- */
.mag-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.mag-teaser-foot { margin-top: var(--s6); }

/* ---------- magazine responsive ---------- */
@media (max-width: 980px) {
  .mag-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--s6) var(--s5); }
  .mag-related-grid, .mag-teaser-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-prose { font-size: 1.04rem; }
  .mag-figure img { border-radius: var(--r-md); }
  .mag-author { grid-template-columns: 1fr; gap: var(--s5); }
  .mag-author img { width: 96px; height: 96px; }
  .mag-cta { padding: var(--s6) var(--s5); }
}
@media (max-width: 380px) {
  .mag-card-body { padding: var(--s4); }
  .mag-crumbs [aria-current="page"] { max-width: 24ch; }
  .mag-byline { gap: var(--s2) var(--s4); }
}

/* ---------- magazine listings on the author page ---------- */
.mag-listing { list-style: none; padding: 0; margin: 0 0 var(--s6); border-top: 1px solid var(--line); }
.mag-listing li { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; align-items: baseline; margin: 0; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.mag-listing a { font-weight: 700; max-width: 62ch; }
.mag-listing-date { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }


/* Network column: five sibling products, rotated so every site is linked the same
   number of times. Sits in the footer link grid and inherits its type and colour. */
.site-network ul { list-style: none; margin: 0; padding: 0; }
.site-network li + li { margin-top: 0.4rem; }
.site-network a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { border-bottom-color: currentColor; }
