@font-face {
  font-family: Onest; src: url("./onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
}
:root { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 86px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Onest, Arial, sans-serif; }
.garden { --paper: #fffafb; --ink: #3e2330; --accent: #8e3459; --muted: #6d4b5b; --line: #ead7e0; --soft: #f8e8ee; --accent-ink: #fff; }
.studio { --paper: #fff; --ink: #38202d; --accent: #8f2e54; --muted: #6e4d5c; --line: #ecd7e1; --soft: #faedf2; --accent-ink: #fff; }
::selection { background: #eec4d4; color: #441b2e; }
:focus-visible { outline: 2px solid #a23061; outline-offset: 4px; }
body:has(dialog[open]) { overflow: hidden; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { line-height: 1.1; letter-spacing: -.038em; font-weight: 550; }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; padding: 0; background: none; }
button:disabled { cursor: default; opacity: .42; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.icon { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.symbols { position: absolute; width: 0; height: 0; pointer-events: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 12px; left: 12px; background: var(--paper); padding: 12px; }
.shell { width: min(89.5%, 1440px); margin-inline: auto; }
.mast { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-inner, .mast nav, .head-actions, .brand, .bag, .city { display: flex; align-items: center; }
.mast-inner { justify-content: space-between; gap: 24px; min-height: 75px; }
.brand { gap: .35em; font-size: 31px; line-height: 1; letter-spacing: -.04em; font-weight: 650; color: var(--accent); white-space: nowrap; }
.brand .icon { width: 1.05em; height: 1.05em; }
.mast nav { gap: clamp(14px, 2.4vw, 34px); font-size: 14px; }
.mast nav a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: .25em; }
.head-actions { gap: 14px; }
.city, .bag { gap: 6px; font-size: 13px; }
.bag, .menu-disclosure { min-height: 44px; border: 1px solid var(--line); border-radius: 99px; padding: 0 13px; }
.bag { background: var(--soft); }
.bag b { min-width: 1.65em; font-variant-numeric: tabular-nums; }
.menu-disclosure { display: none; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: .67em 1.25em; font-size: 14px; font-weight: 650; line-height: 1.4; border: 1px solid transparent; border-radius: 100px; text-align: center; }
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover { background: #562035; color: white; }
.secondary { border-color: currentColor; }
.secondary:hover { background: var(--soft); color: var(--ink); }

.cover { min-height: clamp(515px, 42vw, 650px); isolation: isolate; position: relative; display: grid; align-items: end; background: #faeaf0; color: var(--ink); overflow: hidden; }
.cover-photo { position: absolute; inset: 0 0 0 auto; width: 73%; height: 100%; object-fit: cover; object-position: 60% 38%; z-index: -2; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#faeaf0 0%,#faeaf0 28%,#faeaf0f5 36%,#faeaf0c9 48%,#faeaf02b 62%,#faeaf000 74%); }
.cover-inner { padding-block: 70px 65px; }
.cover-copy { max-width: 570px; }
.cover h1 { font-size: clamp(3.1rem, 5.2vw, 5.4rem); }
.cover h1 em { display: block; color: var(--accent); font-style: normal; }
.cover-copy p { max-width: 38ch; margin-block: 20px 25px; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cover .secondary { color: var(--accent); border-color: var(--accent); }

.studio .mast-inner { min-height: 79px; }
.studio .brand { font-size: 35px; font-weight: 730; }
.studio .brand .icon { transform: rotate(-12deg); }
.studio-hero { margin-block: 29px 0; position: relative; min-height: clamp(460px, 43vw, 634px); background: #fbeef3; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.studio-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 44px clamp(18px, 5vw, 82px); }
.studio-copy h1 { font-size: clamp(3rem, 5.7vw, 6rem); line-height: .99; color: #7f2a50; font-weight: 680; }
.studio-copy p { max-width: 32ch; margin: 24px 0 27px; color: #602d45; }
.studio-picture { position: relative; min-height: 420px; height: 100%; }
.studio-picture img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 50% 48%; }
.studio-inset { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%) rotate(-5deg); width: clamp(108px, 11vw, 155px); aspect-ratio: 4/5; background: white; padding: 5px; box-shadow: 0 10px 25px #55233b30; }
.studio-inset img { width: 100%; height: 100%; object-fit: cover; }

.collection { padding-block: clamp(44px, 4.9vw, 72px); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 21px; }
.studio .section-head h2 { color: var(--accent); }
.search { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 13px; width: min(33%, 285px); border: 1px solid var(--line); border-radius: 2px; color: var(--accent); }
.search:focus-within { border-color: var(--accent); }
.search input { min-width: 0; width: 100%; outline: none; border: 0; background: transparent; padding: 9px 0; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button, .pagination button { min-height: 40px; border: 1px solid var(--line); border-radius: 40px; font-size: 13px; padding: 6px 13px; }
.filters button:hover, .pagination button:not(:disabled):hover { border-color: var(--accent); }
.filters [aria-pressed=true], .pagination [aria-current=page] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.catalog-status { color: var(--muted); font-size: 13px; margin: 11px 0 15px; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px 19px; }
.product { min-width: 0; }
.product-photo { position: relative; aspect-ratio: 4/4.75; background: var(--soft); }
.product-open { width: 100%; height: 100%; display: block; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.studio .product-photo, .studio .product-photo img, .studio .product-placeholder { border-radius: 12px 12px 2px 2px; }
.product-placeholder { display: grid; place-content: center; justify-items: center; width: 100%; height: 100%; gap: 9px; color: var(--muted); background: var(--soft); font-size: 13px; }
.product-placeholder .icon { width: 34px; height: 34px; }
.product-add { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; width: 46px; height: 46px; color: var(--accent); background: var(--paper); border-radius: 100%; }
.product-add:hover { background: var(--accent); color: white; }
.product h3 { font-size: clamp(1rem, 1.55vw, 1.37rem); margin: 12px 0 4px; overflow-wrap: anywhere; }
.product h3 button { text-align: left; }
.product h3 button:hover { text-decoration: underline; text-underline-offset: .18em; }
.product-price { color: var(--accent); font-weight: 640; font-variant-numeric: tabular-nums; }
.product-price small { color: var(--muted); font-weight: 450; }
.unavailable-label { position: absolute; bottom: 9px; left: 9px; padding: 7px 10px; color: var(--ink); background: var(--paper); font-size: 12px; border-radius: 3px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 32px; }
.pagination:empty { display: none; }
.pagination button { min-width: 40px; }
.pagination span { padding-inline: 3px; color: var(--muted); }

.delivery { background: var(--soft); }
.delivery-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 6%; padding-block: clamp(35px, 5vw, 75px); }
.delivery-inner h2 { max-width: 13ch; }
.delivery-inner p { max-width: 44ch; margin: 19px 0 23px; }
.delivery-inner img { width: 100%; height: clamp(270px, 27vw, 420px); object-fit: cover; object-position: 50% 44%; }
.studio .delivery-inner img { border-radius: 180px 180px 8px 8px; object-position: 50% 39%; }
.colophon { border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr .7fr; align-items: start; gap: 25px; padding-block: 35px 50px; }
.footer-inner a:not(.brand) { width: fit-content; display: block; margin-top: 8px; font-size: 14px; }
.footer-inner h2 { font-size: 17px; }
.footer-brand { font-size: clamp(2rem, 5vw, 4rem); }

.dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 0; max-height: min(90dvh, 800px); width: min(710px,calc(100% - 24px)); }
.dialog::backdrop { background: #281722a0; }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--accent); border-radius: 100%; }
.dialog-close:hover { background: var(--soft); }
.product-dialog[open] { display: grid; grid-template-columns: 1.1fr .9fr; }
.product-dialog form { position: absolute; top: 10px; right: 10px; z-index: 1; }
.detail-photo { min-width: 0; background: var(--soft); min-height: 300px; }
.detail-photo img { width: 100%; height: 100%; max-height: 570px; object-fit: contain; }
.detail-copy { padding: 64px 23px 28px; }
.detail-copy h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); overflow-wrap: anywhere; }
.detail-copy p { margin-block: 12px; overflow-wrap: anywhere; }
#detail-price { color: var(--accent); font-weight: 700; }
.cart-dialog { width: min(530px,calc(100% - 24px)); padding: clamp(15px, 4vw, 27px); }
.cart-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.cart-heading h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cart-items { margin: 0; padding: 0; list-style: none; }
.cart-items li { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cart-product { font-weight: 600; }
.cart-unit, .cart-help { color: var(--muted); font-size: 13px; }
.cart-qty { display: grid; grid-template-columns: 44px minmax(24px,auto) 44px; align-items: center; text-align: center; }
.cart-qty button { width: 44px; height: 44px; color: var(--accent); border-radius: 100%; border: 1px solid var(--line); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 16px 0 4px; font-variant-numeric: tabular-nums; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
#cart-empty { margin: 13px 0 6px; }
.toast { position: fixed; z-index: 5; right: 16px; bottom: 16px; max-width: min(360px,calc(100% - 32px)); background: var(--accent); color: white; padding: 10px 15px; border-radius: 6px; font-size: 14px; pointer-events: none; }

@media (max-width: 970px) {
  .studio-inset { left: 52%; bottom: 17px; }
  .product-grid { gap: 24px 13px; }
}
@media (max-width: 700px) {
  :root { scroll-padding-top: 69px; }
  .shell { width: 91%; }
  .mast-inner, .studio .mast-inner { min-height: 61px; gap: 8px; }
  .mast nav, .city { display: none; }
  .mast nav.is-open { display: grid; position: absolute; top: 100%; inset-inline: 0; background: var(--paper); border-bottom: 1px solid var(--line); gap: 0; padding: 5px 4.5% 9px; }
  .mast nav a { padding-block: 11px; }
  .head-actions { gap: 6px; }
  .brand, .studio .brand { font-size: clamp(23px, 7vw, 31px); }
  .bag { padding: 0 8px; }
  .bag span { display: none; }
  .menu-disclosure { display: grid; place-items: center; padding: 0; width: 44px; color: var(--accent); }
  .cover { min-height: 530px; }
  .cover-photo { width: 100%; height: 68%; object-position: 50% 45%; }
  .cover::after { background: linear-gradient(0deg,#faeaf0 32%,#faeaf0 38%,#faeaf0de 48%,#faeaf000 67%); }
  .cover-inner { padding-block: 245px 26px; }
  .cover h1 { font-size: clamp(2.45rem, 9vw, 4rem); }
  .cover-copy p { font-size: 14px; margin-block: 12px 17px; }
  .hero-actions .action { font-size: 13px; padding-inline: .8em; }
  .studio-hero { margin-top: 13px; grid-template-columns: 1fr; }
  .studio-copy { padding: 28px 20px 21px; }
  .studio-copy h1 { font-size: clamp(2.3rem,10.5vw,4rem); }
  .studio-copy p { margin: 13px 0 16px; font-size: 14px; }
  .studio-picture { min-height: clamp(232px, 65vw, 390px); }
  .studio-picture img { object-position: 50% 45%; }
  .studio-inset { left: auto; right: 9px; bottom: 15px; width: 92px; transform: rotate(-6deg); }
  .section-head { gap: 9px; margin-bottom: 14px; align-items: start; flex-direction: column; }
  .search { width: 100%; }
  .filters button { padding-inline: 10px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-add { right: 6px; bottom: 6px; width: 44px; height: 44px; }
  .delivery-inner { grid-template-columns: 1fr; gap: 22px; }
  .delivery-inner img { height: 270px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 19px 9px; padding-block: 24px 35px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-inner h2 { font-size: 15px; }
  .footer-inner a:not(.brand) { font-size: 13px; }
  .product-dialog[open] { grid-template-columns: 1fr; }
  .detail-photo { min-height: 0; height: min(43dvh,420px); }
  .detail-copy { padding: 17px 14px 20px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

#detail-media { height: 100%; }

