/* =========================================================================
   Needlepoint Diva — Design System
   Premium craft brand. White background, editorial typography, restrained
   violet/fuchsia accents, diamond/rhombus brand geometry.
   WCAG 2.2 AA compliant. Mobile-first. No third-party trackers.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Color */
  --color-bg: #ffffff;
  --color-surface: #fafaf7;
  --color-surface-2: #f5f0ec;
  --color-ink: #151216;
  --color-ink-2: #2c2935;
  --color-muted: #6a6671;
  --color-line: #ece9e2;
  --color-line-strong: #d8d3c8;

  /* Brand pack palette (Needlepoint_Diva_Brand_Pack_FINAL) */
  --color-violet: #7b2c83;     /* Primary Purple — 8.3:1 on white, headings & links */
  --color-violet-soft: #f3e8f6;
  --color-fuchsia: #d12878;    /* Accent Pink — 4.9:1 on white, primary action & star mark */
  --color-fuchsia-deep: #a91f5d;
  --color-fuchsia-soft: #fbe7f1;

  --color-ink: #151216;        /* Ink — primary text */
  --color-ink-soft: #5b5560;

  --color-gold: #b8902f;

  /* Type */
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-48: 3rem;
  --fs-56: 3.5rem;
  --fs-64: 4rem;
  --fs-72: 4.5rem;
  --fs-80: 5rem;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --tracking-wide: 0.14em;
  --tracking-medium: 0.08em;
  --tracking-normal: 0.01em;
  --tracking-tight: -0.015em;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --content-max: 1280px;
  --content-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 12, 22, 0.04),
    0 1px 1px rgba(15, 12, 22, 0.03);
  --shadow-md: 0 8px 24px -12px rgba(15, 12, 22, 0.12),
    0 2px 6px rgba(15, 12, 22, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(15, 12, 22, 0.18),
    0 4px 14px rgba(15, 12, 22, 0.06);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
}

/* -------------------------------------------------------------------------
   Reset / Base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  color: var(--color-ink-2);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden; /* belt-and-suspenders: any rogue overflow gets clipped */
}

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

img {
  font-style: italic; /* prevent alt from being ugly if image fails to load */
}

a {
  color: var(--color-violet);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--color-fuchsia);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-fuchsia);
  outline-offset: 3px;
  border-radius: 4px;
}

button {
  font: inherit;
  cursor: pointer;
}

hr {
  border: 0;
  height: 1px;
  background: var(--color-line);
  margin: var(--space-12) 0;
}

::selection {
  background: var(--color-violet);
  color: #fff;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  z-index: 999;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: clamp(var(--fs-40), 6vw, var(--fs-72));
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(var(--fs-28), 4vw, var(--fs-48));
  font-weight: 600;
}

h3 {
  font-size: clamp(var(--fs-20), 2.5vw, var(--fs-28));
}

h4 {
  font-size: var(--fs-18);
}

p {
  margin: 0 0 var(--space-4);
  line-height: var(--lh-relaxed);
}

.lead {
  font-size: clamp(var(--fs-18), 2vw, var(--fs-20));
  color: var(--color-muted);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-fuchsia);
}

