@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --paper: #fbfaf2;
  --cream: #f4f2e7;
  --olive: #303a24;
  --moss: #4f5d3e;
  --sage: #e0e5d4;
  --ink: #2d3725;
  --muted: #56604c;
  --line: #cfd2c3;
  --rose: #9a4d5c;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --gutter: clamp(16px, 5.5vw, 100px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
section[id] { scroll-margin-top: 105px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:where(button, a, summary, input, textarea):focus-visible { outline: 2px solid #92623c; outline-offset: 3px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 12px; background: var(--olive); color: var(--paper); }
.skip:focus { left: 8px; }
.ribbon {
  padding: 7px var(--gutter);
  background: var(--olive);
  color: var(--paper);
  text-align: center;
  font-size: 10px;
  letter-spacing: .16em;
}
header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 6px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  position: relative;
  display: block;
  width: 148px;
  aspect-ratio: 1155 / 670;
  overflow: hidden;
}
.brand img {
  position: absolute;
  width: 135%;
  height: auto;
  max-width: none;
  left: -21.65%;
  top: -26.1%;
  mix-blend-mode: multiply;
}
nav { display: flex; gap: clamp(14px, 3vw, 42px); }
nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.basket {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 5px 8px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
}
.basket svg { width: 16px; height: 16px; }
.basket span {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--sage);
}
.hero {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: clamp(480px, 45vw, 680px);
  background: var(--cream);
}
.hero-copy {
  align-self: center;
  padding: clamp(38px, 5.5vw, 92px) 6% clamp(38px, 5.5vw, 92px) calc(var(--gutter) / .46);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
}
.eyebrow span { flex: 0 0 22px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font: 400 1em/1.06 var(--serif); letter-spacing: -.045em; }
h1 { font-size: clamp(45px, 5.65vw, 100px); margin: 16px 0; }
em { font-weight: 400; color: var(--moss); }
.hero p, .atelier p { max-width: 360px; margin-bottom: 24px; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, color .2s, opacity .2s;
}
.button:disabled { opacity: .55; cursor: default; }
.button.is-loading { opacity: .7; cursor: progress; }
.dark { background: var(--olive); color: var(--paper); }
.dark:hover { background: var(--moss); }
.light { background: var(--paper); color: var(--olive); }
.light:hover { background: var(--sage); }
.hero-photo, .atelier-photo { background: #a18b70 center / cover no-repeat; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; display: block; }
.hero-photo span {
  position: absolute;
  right: 16px;
  bottom: 15px;
  padding: 5px 9px;
  background: var(--olive);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: .17em;
}
.strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px clamp(14px, 5vw, 66px);
  padding: 12px var(--gutter);
  background: var(--sage);
  text-align: center;
  font: italic clamp(12px, 1.4vw, 19px) / 1.5 var(--serif);
}
.strip span::before { content: '✧'; margin-right: .5em; }
.collection, .info, .contact, .related, .notfound { padding: clamp(44px, 7vw, 100px) var(--gutter); }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-top p { max-width: 320px; color: var(--muted); }
.section-top h2, .info h2, .atelier h2, .contact h2, .notfound h1 { font-size: clamp(40px, 5.6vw, 86px); margin: 10px 0 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 19px; }
.filters button {
  min-height: 44px;
  padding: 5px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.filters button[aria-pressed=true] { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 27px); }
