:root {
  --cream: #f8f1e2;
  --cream-2: #efe5d0;
  --ink: #0d0d0d;
  --ink-2: #1a1a1a;
  --muted: #6b655b;
  --line: #d9cdb4;
  --white: #fffdf8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
[hidden] { display: none !important; }

.announce { background: var(--ink); color: var(--cream); text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 9px 16px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(248, 241, 226, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo, .footer-logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-num { font-family: var(--serif); font-weight: 700; font-size: 34px; letter-spacing: -.02em; }
.logo-word { font-family: var(--sans); font-weight: 700; font-size: 10px; letter-spacing: .28em; margin-top: 1px; padding-left: .28em; }
.nav-links { display: flex; gap: 32px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover::after { transform: scaleX(1); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px; transition: background .2s, color .2s; }
.cart-btn:hover { background: var(--ink); color: var(--cream); }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 11px; }
.cart-btn:hover .cart-count { background: var(--cream); color: var(--ink); }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* BUTTONS */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 15px 28px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-radius: var(--radius); transition: transform .15s, background .2s, color .2s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--cream); border: 1px solid var(--ink); }
.btn-dark:hover { background: #2a2a2a; }
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow.light { color: #a59d8d; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 5vw, 56px); }

/* HERO */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 110px); }
.hero-media { position: relative; overflow: hidden; background: var(--ink); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 96px); }
.hero h1 { font-size: clamp(46px, 6.4vw, 92px); margin-bottom: 24px; }
.hero h1 em { font-style: italic; font-weight: 500; }
.lead { font-size: 17px; max-width: 440px; color: #3b3830; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* STORY */
.story { background: var(--ink); color: var(--cream); padding: clamp(64px, 9vw, 128px) clamp(16px, 5vw, 64px); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1240px; margin: 0 auto; }
.story-main img { width: 100%; aspect-ratio: 14 / 15; object-fit: cover; }
.story h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 22px; }
.story-copy > p { color: #cfc6b4; max-width: 500px; }
.story-copy strong { color: var(--cream); font-weight: 600; }
.story-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.story-pair img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.story-pair figcaption { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #a59d8d; margin-top: 10px; }

/* SHOP */
.shop, .sizes, .faq { padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 64px); max-width: 1320px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .muted { max-width: 520px; margin: 14px auto 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }

/* COLLECTIONS */
.collections { padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 64px) 0; max-width: 1320px; margin: 0 auto; }
.coll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.coll { text-align: left; display: flex; flex-direction: column; }
.coll img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ink); margin-bottom: 18px; transition: transform .6s ease; }
.coll:hover img { transform: scale(1.02); }
.coll-num { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.coll h3 { font-size: 40px; margin: 4px 0 4px; }
.coll p { font-family: var(--serif); font-style: italic; font-size: 20px; color: #3b3830; }
.coll-cta { margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; align-self: flex-start; padding-bottom: 2px; }
.card { text-align: left; display: flex; flex-direction: column; }
.card-media { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 3 / 4; margin-bottom: 16px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .4s; }
.card-media .alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img:first-child { transform: scale(1.04); }
.card:hover .card-media .alt { opacity: 1; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--cream); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; }
.card h3 { font-size: 24px; margin-bottom: 4px; }
.card .sub { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card .price { font-weight: 600; font-size: 15px; }
.card .price s { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: 13px; }
.card .quick { margin-top: 14px; padding: 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--ink); border-radius: var(--radius); transition: background .2s, color .2s; }
.card .quick:hover { background: var(--ink); color: var(--cream); }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features > div { padding: 40px clamp(16px, 3vw, 40px); border-right: 1px solid var(--line); }
.features > div:last-child { border-right: 0; }
.f-num { font-family: var(--serif); font-size: 18px; color: var(--muted); }
.features h3 { font-size: 26px; margin: 8px 0 8px; }
.features p { font-size: 14px; color: var(--muted); }

/* SIZES */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: var(--cream-2); }
td:first-child, th:first-child { text-align: left; font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--serif); font-size: 26px; line-height: .8; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--muted); max-width: 640px; }

.brand-band { background: var(--ink); color: var(--cream); text-align: center; padding: 56px 16px; }
.brand-band img { margin: 0 auto 16px; width: min(400px, 90%); }
.brand-band p { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); font-style: italic; }

/* FOOTER */
.footer { padding: 64px clamp(16px, 5vw, 64px) 28px; display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; }
.footer-logo .logo-num { font-size: 56px; }
.footer-logo .logo-word { font-size: 14px; }
.footer-cols { display: flex; gap: 64px; justify-content: flex-end; flex-wrap: wrap; }
.footer h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.footer-cols a:hover { color: var(--ink); }
.copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; color: var(--muted); }

