/* ==========================================================================
   Rose Memorials — stylesheet
   1. Fonts
   2. Tokens
   3. Base
   4. Layout helpers
   5. Buttons & links
   6. Header
   7. Hero
   8. Vine divider
   9. Category cards
   10. Feature band
   11. Product cards & grids
   12. Guides
   13. Promises strip
   14. Footer
   15. Inner pages (collection, product, guides)
   16. Utilities
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Italianno';
  src: url('../fonts/italianno-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --cream: #fcf6f2;
  --header-tint: #faece7; /* the header bar and the mobile menu panel */
  --band-h: calc(14px + env(safe-area-inset-top, 0px)); /* black band, pinned above the nav */
  --cream-warm: #fbf2ec;
  --blush: #fbe9e6;
  --blush-deep: #f6e0dc;
  --claret: #b34450;
  --claret-dark: #9a3340;
  --rose: #c24a5e;
  --rose-soft: #d9909c;
  --ink: #26191b;
  --ink-soft: #5c4a4e;
  --line: rgba(38, 25, 27, 0.14);
  --line-rose: rgba(194, 74, 94, 0.28);

  --display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --body: 'EB Garamond', 'Iowan Old Style', Georgia, serif;

  --wrap: 1120px;
  --radius-img: 14px;
  --shadow-soft: 0 18px 40px -26px rgba(74, 37, 43, 0.45);
}

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

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

html { overflow-x: clip; }

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--rose); }

:focus-visible {
  outline: 2px solid var(--claret);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--claret);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Black bands framing the page. The top one grows into the safe area so that
   when the site is opened from the home screen it fills the status bar too. */
.frame-band {
  background: #000;
  height: 14px;
}
.frame-band--top {
  height: var(--band-h);
  position: sticky;
  top: 0;
  z-index: 60;
}
.frame-band--bottom {
  height: calc(14px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 880px) {
  :root { --band-h: calc(22px + env(safe-area-inset-top, 0px)); }
  .frame-band--bottom { height: calc(22px + env(safe-area-inset-bottom, 0px)); }
}

/* 4. Layout helpers ------------------------------------------------------- */
.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding-block: clamp(1.2rem, 1.9vw, 1.7rem) clamp(0.6rem, 1vw, 0.9rem); }

.section-head {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto clamp(0.7rem, 1.2vw, 1rem);
}
.section-head h2 {
  font-size: clamp(2rem, 3.77vw, 3.40rem);
  font-weight: 500;
}
.section-head p {
  margin: 0.85rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.70vw, 1.53rem);
  max-width: 52rem;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 1.1rem;
}

/* 5. Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--claret);
  color: #fdf7f2;
  font-family: var(--body);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1;
  padding: clamp(0.85rem, 1.5vw, 1.3rem) clamp(1.7rem, 3.2vw, 2.95rem);
  border: 1px solid var(--claret);
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--claret-dark); border-color: var(--claret-dark); }
.btn--quiet {
  background: transparent;
  color: var(--claret);
}
.btn--quiet:hover { background: rgba(179, 68, 80, 0.08); border-color: var(--claret); }
.btn--block { width: 100%; justify-content: center; }

.arrow { font-family: var(--body); font-size: 1.05em; line-height: 1; }

.link-rose {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--rose);
  font-size: clamp(0.95rem, 1.25vw, 1.13rem);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-rose);
}
.link-rose:hover { text-decoration-color: var(--rose); }

/* 6. Header --------------------------------------------------------------- */
.page-top { position: static; }

