:root {
  --green-900: #0b1f17;
  --green-800: #10291e;
  --green-700: #173627;
  --gold-300: #f0dca6;
  --gold-400: #e2c27e;
  --gold-500: #c9a45c;
  --gold-600: #a8843f;
  --cream: #f8f4ec;
  --ink: #1d1d1b;
  --muted: #6b6a64;
  --line: #e4dccb;
  --gold-grad: linear-gradient(180deg, #f3e2b2 0%, #d9b770 100%);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; margin: 0 0 .9rem; }
.eyebrow span { margin: 0 .8em; opacity: .7; }
.eyebrow.gold { color: var(--gold-400); }
.eyebrow.rule { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.eyebrow.rule::before, .eyebrow.rule::after { content: ''; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow.rule-left { color: var(--gold-600); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .95em 1.8em; font: 600 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: filter .15s, background .15s; }
.btn-gold { background: var(--gold-grad); color: var(--green-900); border-color: var(--gold-500); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-outline { background: rgba(11, 31, 23, .75); color: #fff; border-color: var(--gold-400); }
.btn-outline:hover { background: var(--green-700); }
.btn-outline-dark { background: transparent; color: var(--green-900); border-color: var(--green-900); }
.btn-outline-dark:hover { background: var(--green-900); color: #fff; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--green-900); color: #fff; border-bottom: 1px solid rgba(226, 194, 126, .2); }
.header-inner { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: .6rem 2rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { border-right: 1px solid rgba(226, 194, 126, .4); padding-right: .8rem; width: auto; height: 40px; box-sizing: content-box; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-size: 1.55rem; color: var(--gold-400); letter-spacing: .06em; line-height: 1.05; text-transform: uppercase; }
.brand-tag { font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: #e9e3d4; }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: .8rem; }
.main-nav a { text-decoration: none; padding: .4rem 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-400); border-bottom-color: var(--gold-400); }
.header-actions { display: flex; gap: .4rem; }
.icon-btn { position: relative; background: none; border: 0; color: inherit; padding: .5rem; cursor: pointer; }
.icon-btn svg { width: 26px; height: 26px; }
.cart-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold-400); color: var(--green-900); font-size: .68rem; font-weight: 600; display: grid; place-items: center; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 520px; background: var(--green-900); color: #fff; overflow: hidden; }
.hero-image { position: absolute; inset: 0 0 0 30%; background: url('/images/hero.jpg') center / cover no-repeat; }
.hero-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--green-900) 0%, rgba(11, 31, 23, .7) 22%, rgba(11, 31, 23, 0) 50%); }
.hero-copy { position: relative; z-index: 1; max-width: 560px; padding: 3.5rem 2rem 3rem max(2rem, calc((100vw - 1440px) / 2 + 2rem)); }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5rem); line-height: .98; margin-bottom: 1.2rem; }
.lead { font-size: 1.05rem; color: #ece6d8; max-width: 30em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0; }
.promises { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; padding: 0; margin: 0; font-size: .8rem; }
.promises li { display: flex; align-items: center; gap: .6rem; max-width: 7.5rem; line-height: 1.25; }
.promises svg { flex: none; width: 30px; height: 30px; color: var(--gold-400); }

/* Banners */
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .5rem; background: #fff; }
.banner { display: grid; grid-template-columns: 2fr 3fr; min-height: 260px; color: #fff; text-decoration: none; overflow: hidden; }
.banner-green { background: var(--green-800); }
.banner-stone { grid-template-columns: 3fr 2fr; background: linear-gradient(120deg, #3b3127, #1e1a16); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner > div { padding: 2rem 2.2rem; align-self: center; }
.banner h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.banner p:not(.eyebrow) { color: #e6dfcf; margin: 0 0 1.4rem; max-width: 30em; }
.banner:hover .btn { filter: brightness(1.06); }

/* Collections */
.collections { padding: 3rem 1rem 3.5rem; text-align: center; background: var(--cream); }
.collections .eyebrow { color: var(--ink); }
.collection-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .9rem; max-width: 1500px; margin: 1.6rem auto 0; }
.collection { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.collection img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .2s; }
.collection:hover img { transform: translateY(-3px); }
.collection-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.15; min-height: 2.3em; display: flex; align-items: center; }
.collection .btn { padding: .8em 1.4em; font-size: .64rem; }

/* Shop */
.shop { padding: 3.5rem 2rem; background: #fff; }
.shop-head { max-width: 1240px; margin: 0 auto 2rem; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.shop-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button { font: 500 .78rem var(--sans); padding: .5rem .9rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer; }
.filters button[aria-selected="true"] { background: var(--green-900); color: var(--gold-300); border-color: var(--green-900); }
.product-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--cream); }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.product h3 { font-size: 1.4rem; margin: 0; }
.product p { margin: 0; color: var(--muted); font-size: .9rem; }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--green-800); }
.product label { font-size: .8rem; font-weight: 500; }
.product textarea { margin-top: .3rem; }
.product .btn { margin-top: auto; }
.product .photo-note { font-size: .78rem; color: var(--green-700); }
.product-note { grid-column: 1 / -1; text-align: center; color: var(--muted); }

input, textarea { width: 100%; font: inherit; font-size: .95rem; padding: .65rem .75rem; border: 1px solid #d7cfbd; border-radius: 2px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, .btn:focus-visible, .filters button:focus-visible, .collection:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
textarea { resize: vertical; }

/* How it works */
.how { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 2rem; align-items: center; padding: 2.5rem max(2rem, calc((100vw - 1440px) / 2 + 2rem)); background: var(--green-900); color: #fff; }
.how h2 { font-size: clamp(2.2rem, 3.6vw, 3rem); margin: 0; }
.how-title p:last-child { margin: .3rem 0 0; color: #e6dfcf; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { display: flex; gap: 1rem; padding: .4rem 1.2rem; border-left: 1px solid rgba(226, 194, 126, .3); }
.steps .num { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gold-grad); color: var(--green-900); font-family: var(--serif); font-size: 1.4rem; font-weight: 600; display: grid; place-items: center; }
.steps strong { font-weight: 500; font-size: .92rem; }
.steps p { margin: .2rem 0 0; font-size: .82rem; color: #d9d2c2; }

/* About */
.about { max-width: 1240px; margin: 0 auto; padding: 4rem 2rem; display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.about img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 4rem max(2rem, calc((100vw - 1240px) / 2 + 2rem)); background: var(--green-800); color: #fff; }
.contact-copy p:not(.eyebrow) { color: #e6dfcf; }
.card-form { display: grid; gap: .9rem; background: var(--cream); color: var(--ink); padding: 1.6rem; }
.card-form label { display: grid; gap: .3rem; font-size: .82rem; font-weight: 500; }
.card-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.seg { display: flex; gap: 1.2rem; font-size: .85rem; }
.seg label { display: flex; align-items: center; gap: .4rem; font-weight: 500; }
.seg input { width: auto; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: .88rem; min-height: 1.2em; }
.form-status.error { color: #a12a1c; }
.form-status.ok { color: var(--green-700); }

/* Footer */
.site-footer { background: var(--green-900); color: #cfc8b8; padding: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .8rem; border-top: 1px solid rgba(226, 194, 126, .2); }
.site-footer p { margin: 0; }
.site-footer .brand-name { font-size: 1.1rem; }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); z-index: 50; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; background: var(--green-900); color: var(--gold-300); }
.drawer-head h2 { font-size: 1.6rem; margin: 0; }
.drawer-body { overflow-y: auto; padding: 1.2rem; flex: 1; }
.cart-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 56px; object-fit: cover; }
.cart-line .name { font-weight: 600; font-size: .9rem; }
.cart-line .personal { font-size: .8rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.qty { display: inline-flex; align-items: center; margin-top: .4rem; border: 1px solid var(--line); background: #fff; }
.qty button { background: none; border: 0; width: 28px; height: 28px; cursor: pointer; font-size: 1rem; }
.qty span { min-width: 24px; text-align: center; font-size: .85rem; }
.line-total { text-align: right; font-weight: 600; font-size: .9rem; }
.remove { display: block; margin-top: .4rem; background: none; border: 0; color: var(--muted); font-size: .75rem; text-decoration: underline; cursor: pointer; padding: 0; }
.empty { color: var(--muted); }
.totals { margin: 1.2rem 0; display: grid; gap: .3rem; }
.totals div { display: flex; justify-content: space-between; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: .4rem; }
.notes { display: grid; gap: .3rem; font-size: .82rem; font-weight: 500; }
.proof-note { font-size: .82rem; color: var(--green-700); }
.drawer h3 { font-size: 1.3rem; margin: 1.2rem 0 .8rem; }
.or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .8rem; margin: 1rem 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#bitcoin-form { margin-top: 1rem; padding: 1rem; background: #fff; }

/* Modal */
.modal { border: 0; padding: 2rem; max-width: 480px; width: calc(100% - 32px); background: var(--cream); text-align: center; }
.modal::backdrop { background: rgba(0, 0, 0, .55); }
.modal h2 { color: var(--green-800); }
.modal .addr { font-family: ui-monospace, monospace; font-size: .85rem; background: #fff; border: 1px solid var(--line); padding: .7rem; overflow-wrap: anywhere; user-select: all; }
.modal .btn { margin-top: 1rem; }

@media (max-width: 1180px) {
  .main-nav { gap: 1.1rem; font-size: .74rem; }
  .collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .header-actions { margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--green-900); padding: .5rem 1rem 1rem; font-size: .95rem; border-bottom: 1px solid rgba(226, 194, 126, .2); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .banners { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 1rem 0; }
  .about, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner { padding: .5rem 1rem; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { font-size: .5rem; letter-spacing: .22em; }
  .brand img { height: 32px; padding-right: .6rem; }
  .hero { min-height: 0; }
  .hero-image { position: relative; inset: auto; height: 220px; order: -1; }
  .hero-image::before { background: linear-gradient(0deg, var(--green-900) 0%, rgba(11, 31, 23, 0) 45%); }
  .hero-copy { padding: 1.5rem 1rem 2.2rem; }
  .promises { gap: 1rem; }
  .promises li { max-width: calc(50% - .5rem); flex: 1 1 calc(50% - .5rem); }
  .banner, .banner-stone { grid-template-columns: 1fr; }
  .banner img { height: 180px; }
  .banner-stone img { order: -1; }
  .banner > div { padding: 1.5rem 1rem; }
  .collections { padding: 2.5rem 1rem; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop, .about { padding: 2.5rem 1rem; }
  .how, .contact { padding: 2.5rem 1rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; padding: 0; }
  .card-form { padding: 1.2rem; }
  .card-form .two { grid-template-columns: 1fr; }
  .site-footer { padding: 1.5rem 1rem; }
}
