:root {
  --bg: #f5f0e8;
  --bg-alt: #ede0c8;
  --card: #fbf8f3;
  --ink: #2c2c2c;
  --muted: #6b665e;
  --gold: #c9a84c;
  --gold-ink: #7d6216;
  --accent: #b05a40;
  --line: rgba(44, 44, 44, 0.14);
  --error: #a3261a;
  --success: #2f6b3a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: 1200px;
  --gutter: 20px;
  --radius-pill: 40px;
  --header-h: 72px;
}
@media (min-width: 750px) { :root { --gutter: 40px; --header-h: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--page) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
@media (min-width: 750px) { .section { padding: 96px 0; } }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { color: var(--muted); margin: 10px 0 0; }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.muted { color: var(--muted); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 32px; border-radius: var(--radius-pill);
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, opacity .2s;
  box-shadow: 2px 2px 5px rgba(44,44,44,.1);
}
.btn:hover { background: #111; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light:hover { background: transparent; color: var(--bg); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent); }

/* Announcement + header */
.announce { background: var(--ink); color: var(--bg); text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 9px var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; height: var(--header-h); }
.header-left, .header-right { display: flex; align-items: center; gap: 4px; }
.header-right { justify-content: flex-end; }
.logo img { height: 34px; width: auto; }
@media (min-width: 750px) { .logo img { height: 42px; } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; color: var(--ink); text-decoration: none; }
.cart-count { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 11px; line-height: 18px; text-align: center; }
.cart-count[data-count="0"] { display: none; }
.main-nav { display: none; }
@media (min-width: 990px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 40px; }
  .menu-toggle { display: none; }
  .main-nav { display: flex; gap: 32px; justify-content: center; align-items: center; }
  .main-nav > a, .nav-dd > a { display: inline-block; text-decoration: none; font-size: 15px; letter-spacing: 0.04em; padding: 8px 0; border-bottom: 1px solid transparent; }
  .main-nav > a:hover, .nav-dd > a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
}
.nav-dd { position: relative; }
.nav-dd-menu { position: absolute; top: 100%; left: -20px; min-width: 240px; background: var(--card); border: 1px solid var(--line); padding: 10px 0; display: none; box-shadow: 0 12px 30px rgba(44,44,44,.08); }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: block; }
.nav-dd-menu a { display: block; padding: 8px 20px; text-decoration: none; font-size: 15px; }
.nav-dd-menu a:hover { background: var(--bg); }

