/* Grasmere Gingerbread — redesign concept
   Mobile-first. No webfonts, no third-party embeds, no tracking scripts. */

:root {
  --ink: #16152a;
  --ink-soft: #4c4964;
  --brand: #2f2b6e;          /* the violet-blue off the Sarah Nelson's tin */
  --brand-tint: #ecebf7;
  --ginger: #94511d;         /* CTA — warm, appetising, 5.5:1 on white */
  --ginger-dark: #7d4318;
  --cream: #faf6ee;
  --cream-deep: #f3ecdd;
  --paper: #ffffff;
  --line: rgba(22, 21, 42, .12);
  --line-soft: rgba(22, 21, 42, .07);
  --shadow-sm: 0 1px 2px rgba(22,21,42,.06), 0 4px 12px rgba(22,21,42,.05);
  --shadow-md: 0 2px 4px rgba(22,21,42,.05), 0 16px 40px rgba(22,21,42,.10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", ui-serif, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

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

/* anchor targets clear the sticky masthead */
:where(section, footer)[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-size: 15px;
}
.skip-link:focus { top: 12px; }

:where(a, button):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; text-decoration: none;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn--primary { background: var(--ginger); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #7d4318; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--sm { padding: 9px 16px; font-size: 14.5px; }
.btn--lg { padding: 15px 30px; font-size: 17.5px; }

.link-arrow {
  font-weight: 600; font-size: 16.5px; color: var(--brand);
  text-decoration: none; border-bottom: 1.5px solid rgba(47,43,110,.28);
  padding-bottom: 2px;
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-bottom-color: var(--brand); }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, .93);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.masthead__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 66px; padding-block: 10px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }

.brand__mark {
  flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--brand); color: var(--brand);
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .02em;
}

.brand__name {
  font-family: var(--serif); font-size: 13px; line-height: 1.15;
  color: var(--brand); letter-spacing: .01em;
}
.brand__name strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.brand__name sup { font-size: 9px; vertical-align: super; }

.nav { display: none; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a {
  text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--ink-soft);
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

.masthead__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  width: 42px; height: 40px; display: grid; place-content: center; gap: 5px;
  background: none; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px;
}
.nav-toggle span[aria-hidden] { display: block; width: 20px; height: 1.8px; background: var(--ink); border-radius: 2px; }

.masthead.is-open .nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.masthead.is-open .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
.masthead.is-open .nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(120% 90% at 88% 6%, #fffdf8 0%, rgba(255,253,248,0) 62%),
    var(--cream);
  padding-block: 34px 44px;
  border-bottom: 1px solid var(--line-soft);
}

.hero__grid { display: grid; gap: 30px; }

.eyebrow {
  margin: 0 0 16px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); line-height: 1.5;
  padding-left: 14px; border-left: 3px solid var(--ginger);
}

.hero h1 {
  font-size: clamp(2.15rem, 8.4vw, 2.9rem);
  margin-bottom: 16px;
  text-wrap: balance;
}

.lead {
  margin: 0 0 26px;
  font-size: 17.5px; line-height: 1.55; color: var(--ink-soft);
  max-width: 34em;
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }

.trust {
  list-style: none; margin: 28px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 10px;
  font-size: 15px; color: var(--ink-soft);
}
.trust li { display: flex; align-items: baseline; gap: 10px; }
.trust li::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ginger); transform: translateY(-2px);
}

.hero__media { position: relative; }

.shot {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.seal {
  position: absolute; right: 14px; bottom: -16px;
  margin: 0; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 1px;
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-md);
  font-family: var(--serif); line-height: 1.25;
}
.seal span { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.seal strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Ranges ---------- */

.ranges { padding-block: 52px; background: var(--cream-deep); }

.section-head { margin-bottom: 28px; max-width: 40em; }
.section-head h2 { font-size: clamp(1.6rem, 5.6vw, 2.1rem); margin-bottom: 10px; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card__link { display: block; text-decoration: none; color: inherit; height: 100%; }

.card__media { display: block; background: #f6f2ea; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.card__body { display: block; padding: 20px 20px 22px; }

.tag {
  display: inline-block; margin-bottom: 12px;
  background: var(--brand-tint); color: var(--brand);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}

.card__name { display: block; font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.card__text { display: block; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; margin-bottom: 14px; }

.card__cta { display: inline-block; font-weight: 600; font-size: 15.5px; color: var(--ginger); }
.card__cta::after { content: " \2192"; }
.card__link:hover .card__cta { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Closing band ---------- */

.closing { padding-block: 52px; background: var(--cream); }

.closing__inner { display: grid; gap: 26px; align-items: center; }
.closing__copy h2 { font-size: clamp(1.55rem, 5.4vw, 2rem); margin-bottom: 12px; }
.closing__copy p { margin: 0 0 24px; color: var(--ink-soft); font-size: 16.5px; max-width: 32em; }

.closing__media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--paper); border: 1px solid var(--line-soft); }
.closing__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }

/* ---------- Footer ---------- */

.foot { background: var(--brand); color: #fff; padding-block: 34px 30px; }
.foot__inner { display: grid; gap: 10px; }
.foot__address { margin: 0; font-family: var(--serif); font-size: 17px; }
.foot__hours { margin: 0; font-size: 15px; color: rgba(255,255,255,.78); }
.foot__links { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 8px 0 0; padding: 0; font-size: 15px; }
.foot__links a { color: rgba(255,255,255,.9); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.foot__links a:hover { border-bottom-color: #fff; }
.foot__note { margin: 18px 0 0; font-size: 12.5px; color: rgba(255,255,255,.55); max-width: 46em; line-height: 1.5; }

/* ---------- Phone: photo before the trust strip, so the product is
              visible without scrolling on a 390px screen ---------- */

@media (max-width: 899px) {
  .hero__grid { display: flex; flex-direction: column; gap: 0; }
  .hero__copy { display: contents; }

  .eyebrow    { order: 1; }
  .hero h1    { order: 2; }
  .lead       { order: 3; margin-bottom: 22px; }
  .cta-row    { order: 4; }
  .hero__media { order: 5; margin: 26px 0 34px; }
  .trust      { order: 6; margin-top: 0; }

}

@media (max-width: 599px) {
  .cta-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .cta-row .btn--lg { width: 100%; }
  .cta-row .link-arrow { align-self: flex-start; }
}

/* ---------- Larger screens ---------- */

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .trust { grid-auto-flow: column; grid-auto-columns: max-content; gap: 26px; }
  .closing__inner { grid-template-columns: 1.25fr 1fr; gap: 44px; }
}

@media (min-width: 900px) {
  body { font-size: 17px; }

  .nav { display: block; margin-right: 26px; }
  .nav-toggle { display: none; }

  .hero { padding-block: 62px 76px; }
  .hero__grid { grid-template-columns: 1.06fr .94fr; gap: 60px; align-items: center; }
  .hero h1 { font-size: clamp(2.9rem, 4.2vw, 3.6rem); }
  .lead { font-size: 19px; }

  .seal { right: -22px; bottom: -22px; width: 118px; height: 118px; }

  .ranges { padding-block: 74px; }
  .closing { padding-block: 74px; }
  .section-head { margin-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
