:root {
  --color-bg: #f4efe8;
  --color-bg-soft: #fbf8f3;
  --color-surface: #ffffff;
  --color-text: #211712;
  --color-muted: #5b4a42;
  --color-border: #e6dbcf;
  --color-accent: #cf7a55;
  --color-accent-dark: #b5623f;
  --color-accent-soft: #f6e3d8;
  --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --max-width: 1160px;
  --max-width-narrow: 760px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  background: var(--color-text);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0 0.5rem 0.5rem;
}

.skip-link:focus { top: 0; }

.site-header {
  padding: 1rem 0;
  background: #ffffff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
}

.site-logo__img {
  width: 30px;
  height: 30px;
}

.site-logo__wordmark {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.site-nav__link {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  background: rgba(0,0,0,0.05);
  color: var(--color-text);
  outline: none;
}

.site-nav__link--login {
  margin-left: 0.5rem;
}

.site-nav-mobile {
  display: none;
}

.site-nav-mobile__toggle {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--color-border);
  border-radius: 0.65rem;
  background: var(--color-surface);
  display: grid;
  place-content: center;
  gap: 0.2rem;
  cursor: pointer;
}

.site-nav-mobile__toggle::-webkit-details-marker {
  display: none;
}

.site-nav-mobile__toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
}

.site-nav-mobile__cta {
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.62rem 1.25rem;
  border: 1px solid transparent;
}

.btn--cta {
  background: #2d4f35;
  color: #fff;
  border-color: #2d4f35;
  margin-left: 0.5rem;
}

.btn--cta:hover,
.btn--cta:focus-visible {
  background: #1f3a26;
  border-color: #1f3a26;
}

.hero {
  padding: 2.25rem 0 2.75rem;
  background-color: #fff;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
  background-color: #fff;
}

.hero__eyebrow {
  display: none;
}

.hero__heading,
.features__heading,
.cta-section__heading,
.not-found__title {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.17;
}

.hero__heading {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  max-width: 14ch;
}

.hero__heading-accent {
  color: #2d4f35;
}

.hero__divider {
  width: 2.5rem;
  height: 3px;
  background: #2d4f35;
  margin: 1rem 0;
  border-radius: 2px;
}

.hero__lead {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  max-width: 47ch;
}

.hero__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero__feature-list {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: grid;
  gap: 0.65rem;
  max-width: 36ch;
}

.hero__feature-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.hero__feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero__media {
  position: relative;
}

.hero__image {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
}

.hero__strip {
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--color-border);
  display: flex;
}

.hero__strip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  padding: 0 1.5rem;
  border-right: 1px solid var(--color-border);
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.hero__strip-item:first-child { padding-left: 0; }
.hero__strip-item:last-child { border-right: none; padding-right: 0; }

.hero__strip-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--color-text);
  margin-top: 0.1rem;
}

.features {
  padding: 3.5rem 0 4rem;
}

.features__heading {
  text-align: center;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 2.75rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-card {
  background: transparent;
  border: none;
  border-right: 1px solid var(--color-border);
  border-radius: 0;
  padding: 1.5rem 2.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:last-child {
  border-right: none;
}

.feature-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: #e2ddd7;
  margin-bottom: 1.4rem;
  flex-shrink: 0;
}

.feature-card__icon {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--color-text);
}

.feature-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.3;
}

.feature-card__body {
  margin: 0.7rem 0 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}

.feature-card__link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.feature-card__link:hover {
  text-decoration: underline;
}

.cta-section {
  padding: 0 0 3rem;
}

