/* ==========================================================================
   RemembranceDesk
   Dignified memorial system: dove grey ground, warm ivory panels, muted olive.
   Cardo for display, Lato for text. Hairline rules, wide margins, no ornament.
   ========================================================================== */

:root {
  /* brief palette */
  --bg:        #F8F8F6;
  --surface:   #FFFFFF;
  --ink:       #20221F;
  --primary:   #4A5548;
  --accent:    #8C8474;
  --muted:     #6A6C67;

  /* derived warm ivories and dove greys */
  --ivory:       #FCFBF7;
  --ivory-deep:  #F2F1EA;
  --dove:        #EDEDE9;
  --dove-deep:   #E2E2DC;
  --primary-ink: #3A4438;
  --primary-soft:#DFE3DC;
  --accent-soft: #EFEBE3;
  --accent-ink:  #6E6656;
  --ink-soft:    #43463F;

  /* hairlines: the only ornament this site allows itself */
  --rule:        rgba(32, 34, 31, 0.14);
  --rule-soft:   rgba(32, 34, 31, 0.08);
  --rule-olive:  rgba(74, 85, 72, 0.34);
  --rule-accent: rgba(140, 132, 116, 0.42);

  /* type */
  --display: "Cardo", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --body: "Lato", "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --fs-xs:  0.78rem;
  --fs-sm:  0.895rem;
  --fs-base: 1.0625rem;
  --fs-md:  1.1875rem;
  --fs-lg:  clamp(1.32rem, 1.1rem + 0.7vw, 1.62rem);
  --fs-h3:  clamp(1.4rem, 1.15rem + 0.85vw, 1.85rem);
  --fs-h2:  clamp(1.95rem, 1.5rem + 1.9vw, 3rem);
  --fs-h1:  clamp(2.35rem, 1.6rem + 3.35vw, 4.15rem);
  --fs-num: clamp(2.8rem, 2rem + 3.2vw, 4.4rem);

  /* spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 18px;
  --s-5: 26px;
  --s-6: 36px;
  --s-7: 52px;
  --s-8: 72px;
  --s-9: 104px;
  --s-10: 148px;

  --gutter: clamp(20px, 5.5vw, 84px);
  --measure: 66ch;
  --max: 1220px;

  --radius-0: 0px;
  --radius-1: 2px;
  --radius-2: 3px;

  --shadow-quiet: 0 1px 2px rgba(32, 34, 31, 0.04);
  --shadow-lift:  0 2px 14px rgba(32, 34, 31, 0.06);

  --slow: 900ms;
  --calm: 620ms;
  --ease: cubic-bezier(0.32, 0.08, 0.24, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  /* warm paper: an ivory light at the head of the page over a faint linen grain */
  background-image:
    radial-gradient(115% 62% at 50% -8%, var(--ivory) 0%, rgba(252, 251, 247, 0) 62%),
    repeating-linear-gradient(90deg, rgba(32, 34, 31, 0.016) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
    repeating-linear-gradient(0deg, rgba(32, 34, 31, 0.012) 0 1px, rgba(255, 255, 255, 0) 1px 5px);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-4);
}
h1 { font-size: var(--fs-h1); line-height: 1.08; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.22; }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--s-4); max-width: var(--measure); }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--rule-olive); transition: color var(--calm) var(--ease), text-decoration-color var(--calm) var(--ease); }
a:hover { color: var(--primary-ink); text-decoration-color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15em; }
li { margin-bottom: var(--s-2); }
strong { font-weight: 700; color: var(--ink); }
small { font-size: var(--fs-xs); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-7) 0; }

::selection { background: var(--primary-soft); color: var(--ink); }

/* ---------- utilities ------------------------------------------------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.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: var(--s-4); top: -80px; z-index: 200;
  background: var(--surface); color: var(--primary);
  border: 1px solid var(--primary);
  padding: var(--s-3) var(--s-5);
  font-size: var(--fs-sm); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  transition: top var(--calm) var(--ease);
}
.skip-link:focus { top: var(--s-4); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-1);
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* eyebrow: a short hairline, then small letterspaced capitals. The section motif. */
.eyebrow {
  font-family: var(--body);
  font-size: 0.695rem;
  font-weight: 700;
  letter-spacing: 0.235em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 var(--s-4);
  display: block;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 34px; height: 1px;
  background: var(--rule-accent);
  margin-bottom: var(--s-4);
}
.eyebrow.is-centered { text-align: center; }
.eyebrow.is-centered::before { margin-left: auto; margin-right: auto; }