.muted {
  color: var(--color-muted);
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section {
  padding: clamp(var(--space-12), 8vw, var(--space-32)) 0;
}

.section--tight {
  padding: clamp(var(--space-10), 5vw, var(--space-20)) 0;
}

.section--surface {
  background: var(--color-surface);
}

main:focus {
  outline: none;
}

/* -------------------------------------------------------------------------
   Buttons & links
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.8em;
  font-size: var(--fs-15);
  font-weight: 600;
  letter-spacing: var(--tracking-medium);
  text-transform: uppercase;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  min-height: 48px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  background: var(--color-fuchsia);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-fuchsia-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line-strong);
}
.btn--ghost:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn--link {
  padding: 0;
  background: transparent;
  color: var(--color-violet);
  border-radius: 0;
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  min-height: auto;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-bottom: 2px;
}
.btn--link:hover {
  color: var(--color-fuchsia);
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--gutter);
  max-width: var(--content-max);
  margin: 0 auto;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  font-size: var(--fs-18);
  min-width: 0;
}
.brand:hover {
  color: var(--color-ink);
}

.brand__mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.brand__logo {
  display: block;
  width: 180px;
  height: auto;
  max-width: 100%;
}

@media (max-width: 600px) {
  .brand__logo { width: 132px; }
}
@media (max-width: 380px) {
  .brand__logo { width: 116px; }
}

.brand__name {
  font-size: var(--fs-16);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__tag {
  display: block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-fuchsia);
  margin-top: 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  border-radius: var(--r-md);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before {
  top: -7px;
}
.nav-toggle__bars::after {
  top: 7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  color: var(--color-ink-2);
  font-size: var(--fs-14);
  font-weight: 500;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover {
  background: var(--color-surface-2);
  color: var(--color-ink);
}
.nav__link[aria-current="page"] {
  color: var(--color-fuchsia);
}

.nav__cta {
  margin-left: var(--space-3);
}

@media (max-width: 880px) {
  .site-header__inner {
    min-height: 76px; /* tall enough to fit the 180×99 logo + gutters */
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100dvh - 76px);
    height: calc(100vh - 76px); /* fallback */
    background: #fff;
    padding: var(--space-6) var(--gutter) var(--space-12);
    border-top: 1px solid var(--color-line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility 0s linear var(--dur);
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 99;
    box-shadow: 0 24px 48px -16px rgba(15, 12, 22, 0.18);
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility 0s linear 0s;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--color-line);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
  }
  .nav__link {
    padding: 1.1rem 0.25rem;
    font-size: var(--fs-20);
    font-weight: 500;
    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
  }
  .nav__link[aria-current="page"] {
    color: var(--color-fuchsia);
    font-weight: 600;
  }
  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-3);
    width: 100%;
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0
    clamp(var(--space-12), 6vw, var(--space-24));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/images/background-diamonds.png") center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: center;
}

.hero__copy {
  min-width: 0; /* allow grid item to shrink so content fits viewport */
}

.hero__title {
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  /* Override the global h1 clamp on the hero specifically.
     Global h1: clamp(2.5rem, 6vw, 4.5rem) — that's 40px at 375px, which is
     too big for "Make it fabulous" + "— just like you." on one line each. */
  font-size: clamp(2.25rem, 7.5vw, 4.5rem);
}
.hero__title em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-fuchsia);
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 8px;
  background: var(--color-fuchsia-soft);
  border-radius: var(--r-pill);
  z-index: -1;
}

.hero__lead {
  margin-bottom: var(--space-8);
  max-width: 52ch;
  font-size: clamp(var(--fs-16), 4vw, var(--fs-18));
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.hero__meta {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3) var(--space-4);
  color: var(--color-muted);
  font-size: var(--fs-13);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.hero__meta > div {
  min-width: 0;
}
.hero__meta dt {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
  color: var(--color-ink-soft);
  font-weight: 500;
}
.hero__meta dd {
  margin: 0;
  color: var(--color-ink);
  font-weight: 600;
  font-size: var(--fs-13);
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.hero__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--color-violet-soft), #fff 60%);
}

