:root {
  --cream: #fbf7f2;
  --paper: #ffffff;
  --blush: #f3dcd8;
  --blush-deep: #d9a3a0;
  --sky: #d7e7ed;
  --ink: #221d1c;
  --muted: #6f6562;
  --gold: #b48d55;
  --line: #ebe2da;
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 300 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h1 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 500; color: var(--gold); margin: 0 0 .7em; }
.script { font-family: var(--script); }
.center { text-align: center; margin-top: 2rem; }

.preview-bar { background: var(--ink); color: #f6efe8; text-align: center; font-size: .8rem; padding: .45rem 1rem; letter-spacing: .02em; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem clamp(16px, 4vw, 48px); background: rgba(251, 247, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: .35rem; white-space: nowrap; }
.brand-main { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: .01em; }
.brand-script { font-family: var(--script); font-size: 1.7rem; color: var(--gold); }
.nav { display: flex; gap: 1.8rem; }
.nav a { text-decoration: none; font-size: .92rem; letter-spacing: .04em; }
.nav a:hover { color: var(--gold); }
.cart-btn { display: flex; align-items: center; gap: .45rem; border: 1px solid var(--ink); background: transparent; border-radius: 999px; padding: .45rem .95rem; font: 400 .9rem var(--sans); cursor: pointer; color: var(--ink); }
.cart-count { background: var(--ink); color: var(--cream); border-radius: 999px; min-width: 1.4rem; height: 1.4rem; display: inline-grid; place-items: center; font-size: .75rem; }

.btn { display: inline-block; text-decoration: none; border-radius: 999px; padding: .85rem 1.6rem; font: 400 .95rem var(--sans); letter-spacing: .03em; cursor: pointer; border: 1px solid var(--ink); transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn-wide { width: 100%; text-align: center; }

section { padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 64px); }
.section-head { max-width: 640px; margin: 0 auto 2.6rem; text-align: center; }
.section-head p:last-child { color: var(--muted); }

/* hero */
.hero { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 80px); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .88rem; color: var(--muted); }
.trust li::before { content: "✦ "; color: var(--gold); }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-height: min(76vh, 700px); object-fit: cover; border-radius: 240px 240px var(--radius) var(--radius); box-shadow: 0 30px 60px -30px rgba(60, 40, 30, .35); }
.hero-tag { position: absolute; left: -22px; bottom: 34px; background: var(--paper); padding: .8rem 1.2rem; border-radius: 14px; box-shadow: 0 12px 30px -12px rgba(60, 40, 30, .3); }
.hero-tag .script { font-size: 1.6rem; display: block; line-height: 1.1; }
.hero-tag small { color: var(--muted); font-size: .78rem; }

/* shop */
.shop { background: var(--paper); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.2rem; }
.chip { border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: .5rem 1.1rem; font: 400 .88rem var(--sans); cursor: pointer; color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(18px, 2.4vw, 30px); max-width: 1240px; margin: 0 auto; }
.card { background: var(--cream); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(60, 40, 30, .4); }
.card img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.card .tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.card h3 { font-size: 1.35rem; margin: 0; }
.card p { margin: 0; font-size: .88rem; color: var(--muted); }
.card .price { margin-top: auto; padding-top: .6rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.card .price span { font-size: .78rem; border-bottom: 1px solid var(--ink); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--paper); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.card-media { position: relative; }

/* custom */
.custom { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%); }
.custom .note { background: rgba(255, 255, 255, .6); border-radius: 12px; padding: .9rem 1.1rem; font-size: .95rem; }
.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 1.6rem; }
.mini-gallery img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.quote-form { background: var(--paper); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 60px -40px rgba(60, 40, 30, .4); display: grid; gap: 1rem; }
.quote-form h3 { margin: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .35rem; font-size: .82rem; letter-spacing: .03em; color: var(--muted); }
input, select, textarea { font: 400 .98rem var(--sans); color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blush-deep); outline-offset: 1px; }
input[type="file"] { padding: .5rem; font-size: .85rem; }
.invalid { border-color: #c0544c; }
.form-hint { font-size: .85rem; text-align: center; margin: 0; color: var(--muted); }

/* gallery */
.masonry { columns: 4 220px; column-gap: 16px; max-width: 1240px; margin: 0 auto; }
.masonry figure { margin: 0 0 16px; break-inside: avoid; position: relative; border-radius: 14px; overflow: hidden; }
.masonry figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.4rem .9rem .7rem; color: #fff; font-family: var(--serif); font-size: 1.15rem; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); opacity: 0; transition: opacity .2s; }
.masonry figure:hover figcaption { opacity: 1; }
.masonry figure:nth-child(3n+1) img { aspect-ratio: 4/5; object-fit: cover; }

/* how */
.how { background: var(--paper); }
.steps { list-style: none; padding: 0; margin: 0 auto 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1080px; }
.steps li { text-align: center; padding: 1.6rem; border-radius: var(--radius); background: var(--cream); }
.steps .num { font-family: var(--script); font-size: 3rem; color: var(--gold); line-height: 1; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: .6rem 0 0; }

/* about */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1180px; margin: 0 auto; }
.about img { border-radius: var(--radius) var(--radius) 200px 200px; }
.about p { color: var(--muted); }
.signature { font-family: var(--script); font-size: 2.4rem; color: var(--ink) !important; margin: 0; }

