/* ==========================================================================
   Maidenwick co. — shared stylesheet
   Palette: cream #FBF4EE · warm cocoa #6E4A3A · soft blush #D98C9A · ink #241C1A
   Fonts: Fraunces (headings) · Inter (body)
   ========================================================================== */

:root {
  --cream: #FBF4EE;
  --cocoa: #6E4A3A;
  --blush: #D98C9A;
  --ink:   #241C1A;

  --cream-deep: #F3E7DC;      /* image placeholder / quiet fills, a cream tone */
  --cocoa-ink: #4A2F24;       /* darker cocoa for text on cream when needed */

  --measure: 34rem;
  --page-max: 1240px;
  --pad-x: clamp(1.25rem, 5vw, 4.5rem);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--cocoa); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }
button { font-family: inherit; }

/* ---- layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cocoa);
  margin: 0 0 1.1rem;
}
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.6; max-width: var(--measure); }
.muted { color: var(--cocoa); }
.center { text-align: center; }

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 0.7rem 1.1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---- brand heart glyph -------------------------------------------------- */
.heart { display: inline-block; width: 0.72em; height: 0.72em; vertical-align: baseline; fill: currentColor; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid rgba(36, 28, 26, 0.14);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}
.brand-lock { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-lock img { width: 46px; height: 46px; object-fit: cover; border-radius: 2px; background: var(--cream-deep); }
.brand-lock__word {
  font-family: var(--font-head);
  font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 0.32em;
  line-height: 1;
}
.brand-lock__word .heart { color: var(--ink); width: 0.62em; height: 0.62em; }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); margin: 0; padding: 0; }
.primary-nav a {
  text-decoration: none; color: var(--ink);
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { border-bottom-color: var(--cocoa); }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.cart-link { white-space: nowrap; }
.cart-count {
  display: inline-block; min-width: 1.35em; text-align: center;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  color: var(--cream); background: var(--cocoa);
  padding: 0.05em 0.45em; border-radius: 2px; margin-left: 0.15em;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(36,28,26,0.25);
  color: var(--ink); padding: 0.5rem 0.7rem; border-radius: 2px;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  align-items: center; gap: 0.5rem;
}
.nav-toggle:hover { border-color: var(--cocoa); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream);
    border-bottom: 1px solid rgba(36,28,26,0.14);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--pad-x) 1.4rem; }
  .primary-nav li { border-top: 1px solid rgba(36,28,26,0.10); }
  .primary-nav li:first-child { border-top: 0; }
  .primary-nav a { display: block; padding: 0.85rem 0; border-bottom: 0; }
  .primary-nav a[aria-current="page"] { color: var(--cocoa); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--cocoa);
  border-radius: 2px;
  text-decoration: none; cursor: pointer;
  background: var(--cocoa); color: var(--cream);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:focus-visible { outline: 3px solid var(--blush); outline-offset: 2px; }

.btn--ghost { background: transparent; color: var(--cocoa); }
.btn--ghost:hover { background: var(--cocoa); color: var(--cream); }

.btn--block { width: 100%; }

.linkline {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; text-decoration: none; color: var(--cocoa);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.linkline:hover { border-bottom-color: var(--cocoa); }
.linkline::after { content: "\2192"; font-size: 1.05em; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { border-bottom: 1px solid rgba(36,28,26,0.12); }
.hero__inner {
  display: grid; grid-template-columns: 1.02fr 1fr; align-items: stretch;
  min-height: min(78vh, 720px);
}
.hero__copy {
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad-x);
  display: flex; flex-direction: column; justify-content: center;
  max-width: 640px; margin-left: auto; width: 100%;
}
.hero__title { font-size: clamp(2.6rem, 4.6vw, 4.4rem); font-weight: 400; }
.hero__title em { font-style: italic; color: var(--cocoa); }
.hero__copy p { margin-top: 1.5rem; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem); line-height: 1.6; max-width: 32rem; color: var(--cocoa-ink); }
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; align-items: center; }
.hero__media { background: var(--cream-deep); position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; aspect-ratio: 4 / 3; }
  .hero__copy { padding-block: clamp(2.2rem, 8vw, 3rem); max-width: none; }
}

/* ==========================================================================
   Generic editorial rows (image + text)
   ========================================================================== */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { background: var(--cream-deep); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split__body { max-width: 34rem; }
.split__body h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 3rem); font-weight: 400; }
.split__body p { margin-top: 1.2rem; color: var(--cocoa-ink); }
.split__body .btn, .split__body .linkline { margin-top: 1.8rem; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 1.6rem; }
  .split--reverse .split__media { order: 0; }
}

/* ==========================================================================
   Full-bleed band (solid colour, no gradient)
   ========================================================================== */
.band { background: var(--cocoa); color: var(--cream); }
.band h2 { color: var(--cream); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 3rem); font-weight: 400; }
.band p { color: rgba(251,244,238,0.86); margin-top: 1.1rem; max-width: 40rem; }
.band .btn { background: var(--cream); color: var(--cocoa); border-color: var(--cream); }
.band .btn:hover { background: var(--blush); border-color: var(--blush); color: var(--ink); }
.band__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 760px) { .band__inner { grid-template-columns: 1fr; } }

