/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--t0);
  background: var(--w);
  line-height: 1.6;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip (not hidden) so the body doesn't become a scroll container — hidden
     forces overflow-y:auto, which silently breaks position:sticky on mobile. */
  overflow-x: clip;
}

img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

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

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

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow { max-width: 760px; }

@media (min-width: 768px) {
  .wrap { padding: 0 var(--gutter-d); }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--accent { color: var(--c-deep); }

.title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-title);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.title--sm { font-size: var(--fs-title-s); }

.title em,
.hero__title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

/* A short rule under titles, as in the review's mockups */
.rule {
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 22px;
  background: var(--c-deep);
  opacity: .6;
}

.title--rule::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--c-deep);
  opacity: .6;
}

.lead {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

.body-text {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  text-wrap: pretty;
}

.center { text-align: center; }

/* ============================================================
   BUTTONS — fully rounded, flat
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 34px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.25;
  text-align: center;
  transition: background .2s, border-color .2s, color .2s;
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 44px; padding: 8px 24px; font-size: 15px; }

.btn--primary { background: var(--c-deep); color: #fff; }
.btn--primary:hover { background: var(--deep-hover); }

.btn--sage { background: var(--sage-strong); color: #fff; }
.btn--sage:hover { background: var(--c-deep); }

.btn--mist { background: var(--mist-strong); color: #fff; }
.btn--mist:hover { background: var(--c-deep); }

.btn--ghost {
  border-color: var(--c-deep);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: rgba(69, 97, 85, .08); }

/* Outline on a dark or strong panel */
.btn--light { border-color: rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn--light:hover { background: rgba(255,255,255,.12); }

/* Trailing arrow inside a button or link */
.arrow::after { content: '→'; font-size: 1.1em; line-height: 1; transition: transform .2s; }
.btn.arrow::after { margin-left: 2px; }
.btn.arrow:hover::after,
.link-arrow:hover::after { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.link-arrow::after { content: '→'; font-size: 1.1em; transition: transform .2s; }

section[id], article[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
