/* =====================================================================
   Lilies for Lilith — portfolio styles
   Palette sampled from the design screenshots:
     cream  #F5EEE6   taupe #C0B9B2   ink #433D3A   lily orange #EA9246
   Type: Savoye LET wordmark (logo image) · Lora (headings) ·
         Sorts Mill Goudy / Goudy Old Style (body)
   ===================================================================== */

:root {
  --cream:      #F5EEE6;
  --cream-deep: #EFE6DA;
  --taupe:      #C0B9B2;
  --taupe-dark: #ABA39B;
  --ink:        #433D3A;
  --ink-soft:   #5E564F;
  --lily:       #EA9246;
  --lily-deep:  #D97E33;
  --line:       rgba(67, 61, 58, 0.16);

  --font-head: "Lora", "Iowan Old Style", Georgia, serif;
  --font-body: "Sorts Mill Goudy", "Goudy Old Style", "Palatino Linotype",
               Palatino, Georgia, serif;

  --wrap: 1120px;
  --measure: 60ch;

  --header-h: 52px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.18rem);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

strong { font-weight: 700; }

/* Two-band focus ring: a cream inner band + an ink outer band, so one band always
   clears WCAG 1.4.11 (3:1) whatever the background — ink-on-cream for the gallery,
   cream-band for the dark nav. The transparent outline keeps it visible in Windows
   forced-colors / high-contrast mode (which ignores box-shadow). */
:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink);
  border-radius: 3px;
}

/* ============================ Header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  background: var(--ink);
  color: var(--cream);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 7px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-actions { display: inline-flex; align-items: center; gap: 10px; }

/* ----- hamburger toggle (mirrors the round icon button on the right) ----- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(245, 238, 230, 0.55);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 17px;
  height: 11px;
}
.nav-toggle-bars span {
  display: block;
  height: 1.6px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* ----- buttons ----- */
.btn {
  --btn-fg: var(--cream);
  --btn-bd: rgba(245, 238, 230, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--btn-fg);
  text-decoration: none;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-email { padding: 7px 20px; }
.btn-icon  { padding: 6px; width: 38px; height: 38px; }
.btn-icon svg { width: 20px; height: 20px; display: block; }

.btn:hover,
.btn:focus-visible {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* decorative taupe band beneath the dark nav (matches the mockup) */
.nav-band {
  height: 34px;
  background: var(--taupe);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ============================ Layout ============================ */
main { display: block; }

section { padding-inline: clamp(20px, 5vw, 48px); }

.prose {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
}
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

/* ============================ Hero ============================ */
.hero {
  text-align: center;
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(8px, 2vw, 20px);
}
.hero-lilies {
  width: clamp(220px, 34vw, 400px);
  margin: 0 auto clamp(18px, 3vw, 34px);
}
.wordmark { margin: 0 auto; }
.wordmark img {
  width: clamp(280px, 60vw, 540px);
  margin: 0 auto;
}
.tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;            /* same look whether it's a <p> or an <h2> */
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.85rem);
  color: var(--ink-soft);
  margin: clamp(10px, 2vw, 22px) 0 0;
  letter-spacing: 0.01em;
}

/* ============================ Product intro / colorways ============================ */
.product-intro { padding-top: clamp(34px, 6vw, 64px); }

/* Product details: materials / colorways / sizes / measurements */
.specs {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.spec-list { margin: 0; }
.spec-group { margin-bottom: clamp(20px, 3vw, 34px); }
.spec-group:last-child { margin-bottom: 0; }
.spec-group dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.spec-group dd { margin: 0; }

/* floral bullets for the Materials list — the brand's lily orange */
.spec-bullets {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: inline-block;     /* shrink-wrap so the block centers, items stay left */
  text-align: left;
}
.spec-bullets li {
  position: relative;
  padding-left: 1.75em;
  margin: 0.22em 0;
}
.spec-bullets li::before {
  content: "\273F";          /* ✿ black (filled) florette */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lily);
  font-size: 0.92em;
  line-height: 1.85;
}

/* ============================ Care tips ============================ */
.care {
  padding-top: clamp(30px, 5vw, 56px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
/* paragraph-length items: floral marker hangs, text stays left-aligned & readable */
.care-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 56ch;
  text-align: left;
}
.care-list li {
  position: relative;
  padding-left: 2.1em;
  margin: 0 0 clamp(1.1rem, 2.6vw, 1.7rem);
}
.care-list li:last-child { margin-bottom: 0; }
.care-list li::before {
  content: "\273F";          /* ✿ filled florette, matching the spec bullets */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lily);
  font-size: 1.1em;
  line-height: 1.6;          /* nudge onto the first text line */
}

/* ============================ Product gallery ============================ */
.gallery {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: clamp(8px, 2vw, 18px);
  padding-bottom: clamp(40px, 7vw, 80px);
}
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 26px);
}
.product-card { margin: 0; }