.site-header {
  background: var(--header-tint);
  position: sticky;
  top: var(--band-h);
  z-index: 40;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  padding-block: 1.9rem 1.1rem;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
/* leaves room for the corner rose, as in the original layout */
@media (min-width: 881px) { .site-header .wrap { padding-left: 13.8%; } }
/* Narrow desktop can't fit the corner-rose indent, the wordmark and five nav
   links. Swap the big rose for the small mark, as on a phone. */
@media (min-width: 881px) and (max-width: 1220px) {
  .decor .rose-tl { display: none; }
  .site-header .logo-mark { display: block; width: clamp(48px, 4vw, 56px); }
  .site-header .wrap { padding-left: 0; }
  .site-header .logo { font-size: clamp(1.75rem, 4vw, 3.1rem); }
  .site-header .nav { margin-left: clamp(0.5rem, 1.2vw, 1.4rem); }
  /* Slightly tighter than the base rule because the corner-rose
     indent is dropped at this width and the logo grows — but still
     well above the old 15px, which was the real problem. */
  .site-header .nav a { font-size: clamp(1rem, 1.3vw, 1.18rem); }
}

/* transparent at the top so the corner rose reads, solid once it starts overlapping content */
.site-header.is-stuck {
  /* opaque, pitched midway through the wash so it never reads as a seam */
  background: var(--header-tint);
  box-shadow: 0 6px 18px -14px rgba(74, 37, 43, 0.5);
}

.logo {
  flex: none;                 /* never let the wordmark be squeezed into the nav */
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, calc(1.54rem + 1.93vw), 3.27rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
/* the corner rose, shrunk down: on phones always, on desktop only once the
   full-size one has scrolled out of view */
.logo-mark {
  width: clamp(48px, 14.5vw, 66px);
  height: auto;
  display: none;
  transition: opacity 0.2s ease;
}
@media (min-width: 881px) {
}

.nav { margin-left: clamp(0.5rem, 1.1vw, 1.3rem); }
.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.7vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  white-space: nowrap;
  color: var(--ink);
  /* EB Garamond's x-height is 0.400 em — measured from the font file,
     and exceptionally small (a typical sans is ~0.52). At 16px it has
     the apparent size of a sans at 12.3px, which is why the nav read
     as tiny even though the number looked reasonable next to 17px
     body text.

     19px here gives an x-height matching a sans at ~14.6px. Measured
     against the layout it still fits at every desktop width — the
     header needs 1048px of the 1200px available at its widest.

     Don't reduce this back toward the body size: with this typeface
     the two are not comparable. */
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current='page'] {
  color: var(--rose);
  border-bottom-color: var(--line-rose);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  padding-right: 0.4rem;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { color: var(--rose); background: rgba(194, 74, 94, 0.08); }
.icon-btn svg { width: 34px; height: 34px; }


.nav-toggle { display: none; }

.search-bar {
  display: none;
  padding: 0 0 1rem;
}
.search-bar.is-open { display: block; }
.search-bar form {
  display: flex;
  gap: 0.6rem;
  max-width: 34rem;
  margin-left: auto;
}
.search-bar input {
  flex: 1;
  font-family: var(--body);
  font-size: 1.02rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

/* 7. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(1rem, 2.2vw, 2.2rem) clamp(0.5rem, 1.2vw, 1rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 36.3fr 59.3fr;
  align-items: center;
  gap: 4.4%;
}

.hero-copy { position: relative; z-index: 4; }

.hero h1 {
  font-size: clamp(2.25rem, 4.04vw, 3.64rem);
  font-weight: 700;
  line-height: 1.06;
  margin: 0 0 1.1rem;
  text-wrap: pretty;
}
.hero h1 .flourish {
  display: inline-block;
  width: clamp(4.6rem, 8.5vw, 7.6rem);
  vertical-align: 0.04em;
  margin-left: 0.4rem;
  color: var(--rose);
}
.lg-break { display: inline; }   /* concept keeps these line breaks on mobile too */

/* Headline: each line is SVG text revealed by a thick stroke following the
   route a pen would take, so the phrase writes itself on. */
.hero h1.hero-title { display: block; max-width: 100%; margin-bottom: 1.7rem; }
.hero h1.hero-title .hl-line {
  display: block;
  width: var(--w);
  max-width: 100%;
  height: auto;
  overflow: visible;
  margin-bottom: -0.16em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 100px;
  letter-spacing: -1.5px;
  fill: var(--ink);
  /* a soft shadow so the letters lift off the background */
  filter: drop-shadow(0 2px 3px rgba(74, 37, 43, 0.20));
}
.hero h1.hero-title .hl-accent { fill: var(--claret); }
.hero h1.hero-title .pen {
  stroke-dasharray: 1 1.02;
  stroke-dashoffset: 1;
  /* gentler: eases in and out rather than driving through */
  animation: pen-writes var(--dur, 2.2s) cubic-bezier(0.33, 0, 0.3, 1) var(--delay, 0.5s) forwards;
}
@keyframes pen-writes { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1.hero-title .pen { animation: none; stroke-dashoffset: 0; }
}
.hero-copy > p:not(.eyebrow) {
  font-size: clamp(1.15rem, 1.78vw, 1.6rem);
  color: var(--ink-soft);
  max-width: 21rem;
  margin-bottom: 1.1rem;
  line-height: 1.4;
}
.hero .eyebrow {
  max-width: none;
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
}

.hero-figure {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.721;
  clip-path: polygon(0% 22%, 6% 10%, 18% 3%, 50% 0%, 82% 3%, 94% 10%, 100% 22%, 100% 100%, 0% 100%);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Decorative roses, pinned to the content column rather than the viewport */
.decor {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--wrap), 100% - 2.5rem);
  pointer-events: none;
  z-index: 1;
}
.rose { position: absolute; user-select: none; pointer-events: none; }
.rose-tl {
  top: 0.35rem;
  /* sit against the viewport edge whatever the gutter is, so it never clips */
  left: calc(0.5rem - (100vw - 100%) / 2);
  width: clamp(136px, 14.6vw, 210px);
}
.hero-shot { position: relative; }
.rose-tr {
  top: -1.6rem;
  right: -2.2rem;
  width: clamp(140px, 19vw, 275px);
  z-index: 3;
}

/* 8. Vine divider --------------------------------------------------------- */
.vine-band {
  padding-block: 0;
  overflow: visible;
}
.vine {
  display: block;
  width: 100%;
  height: auto;               /* full artwork, never cropped */
  /* the tall leaf clusters sit at the far ends, clear of any text, so the
     band can overlap its neighbours instead of reserving their full height */
  margin-block: clamp(-3.6rem, -3.8vw, -1.2rem);
}

.vine-band + .section { padding-top: clamp(0.4rem, 0.8vw, 0.7rem); }

/* 9. Category cards ------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8%;
}
.cat-card { text-align: center; }
.cat-card > a { display: block; text-decoration: none; color: inherit; }
.cat-card .shot {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-img);
  aspect-ratio: 1.51;
  background: var(--blush-deep);
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-card > a:hover img { transform: scale(1.035); }
.cat-card h3 {
  font-size: clamp(1.15rem, 1.73vw, 1.56rem);
  font-weight: 600;
  margin: 0.55rem 0 0.35rem;
}
.cat-card p {
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.33vw, 1.2rem);
  line-height: 1.4;
  max-width: 23ch;
  margin: 0 auto 0.35rem;
}

/* 10. Feature band -------------------------------------------------------- */
.band {
  position: relative;
  background: var(--blush);
  overflow: visible;                  /* lets the rose break out of the band */
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
}
.band .wrap {
  display: grid;
  grid-template-columns: 53fr 45fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
  z-index: 2;
}
.band-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(0rem, 23.5vw, 20rem);
}
.band h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.34rem);
  font-weight: 500;
  margin-bottom: 0.9rem;
  max-width: none;
}
.band p {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.45vw, 1.3rem);
  max-width: 35ch;
  margin-bottom: 1.6rem;
}
.band-figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.883;
  clip-path: polygon(0% 22%, 6% 10%, 18% 3%, 50% 0%, 82% 3%, 94% 10%, 100% 22%, 100% 100%, 0% 100%);
}
.band-figure img { width: 100%; height: 100%; object-fit: cover; }
.rose-band {
  position: absolute;
  left: clamp(-7.5rem, -7.6vw, -2rem);
  top: -25%;                          /* rides up over the band's top edge */
  /* deliberately larger than the band: the bloom reads in full and the
     outer leaves and vine tail run off the edges, as in the concept */
  width: clamp(240px, 32vw, 470px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* 11. Product cards ------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.1rem, 2.4vw, 1.9rem);
}
.product-card { position: relative; }
.product-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-card .shot {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-img);
  aspect-ratio: 1 / 1;
  background: var(--blush-deep);
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card > a:hover img { transform: scale(1.035); }
.product-card h3 {
  font-size: 1.16rem;
  font-weight: 600;
  margin: 0.9rem 0 0.2rem;
}
.product-card .note {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0 0 0.35rem;
}
.product-card .price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.section-foot { text-align: center; margin-top: clamp(2rem, 4vw, 2.9rem); }