.cta-section__heading {
  text-align: center;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.cta-section__body {
  text-align: center;
  margin: 0.8rem auto 1.15rem;
  color: var(--color-muted);
  max-width: 46ch;
}

.cta-section__card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.cta-form__note {
  margin-top: 0.8rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.2rem 0 2rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__copy,
.site-footer__tagline,
.not-found__message {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.not-found {
  padding: 4rem 0;
  text-align: center;
}

.not-found__code {
  font-size: 4.5rem;
  opacity: 0.25;
  margin-bottom: 0.5rem;
}

.not-found__title { font-size: 1.6rem; }

/* ── Hero "See how it works" link ── */
.hero__see-how {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d4f35;
  text-decoration: none;
}

.hero__see-how:hover {
  text-decoration: underline;
}

/* ── Choose your starting point ── */
.starting-points {
  padding: 4rem 0 5rem;
  background: #ffffff;
}

/* Inset wrapper: 10% padding each side, capped at max-width */
.starting-points__wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 10%;
}

.starting-points__intro {
  text-align: center;
  margin-bottom: 2.25rem;
}

.starting-points__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.starting-points__subhead {
  color: var(--color-muted);
  margin: 0;
  font-size: 1rem;
}

.starting-points__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.starting-point {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.starting-point:first-child {
  border-top: 1px solid var(--color-border);
}

.starting-point__img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.starting-point__body {
  padding-top: 0.25rem;
}

.starting-point__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.starting-point__desc {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .starting-points__wrap {
    padding: 0 1.25rem;
  }

  .starting-point {
    grid-template-columns: 110px 1fr;
    gap: 1.1rem;
  }

  .starting-point__img {
    width: 110px;
    height: 110px;
  }
}

/* ── Watch your story come to life ── */
.story-life {
  padding: 4.5rem 0 5rem;
  background: #ffffff;
}

.story-life__container {
  display: grid;
  grid-template-columns: 2fr 3fr;   /* text ~40 %, image up to ~60 % */
  gap: 3rem;
  align-items: center;
}

.story-life__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.story-life__lead {
  color: var(--color-muted);
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.story-life__media {
  display: flex;
  justify-content: center;
}

.story-life__image {
  display: block;
  width: 100%;
  max-width: 60%;   /* never wider than 60 % of its container */
  height: auto;
}

/* ── Built for families, not experts ── */
.value-props {
  padding: 4rem 0 5rem;
  background: #ffffff;
}

.value-props__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  text-align: center;
  margin: 0 0 3rem;
  line-height: 1.2;
}

.value-props__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.value-prop {
  padding: 0 2rem;
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.value-prop:first-child { padding-left: 0; }
.value-prop:last-child  { border-right: none; padding-right: 0; }

.value-prop__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.value-prop__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.value-prop__desc {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 980px) {
  /* story-life: stack vertically on tablet/mobile */
  .story-life__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-life__image {
    max-width: 80%;
  }

  /* value-props: 2-column on tablet */
  .value-props__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 0;
  }

  .value-prop {
    padding: 0 1.5rem;
  }

  .value-prop:nth-child(2) { border-right: none; }
  .value-prop:nth-child(3) { border-right: 1px solid var(--color-border); padding-left: 0; }
  .value-prop:nth-child(4) { border-right: none; }
  .value-prop:first-child  { padding-left: 0; }
}

@media (max-width: 540px) {
  .story-life__image {
    max-width: 100%;
  }

  /* value-props: single column on mobile */
  .value-props__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .value-prop {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 0 0 2rem;
  }

  .value-prop:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ── Heirlooms section ── */
.heirlooms {
  background-image: url('/images/heirlooms-background.jpg');
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
}

.heirlooms__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.heirlooms__content {
  width: 40%;
}

.heirlooms__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.heirlooms__heading {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--color-text);
}

.heirlooms__lead {
  margin: 1rem 0 1.25rem;
  font-family: var(--font-body);
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.heirlooms__link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.heirlooms__link:hover {
  text-decoration: underline;
}

/* Hidden on desktop — only used on mobile */
.heirlooms__mobile-img {
  display: none;
}

/* ── Hero: adjustments on tablet (single-column but not yet mobile) ── */
@media (min-width: 541px) and (max-width: 980px) {
  .hero__heading {
    max-width: none;
  }

  .hero__lead {
    max-width: 52ch;
  }

  .hero__image {
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 980px) {
  .site-logo__wordmark {
    font-size: 1rem;
  }

  .site-nav__link {
    font-size: 0.88rem;
    padding: 0.35rem 0.55rem;
  }

  .btn--cta {
    padding: 0.56rem 0.95rem;
    font-size: 0.88rem;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .hero__media { order: 1; }

  .hero__strip {
    flex-direction: column;
    gap: 0;
  }

  .hero__strip-item {
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
  }

  .hero__strip-item:first-child { padding-top: 0; }
  .hero__strip-item:last-child { border-bottom: none; padding-bottom: 0; }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .heirlooms {
    background-image: none;
    padding: 0;
  }

  .heirlooms__container {
    padding: 0;
  }

  .heirlooms__content {
    width: 100%;
    padding: 2.5rem 1.25rem;
    background: #ffffff;
  }

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

@media (max-width: 720px) {
  .site-nav--desktop {
    display: none;
  }

  .site-nav-mobile {
    display: block;
    position: relative;
    margin-left: auto;
  }

  .site-nav-mobile[open] .site-nav-mobile__toggle {
    border-color: var(--color-accent);
    outline: 2px solid var(--color-accent-soft);
  }

  .site-nav--mobile {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    width: min(16rem, calc(100vw - 2.5rem));
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--color-border);
    border-radius: 0.85rem;
    background: var(--color-surface);
    padding: 0.55rem;
    box-shadow: 0 20px 38px rgba(44, 30, 20, 0.14);
    z-index: 30;
  }

  .site-nav--mobile .site-nav__link {
    border-radius: 0.55rem;
    padding: 0.55rem 0.65rem;
  }
}
