/* Organic-search landings — premium editorial storefront (homepage-inspired) */

.seo-landing {
  width: min(1120px, calc(100% - 72px));
  margin: 0 auto;
  padding: 56px 0 120px;
}

.seo-landing > .back-link {
  display: inline-block;
  margin-bottom: 32px;
}

.seo-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.45);
}

.seo-crumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.seo-crumbs a:hover {
  color: #111;
  border-bottom-color: rgba(17, 17, 17, 0.22);
}

.seo-crumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 12px;
  color: rgba(17, 17, 17, 0.2);
}

/* Intro block */
.seo-hero {
  margin: 0 0 40px;
  max-width: 34rem;
}

.seo-hero h1 {
  margin: 0 0 24px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #111;
}

.seo-lead {
  margin: 0;
  max-width: 30rem;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(17, 17, 17, 0.7);
}

.seo-essay {
  margin: 0 0 88px;
  padding: 0 44px;
  max-width: calc(34rem + 88px);
  box-sizing: border-box;
}

.seo-essay h2 {
  margin: 0 0 22px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  color: #111;
}

.seo-essay p {
  margin: 0;
  max-width: 32rem;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(17, 17, 17, 0.7);
}

.seo-essay p + p {
  margin-top: 18px;
}

/* Major editorial blocks */
.seo-section {
  margin: 88px 0 0;
}

.seo-section h2 {
  margin: 0 0 28px;
  max-width: 42rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  color: #111;
}

.seo-section > p {
  max-width: 32rem;
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(17, 17, 17, 0.7);
}

.seo-section > p + p {
  margin-top: 16px;
}

/* Soft surface for informational sections (not product grid / related) */
.seo-section:not(:has(.seo-product-grid)) {
  padding: 40px 44px 44px;
  background: rgba(246, 242, 238, 0.55);
}

.seo-section:not(:has(.seo-product-grid)) > h2 {
  margin-bottom: 24px;
}

/* Editorial 2-column feature composition */
.seo-section > ul:not(.seo-product-grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.seo-section > ul:not(.seo-product-grid) > li {
  margin: 0;
  padding: 0;
  max-width: 28rem;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.7);
}

.seo-section > ul:not(.seo-product-grid) > li::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  margin: 0 0 14px;
  background: rgba(17, 17, 17, 0.16);
}

.seo-section a:not(.seo-product-card) {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.seo-section a:not(.seo-product-card):hover {
  opacity: 0.72;
}

/* Product collection — same horizontal inset as info blocks */
.seo-section:has(.seo-product-grid) {
  margin-top: 96px;
  padding: 0 44px;
  background: transparent;
}

.seo-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(40px, 5vw, 72px);
  row-gap: 72px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.seo-product-grid > li {
  margin: 0;
  min-width: 0;
  display: flex;
}

.seo-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.seo-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  opacity: 1;
}

.seo-product-card:hover,
.seo-product-card:focus-visible {
  opacity: 1;
  outline: none;
  filter: none;
}

/* Spacious shared media frame; candle inside is ~60% of prior visual size */
.seo-product-card picture {
  /* Spacious equal frame; candle inside ≈60% of prior fill size */
  --seo-media-max: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--seo-media-max);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  line-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.seo-product-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
  opacity: 1;
  transform-origin: center center;
  transition: transform 0.25s ease;
  will-change: transform;
}

/* Only subtle scale on hover — no glow, dim, or highlight */
.seo-product-card:hover img,
.seo-product-card:focus-visible img {
  transform: scale(1.04);
  filter: none;
  opacity: 1;
  box-shadow: none;
}

.seo-product-card h3 {
  margin: 20px 0 6px;
  width: 100%;
  max-width: 220px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: #111;
  text-align: center;
}

.seo-product-profile {
  margin: 0;
  width: 100%;
  max-width: 220px;
  min-height: 1.35em;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.48);
  text-align: center;
}

.seo-product-blurb {
  margin: 10px 0 0;
  width: 100%;
  max-width: 220px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.66);
  text-align: center;
}

.seo-product-mood {
  margin: 10px 0 0;
  width: 100%;
  max-width: 240px;
  min-height: 3.2em;
  font-family: 'Raleway', sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.58);
  text-align: center;
}

