:root {
  --white: #fff;
  --cream: #f6f0e4;
  --cream-deep: #eae1cf;
  --black: #141414;
  --muted: #5c574e;
  --line: #d9d0bd;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Source Sans 3", "Gill Sans", Calibri, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--black); font: 400 17px/1.55 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
#app:focus { outline: none; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; background: var(--black); color: var(--white); padding: 10px 16px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 26px/1 var(--serif); white-space: nowrap; }
.main-nav { display: flex; gap: 20px; }
.main-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { border-color: var(--black); }
.search { flex: 1 1 200px; min-width: 160px; }
.search input { width: 100%; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); }
.head-actions { display: flex; gap: 16px; }
.icon-link { background: none; border: 0; padding: 6px 0; text-decoration: none; white-space: nowrap; }
.count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 13px; line-height: 22px; text-align: center; }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border: 1px solid var(--black); border-radius: 999px; background: var(--black); color: var(--white); text-decoration: none; font-weight: 600; text-align: center; transition: background .15s, color .15s; }
.btn:hover { background: var(--white); color: var(--black); }
.btn.ghost { background: transparent; color: var(--black); }
.btn.ghost:hover { background: var(--black); color: var(--white); }
.btn.full { width: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 56px; }
.eyebrow { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); }
.hero h1 em { font-weight: 500; }
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 46ch; margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: block; background: var(--white); border-radius: 18px; padding: 32px; }
.hero-art img { width: 100%; height: auto; max-height: 380px; object-fit: contain; }

/* Sections */
.section { padding-block: 44px; }
.section.white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* Product card */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.section.white .card { background: var(--cream); }
.card-art { display: block; width: 100%; padding: 14px; border: 0; background: var(--cream-deep); }
.card-art svg, .card-art img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-art img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.card-title { background: none; border: 0; padding: 0; text-align: left; font: 600 22px/1.15 var(--serif); }
.card-title:hover { text-decoration: underline; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.stars { color: var(--black); font-size: 14px; letter-spacing: 1px; }
.stars small { color: var(--muted); letter-spacing: 0; font-size: 14px; }
.badge { position: absolute; top: 12px; left: 12px; padding: 2px 10px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 13px; font-weight: 600; z-index: 1; }
.badge.sale { background: var(--white); color: var(--black); border: 1px solid var(--black); }
.fav { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 20px; line-height: 1; z-index: 1; }
.fav[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.add { padding: 6px 14px; border: 1px solid var(--black); border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; }
.add:hover { background: var(--black); color: var(--white); }
.swatch-row { display: flex; gap: 5px; }
.swatch-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-grid .card:first-child { grid-column: span 2; grid-row: span 2; }
.feature-grid .card:first-child .card-title { font-size: 32px; }

/* Slider */
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-color: var(--black) var(--cream-deep); }
.slider-track > * { scroll-snap-align: start; }
.slider-btns { display: flex; gap: 8px; }
.slider-btn { width: 44px; height: 44px; border: 1px solid var(--black); border-radius: 50%; background: transparent; font-size: 18px; }
.slider-btn:hover { background: var(--black); color: var(--white); }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font: 600 21px var(--serif); transition: border-color .15s; }
.tile:hover { border-color: var(--black); }
.tile svg { width: 90px; height: 90px; }