/* 12. Guides -------------------------------------------------------------- */
.guides { background: var(--cream-warm); }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
}
.guide {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-rose);
}
.guide h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.guide p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 0.8rem;
}

/* 13. Promises strip ------------------------------------------------------ */
.promises { border-top: 1px solid var(--line); }
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
}
.promise h3 {
  font-family: var(--body);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
}
.promise p { color: var(--ink-soft); font-size: 1rem; }
.promise svg { width: 26px; height: 26px; color: var(--rose); margin-bottom: 0.6rem; }

/* 14. Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--blush-deep);
  padding-block: clamp(2.75rem, 5vw, 4rem) 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.footer-brand .logo { font-size: 1.6rem; }
.footer-brand p {
  color: var(--ink-soft);
  max-width: 28ch;
  margin-top: 0.8rem;
}
.site-footer h4 {
  font-family: var(--body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer li a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
}
.site-footer li a:hover { color: var(--rose); text-decoration: underline; text-underline-offset: 0.25em; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(38, 25, 27, 0.12);
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.footer-base p { margin: 0; }

/* 15. Inner pages --------------------------------------------------------- */
.page-head {
  position: relative;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
}
.page-head h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.page-head p {
  color: var(--ink-soft);
  max-width: 48ch;
  font-size: 1.1rem;
}
.crumbs {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--rose); text-decoration: underline; text-underline-offset: 0.25em; }
.crumbs span { margin-inline: 0.4rem; color: var(--rose-soft); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding-block: 1.1rem;
  border-block: 1px solid var(--line);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chips a {
  display: inline-block;
  padding: 0.38rem 0.95rem;
  border: 1px solid var(--line-rose);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
}
.chips a:hover { background: rgba(194, 74, 94, 0.08); }
.chips a[aria-current='true'] { background: var(--claret); border-color: var(--claret); color: #fdf7f2; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; color: var(--ink-soft); }
.sort select {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

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

/* Product detail */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.pdp-gallery .shot-main {
  overflow: hidden;
  border-radius: var(--radius-img);
  aspect-ratio: 1 / 1;
  background: var(--blush-deep);
}
.pdp-gallery .shot-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.thumbs button {
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  overflow: hidden;
  background: var(--blush-deep);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.thumbs button[aria-current='true'] { border-color: var(--rose); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.pdp-price {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.pdp-info > p { color: var(--ink-soft); max-width: 46ch; }

.field { margin-top: 1.5rem; }
.field > label, .field > legend {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.55rem;
  padding: 0;
}
.field input[type='text'] {
  width: 100%;
  font-family: var(--body);
  font-size: 1.05rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
.field .hint { color: var(--ink-soft); font-size: 0.96rem; margin: 0.45rem 0 0; }
fieldset.field { border: 0; margin-inline: 0; }
.options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.options label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  background: #fff;
}
.options input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  margin: 0;
  cursor: pointer;
}
.options input:checked + span { color: var(--claret); font-weight: 600; }
.options label:has(input:checked) { border-color: var(--claret); background: rgba(179, 68, 80, 0.06); }
.options label:has(input:focus-visible) { outline: 2px solid var(--claret); outline-offset: 2px; }

.pdp-actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.pdp-note { color: var(--ink-soft); font-size: 1rem; margin-top: 1rem; }

.accordion { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  color: var(--rose);
  font-size: 1.3rem;
  line-height: 1;
}
.accordion details[open] summary::after { content: '–'; }
.accordion .panel { padding-bottom: 1.1rem; color: var(--ink-soft); }
.accordion .panel ul { margin: 0; padding-left: 1.1rem; }

/* Guides listing */
.article-list { display: grid; gap: clamp(1.5rem, 3vw, 2.2rem); max-width: 54rem; }
.article {
  padding-bottom: clamp(1.5rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
}
.article:last-child { border-bottom: 0; }
.article h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 500;
  margin-bottom: 0.45rem;
}
.article p { color: var(--ink-soft); margin-bottom: 0.7rem; }
.article .meta { font-size: 0.95rem; color: var(--rose); margin-bottom: 0.4rem; }

/* 16. Utilities ----------------------------------------------------------- */
.img-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  min-height: 90px;
  padding: 1rem;
  background: repeating-linear-gradient(45deg, #f7e2de, #f7e2de 10px, #f3dad5 10px, #f3dad5 20px);
  color: #8c5b60;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.3;
}
.img-missing code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.76rem;
  word-break: break-all;
  opacity: 0.85;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1020px) {
  .cat-grid, .product-grid, .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .logo-mark { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--header-tint);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: none;
    z-index: 30;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; }
  .nav a { display: block; padding: 0.85rem 0; font-size: 1.12rem; }
  .nav-toggle { display: inline-flex; order: -1; }
  .site-header .wrap { position: relative; gap: 0.75rem; }
  .header-tools { margin-left: auto; gap: 0.35rem; }

  .hero .wrap { grid-template-columns: 1fr; gap: 0.3rem; }
  .hero-copy { order: 1; padding-left: 0; margin-right: 0; }
  /* the concept's phone stacks these much more tightly */
  .site-header { padding-block: 0.85rem 0.8rem; border-bottom: 1px solid rgba(38, 25, 27, 0.10); }
  .logo { font-size: clamp(1.45rem, 6.5vw, 2.1rem); }
  .hero { padding-block: 2rem 0.3rem; }
  .hero .eyebrow { margin-bottom: 0.2rem; }
  .hero h1 { margin-bottom: 0.75rem; line-height: 1.14; }
  .hero .btn { font-size: 1.06rem; gap: 0.45rem; padding: 0.95rem 1.45rem; }
  .hero .wrap { row-gap: 1.25rem; }
  .section-head h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .section-head { margin-bottom: 0.55rem; }
  .section-head p { margin-top: 0.35rem; }
  .section-head p { font-size: clamp(0.98rem, 4vw, 1.12rem); }
  .hero-shot { order: 2; position: static; }
  /* the phone mockup runs the hero photo edge to edge, and much flatter */
  /* keep the photo near the traced shape's own ratio so the curves don't flatten */
  .hero-figure { margin-inline: -1.25rem; aspect-ratio: 2.0; }
  /* the divider and the heading below it both need room on a phone */
  .vine { margin-block: 0.25rem 0; }
  .vine-band + .section { padding-top: 1.9rem; }
  .cat-card .shot { aspect-ratio: 1.78; }
  /* same ratio at every width so the traced shape never distorts */
  .hero h1 { max-width: 16ch; }
  .section-head h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .section-head { margin-bottom: 0.55rem; }
  .section-head p { margin-top: 0.35rem; }
  .section-head p { font-size: clamp(0.98rem, 4vw, 1.12rem); }
  .hero-copy > p:not(.eyebrow) { font-size: 1.24rem; line-height: 1.5; margin-bottom: 1.15rem; max-width: 24ch; }
  .hero-copy p { max-width: 34ch; }
  /* no clear space beside the text at this width — the logo mark carries the motif */
  .rose-tl { display: none; }
  /* concept puts a large rose over the top right of the headline, not by the photo */
  /* mirrored and much larger: the bloom reads, and the vine sweeps left
     across the headline instead of trailing bare down the edge */
  /* its own artwork on a phone: a bud and stem, already compact, so no crop */
  .rose-tr {
    top: -1.6rem;
    right: -3.6rem;
    width: clamp(150px, 46vw, 200px);
    height: auto;
    object-fit: fill;
    -webkit-mask-image: none;
    mask-image: none;
    transform: none;
    z-index: 50;                      /* draws over the nav bar, not behind it */
  }
  .eyebrow { letter-spacing: 0.16em; font-size: 0.78rem; }
  .band-copy { padding-left: 0; }

  .band .wrap { grid-template-columns: 1fr; }
  .band-copy { order: 1; }
  .band-figure { order: 2; }
  .band h2, .band p { max-width: none; }
  /* give the rose its own strip under the photo rather than sitting over the copy */
  .band { padding-bottom: 10rem; }
  .rose-band {
    left: -1.75rem; bottom: -1rem; top: auto; right: auto;
    height: 12rem; max-height: none; width: auto;
  }

  .pdp { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; text-align: left; }
  .promise svg { margin-bottom: 0.3rem; }
}

@media (max-width: 560px) {
  body { font-size: 1.02rem; }
  /* concept uses ~24px gutters, not 14 */
  .wrap { width: min(var(--wrap), 100% - 3rem); }
  /* concept keeps a 2-up grid on the phone */
  .cat-grid, .product-grid, .collection-grid { grid-template-columns: repeat(2, 1fr); gap: 4%; }
  .cat-card h3 { font-size: 0.98rem; }
  .cat-card p { font-size: 0.82rem; max-width: none; }
  .cat-card .link-rose, .product-card .note { font-size: 0.82rem; }
  .product-card h3 { font-size: 1.02rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .sort { margin-left: 0; width: 100%; }
  .hero .eyebrow { font-size: 0.92rem; letter-spacing: 0.12em; }
}
@media (max-width: 370px) {
  .hero .eyebrow { font-size: 0.82rem; letter-spacing: 0.1em; }
  .hero-figure { margin-inline: -1.5rem; }
}

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

/* ---- mobile layout, matching the phone concept ------------------------- */
@media (max-width: 880px) {
  /* logo left, controls right, with a hairline under the bar */
  .nav-toggle { order: 3; }
  .header-tools { order: 2; }
  .site-header .wrap { gap: 0.4rem; }
  .header-tools { margin-left: auto; padding-right: 0; }

  /* hero: copy, full-width button, then the photo */
  .hero .btn { width: 100%; justify-content: center; font-size: 1.12rem; padding: 1.05rem 1.2rem; }
  .hero-figure {
    margin-inline: 0;
    aspect-ratio: 1.18;
    clip-path: none;
    border-radius: 12px;
  }
  .shot-note {
    margin: 0.7rem 0 0;
    text-align: center;
    font-size: 0.86rem;
    color: var(--ink-soft);
  }

  /* the guides panel */
  .help-panel { margin-top: 1.1rem; }

}
/* the longest label can't hold one line on the narrowest phones */
@media (max-width: 345px) {
  .cat-card h3 { white-space: normal; font-size: 0.86rem; align-items: flex-start; }
}

/* "A little help choosing" panel */
.help-panel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: #fdf7f3;
  border: 1px solid rgba(38, 25, 27, 0.07);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.help-panel img { width: 76px; height: auto; flex: none; }
.help-panel strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
}
.help-panel em {
  display: block;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0.15rem 0 0.3rem;
}

/* ---- category cards as panels, at every width -------------------------- */
.section-head p { display: none; }
.cat-card { min-width: 0; }
.cat-card > a {
  display: block;
  background: #fcf9f5;
  border: 1px solid rgba(38, 25, 27, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.cat-card .shot { border-radius: 0; aspect-ratio: 1.22; }
.cat-card h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.75rem 0.85rem 0.85rem;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  text-align: left;
  white-space: nowrap;
}
.cat-card h3::after {
  content: '\2192';
  color: var(--rose);
  font-size: 1.05em;
  margin-left: auto;
}
.cat-card p, .cat-card .link-rose { display: none; }
@media (max-width: 345px) {
  .cat-card h3 { white-space: normal; font-size: 0.86rem; align-items: flex-start; }
}

/* ---- hero photo: a plain rounded rectangle, as the concept shows -------- */
.hero-figure, .band-figure {
  clip-path: none;
  border-radius: 12px;
}
.hero-figure { aspect-ratio: 2.0; }

/* ---- no corner rose on desktop; the header mark carries it -------------- */
@media (min-width: 881px) {
  .decor .rose-tl { display: none; }
  .site-header .logo-mark { display: block; width: clamp(48px, 4vw, 56px); }
  .site-header .wrap { padding-left: 0; }
  .site-header { border-bottom: 1px solid rgba(38, 25, 27, 0.10); }
  /* the rose sits up by the header, beyond the photo, as on a phone */
  /* left rose beside the copy, mirrored so the bud faces in */
  .rose-tr {
    top: 1.4rem;
    right: auto;
    /* anchored to the container edge, so it tracks the layout */
    left: calc((100% - min(var(--wrap), 100% - 2.5rem)) / 2 - 9.4rem);
    width: clamp(110px, 10.5vw, 150px);
    transform: scaleX(-1);
    z-index: 1;
  }
  /* copy clears the rose by a little */
  .hero-copy { padding-left: 1.3rem; }
}

/* ---- guides panel across the full width -------------------------------- */
@media (min-width: 881px) {
  .help-panel { gap: 1.8rem; padding: 1.2rem 2rem; }
  .help-panel img { width: 130px; }
  .help-panel strong { font-size: 1.6rem; }
  .help-panel em { font-size: 1.1rem; }
}

/* narrow desktop has almost no side margin, so the rose tucks against the
   page edge and the copy steps in to clear it */
@media (min-width: 881px) and (max-width: 1240px) {
  .rose-tr {
    left: -2.4rem;
    width: clamp(100px, 9vw, 120px);
  }
  .hero-copy { padding-left: 5rem; }
}

/* the hero button carries more weight on a large screen */
@media (min-width: 881px) {
  .hero .btn {
    font-size: clamp(1.25rem, 1.9vw, 1.72rem);
    padding: 0.85em 1.5em;
  }
}

/* the narrowest phones can't fit the full wordmark plus both controls */
@media (max-width: 360px) {
  .site-header .logo { font-size: 1.28rem; }
  .site-header .logo-mark { width: 40px; }
  .site-header .wrap { gap: 0.25rem; }
}

/* second rose: right margin, sitting level with the foot of the photo and
   clear of it, flipped the other way so the pair mirror each other */
.rose-br { display: none; }
/* only where the side margin is wide enough to hold it */
@media (min-width: 1430px) {
  .rose-br {
    display: block;
    position: absolute;
    left: calc(100% + 0.6rem);
    bottom: 1.7rem;
    width: clamp(110px, 10.5vw, 160px);
    z-index: 1;
  }
}