/* OVERLAYS */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(13, 13, 13, .55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.close { position: absolute; top: 10px; right: 14px; font-size: 30px; line-height: 1; width: 40px; height: 40px; z-index: 2; }
.modal { position: relative; background: var(--cream); width: min(980px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; animation: rise .25s ease; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.pm-media { background: var(--ink); }
.pm-media > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pm-thumbs { display: flex; gap: 6px; padding: 6px; }
.pm-thumbs button { flex: 1; aspect-ratio: 1; overflow: hidden; opacity: .5; transition: opacity .2s; }
.pm-thumbs button.active, .pm-thumbs button:hover { opacity: 1; }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: clamp(24px, 4vw, 48px); }
.pm-info h3 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.pm-price { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.pm-desc { color: #3b3830; margin-bottom: 24px; font-size: 15px; }
.opt { margin-bottom: 20px; }
.opt-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; }
.opt-label a { text-decoration: underline; color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: none; }
.sizes-row { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 48px; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 600; border-radius: var(--radius); transition: border-color .15s, background .15s; }
.size:hover { border-color: var(--ink); }
.size.selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.qty { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.qty span { margin-right: auto; }
.qty button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 18px; background: var(--white); }
.qty output { min-width: 20px; text-align: center; font-size: 15px; }
.pm-bullets { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.pm-bullets li { font-size: 13px; color: var(--muted); padding: 4px 0 4px 18px; position: relative; }
.pm-bullets li::before { content: "—"; position: absolute; left: 0; }
.form-error { color: #a1281b; font-size: 13px; margin-bottom: 10px; }

/* DRAWER */
#cartOverlay { justify-content: flex-end; padding: 0; }
.drawer { position: relative; width: min(440px, 100%); height: 100%; background: var(--cream); display: flex; flex-direction: column; animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 30px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.empty { text-align: center; padding: 64px 0; color: var(--muted); }
.empty .btn { margin-top: 20px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 96px; object-fit: cover; background: var(--ink); }
.line h4 { font-family: var(--serif); font-size: 20px; line-height: 1.1; }
.line .meta { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.line .mini-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.line .mini-qty button { width: 28px; height: 28px; }
.line .mini-qty span { min-width: 24px; text-align: center; font-size: 13px; }
.line .right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-weight: 600; font-size: 14px; }
.line .remove { font-size: 11px; color: var(--muted); text-decoration: underline; font-weight: 500; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--cream-2); }
.ship-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.ship-fill { height: 100%; background: var(--ink); width: 0; transition: width .4s; }
.ship-note { font-size: 12px; margin: 8px 0 14px; color: var(--muted); }
.row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.row.total { font-size: 17px; font-weight: 700; margin: 12px 0 16px; padding-top: 12px; border-top: 1px solid var(--line); }

/* CHECKOUT */
.modal.checkout { display: block; width: min(620px, 100%); padding: clamp(24px, 4vw, 44px); }
.checkout h3 { font-size: 36px; margin-bottom: 6px; }
.checkout .muted { font-size: 14px; margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields textarea { font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); color: var(--ink); }
.fields input:focus, .fields textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.fields input.invalid { border-color: #a1281b; }
.co-summary { background: var(--cream-2); padding: 16px; margin-bottom: 16px; font-size: 14px; }
.co-summary .row:last-child { font-weight: 700; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.co-done { text-align: center; padding: 24px 0; }
.done-mark { font-family: var(--serif); font-weight: 700; font-size: 72px; line-height: 1; margin-bottom: 12px; }
.co-done p { color: var(--muted); margin: 10px auto 24px; max-width: 420px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: var(--cream); padding: 14px 22px; font-size: 13px; letter-spacing: .04em; border-radius: var(--radius); z-index: 60; transition: transform .3s ease; }
.toast.show { transform: translate(-50%, 0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .coll h3 { font-size: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .features > div:nth-child(2) { border-right: 0; }
  .features > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { aspect-ratio: 4 / 5; }
  .story-grid { grid-template-columns: 1fr; }
  .coll-grid { grid-template-columns: 1fr; gap: 40px; }
  .coll h3 { font-size: 34px; }
  .modal { grid-template-columns: 1fr; }
  .pm-media > img { aspect-ratio: 1; }
  .footer { grid-template-columns: 1fr; }
  .footer-cols { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card h3 { font-size: 19px; }
  .card .sub { display: none; }
  .features { grid-template-columns: 1fr; }
  .features > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .fields { grid-template-columns: 1fr; }
  .overlay { padding: 0; }
  .modal { max-height: 100vh; height: 100%; }
}