.lede {
  font-size: var(--fs-md);
  line-height: 1.72;
  color: var(--ink-soft);
}

/* ---------- buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body);
  font-size: 0.815rem;
  font-weight: 700;
  letter-spacing: 0.155em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 32px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-1);
  background: var(--primary);
  color: var(--ivory);
  cursor: pointer;
  transition: opacity var(--calm) var(--ease), background-color var(--calm) var(--ease), color var(--calm) var(--ease), border-color var(--calm) var(--ease);
}
.btn:hover { opacity: 0.86; color: var(--ivory); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--rule-olive);
}
.btn-ghost:hover { background: var(--ivory); color: var(--primary-ink); border-color: var(--primary); opacity: 1; }
.btn-quiet {
  background: transparent; border-color: transparent; color: var(--primary);
  padding-left: 0; padding-right: 0; letter-spacing: 0.12em;
}
.btn-block { width: 100%; }
.btn-sm { padding: 13px 22px; font-size: 0.75rem; }

/* ---------- header ---------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(248, 248, 246, 0.92);
  -webkit-backdrop-filter: saturate(120%) blur(7px);
  backdrop-filter: saturate(120%) blur(7px);
  border-bottom: 1px solid var(--rule-soft);
  transition: background-color var(--calm) var(--ease), border-color var(--calm) var(--ease), box-shadow var(--calm) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(252, 251, 247, 0.97);
  border-bottom-color: var(--rule);
  box-shadow: var(--shadow-quiet);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  min-height: 82px;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark svg { width: 30px; height: 30px; display: block; flex: none; }
.wordmark-text {
  font-family: var(--display);
  font-size: 1.325rem;
  letter-spacing: 0.028em;
  color: var(--ink);
  line-height: 1;
}
.wordmark-text b { font-weight: 400; color: var(--primary); }
.wordmark:hover .wordmark-text { color: var(--primary-ink); }

.site-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 32px); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-size: 0.79rem;
  letter-spacing: 0.135em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--calm) var(--ease), border-color var(--calm) var(--ease);
}
.site-nav a:hover { color: var(--primary); border-bottom-color: var(--rule-olive); }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-1);
  cursor: pointer;
  color: var(--primary);
  transition: border-color var(--calm) var(--ease), opacity var(--calm) var(--ease);
}
.nav-toggle:hover { border-color: var(--primary); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 19px; height: 1px; background: currentColor; content: "";
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before,
.nav-toggle[aria-expanded="true"] span::after { top: 0; }

@media (max-width: 899px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    opacity: 0; visibility: hidden;
    transition: opacity var(--calm) var(--ease), visibility 0s linear var(--calm);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity var(--calm) var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-3) var(--gutter) var(--s-5); }
  .site-nav li { margin: 0; }
  .site-nav a { display: block; padding: 15px 0; border-bottom: 1px solid var(--rule-soft); }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
}

/* ---------- section frame -------------------------------------------- */

main { display: block; }

.section {
  padding: clamp(64px, 8.5vw, 132px) 0;
  border-top: 1px solid var(--rule-soft);
}
.section:first-of-type { border-top: 0; }
.section-ivory { background: linear-gradient(180deg, var(--ivory) 0%, var(--bg) 100%); }
.section-panel { background: var(--ivory-deep); }

/* the programme grid: a slim label column beside the content */
.grid-lead { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) {
  .grid-lead { grid-template-columns: 210px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
  .grid-lead .eyebrow { position: sticky; top: 122px; }
}

.section-head { margin-bottom: var(--s-7); }
.section-head h2 { max-width: 22ch; }
.section-head.is-centered { text-align: center; }
.section-head.is-centered h2, .section-head.is-centered p { margin-left: auto; margin-right: auto; }

/* ---------- hero ------------------------------------------------------ */

.hero { padding: clamp(52px, 7vw, 104px) 0 clamp(48px, 6vw, 92px); }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: var(--s-8); }
}
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: var(--s-6) 0 var(--s-7); }