.site-footer { background: var(--ink); color: #e9dfd6; text-align: center; padding: 3rem 1rem; }
.site-footer .brand { justify-content: center; margin-bottom: .6rem; }
.site-footer a { color: #f3dcd8; }
.site-footer p { margin: .3rem 0; font-size: .9rem; }
.site-footer .small { opacity: .55; font-size: .78rem; margin-top: 1.2rem; }

/* dialogs */
.dialog { border: 0; padding: 0; border-radius: 22px; max-width: min(880px, calc(100vw - 32px)); width: 100%; background: var(--paper); color: var(--ink); }
.dialog::backdrop { background: rgba(34, 29, 28, .5); }
.dialog.small { max-width: min(520px, calc(100vw - 32px)); }
.dialog-inner { display: grid; grid-template-columns: 1fr 1fr; position: relative; margin: 0; }
.dialog-inner.single { grid-template-columns: 1fr; }
.dialog-inner > img { width: 100%; height: 100%; object-fit: cover; max-height: 640px; }
.pd-body { padding: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.pd-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.dialog-close { position: absolute; top: 10px; right: 14px; background: var(--paper); border: 0; font-size: 1.6rem; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; z-index: 2; color: var(--ink); }
.opt { display: grid; gap: .4rem; }
.opt-label { font-size: .8rem; letter-spacing: .04em; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill { border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: .4rem .9rem; font: 400 .86rem var(--sans); cursor: pointer; color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pd-foot { display: flex; justify-content: space-between; align-items: center; }
.qty { display: flex; align-items: center; gap: .5rem; }
.qty input { width: 70px; }
.pd-price { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }

/* drawer */
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100vw); background: var(--paper); z-index: 50; transform: translateX(100%); transition: transform .25s ease, visibility .25s; visibility: hidden; display: flex; flex-direction: column; }
.drawer.open { transform: none; visibility: visible; box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .4); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); position: relative; }
.drawer-head h3 { margin: 0; }
.drawer-head .dialog-close { position: static; }
.cart-items { flex: 1; overflow: auto; padding: 1rem 1.4rem; display: grid; gap: 1rem; align-content: start; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: start; }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-item h4 { margin: 0; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.cart-item small { color: var(--muted); display: block; font-size: .8rem; }
.cart-item button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8rem; text-decoration: underline; padding: 0; }
.empty { color: var(--muted); text-align: center; padding: 3rem 0; }
.drawer-foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .7rem; }
.hint { margin: -.3rem 0 0; font-size: .78rem; color: var(--muted); }
.total-row { display: flex; justify-content: space-between; font-size: 1.1rem; }
.scrim { position: fixed; inset: 0; background: rgba(34, 29, 28, .4); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.summary { background: var(--cream); border-radius: 12px; padding: 1rem; font-size: .88rem; color: var(--ink); }
.summary ul { margin: .3rem 0; padding-left: 1.1rem; }

/* responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero, .custom, .about { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { border-radius: 160px 160px var(--radius) var(--radius); max-height: 520px; width: 100%; object-fit: cover; }
  .hero-tag { left: 12px; }
  .steps { grid-template-columns: 1fr; }
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-inner > img { max-height: 260px; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .brand-main { font-size: 1.25rem; }
  .brand-script { font-size: 1.4rem; }
  .cart-btn span:not(.cart-count) { display: none; }
  .pd-body { padding: 1.4rem; }
}

/* review pass: grid density, dialog fit */
.dialog { max-height: 92dvh; overflow: auto; }
/* while a modal panel is open only it scrolls: no chaining to the page, page scroll locked in place (BUG-002) */
.dialog, .cart-items, .drawer, .ask-body { overscroll-behavior: contain; }
html:has(dialog[open]), html:has(.drawer.open) { overflow: hidden; scrollbar-gutter: stable; }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, 1fr); } .card p { display: none; } }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card p { display: none; }
  .card h3 { font-size: 1.1rem; }
  .card-body { padding: .7rem .75rem .9rem; }
  .card .price { flex-direction: column; align-items: flex-start; gap: .2rem; font-size: .92rem; }
  .badge { top: 8px; left: 8px; font-size: .6rem; padding: .2rem .5rem; }
  .dialog-inner > img { max-height: 200px; }
  .filters { gap: .4rem; }
}
.cart-item button { font-family: var(--sans); }
@media (max-width: 560px) { .masonry { columns: 2; column-gap: 10px; } .masonry figure { margin-bottom: 10px; } }

/* Launch: honeypot field, and the assistant stays hidden until it is built (phase 2) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
[data-ask], .ask-panel, .handoff { display: none !important; }
.legal { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 2.8rem); margin: .5rem 0 1rem; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin: 2rem 0 .5rem; }
.legal p, .legal li { line-height: 1.7; }
.legal .updated { color: var(--muted, #7a6a5f); font-size: .9rem; }

/* Sal's real logo lettering (cropped from her logo, not redrawn) as the header and footer wordmark */
.brand { align-items: center; }
.brand img { display: block; height: 46px; width: auto; }
.site-footer .brand img { height: 40px; margin: 0 auto; }
@media (max-width: 720px) { .site-header .brand img { height: 36px; } }
#pdAdd:disabled { opacity: .45; cursor: not-allowed; }
.pd-limit { color: #8a3b2e; margin: .4rem 0 0; }
.pd-limit a { color: inherit; font-weight: 500; }

.gift-toggle { display: flex; align-items: center; gap: .5rem; cursor: pointer; flex-wrap: wrap; }
.gift-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); margin: 0; }
#giftFields { display: grid; gap: .6rem; }
#giftFields[hidden] { display: none; }
/* Keep cart items visible: the checkout panel scrolls on its own when the gift fields open (small phones) */
.cart-items { min-height: 22vh; }
.drawer-foot { max-height: 68vh; overflow: auto; overscroll-behavior: contain; }