.hero__photo img,
.hero__photo svg,
.hero__photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__badge {
  position: absolute;
  left: -16px;
  bottom: 24px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid var(--color-line);
  z-index: 2;
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.hero__badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.hero__badge .price {
  font-weight: 700;
  font-size: var(--fs-20);
  color: var(--color-ink);
}
.hero__badge .label {
  font-size: var(--fs-12);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .hero__visual {
    order: -1; /* visual on top for mobile (pattern first, copy below) */
  }
  .hero__photo {
    aspect-ratio: 4 / 5;
    max-width: 420px;
    margin: 0 auto;
  }
  .hero__badge {
    left: 12px;
    bottom: 12px;
  }
  .hero__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

@media (max-width: 540px) {
  .hero {
    padding: var(--space-12) 0 var(--space-10);
  }
  .hero__title {
    /* At ≤540px: tighten line breaks by removing the <br> in markup is
       impossible without touching every page, so we let the title wrap
       naturally and shrink the font so neither line exceeds viewport. */
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
    letter-spacing: -0.025em;
  }
  .hero__lead {
    font-size: var(--fs-15);
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__meta {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-3);
    margin-top: var(--space-8);
  }
  .hero__meta > div:nth-child(3) {
    grid-column: span 2;
  }
}

@media (max-width: 400px) {
  .hero__title {
    font-size: 1.75rem;
  }
  .hero__badge {
    padding: 10px 14px;
  }
  .hero__badge .price {
    font-size: var(--fs-18);
  }
}

/* -------------------------------------------------------------------------
   Featured / Product Showcase
   ------------------------------------------------------------------------- */
.feature {
  position: relative;
}

.feature__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}
.feature__head > * {
  min-width: 0;
}

.feature__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.feature__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #fbe9f1, #f1e8f6);
  aspect-ratio: 5 / 6;
}
.feature__photo svg,
.feature__photo img,
.feature__photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__copy h2 {
  margin-bottom: var(--space-5);
}
.feature__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-2);
}
.feature__price .price {
  font-size: var(--fs-32);
  font-weight: 700;
  color: var(--color-ink);
}
.feature__price .strike {
  color: var(--color-muted);
  text-decoration: line-through;
}
.feature__price .save {
  background: var(--color-fuchsia-soft);
  color: var(--color-fuchsia-deep);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.feature__list {
  list-style: none;
  margin: var(--space-8) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-6);
}
.feature__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-15);
  color: var(--color-ink-2);
  line-height: var(--lh-snug);
}
.feature__list li::before {
  content: "";
  flex: none;
  margin-top: 9px;
  width: 8px;
  height: 8px;
  background: var(--color-fuchsia);
  transform: rotate(45deg);
  border-radius: 1px;
}

@media (max-width: 880px) {
  .feature__grid {
    grid-template-columns: 1fr;
  }
  .feature__list {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Gallery grid (photography details)
   ------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

.gallery > * {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--color-surface);
  position: relative;
}

.gallery > *:nth-child(1) {
  grid-column: span 7;
  aspect-ratio: 5 / 4;
}
.gallery > *:nth-child(2) {
  grid-column: span 5;
  aspect-ratio: 4 / 5;
}
.gallery > *:nth-child(3) {
  grid-column: span 4;
  aspect-ratio: 1 / 1;
}
.gallery > *:nth-child(4) {
  grid-column: span 4;
  aspect-ratio: 1 / 1;
}
.gallery > *:nth-child(5) {
  grid-column: span 4;
  aspect-ratio: 1 / 1;
}

.gallery svg,
.gallery img,
.gallery picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 720px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .gallery > * {
    grid-column: span 1 !important;
    aspect-ratio: 4 / 3 !important;
  }
}

/* -------------------------------------------------------------------------
   Pull quote / Editorial section
   ------------------------------------------------------------------------- */
.editorial {
  position: relative;
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.editorial__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}

.editorial__copy h2 {
  margin-bottom: var(--space-6);
}
.editorial__copy p {
  font-size: var(--fs-18);
  color: var(--color-ink-2);
}