.product-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: inherit;
}
.product-trigger img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(67, 61, 58, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-trigger:hover img,
.product-trigger:focus-visible img {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(67, 61, 58, 0.22);
}
.product-name {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.96rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* ============================ Meet the Artist ============================ */
.artist {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: clamp(36px, 6vw, 72px);
  padding-bottom: clamp(48px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.artist-text { max-width: 46ch; }
.artist h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}
.artist .handle {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 1.2rem;
  letter-spacing: 0.02em;
}
.artist-text p:last-child { margin-bottom: 0; }

.artist-photo { margin: 0; }
.artist-photo img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(67, 61, 58, 0.22);
}

/* ============================ Footer ============================ */
.site-footer {
  background: var(--taupe);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(14px, 2.5vw, 24px) clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: row;
  align-items: center;        /* lily + copyright sit side by side, centered */
  gap: clamp(12px, 2vw, 20px);
}
.footer-lily {
  width: clamp(52px, 8vw, 72px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(67, 61, 58, 0.18));
}
.copyright {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* thin brown bar at the very bottom — same ink as the top nav, ~half its height */
.footer-bar {
  height: 26px;
  background: var(--ink);
}

/* ============================ Slide-in menu ============================ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;               /* above the sticky header, below the lightbox */
}
.menu[hidden] { display: none; }

.menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(40, 35, 32, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu.is-open .menu-scrim { opacity: 1; }

.menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(330px, 84vw);
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 4vw, 26px) clamp(18px, 4vw, 30px) clamp(24px, 5vw, 38px);
  background: var(--cream);
  box-shadow: 0 0 48px rgba(67, 61, 58, 0.34);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.menu.is-open .menu-panel { transform: translateX(0); }

.menu-close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.menu-close:hover,
.menu-close:focus-visible {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.menu-mark {
  text-align: center;
  margin: clamp(6px, 2vw, 14px) 0 clamp(16px, 4vw, 26px);
}
.menu-mark img {
  width: clamp(54px, 16vw, 78px);
  height: auto;
  margin: 0 auto;
  opacity: 0.92;
  filter: drop-shadow(0 4px 10px rgba(67, 61, 58, 0.18));
}

.menu-nav ul { list-style: none; margin: 0; padding: 0; }
.menu-nav li { margin: 0; border-top: 1px solid var(--line); }
.menu-nav li:last-child { border-bottom: 1px solid var(--line); }
.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  padding: clamp(0.85rem, 2.6vw, 1.1rem) 0.3rem;
  font-family: var(--font-head);
  font-size: 1.24rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.menu-nav a::before {
  content: "\273F";          /* ✿ filled florette */
  color: var(--lily);
  font-size: 0.82em;
  line-height: 1;
  transition: transform 0.25s ease;
}
/* hover/focus: keep the high-contrast ink text (9.3:1) and signal with a lily
   underline + a playful florette spin — colour is never the sole cue */
.menu-nav a:hover,
.menu-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--lily);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
.menu-nav a:hover::before,
.menu-nav a:focus-visible::before { transform: rotate(45deg); }
/* current page: bold + a persistent lily underline. Weight & underline are
   non-colour cues, so "you are here" survives a grayscale / forced-colours test */
.menu-nav a[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lily);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
.menu-sub {
  font-style: italic;
  font-size: 0.78em;
  color: var(--ink-soft);
}

/* ============================ Lightbox ============================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 56px);
  background: rgba(40, 35, 32, 0.82);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-figure {
  margin: 0;
  text-align: center;
  max-width: min(680px, 92vw);
}
.lightbox-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: var(--cream);
}
.lightbox-caption {
  margin-top: 0.9rem;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  color: var(--cream);
}
.lightbox-close {
  position: absolute;
  top: clamp(10px, 2vw, 22px);
  right: clamp(12px, 3vw, 28px);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(245, 238, 230, 0.5);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--cream);
  color: var(--ink);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: rgba(40, 35, 32, 0.4);
  border: 1px solid rgba(245, 238, 230, 0.5);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.lightbox-nav svg { width: 26px; height: 26px; display: block; }
.lightbox-prev { left: clamp(10px, 3vw, 28px); }
.lightbox-next { right: clamp(10px, 3vw, 28px); }
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: var(--cream);
  color: var(--ink);
}
.lightbox-nav:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}
@media (max-width: 480px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-nav svg { width: 22px; height: 22px; }
}

/* ============================ Reveal on scroll ============================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================ Responsive ============================ */
@media (max-width: 860px) {
  .artist {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .artist-text { max-width: 56ch; }
  .artist .handle { color: var(--lily-deep); }
  .artist-photo {
    order: -1;            /* photo above text on narrow screens */
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-band { height: 26px; }
}

@media (max-width: 420px) {
  .nav-inner { padding-inline: 14px; }
  .btn-email { padding: 6px 15px; font-size: 0.86rem; }
  .product-name { font-size: 0.88rem; }
}

/* Touch devices: enlarge tap targets to the 44px guideline without
   affecting the compact mouse/desktop appearance. */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-icon { width: 44px; height: 44px; }
  .nav-toggle { width: 44px; height: 44px; }
  .menu-close { width: 44px; height: 44px; }
}

/* ============================ Motion / print ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
