:root {
  --cream: #f7f0e6;
  --paper: #fffaf3;
  --sand: #ead9c4;
  --clay: #b85c3c;
  --clay-dark: #8f4229;
  --ink: #33241c;
  --muted: #7a685b;
  --sage: #8b9a7c;
  --line: #e3d3bf;
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 10px 30px -12px rgba(70, 40, 20, .25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--clay); font-weight: 600; margin: 0 0 .7rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 100; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 240, 230, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; color: var(--clay-dark); }
.brand-mark.small { font-size: 1.3rem; }
.brand-by { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.cart-btn { position: relative; border: 0; background: var(--paper); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -3px; right: -3px; background: var(--clay); color: #fff; font-size: .7rem; font-weight: 600; min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.cart-count[data-zero="true"] { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; transition: transform .15s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost { border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.icon-btn { border: 0; background: none; font-size: 1.8rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; }
.icon-btn:hover { background: var(--sand); }
.linkish { border: 0; background: none; padding: 0; text-align: left; font: inherit; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1rem, 4vw, 3rem) 2.5rem; max-width: 1240px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 300; }
.hero h1 em { font-style: italic; color: var(--clay); font-weight: 500; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 34rem; margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(.5px); }
.b1 { inset: 8% 10% 12% 6%; background: var(--sand); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; }
.b2 { width: 34%; height: 34%; right: 2%; top: 4%; background: #e9c5ad; }
.b3 { width: 24%; height: 24%; left: 4%; bottom: 6%; background: #cfd7c4; }
.hero-img { position: absolute; border-radius: 22px; box-shadow: var(--shadow); background: var(--paper); }
.hero-img.h1 { width: 52%; left: 12%; top: 14%; transform: rotate(-5deg); }
.hero-img.h2 { width: 40%; right: 6%; top: 30%; transform: rotate(6deg); }
.hero-img.h3 { width: 36%; left: 34%; bottom: 4%; transform: rotate(-2deg); }

.promise { list-style: none; margin: 0 auto; padding: 1.6rem clamp(1rem, 4vw, 3rem); max-width: 1240px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise li { display: flex; flex-direction: column; }
.promise strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.promise span { color: var(--muted); font-size: .9rem; }

/* Shop */
.shop { max-width: 1240px; margin: 0 auto; padding: 4rem clamp(1rem, 4vw, 3rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: var(--paper); padding: .45rem 1rem; border-radius: 999px; font-size: .88rem; }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem 1.3rem; }
.loading, .empty { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 2rem 0; }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .35s; }
.card-media img.alt { position: absolute; inset: 0; opacity: 0; }
.card-media:hover img { transform: scale(1.04); }
.card-media:hover img.alt { opacity: 1; }
.is-sold .card-media img { filter: grayscale(.4) opacity(.75); }
.badge { position: absolute; left: .8rem; top: .8rem; background: var(--paper); color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; }
.badge-warm { background: var(--clay); color: #fff; }
.card-body { padding: .85rem .2rem 0; }
.card-cat { margin: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 1.15rem; margin: .2rem 0 .5rem; }
.card-row { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 600; }
.add { border: 1px solid var(--ink); background: none; border-radius: 999px; padding: .32rem .85rem; font-size: .82rem; font-weight: 600; }
.add:hover { background: var(--ink); color: var(--paper); }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; background: var(--paper); padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 6vw, 6rem); }
.about-art img { border-radius: 200px 200px 24px 24px; box-shadow: var(--shadow); max-width: 420px; width: 100%; margin: 0 auto; }
.about-copy p { color: var(--muted); max-width: 36rem; font-size: 1.05rem; }
.about-copy h2 { margin-bottom: 1rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.3rem !important; color: var(--clay-dark) !important; }

/* Care */
.care { max-width: 860px; margin: 0 auto; padding: 4.5rem clamp(1rem, 4vw, 2rem); }
.care h2 { margin-bottom: 1.6rem; text-align: center; }
.accordion details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.accordion summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::after { content: "+"; color: var(--clay); font-family: var(--sans); }
.accordion details[open] summary::after { content: "−"; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion p { color: var(--muted); margin: .7rem 0 0; }

/* Contact */
.contact { text-align: center; padding: 4rem 1rem 5rem; background: var(--sand); }
.contact p { color: var(--muted); }
.contact-links { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; padding: 1.6rem clamp(1rem, 4vw, 3rem); font-size: .85rem; color: var(--muted); }

/* Product dialog */
.product-dialog { border: 0; padding: 0; border-radius: 24px; max-width: 920px; width: calc(100% - 2rem); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(40, 20, 10, .45); }
.product-dialog::backdrop { background: rgba(40, 25, 15, .45); backdrop-filter: blur(3px); }
.product-dialog .close { position: absolute; right: .8rem; top: .8rem; z-index: 2; background: var(--paper); }
.pd-body { display: grid; grid-template-columns: 1fr 1fr; }
.pd-gallery { background: var(--sand); padding: 1rem; }
.pd-gallery > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.pd-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.pd-thumbs button { border: 0; padding: 0; border-radius: 10px; overflow: hidden; width: 64px; flex: none; }
.pd-thumbs img { aspect-ratio: 1; object-fit: cover; }
.pd-info { padding: 2.4rem 2rem 2rem; display: flex; flex-direction: column; }
.pd-info h3 { font-size: 2rem; }
.pd-price { font-size: 1.3rem; font-weight: 600; margin: .6rem 0 1rem; }
.pd-info > p:not(.eyebrow):not(.pd-price) { color: var(--muted); }
.pd-materials { font-size: .9rem; }
.pd-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: auto; padding-top: 1.2rem; }
.pd-note { font-size: .8rem !important; margin-top: 1rem; }

/* Cart */
.scrim { position: fixed; inset: 0; background: rgba(40, 25, 15, .4); z-index: 40; }
.cart { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--paper); z-index: 50; transform: translateX(100%); transition: transform .3s ease, visibility .3s; visibility: hidden; display: flex; flex-direction: column; }
.cart.open { transform: none; visibility: visible; box-shadow: -20px 0 50px -20px rgba(40, 20, 10, .3); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.5rem; }
.cart-items { flex: 1; overflow-y: auto; padding: .6rem 1.4rem; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.line-name { margin: 0; font-weight: 600; }
.line-price { margin: 0; color: var(--muted); font-size: .9rem; }
.qty { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.qty button { border: 1px solid var(--line); background: none; width: 28px; height: 28px; border-radius: 50%; }
.qty .remove { width: auto; border: 0; text-decoration: underline; color: var(--muted); font-size: .82rem; margin-left: auto; }
.cart-foot { padding: 1.2rem 1.4rem 1.6rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .6rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.cart-note { margin: 0; color: var(--muted); font-size: .82rem; }
.checkout-buttons { display: flex; flex-direction: column; gap: .5rem; }
.cart-error { margin: 0; color: #a23b25; font-size: .85rem; min-height: 1em; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 200%); opacity: 0; background: var(--ink); color: var(--paper); padding: .7rem 1.2rem; border-radius: 999px; font-size: .9rem; z-index: 60; transition: transform .3s, opacity .3s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { max-width: 400px; }
  .about { grid-template-columns: 1fr; }
  .pd-body { grid-template-columns: 1fr; }
  .pd-info { padding: 1.4rem; }
}
@media (max-width: 560px) {
  .promise { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem .8rem; }
  .card h3 { font-size: 1rem; }
  .add { padding: .25rem .6rem; }
  .brand-mark { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Colours */
.dots { display: flex; gap: 5px; align-items: center; margin: -.15rem 0 .55rem; }
.dot { width: 18px; height: 18px; border-radius: 50%; overflow: hidden; background: var(--sand); box-shadow: 0 0 0 1px var(--line); }
.dot img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.2); }
.dot.out { opacity: .35; }
.dots .more { font-size: .75rem; color: var(--muted); }
.pd-colour-label { margin: .4rem 0 .5rem; font-size: .92rem; color: var(--muted) !important; }
.pd-colour-label strong { color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { display: flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: .25rem .8rem .25rem .25rem; font-size: .85rem; }
.swatch img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.swatch:not(:has(img)) { padding-left: .8rem; }
.swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.swatch.out { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.line-colour { margin: 0; font-size: .85rem; color: var(--muted); }

.announce { background: var(--ink); color: var(--paper); text-align: center; font-size: .88rem; padding: .55rem 1rem; letter-spacing: .02em; }
.announce a { color: #f2c9b1; }