/* Drawers (menu + cart) */
.overlay { position: fixed; inset: 0; background: rgba(28, 26, 22, .45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 70; width: min(420px, 100%); background: var(--bg); display: flex; flex-direction: column; visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px; display: grid; gap: 10px; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 24px; }
.mobile-nav .sub a { font-family: var(--sans); font-size: 15px; padding: 10px 0 10px 16px; }
.totals-row { display: flex; justify-content: space-between; align-items: baseline; }
.totals-row strong { font-size: 18px; }
.small { font-size: 13px; color: var(--muted); }

/* Cart lines */
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line-img { width: 84px; aspect-ratio: 4 / 5; background: var(--bg-alt); overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-title { font-family: var(--serif); font-size: 20px; line-height: 1.2; text-decoration: none; }
.line-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.line-price { font-size: 15px; text-align: right; white-space: nowrap; }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.qty button { width: 38px; height: 38px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.qty button .icon { width: 16px; height: 16px; }
.qty input { width: 34px; text-align: center; border: 0; background: none; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.remove-btn { background: none; border: 0; padding: 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.empty-state { text-align: center; padding: 48px 0; }
.empty-state p { color: var(--muted); }

/* Hero */
.hero { position: relative; height: min(78vh, 760px); min-height: 460px; overflow: hidden; background: #1d1c17; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,14,.15) 0%, rgba(20,18,14,.55) 100%); }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); color: #fff; }
.hero-content h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 400; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-content p { font-size: clamp(16px, 2vw, 19px); max-width: 520px; margin: 16px 0 32px; color: #f3ead8; }

/* Grids + cards */
.grid { display: grid; gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 750px) { .grid { gap: 40px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid--4 { }
@media (min-width: 990px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid--collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 750px) { .grid--collections { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 990px) { .grid--collections.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; } }

.card { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--bg-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding-top: 14px; text-align: center; }
.card-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.card-price { font-size: 14px; color: var(--muted); margin-top: 4px; }
.card-series { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.collection-card .card-media { aspect-ratio: 1 / 1; }
.collection-card .card-media img { object-fit: cover; }
.collection-card .card-title { font-size: 24px; }
.collection-card .card-count { font-size: 13px; color: var(--muted); }

/* Placeholder art (no photo yet) */
.placeholder-art { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14%; background: radial-gradient(circle at 50% 40%, #f6ecd6 0%, var(--bg-alt) 70%); }
.placeholder-art::before { content: ""; position: absolute; inset: 7%; border: 1px solid rgba(125, 98, 22, .35); }
.placeholder-art span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); }
.placeholder-art strong { font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 2.4vw, 28px); line-height: 1.15; margin-top: 8px; }

/* Image with text */
.iwt { display: grid; gap: 32px; align-items: center; }
@media (min-width: 750px) { .iwt { grid-template-columns: 1fr 1fr; gap: 72px; } .iwt--reverse .iwt-media { order: 2; } }
.iwt-media { background: var(--bg-alt); }
.iwt-media img { width: 100%; height: auto; }
.iwt-text h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 28px; }

.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 820px; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 4vw, 44px); line-height: 1.25; }

.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; text-align: center; }
@media (min-width: 750px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-item .icon { width: 28px; height: 28px; margin: 0 auto 10px; display: block; color: var(--gold-ink); }
.trust-item p { font-size: 14px; margin: 0; }

/* Collection page */
.page-head { padding: 48px 0 28px; text-align: center; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.page-head p { color: var(--muted); max-width: 620px; margin: 12px auto 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; margin-bottom: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.toolbar select { background: transparent; border: 0; padding: 6px 4px; cursor: pointer; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.chip { font-size: 13px; padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); text-decoration: none; }
.chip:hover, .chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Product page */
.breadcrumbs { font-size: 13px; color: var(--muted); padding: 20px 0 0; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.product { display: grid; gap: 32px; padding: 24px 0 64px; }
@media (min-width: 990px) { .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; padding-top: 32px; } .product-info { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.gallery-main { position: relative; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.gallery-main .placeholder-art { position: relative; aspect-ratio: 4 / 5; width: 100%; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumb { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; background: var(--bg-alt); cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.product-info h1 { font-size: clamp(36px, 4.4vw, 52px); margin: 8px 0 12px; }
.price { font-size: 20px; letter-spacing: 0.02em; }
.tax-note { font-size: 13px; color: var(--muted); margin-top: 2px; }
.option-label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 28px 0 10px; display: block; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; flex-direction: column; align-items: center; padding: 10px 22px; border: 1px solid rgba(44,44,44,.55); border-radius: var(--radius-pill); cursor: pointer; font-size: 15px; transition: background .2s, color .2s; }
.pill span small { font-size: 12px; opacity: .75; }
.pill input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.buy { display: grid; gap: 12px; margin-top: 28px; }
.buy-row { display: flex; gap: 12px; }
.buy-row .btn { flex: 1; }
.product-trust { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.product-trust li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.product-trust .icon { color: var(--gold-ink); }
.accordion { border-top: 1px solid var(--line); margin-top: 28px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 20px; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 0 18px; font-size: 15px; color: #45413b; }
.accordion dl { margin: 0; display: grid; gap: 8px; }
.accordion dt { font-weight: 600; display: inline; }
.accordion dd { display: inline; margin: 0; }
.share-btn { background: none; border: 0; padding: 0; margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.share-btn .icon { width: 18px; height: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--radius-pill); font-size: 14px; opacity: 0; transition: .25s; z-index: 90; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Cart page + checkout */
.cart-page { display: grid; gap: 40px; padding-bottom: 80px; }
@media (min-width: 990px) { .cart-page { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; } }
.summary-box { background: var(--card); border: 1px solid var(--line); padding: 24px; align-self: start; }
.summary-box h2 { font-size: 26px; margin-bottom: 12px; }
.summary-box .totals-row { padding: 6px 0; }
.summary-box .grand { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.summary-box .grand strong { font-size: 22px; }
.checkout { display: grid; gap: 40px; padding: 24px 0 80px; }
@media (min-width: 990px) { .checkout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; padding-top: 40px; } .checkout .summary-box { position: sticky; top: calc(var(--header-h) + 24px); } }
.form-section { margin-bottom: 32px; }
.form-section h2 { font-size: 28px; margin-bottom: 16px; }
.fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; grid-column: span 2; }
.field--half { grid-column: span 1; }
@media (max-width: 520px) { .field--half { grid-column: span 2; } }
.field label { font-size: 13px; letter-spacing: 0.04em; }
.field input, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(44,44,44,.28); border-radius: 4px; background: #fff; font-size: 16px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 13px; color: var(--error); min-height: 0; }
.form-alert { padding: 14px 16px; border: 1px solid var(--error); color: var(--error); background: #fff5f3; font-size: 14px; margin-bottom: 18px; border-radius: 4px; }
.form-alert[hidden] { display: none; }
.pay-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.pay-note .icon { width: 16px; height: 16px; }
.mini-line { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.mini-line .line-img { width: 60px; position: relative; }
.mini-line .badge { position: absolute; top: -6px; right: -6px; background: var(--muted); color: #fff; border-radius: 10px; font-size: 11px; min-width: 20px; height: 20px; line-height: 20px; text-align: center; }
.mini-line .t { font-family: var(--serif); font-size: 18px; line-height: 1.2; }

/* Content pages */
.prose { max-width: 760px; margin: 0 auto; padding-bottom: 80px; }
.prose h2 { font-size: 28px; margin: 36px 0 12px; }
.prose p { color: #3a3732; }
.prose .updated { color: var(--muted); font-size: 14px; }
.confirm { text-align: center; max-width: 640px; margin: 0 auto; padding: 56px 0 96px; }
.confirm .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.confirm .tick .icon { width: 30px; height: 30px; stroke-width: 2; }
.confirm h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.confirm .summary-box { text-align: left; margin-top: 32px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.search-form { display: flex; gap: 10px; max-width: 560px; margin: 24px auto 0; }
.search-form input { flex: 1; min-height: 50px; padding: 0 20px; border: 1px solid rgba(44,44,44,.3); border-radius: var(--radius-pill); background: #fff; font-size: 16px; }

/* Footer */
.site-footer { background: var(--ink); color: #e9e2d4; padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 750px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: span 2; }
@media (min-width: 750px) { .footer-brand { grid-column: span 1; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: #bfb7a8; max-width: 300px; }
.site-footer h3 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #e9e2d4; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(233, 226, 212, .15); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #a59d8e; font-size: 13px; }

.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .fade-in { opacity: 1; transform: none; }
}