.trust {
  list-style: none; margin: 0; padding: var(--s-5) 0 0;
  border-top: 1px solid var(--rule);
  display: grid; gap: var(--s-4);
}
@media (min-width: 620px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.trust li { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.trust b { display: block; font-family: var(--display); font-size: 1.28rem; color: var(--ink); font-weight: 400; letter-spacing: 0.01em; }

/* framed photograph: ivory mat, hairline frame, quiet caption */
.plate {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(12px, 1.6vw, 22px);
  box-shadow: var(--shadow-lift);
}
.plate img { width: 100%; height: auto; }
.plate figcaption {
  margin-top: clamp(12px, 1.6vw, 20px);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule-soft);
  font-size: var(--fs-xs);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ---------- cards ----------------------------------------------------- */

.cards { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-1);
  padding: clamp(24px, 2.6vw, 36px);
  transition: border-color var(--slow) var(--ease), opacity var(--slow) var(--ease);
}
.card:hover { border-color: var(--rule-olive); }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.card p { margin-bottom: 0; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.68; }
.card .cost {
  display: block;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule-soft);
  font-size: var(--fs-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.icon {
  width: 30px; height: 30px;
  stroke: var(--primary);
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: var(--s-4);
  opacity: 0.92;
}

/* ---------- steps ----------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step {
  display: grid; gap: var(--s-4);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--rule-soft);
  margin: 0;
}
.step:last-child { border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 760px) {
  .step { grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-6); align-items: baseline; }
}
.step-num {
  font-family: var(--display);
  font-size: 2.35rem;
  line-height: 1;
  color: var(--accent-ink);
  letter-spacing: 0.02em;
}
.step h3 { margin-bottom: var(--s-2); }
.step p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- outcomes -------------------------------------------------- */

.outcomes { display: grid; gap: var(--s-6); }
@media (min-width: 760px) { .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); } }
@media (min-width: 1120px) { .outcomes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); } }
.outcome { padding-top: var(--s-5); border-top: 1px solid var(--rule-olive); }
.outcome .figure {
  display: block;
  font-family: var(--display);
  font-size: var(--fs-num);
  line-height: 1;
  color: var(--primary);
  margin-bottom: var(--s-3);
  letter-spacing: -0.012em;
}
.outcome h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.outcome p { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 0; }

/* ---------- testimonials ---------------------------------------------- */

.quotes { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-top: 2px solid var(--rule-olive);
  padding: clamp(26px, 2.8vw, 40px);
  margin: 0;
  display: flex; flex-direction: column;
}
.testimonial p {
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: var(--s-5);
}
.testimonial footer {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.testimonial cite { display: block; font-style: normal; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; margin-bottom: 3px; }

.results {
  display: grid; gap: var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
}
@media (min-width: 760px) { .results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.result .figure { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--primary); display: block; margin-bottom: var(--s-2); }
.result p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* ---------- pricing --------------------------------------------------- */

.tiers { display: grid; gap: var(--s-5); align-items: stretch; }
@media (min-width: 940px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }
.tier {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  padding: clamp(28px, 3vw, 42px);
  display: flex; flex-direction: column;
}
@media (min-width: 940px) {
  .tier + .tier { border-left: 0; }
  .tier { border-radius: 0; }
}
.tier.is-recommended {
  background: var(--ivory);
  border-color: var(--rule-olive);
  border-top: 2px solid var(--primary);
}
.tier-flag {
  display: block;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--s-4);
  min-height: 1em;
}
.tier h3 { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.tier .price { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--ink); display: block; margin: var(--s-4) 0 var(--s-2); }
.tier .cadence { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: var(--s-5); }
.tier .fit { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-5); }
.tier ul { list-style: none; padding: 0; margin: 0 0 var(--s-6); border-top: 1px solid var(--rule-soft); }
.tier li {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--rule-soft);
  margin: 0;
  position: relative;
  line-height: 1.55;
}
.tier li::before {
  content: "";
  position: absolute; left: 0; top: 19px;
  width: 10px; height: 1px; background: var(--rule-accent);
}
.tier .btn { margin-top: auto; }
.billing-note {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule-soft);
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 74ch;
}