.seo-product-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
  max-width: 260px;
}

.seo-product-price {
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #111;
  white-space: nowrap;
}

.seo-cart-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 32px;
  padding: 6px 16px;
  border: none;
  border-radius: 0;
  background: #0a0a0a;
  color: #f7f7f7;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.seo-cart-btn:hover,
.seo-cart-btn:focus-visible {
  background: #1a1a1a;
  color: #fff;
  outline: none;
}

.seo-cart-btn:active {
  background: #000;
}

.seo-cart-btn.is-cart-added {
  background: #fff;
  color: #0a0a0a;
  box-shadow: inset 0 0 0 1px #0a0a0a;
}

/* Editorial continuation — sibling landings, not a link directory */
.seo-continue {
  margin: 96px 0 0;
  padding: 56px 44px 0;
}

.seo-continue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 88px);
  row-gap: 48px;
}

.seo-continue-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 8px 0 0;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  opacity: 1;
}

.seo-continue-card:hover,
.seo-continue-card:focus-visible {
  opacity: 1;
  outline: none;
  text-decoration: none;
}

.seo-continue-eyebrow {
  margin: 0 0 18px;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.42);
}

.seo-continue-title {
  margin: 0 0 16px;
  max-width: 16rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  color: #111;
}

.seo-continue-line {
  margin: 0 0 28px;
  max-width: 22rem;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.62);
}

.seo-continue-cta {
  margin-top: auto;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #111;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
  transition: border-color 0.25s ease;
}

.seo-continue-card:hover .seo-continue-cta,
.seo-continue-card:focus-visible .seo-continue-cta {
  border-bottom-color: #111;
}

.seo-continue-home {
  display: inline-block;
  margin-top: 56px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(17, 17, 17, 0.55);
  text-decoration: none;
  border: 0;
}

.seo-continue-home:hover,
.seo-continue-home:focus-visible {
  color: #111;
  opacity: 1;
}

@media (max-width: 960px) {
  .seo-landing {
    width: min(100% - 48px, 1120px);
    padding-top: 40px;
  }

  .seo-hero {
    margin-bottom: 64px;
  }

  .seo-section {
    margin-top: 64px;
  }

  .seo-section:not(:has(.seo-product-grid)) {
    padding: 32px 28px 36px;
  }

  .seo-section:has(.seo-product-grid) {
    margin-top: 72px;
    padding: 0 28px;
  }

  .seo-essay {
    margin-bottom: 64px;
    padding: 0 28px;
    max-width: calc(34rem + 56px);
  }

  .seo-continue {
    margin-top: 72px;
    padding: 44px 28px 0;
  }

  .seo-continue-grid {
    column-gap: 40px;
  }

  .seo-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 56px;
  }

  .seo-section > ul:not(.seo-product-grid) {
    gap: 24px 36px;
  }
}

@media (max-width: 640px) {
  .seo-landing {
    width: min(100% - 32px, 1120px);
    padding: 28px 0 88px;
  }

  .seo-hero {
    margin-bottom: 48px;
  }

  .seo-hero h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .seo-section {
    margin-top: 48px;
  }

  .seo-section:not(:has(.seo-product-grid)) {
    padding: 28px 20px 32px;
  }

  .seo-section:has(.seo-product-grid) {
    margin-top: 56px;
    padding: 0 20px;
  }

  .seo-essay {
    margin-bottom: 48px;
    padding: 0 20px;
    max-width: calc(34rem + 40px);
  }

  .seo-continue {
    margin-top: 56px;
    padding: 36px 20px 0;
  }

  .seo-continue-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .seo-continue-home {
    margin-top: 40px;
  }

  .seo-section > ul:not(.seo-product-grid) {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .seo-product-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .seo-product-card picture {
    --seo-media-max: 220px;
  }

  .seo-product-card img {
    max-width: 58%;
    max-height: 58%;
  }

  .seo-product-buy {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Prefer-reduced-motion: keep accessibility calm */
@media (prefers-reduced-motion: reduce) {
  .seo-product-card img {
    transition: none;
  }

  .seo-product-card:hover img,
  .seo-product-card:focus-visible img {
    transform: none;
  }
}
