/* ==========================================================================
   StoryFawn — Lander pattern
   Reusable pattern for the gift-lander family (grandparent / last-minute /
   holiday / from-afar). Full-bleed scene hero + floating pill nav + eyebrow/
   headline + 46ch body + square gold CTA + square-cornered hairline cards.

   Tokens are consumed from sf-helen.css (--sf-*). This file defines NO new
   colors — it only lays out the pattern described in DESIGN-SPEC.md §§3-5.
   ========================================================================== */

.sf-lander {
  background: var(--sf-ground);
  color: var(--sf-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- Floating pill nav -------------------------------------------------- */

.sf-lander__nav {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(26, 20, 32, 0.55);
  border: 1px solid var(--sf-hair);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sf-lander__nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--sf-ink);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.sf-lander__nav a:hover,
.sf-lander__nav a[aria-current="page"] {
  background: var(--sf-chip);
  color: var(--sf-gold-text);
}

.sf-lander__nav a.sf-lander__nav-cta {
  background: var(--sf-gold);
  color: var(--sf-ground);
  font-weight: 600;
}

/* ---- Hero: full-bleed scene --------------------------------------------- */

.sf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--sf-ground);
}

.sf-hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* left half stays dark so the headline reads — belt-and-braces gradient
   in addition to the scene's own composition rules (mean luminance < 62) */
.sf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(26, 20, 32, 0.86) 0%,
    rgba(26, 20, 32, 0.55) 40%,
    rgba(26, 20, 32, 0.08) 68%,
    rgba(26, 20, 32, 0) 100%
  );
}

.sf-hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 140px 6vw 80px;
}

.sf-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sf-gold-text);
  margin: 0 0 18px;
}

.sf-hero__headline {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 460;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--sf-ink);
}

.sf-hero__body {
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--sf-muted);
  margin: 0 0 32px;
}

/* ---- CTAs ---------------------------------------------------------------- */

.sf-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--sf-gold);
  color: var(--sf-ground);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  border-radius: 0; /* square — deliberate tension against the pill nav */
}

.sf-cta:hover {
  background: var(--sf-gold-text);
}

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

.sf-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sf-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 15px;
}

.sf-cta-secondary::after {
  content: "\2192"; /* trailing arrow */
}

/* ---- Three-image row ----------------------------------------------------- */

.sf-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 6vw;
}

.sf-card {
  border: 1px solid var(--sf-hair);
  border-radius: 0; /* square-cornered hairline cards */
  overflow: hidden;
  background: rgba(218, 178, 107, 0.03);
}

.sf-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sf-card__body {
  padding: 16px;
}

.sf-card__eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sf-gold-text);
  margin: 0 0 8px;
}

.sf-card__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 460;
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--sf-ink);
}

.sf-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--sf-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Body section below the fold ----------------------------------------- */

.sf-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 6vw 64px;
}

.sf-section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 460;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--sf-ink);
  margin: 0 0 16px;
}

.sf-section p {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--sf-muted);
  margin: 0 0 20px;
}

.sf-panel {
  border: 1px solid var(--sf-hair);
  border-radius: 14px;
  background: rgba(26, 20, 32, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px;
}

/* ---- Reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .sf-cta,
  .sf-lander__nav a {
    transition: none !important;
  }
}

/* ---- <=760px collapse ------------------------------------------------------ */

@media (max-width: 760px) {
  .sf-lander__nav {
    top: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    max-width: none;
  }

  .sf-lander__nav a {
    scroll-snap-align: start;
    flex: 0 0 auto;
  }

  .sf-hero__content {
    padding: 120px 6vw 56px;
    max-width: 100%;
  }

  .sf-hero::before {
    background: linear-gradient(
      180deg,
      rgba(26, 20, 32, 0.9) 0%,
      rgba(26, 20, 32, 0.72) 55%,
      rgba(26, 20, 32, 0.4) 100%
    );
  }

  .sf-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sf-row {
    grid-template-columns: 1fr;
    padding: 40px 6vw;
  }

  .sf-panel {
    border-radius: 0;
  }
}