/* ---------- faq ------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--rule-soft); }
.faq-q {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5);
  background: transparent; border: 0;
  padding: var(--s-5) 0;
  text-align: left;
  font-family: var(--display);
  font-size: var(--fs-lg);
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--calm) var(--ease);
}
.faq-q:hover { color: var(--primary); }
.faq-sign { position: relative; flex: none; width: 15px; height: 15px; margin-top: 9px; }
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; background: var(--accent); transition: opacity var(--slow) var(--ease);
}
.faq-sign::before { left: 0; top: 7px; width: 15px; height: 1px; }
.faq-sign::after { left: 7px; top: 0; width: 1px; height: 15px; opacity: 1; }
.faq-q[aria-expanded="true"] .faq-sign::after { opacity: 0; }
.faq-a { display: none; padding: 0 0 var(--s-5); max-width: 72ch; }
.faq-a.is-open { display: block; }
.faq-a p { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.75; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- form ------------------------------------------------------ */

.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-8); align-items: start; } }

.form-shell {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(26px, 3.2vw, 48px);
}
.field-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-1);
  padding: 14px 15px;
  width: 100%;
  transition: border-color var(--calm) var(--ease), background-color var(--calm) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.65; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 42px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--rule-olive); }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--surface); border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #8C3A2E; background: #FCF6F4; }
.field-error { font-size: var(--fs-xs); color: #8C3A2E; letter-spacing: 0.03em; min-height: 1px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: var(--s-5) 0 var(--s-6); }
.consent input { width: 17px; height: 17px; margin-top: 5px; flex: none; accent-color: var(--primary); }
.consent label { font-size: var(--fs-sm); color: var(--ink-soft); letter-spacing: 0; text-transform: none; font-weight: 400; line-height: 1.6; }
.form-reassure { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--muted); }

.contact-aside ul { list-style: none; padding: 0; margin: var(--s-5) 0 0; border-top: 1px solid var(--rule-soft); }
.contact-aside li { border-bottom: 1px solid var(--rule-soft); padding: 13px 0; font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }

/* ---------- author byline --------------------------------------------- */

.byline {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 74ch;
}

/* ---------- prose pages ----------------------------------------------- */

.page-head { padding: clamp(56px, 7vw, 108px) 0 var(--s-6); }
.page-head h1 { max-width: 20ch; }
.page-head p { color: var(--ink-soft); font-size: var(--fs-md); }
.prose { padding-bottom: clamp(64px, 8vw, 120px); }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--rule-soft); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--s-6); }
.prose p, .prose li { color: var(--ink-soft); max-width: 74ch; }
.prose ul, .prose ol { max-width: 74ch; }
.prose dl { max-width: 74ch; }
.prose dt { font-weight: 700; margin-top: var(--s-4); }
.prose dd { margin: 0 0 var(--s-3); color: var(--ink-soft); }

.fact-table { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; max-width: 74ch; font-size: var(--fs-sm); }
.fact-table th, .fact-table td { text-align: left; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; color: var(--ink-soft); }
.fact-table th { width: 34%; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }

.author-grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .author-grid { grid-template-columns: 268px minmax(0, 1fr); gap: var(--s-8); } }
.author-portrait { background: var(--surface); border: 1px solid var(--rule); padding: 14px; }
.author-links { list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.author-links li { border-top: 1px solid var(--rule-soft); margin: 0; }
.author-links a { display: block; padding: 11px 0; font-size: var(--fs-sm); text-decoration: none; letter-spacing: 0.05em; }
.author-links a:hover { text-decoration: underline; }

.map-list { list-style: none; padding: 0; margin: 0; }
.map-list li { border-bottom: 1px solid var(--rule-soft); padding: var(--s-4) 0; margin: 0; }
.map-list a { font-family: var(--display); font-size: var(--fs-lg); text-decoration: none; }
.map-list a:hover { text-decoration: underline; }
.map-list span { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; max-width: 68ch; }

/* ---------- footer ---------------------------------------------------- */

.site-footer {
  background: var(--ivory-deep);
  border-top: 1px solid var(--rule);
  padding: clamp(56px, 7vw, 96px) 0 0;
  margin-top: 0;
}
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.55fr 1fr 1fr 1.25fr; gap: var(--s-7); } }
.footer-brand p { font-size: var(--fs-sm); color: var(--muted); max-width: 40ch; margin-top: var(--s-4); }
.footer-col h2 {
  font-family: var(--body);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0; }
