:root {
  --bg: #f7f3ee;
  --paper: #fffdf9;
  --ink: #1d2430;
  --muted: #6b6460;
  --line: #e7e0d8;
  --accent: #a56a6c;
  --accent-dark: #8e5759;
  --blush: #f3e4e2;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
#contact {
  scroll-margin-top: 5rem;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Montserrat, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.1rem);
}

h3 {
  font-size: 1.35rem;
  margin: 0.2rem 0 0.45rem;
}

.lede,
.story-copy p,
.retailers-copy p,
.step p {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 1.25rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-outline {
  background: transparent;
  color: var(--accent);
}

.button-outline:hover {
  background: var(--blush);
  color: var(--accent-dark);
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.6rem;
}

.logo img {
  height: 42px;
  width: auto;
}

.primary-nav {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.primary-nav a,
.footer-nav a,
.legal a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
}

.primary-nav a:hover,
.footer-nav a:hover,
.legal a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.7rem;
}

.icon-btn {
  display: inline-flex;
  color: var(--ink);
}

.header-cta {
  font-size: 0.75rem;
  padding: 0.62rem 1rem;
}

.menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  padding: 3.5rem 0 4.5rem;
  background:
    radial-gradient(circle at 12% 18%, #fff 0, transparent 28%),
    linear-gradient(180deg, #fbf8f4 0%, #f4eee7 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .lede {
  max-width: 34rem;
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  border-radius: 1.4rem 0.4rem 1.6rem 0.6rem;
  object-fit: cover;
  min-height: 420px;
  height: 420px;
}

.script-note {
  position: absolute;
  top: 0.35rem;
  right: 1.1rem;
  margin: 0;
  width: 8.2rem;
  font-family: "Brittany Signature", "Great Vibes", cursive;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  color: var(--ink);
  transform: rotate(8deg);
  line-height: 1.08;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.script-note::after {
  content: " ♡";
}

.how {
  padding: 4.5rem 0 5rem;
  background: #f3eee8;
  text-align: center;
}

.how h2 {
  margin-bottom: 2.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.step {
  position: relative;
  text-align: left;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: -1.4rem;
  width: 2.4rem;
  height: 2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32' fill='none' stroke='%23c4b8ae' stroke-width='1.4'%3E%3Cpath d='M2 22C14 4 30 28 46 10'/%3E%3Cpath d='M38 8l8 2-4 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.step-num {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  color: var(--accent);
}

.step img {
  margin-top: 1.3rem;
  width: 100%;
  max-height: 250px;
  object-fit: contain;
}

.story {
  padding: 4.5rem 0;
  background: var(--paper);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.story-copy p {
  margin: 0.85rem 0 0;
}

.story-copy .muted {
  color: var(--ink);
}

.story-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 78% center;
  border-radius: 0.4rem;
}

.categories {
  padding: 1rem 0 5rem;
  background: var(--paper);
  text-align: center;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.2rem;
  text-align: left;
}

.section-head .text-link {
  margin-top: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1rem;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
}

.category-art {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 2rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.category-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-love {
  background: #f4d7d4;
  color: #c45c63;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
}

.art-baby {
  background: #f3eadc url("/static/images/birthday-wishes-1.jpg") center / 180% no-repeat;
}

.retailers {
  padding: 3.5rem 0 5rem;
  background: #f6f1ea;
}

.retailers-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr;
  gap: 2.2rem;
  align-items: center;
}

.retailers-copy .button {
  margin-top: 1.3rem;
}

.retailers-copy .text-link {
  display: block;
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.benefit-icon {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
}

.retailers-media img {
  width: 100%;
}

.banner img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 1.2rem;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.legal {
  display: flex;
  gap: 1rem;
}

.social {
  display: flex;
  gap: 0.5rem;
}

.social a {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 980px) {
  .header-inner,
  .hero-grid,
  .steps,
  .story-grid,
  .retailers-grid,
  .category-grid,
  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 4.6rem;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    flex: none;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .hero-media img,
  .story-media img {
    height: auto;
    min-height: 0;
  }

  .hero,
  .how,
  .story,
  .categories,
  .retailers {
    padding: 2.8rem 0;
  }

  .script-note {
    right: 0.6rem;
  }

  .section-head,
  .footer-bottom,
  .footer-top {
    align-items: flex-start;
  }

  .category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .how,
  .categories {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal {
    flex-wrap: wrap;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.find-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4.6rem);
  min-height: 520px;
}

.finder {
  position: relative;
  flex: 1;
  min-height: 280px;
  background: #ece6ef;
}

.finder-map {
  position: absolute;
  inset: 0;
}

.finder-map .leaflet-tile-pane {
  filter: grayscale(0.72) sepia(0.28) hue-rotate(305deg) saturate(0.55) brightness(0.96);
}

.map-logo-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(29, 36, 48, 0.35);
}

.leaflet-marker-icon.supplier-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #a56a6c;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(29, 36, 48, 0.25);
  font-family: Montserrat, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.finder-tools {
  position: relative;
  z-index: 2;
  flex: none;
  width: min(32rem, calc(100% - 2.5rem));
  margin: 0.2rem auto 0.75rem;
}

.finder-search {
  position: relative;
  display: flex;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(29, 36, 48, 0.16);
  overflow: hidden;
}

.finder-search input {
  flex: 1;
  border: 0;
  padding: 0.95rem 1.2rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  background: transparent;
}

.finder-near {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 1.1rem;
  cursor: pointer;
}

.finder-results {
  position: absolute;
  z-index: 3;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(29, 36, 48, 0.16);
  overflow: auto;
  max-height: 40vh;
}

.finder-results button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.8rem 1rem;
  font: inherit;
  cursor: pointer;
}

.finder-result-copy > span,
.finder-empty {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.finder-empty {
  padding: 0.9rem 1rem;
}

.finder-popup {
  min-width: 180px;
}

.finder-popup p,
.finder-popup a {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

.finder-logo {
  display: block;
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
  margin-bottom: 0.45rem;
}

.finder-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.finder-thumb {
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
}

.finder-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.4rem;
}

.finder-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 1.25rem;
  background: rgba(29, 36, 48, 0.86);
}

.finder-lightbox[hidden] {
  display: none;
}

.finder-lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.finder-lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1d2430;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.finder-results button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.finder-result-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.finder-result-copy {
  min-width: 0;
}

.supplier-reach {
  flex: none;
  padding: 1.15rem 0 0.35rem;
  background: var(--bg);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  list-style: none;
  margin: 0.75rem 0 0.7rem;
  padding: 0;
}

.logo-chip {
  width: 160px;
  min-height: 128px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.logo-chip.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(165, 106, 108, 0.25);
}

.logo-chip img {
  max-width: 120px;
  max-height: 56px;
  object-fit: contain;
}

.logo-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-page {
  padding: 3rem 0 4rem;
}

.admin-narrow {
  max-width: 720px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.admin-card {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 1.4rem;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.admin-card label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
}

.admin-card textarea {
  min-height: 8rem;
  resize: vertical;
}

.retailer-page {
  padding: 1.6rem 0 2.4rem;
}

.retailer-page h1 {
  margin-bottom: 0.35rem;
}

.retailer-form {
  gap: 0.65rem;
  margin-top: 0.8rem;
  padding: 0.9rem;
  min-width: 0;
  max-width: 100%;
}

.retailer-form textarea {
  min-height: 5rem;
}

.retailer-form input,
.retailer-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
}

.field-pair > label {
  min-width: 0;
}

.req {
  color: var(--accent);
}

.field-error {
  color: #8e5759;
  font-size: 0.75rem;
  font-weight: 500;
}

.admin-actions,
.coord-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.coord-row label {
  flex: 1;
}

.logo-preview {
  width: 120px;
  height: 56px;
  object-fit: contain;
}

.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.thumb-row form {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}

.thumb-row img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
}

.thumb-row button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.form-error,
.form-notice {
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
}

.form-error {
  background: #f8e8e6;
  color: #8e5759;
}

.form-notice {
  background: var(--blush);
}