.editorial__photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #f1e8f6, #fbe9f1 70%);
  box-shadow: var(--shadow-md);
}
.editorial__photo svg,
.editorial__photo img,
.editorial__photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 880px) {
  .editorial__inner {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Cards (FAQs, etc)
   ------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.card {
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  background: #fff;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--color-violet);
  box-shadow: var(--shadow-md);
}
.card__label {
  font-size: var(--fs-12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-fuchsia);
  margin-bottom: var(--space-3);
}
.card h3 {
  margin-bottom: var(--space-3);
}
.card p {
  color: var(--color-muted);
  margin: 0;
}

@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* FAQ list */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.faq__item {
  border-bottom: 1px solid var(--color-line);
  padding: var(--space-6) 0;
}

.faq__item h3 {
  font-size: var(--fs-18);
  margin: 0 0 var(--space-3);
}

.faq__item p {
  margin: 0;
  color: var(--color-ink-2);
}

/* -------------------------------------------------------------------------
   Product page specifics
   ------------------------------------------------------------------------- */
.product {
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
}

.product__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: start;
}

.product__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.product__main-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #fbe9f1, #f1e8f6);
  box-shadow: var(--shadow-lg);
}

.product__main-photo svg,
.product__main-photo img,
.product__main-photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.product__thumb {
  position: relative;
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  min-height: 64px;
  -webkit-tap-highlight-color: transparent;
}
.product__thumb:hover,
.product__thumb[aria-current="true"] {
  border-color: var(--color-fuchsia);
  box-shadow: 0 0 0 2px var(--color-fuchsia-soft);
}
.product__thumb:active {
  transform: scale(0.97);
}
.product__thumb svg,
.product__thumb img,
.product__thumb picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__info h1 {
  font-size: clamp(var(--fs-32), 5vw, var(--fs-56));
  margin-bottom: var(--space-4);
}

.product__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.product__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin: var(--space-6) 0 var(--space-2);
}
.product__price {
  font-size: var(--fs-40);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
.product__sub {
  color: var(--color-muted);
  font-size: var(--fs-14);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin: var(--space-1) 0 var(--space-4);
}
.product__price-display {
  font-size: var(--fs-32);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}
.product__price-strike {
  color: var(--color-muted);
  text-decoration: line-through;
}
.product__save {
  background: var(--color-fuchsia-soft);
  color: var(--color-fuchsia-deep);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}

.product__buy {
  margin: var(--space-6) 0 var(--space-4);
}

.product__notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  margin: var(--space-6) 0;
  font-size: var(--fs-14);
  color: var(--color-ink-2);
}
.product__notice strong {
  color: var(--color-ink);
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-14);
}
.product__notice svg {
  flex: none;
  margin-top: 2px;
}

.product__specs {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-6);
  margin-top: var(--space-8);
}
.product__specs dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--space-6);
  row-gap: var(--space-3);
  margin: 0;
}
.product__specs dt {
  color: var(--color-muted);
  font-size: var(--fs-14);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 500;
}
.product__specs dd {
  margin: 0;
  font-weight: 500;
  color: var(--color-ink);
}

.product__accordion {
  border-top: 1px solid var(--color-line);
  margin-top: var(--space-10);
}
.product__accordion details {
  border-bottom: 1px solid var(--color-line);
  padding: var(--space-5) 0;
}
.product__accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-ink);
  font-size: var(--fs-16);
  list-style: none;
  padding: 4px 0;
}
.product__accordion summary::-webkit-details-marker {
  display: none;
}
.product__accordion summary::after {
  content: "+";
  font-size: 22px;
  color: var(--color-fuchsia);
  line-height: 1;
  font-weight: 400;
  transition: transform var(--dur) var(--ease);
}
.product__accordion details[open] summary::after {
  content: "−";
}
.product__accordion .body {
  padding-top: var(--space-3);
  color: var(--color-ink-2);
}
.product__accordion ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--color-ink-2);
}
.product__accordion li {
  margin-bottom: var(--space-2);
  line-height: var(--lh-relaxed);
}