.footer-col a, .footer-col span.pub {
  display: block; padding: 7px 0;
  font-size: var(--fs-sm); color: var(--ink-soft); text-decoration: none;
  transition: color var(--calm) var(--ease);
}
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-col span.pub { color: var(--muted); }
.social { display: flex; gap: 12px; margin-top: var(--s-5); }
.social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--primary);
  transition: border-color var(--calm) var(--ease), opacity var(--calm) var(--ease);
}
.social a:hover { border-color: var(--primary); opacity: 0.8; }
.social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.footer-base {
  margin-top: clamp(44px, 5vw, 72px);
  border-top: 1px solid var(--rule);
  padding: var(--s-5) 0 var(--s-6);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
  font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.06em;
}
.footer-base p { margin: 0; max-width: none; }

/* ---------- reveal (opacity only, slow, never playful) ---------------- */

.reveal { opacity: 0; transition: opacity var(--slow) var(--ease); }
.reveal.is-visible { opacity: 1; }
.reveal-d1 { transition-delay: 120ms; }
.reveal-d2 { transition-delay: 240ms; }
.reveal-d3 { transition-delay: 360ms; }
.no-js .reveal { opacity: 1; }

@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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; }
}

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

/* ==========================================================================
   The Arrangement Room
   The magazine, built from the tokens above: ivory panels on the dove ground,
   Cardo for the headlines, hairline rules instead of ornament, and a single
   column of text set at a comfortable reading measure.
   ========================================================================== */

/* ---------- the seventh destination in the primary nav ---------------- */
/* The magazine name is long, so the compact menu stays in service further up
   the range and the bar itself is allowed a wider gutter on large screens. */
@media (min-width: 900px) and (max-width: 1259px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    opacity: 0; visibility: hidden;
    transition: opacity var(--calm) var(--ease), visibility 0s linear var(--calm);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity var(--calm) var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-3) var(--gutter) var(--s-5); }
  .site-nav li { margin: 0; }
  .site-nav a { display: block; padding: 15px 0; border-bottom: 1px solid var(--rule-soft); }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
}
@media (min-width: 1260px) {
  .site-header .wrap {
    max-width: 1340px;
    padding-left: clamp(20px, 2.8vw, 46px);
    padding-right: clamp(20px, 2.8vw, 46px);
  }
  .header-inner { gap: var(--s-4); }
  .site-nav ul { gap: clamp(12px, 1.15vw, 17px); }
  .site-nav a { font-size: 0.74rem; letter-spacing: 0.09em; }
  .header-cta { padding: 12px 19px; letter-spacing: 0.115em; }
}
.site-nav .nav-mag {
  font-family: var(--display);
  font-size: 0.98rem;
  letter-spacing: 0.012em;
  text-transform: none;
  color: var(--primary);
}
.site-nav .nav-mag[aria-current="page"] { border-bottom-color: var(--rule-olive); }

/* ---------- shared magazine furniture --------------------------------- */
.mag-kicker {
  margin: 0 0 var(--s-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent-ink);
  max-width: none;
}
.mag-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-3);
  margin: 0;
  max-width: none;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-sep { display: inline-block; width: 15px; height: 1px; background: var(--rule-accent); }

.mag-crumbs { padding: var(--s-5) 0 0; }
.mag-crumbs ol {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0 var(--s-3);
  list-style: none; margin: 0; padding: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.mag-crumbs li { margin: 0; display: flex; align-items: baseline; gap: var(--s-3); }
.mag-crumbs li + li::before { content: "/"; color: var(--rule-accent); }
.mag-crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule-soft); }
.mag-crumbs a:hover { color: var(--primary); border-bottom-color: var(--rule-olive); }
.mag-crumbs li:last-child span { color: var(--accent-ink); }