.product { min-width: 0; }
.product-image { position: relative; display: block; width: 100%; border: 0; padding: 0; overflow: hidden; background: var(--cream); }
.product img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; transition: transform .45s; }
@media (hover: hover) { .product-image:hover img { transform: scale(1.045); } }
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 70px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.product h3 { font-size: clamp(18px, 2vw, 32px); }
.product-meta small { color: var(--muted); font-size: 13px; }
.product-meta small s { opacity: .6; }
.is-sold .product-image img, .is-sold .creation-photo img, .is-sold .detail-photo img { filter: saturate(.5) brightness(.96); }
.sold-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  background: var(--olive);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.plus, .qty, .close, .sold-tag {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 22px;
  line-height: 1;
}
.plus, .qty { background: var(--sage); }
.sold-tag { font-size: 16px; color: var(--muted); border-style: dashed; }
.plus:hover, .qty:hover, .close:hover { border-color: var(--moss); }
.sample { font-size: 12px; color: var(--muted); margin-top: 14px; }
.atelier { display: grid; grid-template-columns: 1fr 1fr; background: var(--olive); color: var(--paper); }
.atelier-photo { background-image: url(fete.jpg); min-height: 330px; }
.atelier-copy { padding: clamp(32px, 7vw, 100px); }
.atelier em, .atelier p, .atelier .eyebrow { color: #e3e8d7; }
.atelier p { margin-top: 18px; max-width: 440px; }
.info, .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.contact { background: var(--cream); }
.contact .muted { max-width: 380px; margin-top: 12px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; min-height: 48px; padding: 13px 0; font-weight: 600; }
details p { padding-bottom: 14px; color: var(--muted); }
.contact-block { display: grid; gap: 10px; }
.contact-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-k { font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; padding-top: 4px; }
.contact-row address { font-style: normal; }
.contact-row a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
footer { padding: clamp(28px, 4vw, 48px) var(--gutter) 14px; background: var(--cream); border-top: 1px solid var(--line); }
.home footer { background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: clamp(20px, 4vw, 60px); }
.footer-grid .brand { margin-bottom: 8px; }
.footer-grid .contact-row { border: 0; padding: 4px 0; }
.footer-grid .eyebrow { margin-bottom: 10px; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.socials a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-weight: 600; }
.socials svg { width: 18px; height: 18px; }
.footer-links { margin-top: 14px; font-size: 13px; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.admin-link { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.admin-link:hover { opacity: 1; }
dialog {
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  padding: 22px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
dialog::backdrop { background: #1d281eb0; }
#cart {
  margin: 0 0 0 auto;
  width: 470px;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
#cart[open] { display: flex; flex-direction: column; }
.cart-view { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.drawer-head, .drawer-total, .cart-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.drawer-head { flex: none; }
.drawer-head h2, dialog h2 { font-size: clamp(32px, 6vw, 43px); margin: 8px 0 14px; }
#cart-items { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.drawer-total, .cart-line { padding: 12px 0; border-top: 1px solid var(--line); }
.cart-line img { width: 48px; height: 56px; object-fit: cover; }
.cart-line > div:first-of-type { flex: 1; min-width: 0; }
.cart-line small { display: block; color: var(--muted); }
.amount { display: flex; align-items: center; gap: 5px; }
.amount span { min-width: 1ch; text-align: center; }
#checkout-open, #checkout-submit, #checkout-close { width: 100%; flex-shrink: 0; }
.empty { padding: 16px 0; color: var(--muted); }
.checkout { overflow-y: auto; gap: 12px; padding-top: 4px; }
.checkout-intro { color: var(--muted); font-size: 14px; }
.checkout label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.checkout input:not([type=radio]):not([type=checkbox]), .checkout textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.checkout textarea { resize: vertical; }
.checkout .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.checkout legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.checkout .mode label { flex-direction: row; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; min-height: 46px; }
.checkout .mode { display: flex; flex-wrap: wrap; gap: 0 16px; }
.checkout .consent { flex-direction: row; align-items: flex-start; gap: 9px; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; color: var(--muted); }
.checkout .consent input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--rose); font-size: 13px; min-height: 0; }
.form-error:empty { display: none; }
.linklike { align-self: center; background: none; border: 0; padding: 8px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.checkout-done { justify-content: center; text-align: center; gap: 12px; }
.checkout-done h3 { font-size: clamp(40px, 7vw, 56px); }
.checkout-done .eyebrow { justify-content: center; }
.checkout-done p { color: var(--muted); }
#detail { width: 480px; }
#detail form { position: sticky; top: 0; height: 0; z-index: 1; }
#detail .close { margin-left: auto; transform: translate(-7px, 7px); }
.detail-photo { position: relative; }
#detail img { display: block; width: 100%; height: clamp(135px, 38vh, 350px); object-fit: cover; object-position: center 43%; }
#detail .eyebrow { margin-top: 16px; }
#detail .button { margin-top: 15px; width: 100%; }
#detail .back { display: inline-block; margin-top: 14px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }
.creation-price { font: 400 clamp(22px, 2.6vw, 30px)/1.2 var(--serif); margin: 6px 0 12px; }
.creation-price small { font: 12px var(--sans); color: var(--muted); margin-left: 6px; }
.creation-desc { color: var(--muted); max-width: 48ch; }
.availability { margin: 16px 0 10px; font-size: 13px; font-weight: 700; color: var(--moss); }
.availability.sold { color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.share-label { font-size: 10px; font-weight: 700; letter-spacing: .17em; margin-right: 6px; }
.share a, .share button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.share a:hover, .share button:hover { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.share-wa:hover { background: #25d366 !important; border-color: #25d366 !important; }
.share-fb:hover, .share-ms:hover { background: #1877f2 !important; border-color: #1877f2 !important; }
.share-pi:hover { background: #e60023 !important; border-color: #e60023 !important; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px var(--gutter) 0; font-size: 12px; color: var(--muted); }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.creation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(44px, 7vw, 90px); }
.creation-photo { position: relative; background: var(--cream); }
.creation-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.creation-copy { align-self: center; }
.creation-copy h1 { font-size: clamp(40px, 5vw, 76px); margin: 12px 0 6px; }
.creation-copy .button { margin-top: 6px; }
.creation-copy .back { display: inline-block; margin-top: 22px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.related { background: var(--cream); }
.related .section-top { margin-bottom: 22px; }
.notfound { text-align: center; min-height: 50vh; display: grid; place-content: center; gap: 12px; }
.notfound .eyebrow { justify-content: center; }
.toast {
  position: fixed;
  z-index: 3;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  background: var(--olive);
  color: white;
  border-radius: 3px;
  box-shadow: 0 5px 20px #202a1d38;
  pointer-events: none;
}
.toast:not(:empty) { padding: 10px 16px; }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 850px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product h3 { font-size: clamp(18px, 3.7vw, 29px); }
  .creation { grid-template-columns: 1fr; }
  .creation-photo { max-width: 560px; }
}
@media (max-width: 650px) {
  header { grid-template-columns: 1fr 1fr; gap: 0; padding-top: 3px; padding-bottom: 0; }
  .brand { width: 119px; }
  nav { grid-row: 2; grid-column: 1/-1; justify-content: center; gap: 0; border-top: 1px solid var(--line); }
  nav a { flex: 1; justify-content: center; font-size: 13px; position: relative; }
  nav a + a::before { content: ''; height: 13px; border-left: 1px solid var(--line); position: absolute; left: 0; }
  section[id] { scroll-margin-top: 120px; }
  .hero, .atelier, .info, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-copy { padding: 26px var(--gutter) 24px; }
  h1 { font-size: clamp(42px, 10vw, 62px); margin: 10px 0 12px; }
  .hero p { margin-bottom: 15px; }
  .hero-photo { min-height: clamp(215px, 58vw, 335px); }
  .hero-photo img { object-position: center 49%; }
  .strip { gap: 3px 11px; padding-block: 8px; }
  .section-top { display: block; }
  .section-top p { margin-top: 10px; }
  .filters { gap: 5px; }
  .filters button { padding-inline: 12px; }
  .atelier-photo { min-height: 240px; }
  .atelier-copy { padding: 28px var(--gutter) 36px; }
  .info, .contact { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  #cart { width: 100%; padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom)); }
  .checkout .two { grid-template-columns: 1fr; }
  #detail { padding: 13px; }
  .crumbs { padding-top: 10px; }
}
@media (max-width: 360px) {
  .ribbon { font-size: 8px; }
  .product-meta { align-items: start; }
  .cart-line img { width: 38px; height: 48px; }
  .cart-line { gap: 6px; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  header, .ribbon, .basket, dialog, .toast, .share, .filters { display: none !important; }
}