.band--blush { background: var(--blush); color: var(--ink); }
.band--blush h2 { color: var(--ink); }
.band--blush p { color: var(--cocoa-ink); }
.band--blush .btn { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.band--blush .btn:hover { background: var(--cocoa); border-color: var(--cocoa); }

/* ==========================================================================
   Product / category grid  (flat, editorial — no cards, no shadows)
   ========================================================================== */
.grid {
  display: grid; gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3 { grid-template-columns: 1fr 1fr; } }

.product__media { background: var(--cream-deep); overflow: hidden; aspect-ratio: 1 / 1; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; margin-top: 0.95rem; }
.product__name { font-family: var(--font-head); font-size: 1.18rem; font-weight: 500; line-height: 1.15; }
.product__price { font-family: var(--font-body); font-weight: 600; font-size: 1rem; white-space: nowrap; color: var(--cocoa); }
.product__notes { margin-top: 0.3rem; font-size: 0.92rem; color: var(--cocoa); line-height: 1.5; }
.product__add { margin-top: 0.9rem; }
.product__add .btn { padding: 0.62rem 1.1rem; font-size: 0.88rem; }

/* category header row */
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.cat-head h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.3rem); font-weight: 400; }
.cat-head p { color: var(--cocoa); font-size: 0.98rem; }

/* ==========================================================================
   Scent menu (typographic — no icons, no rules)
   ========================================================================== */
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem) clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 680px) { .menu { grid-template-columns: 1fr; } }
.menu__item { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 0.9rem; align-items: baseline; }
.menu__name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; }
.menu__name .heart { color: var(--blush); width: 0.6em; height: 0.6em; margin-left: 0.25em; }
.menu__notes { grid-column: 1 / -1; color: var(--cocoa); font-size: 0.98rem; margin-top: 0.1rem; }

/* ==========================================================================
   Page hero (interior)
   ========================================================================== */
.page-hero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem); font-weight: 400; max-width: 18ch; }
.page-hero p { margin-top: 1.3rem; }

/* ==========================================================================
   About page
   ========================================================================== */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4rem); margin-top: 2.5rem; }
.stat__n { font-family: var(--font-head); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 500; color: var(--cocoa); line-height: 1; }
.stat__l { font-size: 0.92rem; color: var(--cocoa); margin-top: 0.5rem; max-width: 16ch; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.channel { margin-bottom: 1.6rem; }
.channel__k { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--cocoa); }
.channel__v { font-family: var(--font-head); font-size: 1.3rem; margin-top: 0.25rem; }
.channel__v a { text-decoration: none; border-bottom: 2px solid transparent; }
.channel__v a:hover { border-bottom-color: var(--cocoa); }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.4rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid rgba(36,28,26,0.30); border-radius: 2px;
  padding: 0.75rem 0.85rem;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(36,28,26,0.45); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--blush); outline-offset: 1px; border-color: var(--cocoa);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.86rem; color: var(--cocoa); margin-top: 0.4rem; }

.form-status {
  margin-top: 1.2rem; padding: 1rem 1.15rem; border-radius: 2px;
  background: var(--cream-deep); color: var(--ink);
  border: 1px solid rgba(36,28,26,0.14);
  font-size: 0.98rem;
}
.form-status[hidden] { display: none; }

/* ==========================================================================
   Cart
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.1rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid rgba(36,28,26,0.14); }
.cart-line:first-child { border-top: 1px solid rgba(36,28,26,0.14); }
.cart-line__media { width: 84px; height: 84px; background: var(--cream-deep); overflow: hidden; }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-family: var(--font-head); font-size: 1.12rem; font-weight: 500; }
.cart-line__meta { font-size: 0.9rem; color: var(--cocoa); margin-top: 0.2rem; }
.cart-line__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.cart-line__total { font-weight: 600; }

.qty { display: inline-flex; align-items: center; border: 1px solid rgba(36,28,26,0.30); border-radius: 2px; }
.qty button {
  width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
}
.qty button:hover { background: var(--cream-deep); }
.qty button:focus-visible { outline: 3px solid var(--blush); outline-offset: -3px; }
.qty span { min-width: 2ch; text-align: center; font-weight: 600; font-size: 0.95rem; }

.cart-remove { background: none; border: 0; color: var(--cocoa); font-size: 0.85rem; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.cart-remove:hover { color: var(--ink); }

.summary { background: var(--cream-deep); padding: clamp(1.5rem, 3vw, 2rem); border-radius: 2px; position: sticky; top: 94px; }
.summary h2 { font-size: 1.5rem; font-weight: 500; }
.summary__row { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.98rem; }
.summary__row--total { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(36,28,26,0.18); font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; }
.summary .btn { margin-top: 1.6rem; }

.cart-empty { padding: 2.5rem 0; }
.cart-empty p { color: var(--cocoa); max-width: 34rem; margin-top: 0.8rem; }

/* checkout form appears below on cart page */
.checkout { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid rgba(36,28,26,0.14); }
.checkout h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 400; margin-bottom: 0.4rem; }
.checkout__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; margin-top: 1.6rem; }
.checkout__grid .field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .checkout__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--cream); margin-top: clamp(3rem, 7vw, 6rem); }
.site-footer a { color: var(--cream); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(2.8rem, 5vw, 4rem); }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .site-footer__inner { grid-template-columns: 1fr; } }
.footer-brand__word { font-family: var(--font-head); font-size: 1.4rem; display: inline-flex; align-items: center; gap: 0.3em; }
.footer-brand__word .heart { color: var(--blush); width: 0.6em; height: 0.6em; }
.footer-brand p { margin-top: 0.9rem; color: rgba(251,244,238,0.72); font-size: 0.95rem; max-width: 30ch; }
.footer-col h3 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: rgba(251,244,238,0.6); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { text-decoration: none; color: rgba(251,244,238,0.9); font-size: 0.95rem; }
.footer-col a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { border-top: 1px solid rgba(251,244,238,0.16); padding-block: 1.4rem 2rem; }
.footer-legal p { font-size: 0.85rem; color: rgba(251,244,238,0.66); margin-top: 0.3rem; }
.footer-legal a { color: rgba(251,244,238,0.9); }

/* ==========================================================================
   Motion — minimal, guarded
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

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