.mag-standfirst {
  font-family: var(--display);
  font-size: clamp(1.22rem, 1.02rem + 0.8vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}

/* ---------- the article page ------------------------------------------ */
.mag-article { padding-bottom: clamp(64px, 8vw, 124px); }

.mag-head { padding: var(--s-6) 0 0; }
.mag-head h1 {
  max-width: 21ch;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.55rem);
  margin: 0 0 var(--s-5);
}
.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-3);
  max-width: none;
  margin: var(--s-6) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-byline .mag-by { color: var(--ink); }
.mag-byline a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-olive); }
.mag-byline a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.mag-byline time { color: inherit; }

.mag-shot { margin: var(--s-6) 0 var(--s-8); }
.mag-shot img {
  width: 100%; height: auto;
  border: 1px solid var(--rule);
  background: var(--surface);
}

/* body typography: one column, 68 characters, generous leading */
.mag-body { max-width: 68ch; margin: 0 auto; }
.mag-body > :first-child { margin-top: 0; }
.mag-body p {
  max-width: none;
  margin: 0 0 var(--s-5);
  font-size: var(--fs-md);
  line-height: 1.78;
  color: var(--ink-soft);
}
.mag-body h2 {
  font-size: clamp(1.6rem, 1.24rem + 1.2vw, 2.2rem);
  line-height: 1.2;
  margin: var(--s-8) 0 var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule-soft);
}
.mag-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.mag-body h3 { font-size: var(--fs-lg); margin: var(--s-6) 0 var(--s-3); }
.mag-body ul, .mag-body ol { max-width: none; margin: 0 0 var(--s-5); padding-left: 1.3em; }
.mag-body li {
  margin-bottom: var(--s-3);
  font-size: var(--fs-md);
  line-height: 1.72;
  color: var(--ink-soft);
}
.mag-body li::marker { color: var(--accent); }
.mag-body blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 2px solid var(--rule-olive);
}
.mag-body blockquote p {
  font-family: var(--display);
  font-size: var(--fs-lg);
  line-height: 1.48;
  color: var(--ink);
  margin-bottom: 0;
}
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-6) 0;
  font-size: var(--fs-sm);
}
.mag-body th, .mag-body td {
  text-align: left;
  padding: 13px 18px 13px 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  color: var(--ink-soft);
}
.mag-body th {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
  border-bottom-color: var(--rule);
}
.mag-body strong { color: var(--ink); }

/* the contextual link the editor drops between sections */
.inline-read {
  max-width: none;
  margin: var(--s-6) 0;
  padding: var(--s-4) var(--s-5);
  background: var(--ivory);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  border-left: 2px solid var(--rule-olive);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.inline-read a {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 1.16rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-olive);
}
.inline-read a:hover { color: var(--primary-ink); border-bottom-color: var(--primary); }

/* the call to action that closes every report */
.mag-cta {
  max-width: 68ch;
  margin: var(--s-8) auto 0;
  padding: clamp(26px, 3.6vw, 48px);
  background: var(--ivory-deep);
  border: 1px solid var(--rule-soft);
  border-top: 2px solid var(--primary);
}
.mag-cta h2 { font-size: var(--fs-h3); max-width: 26ch; margin: 0 0 var(--s-4); }
.mag-cta p { max-width: 58ch; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.74; }
.mag-cta-act { margin: var(--s-5) 0 0; }
.mag-cta .btn {
  max-width: 100%;
  text-align: center;
  letter-spacing: 0.115em;
  line-height: 1.5;
}

/* the author box */
.mag-author {
  max-width: 68ch;
  margin: var(--s-7) auto 0;
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 620px) {
  .mag-author { grid-template-columns: 136px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
}
.mag-author img {
  width: 136px; height: 136px;
  object-fit: cover;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.mag-author h2 { font-size: var(--fs-lg); margin: 0 0 var(--s-3); }
.mag-author p { font-size: var(--fs-sm); line-height: 1.74; color: var(--ink-soft); max-width: 58ch; }
.mag-author-link { margin-bottom: 0; }

/* Read also */
.mag-related { margin-top: var(--s-9); padding-top: var(--s-6); border-top: 1px solid var(--rule); }
.mag-related-title {
  font-size: var(--fs-h3);
  margin: 0 0 var(--s-6);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule-soft);
}
.mag-related-grid { display: grid; gap: var(--s-6); }
@media (min-width: 760px) { .mag-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.mag-rel {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  padding-bottom: var(--s-5);
  transition: border-color var(--slow) var(--ease), opacity var(--slow) var(--ease);
}
.mag-rel:hover { border-color: var(--rule-olive); }
.mag-rel-shot { display: block; }
.mag-rel-shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title {
  font-size: 1.17rem;
  line-height: 1.3;
  margin: var(--s-5) clamp(18px, 2vw, 26px) var(--s-3);
}
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary); }
.mag-rel-dek {
  max-width: none;
  margin: 0 clamp(18px, 2vw, 26px) var(--s-4);
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--ink-soft);
}
.mag-rel .mag-meta { margin: auto clamp(18px, 2vw, 26px) 0; }
.mag-related-all { margin: var(--s-6) 0 0; font-size: var(--fs-sm); }