@media (max-width: 880px) {
  .product__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .product__info {
    order: 2;
  }
  .product__gallery {
    order: 1;
  }
  .product__main-photo {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  .product__price {
    font-size: var(--fs-32);
  }
  .product__buy .btn {
    width: 100%;
  }
  .product__specs dl {
    grid-template-columns: 1fr;
    row-gap: var(--space-4);
  }
  .product__specs dt {
    margin-bottom: 4px;
  }
  .product__specs dd {
    padding-left: 0;
  }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: #d9d6dd;
  padding: var(--space-20) 0 var(--space-8);
  margin-top: var(--space-24);
}

.site-footer a {
  color: #f4f1ee;
}
.site-footer a:hover {
  color: #ffd5e8;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand .brand__name {
  color: #fff;
}
.footer__brand p {
  margin-top: var(--space-4);
  color: #9b97a3;
  font-size: var(--fs-14);
  max-width: 36ch;
}

.footer__col h4 {
  color: #fff;
  font-size: var(--fs-13);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__col a {
  font-size: var(--fs-14);
  color: #c9c5cf;
}
.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid #2c2935;
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--fs-13);
  color: #8d8a93;
}

@media (max-width: 880px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer__brand {
    grid-column: span 2;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}
@media (max-width: 540px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer__brand {
    grid-column: span 1;
  }
  .site-footer {
    padding: var(--space-12) 0 var(--space-6);
  }
}

/* -------------------------------------------------------------------------
   Thank-you page
   ------------------------------------------------------------------------- */
.thanks {
  text-align: center;
  padding: clamp(var(--space-20), 10vw, var(--space-32)) 0;
}

.thanks__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.thanks__icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-violet-soft);
  color: var(--color-violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.thanks h1 {
  font-size: clamp(var(--fs-40), 5vw, var(--fs-56));
  margin-bottom: var(--space-4);
}

.thanks p {
  color: var(--color-muted);
  font-size: var(--fs-18);
}

.thanks__note {
  margin-top: var(--space-8);
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--r-lg);
  text-align: left;
  font-size: var(--fs-14);
  color: var(--color-ink-2);
}

/* -------------------------------------------------------------------------
   Decorative brand mark — diamond logo
   ------------------------------------------------------------------------- */
.diamond-mark {
  display: inline-block;
  position: relative;
}

/* -------------------------------------------------------------------------
   Page hero (interior)
   ------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0
    clamp(var(--space-8), 5vw, var(--space-16));
  background: linear-gradient(180deg, var(--color-surface), #fff);
  border-bottom: 1px solid var(--color-line);
}

.page-hero h1 {
  margin-bottom: var(--space-4);
}

.page-hero .lead {
  max-width: 60ch;
}

/* -------------------------------------------------------------------------
   Prose (legal pages)
   ------------------------------------------------------------------------- */
.prose {
  max-width: 70ch;
  margin: 0 auto;
}

.prose h2 {
  font-size: var(--fs-24);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}
.prose h3 {
  font-size: var(--fs-18);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.prose p,
.prose li {
  line-height: var(--lh-relaxed);
  color: var(--color-ink-2);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: var(--space-2);
}
.prose a {
  color: var(--color-violet);
  text-decoration: underline;
}

/* Inline-styled email headings on the contact page (font-size: var(--fs-24))
   used to overflow on 375-390px. Cap the size on small screens. */
.contact-email {
  font-size: clamp(var(--fs-18), 5vw, var(--fs-24));
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-email a {
  color: var(--color-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-email a:hover {
  color: var(--color-fuchsia);
}

/* -------------------------------------------------------------------------
   Animations — respect reduced motion
   ------------------------------------------------------------------------- */

/* Scroll-reveal: sections start hidden (translateY + opacity 0) and
   transition in when `.is-visible` is added by the IntersectionObserver
   in main.js. Stagger via `--reveal-delay` set inline by JS. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

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

.text-center {
  text-align: center;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Break long emails / URLs onto multiple lines on narrow viewports so they
   never overflow the container. `overflow-wrap: anywhere` is the most
   aggressive and breaks at any character if needed. */
.word-break {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 540px) {
  .hide-sm {
    display: none !important;
  }
}