/* Calendar */
.cal-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.cal { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { font-size: 26px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.cal-day { padding: 9px 0; border-radius: 8px; }
.cal-day.today { outline: 1px solid var(--black); }
.cal-day.has-event { background: var(--black); color: var(--white); font-weight: 600; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event-list li { padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.event-list strong { display: block; font: 600 21px/1.2 var(--serif); }
.event-list time { font-size: 15px; font-weight: 600; }
.event-list p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review { margin: 0; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.section.white .review { background: var(--cream); }
.review blockquote { margin: 8px 0 12px; font: 500 21px/1.3 var(--serif); }
.review figcaption { color: var(--muted); font-size: 15px; }
.review-link { background: none; border: 0; padding: 0; text-decoration: underline; color: inherit; font-size: inherit; }

/* Shop */
.shop-top { padding-top: 36px; }
.shop-top h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 18px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; }
.chip:hover { border-color: var(--black); }
.chip.active { background: var(--black); border-color: var(--black); color: var(--white); }
.sort select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); margin-left: 6px; }
.cat-section { padding-top: 34px; }
.cat-section h2 { font-size: 32px; padding-bottom: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* Text pages */
.page { padding-block: 48px; max-width: 760px; }
.page h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 16px; }
.page h2 { font-size: 30px; margin: 30px 0 8px; }
.page p { margin: 0 0 14px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 10px; }
.values div { padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.values h3 { font-size: 23px; margin-bottom: 4px; }
.values p { margin: 0; font-size: 16px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; padding-block: 48px; align-items: start; }
.contact-grid h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 10px; }
.contact-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.contact-card h2 { font-size: 26px; margin-bottom: 8px; }
.contact-card p { margin: 0 0 10px; }

/* Forms */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 3px; font-weight: 600; font-size: 15px; }
.form input, .form textarea, .form select { padding: 10px 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--white); font-weight: 400; font-size: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Dialogs */
dialog { border: 0; padding: 0; color: inherit; background: var(--white); }
dialog::backdrop { background: rgba(20, 20, 20, .45); }
.modal { width: min(920px, 100% - 24px); max-height: 92dvh; border-radius: 18px; }
.drawer { width: min(440px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; }
.close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 18px; z-index: 2; }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-art { background: var(--cream-deep); padding: 26px; }
.pd-art svg { display: block; width: 100%; }
.pd-body { padding: 26px; display: grid; gap: 12px; align-content: start; }
.pd-body h2 { font-size: 36px; padding-right: 40px; }
.pd-body p { margin: 0; }
.pd-price { font-size: 22px; }
.variants { border: 0; padding: 0; margin: 0; }
.variants legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.variant[aria-pressed="true"] { border: 1px solid var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.variant { background: var(--white); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 18px; }
.qty span { min-width: 26px; text-align: center; }
.pd-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pd-reviews { grid-column: 1 / -1; padding: 22px 26px 26px; border-top: 1px solid var(--line); }
.pd-reviews h3 { font-size: 26px; margin-bottom: 10px; }
.pd-review { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pd-review p { margin: 2px 0 0; }
.review-form { margin-top: 16px; }

/* Cart */
.cart { display: flex; flex-direction: column; height: 100%; }
.cart-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 30px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item svg { width: 72px; height: 72px; background: var(--cream-deep); border-radius: 8px; }
.cart-item h3 { font-size: 20px; }
.cart-item small { color: var(--muted); font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; font-size: 14px; }
.cart-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.line { display: flex; justify-content: space-between; }
.line.total { font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.pad { padding: 28px; }
.pad h2 { font-size: 34px; margin-bottom: 14px; padding-right: 40px; }

/* Footer, toast */
.site-foot { background: var(--white); border-top: 1px solid var(--line); padding-top: 36px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid h2 { font-size: 22px; margin-bottom: 8px; }
.foot-grid a { display: block; padding: 2px 0; text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid p { color: var(--muted); margin: 8px 0 0; }
.legal { color: var(--muted); font-size: 14px; padding: 20px 0; margin-block: 0; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 10px 20px; border-radius: 999px; background: var(--black); color: var(--white); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.toast.show { opacity: 1; }

@media (max-width: 900px) {
  .hero, .cal-layout, .contact-grid, .pd { grid-template-columns: 1fr; }
  .site-head { position: static; }
  html { scroll-padding-top: 0; }
  .head-row { gap: 8px 12px; }
  .hero { padding-block: 32px; }
  .hero-art img { max-height: 240px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .search { order: 5; flex-basis: 100%; }
  .main-nav { order: 4; flex-basis: 100%; overflow-x: auto; }
  .head-actions { margin-left: auto; }
  .pd-art svg { max-height: 280px; }
}
@media (max-width: 520px) {
  .foot-grid, .form-row { grid-template-columns: 1fr; }
  .feature-grid .card:first-child { grid-column: span 2; grid-row: auto; }
  .brand { font-size: 21px; gap: 6px; }
  .brand img { width: 32px; height: auto; }
  .head-actions { gap: 10px; }
  .main-nav { gap: 12px; justify-content: space-between; } /* all five links fit at 360px */
}
@media (pointer: coarse) { /* bigger tap targets on touch screens */
  .card-title { padding-block: 8px; }
  .contact-card a { display: inline-block; padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.sale-note { display: block; color: #a3361b; font-weight: 600; font-size: 13px; margin: 2px 0 4px; }
.pd-art { display: flex; flex-direction: column; gap: 10px; align-self: start; }
.gal-main { position: relative; }
.pd-art .gal-main img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink, #141414); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.gal-btn.prev { left: 10px; } .gal-btn.next { right: 10px; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumb { flex: 0 0 64px; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .65; }
.gal-thumb[aria-pressed="true"] { border-color: #141414; opacity: 1; }
.gal-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* product dialog: wider, fully rounded; the content scrolls inside so the corners stay round */
#productDlg.modal { width: min(1120px, 100% - 24px); overflow: hidden; border-radius: 22px; }
#productDlg.modal[open] { display: flex; flex-direction: column; }
#productDlg .pd { min-height: 0; overflow-y: auto; }
#productDlg .pd-art { border-radius: 22px; }
#productDlg .pd > * { min-width: 0; } /* keeps the thumbnail row from stretching the grid on phones */
/* contact page: one centered column, details above the form */
.contact-grid { grid-template-columns: minmax(0, 640px); justify-content: center; text-align: center; }
.contact-grid .form { text-align: left; }
.social-row { display: flex; justify-content: center; gap: 12px; margin: 16px 0 0; flex-wrap: wrap; }
.social-row a { padding: 8px 18px; border: 1px solid var(--line, #d9d2c3); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 600; }
.social-row a:hover { background: #141414; color: #fff; }

/* Hero warp bubble (lens.js) */
.hero-art { position: relative; }
.hero-warp { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .15s; }
.hero-warp.on { opacity: 1; }
.img-note { display: block; padding: 6px 14px 0; color: var(--muted); font-size: 13px; text-align: center; }
.pd-art .img-note { padding: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* bot trap on the contact form */

.opt-note { margin: 0; font-size: 14px; color: var(--muted); }