/* ---------- the magazine index ---------------------------------------- */
.mag-masthead { padding: var(--s-6) 0 var(--s-7); border-bottom: 1px solid var(--rule); }
.mag-masthead h1 { max-width: 15ch; margin-bottom: var(--s-5); }
.mag-masthead-note {
  max-width: 64ch;
  margin: var(--s-5) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.74;
  color: var(--ink-soft);
}
.mag-masthead .mag-meta { margin-top: var(--s-5); }

.mag-index { padding: clamp(44px, 5.5vw, 88px) 0 0; }
.mag-index-cta { padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 124px); }

.mag-grid { display: grid; gap: var(--s-6); }
@media (min-width: 720px) { .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); } }
@media (min-width: 1060px) { .mag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mag-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  transition: border-color var(--slow) var(--ease), opacity var(--slow) var(--ease);
}
.mag-card:hover { border-color: var(--rule-olive); }
.mag-card-shot { display: block; }
.mag-card-shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-text { flex: 1; display: flex; flex-direction: column; padding: clamp(20px, 2.3vw, 30px); }
.mag-card-text .mag-kicker { margin-bottom: var(--s-3); }
.mag-card-title { font-size: var(--fs-lg); line-height: 1.26; margin: 0 0 var(--s-3); }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary); }
.mag-card-dek {
  max-width: none;
  margin: 0 0 var(--s-5);
  font-size: var(--fs-sm);
  line-height: 1.66;
  color: var(--ink-soft);
}
.mag-card .mag-meta { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--rule-soft); }

/* the lead card carries the newest report across the full width */
.mag-card.lead { grid-column: 1 / -1; border-color: var(--rule); }
.mag-card.lead .mag-card-title { font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.05rem); }
@media (min-width: 860px) {
  .mag-card.lead { flex-direction: row; align-items: stretch; }
  .mag-card.lead .mag-card-shot { flex: 0 0 55%; }
  .mag-card.lead .mag-card-shot img { height: 100%; min-height: 330px; aspect-ratio: auto; }
  .mag-card.lead .mag-card-text { justify-content: center; padding: clamp(30px, 3.4vw, 54px); }
  .mag-card.lead .mag-card-title { font-size: clamp(1.85rem, 1.25rem + 1.6vw, 2.6rem); }
  .mag-card.lead .mag-card-dek { max-width: 46ch; font-size: var(--fs-md); line-height: 1.7; }
}

/* ---------- the magazine on the pages that already existed ------------ */
.mag-grid-home { gap: var(--s-5); }
@media (min-width: 700px) { .mag-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .mag-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mag-home-all { margin: var(--s-6) 0 0; }
.map-list time { color: var(--accent-ink); letter-spacing: 0.06em; }

/* ---------- narrow screens -------------------------------------------- */
@media (max-width: 599px) {
  .mag-body { max-width: none; }
  .mag-body table { display: block; width: 100%; overflow-x: auto; }
  .mag-body th, .mag-body td { padding-right: 14px; }
  .mag-cta, .mag-author, .mag-related-grid { max-width: none; }
  .mag-cta .btn { width: 100%; font-size: 0.72rem; padding: 16px 18px; }
  .mag-head h1 { font-size: clamp(1.95rem, 1.3rem + 3.2vw, 2.6rem); }
  .mag-crumbs ol { font-size: 0.72rem; }
}



/* 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%; }
}
