:root {
  --ink: #121212;
  --paper: #ffffff;
  --bone: #f4f1ec;
  --line: #d9d4cc;
  --muted: #5c5a57;
  --accent: #b8325a;
  --serif: 'Playfair Display', Georgia, serif;
  --text: 'Cormorant Garamond', Georgia, serif;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 20px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.caps { font-family: var(--text); font-weight: 600; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--ink); padding: 10px 16px; cursor: pointer; min-height: 44px; }
.cart-btn:hover { background: var(--ink); color: var(--paper); }
.cart-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: var(--paper); font-size: 13px; display: inline-grid; place-items: center; font-family: var(--text); font-weight: 600; letter-spacing: 0; padding: 0 6px; }
.cart-btn:hover .cart-count { background: var(--paper); color: var(--ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .brand img { height: 24px; } }

/* Hero */
.hero { background: var(--ink); color: var(--paper); }
.hero .wrap { padding: 96px 24px 104px; text-align: center; }
.frame { border: 1px solid currentColor; padding: 10px; }
.frame > .inner { border: 3px double currentColor; padding: 56px 24px 48px; }
.hero .wordmark { width: min(640px, 86%); margin: 18px auto 22px; }
.hero h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 4.4vw, 48px); margin: 22px 0 10px; }
.hero p { max-width: 560px; margin: 0 auto 30px; font-size: 21px; opacity: .9; }
.rule { width: 120px; height: 1px; background: currentColor; margin: 0 auto; opacity: .8; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; font-family: var(--text); font-weight: 600; font-size: 14px; letter-spacing: .28em; text-transform: uppercase; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: transparent; color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Sections */
section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); margin: 10px 0 0; }
.bone { background: var(--bone); }

/* Products */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 28px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card .photo { aspect-ratio: 4 / 5; background: var(--bone); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .photo img.placeholder { width: 56%; height: auto; object-fit: contain; opacity: .25; }
.card h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; margin: 0; line-height: 1.2; }
.card .desc { color: var(--muted); font-size: 18px; margin: 0; }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.price { font-family: var(--text); font-weight: 600; font-size: 20px; letter-spacing: .04em; }
.tag { display: inline-block; border: 1px solid var(--ink); padding: 2px 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.status { text-align: center; color: var(--muted); }

/* Story */
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story .monogram { width: min(320px, 70%); margin: 0 auto; }
.story h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 40px; margin: 10px 0 16px; }
@media (max-width: 800px) { .story .wrap { grid-template-columns: 1fr; gap: 36px; text-align: center; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 40px; }
.site-footer .wrap { display: grid; gap: 24px; text-align: center; }
.site-footer img { width: 260px; margin: 0 auto; }
.site-footer .notice { font-size: 15px; opacity: .8; max-width: 640px; margin: 0 auto; }
.site-footer a { opacity: .9; }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(18,18,18,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 50; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 28px; margin: 0; }
.icon-btn { background: none; border: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; }
.drawer .lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .thumb { width: 64px; height: 80px; background: var(--bone); object-fit: cover; }
.line .name { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.25; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 6px; }
.qty button { width: 36px; height: 36px; background: none; border: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.remove { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 15px; padding: 4px 0; }
.drawer footer { padding: 20px 24px 28px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.row { display: flex; justify-content: space-between; align-items: baseline; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* Checkout */
.checkout { padding: 56px 0 88px; }
.checkout .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .checkout .wrap { grid-template-columns: 1fr; } .summary { order: -1; } }
.checkout h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 40px; margin: 0 0 8px; }
fieldset { border: none; padding: 0; margin: 0 0 32px; }
legend { padding: 0; margin-bottom: 14px; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.method { position: relative; }
.method input { position: absolute; opacity: 0; }
.method label { display: block; border: 1px solid var(--line); padding: 14px 12px; text-align: center; cursor: pointer; min-height: 64px; }
.method label small { display: block; color: var(--muted); font-size: 14px; }
.method input:checked + label { border: 2px solid var(--ink); padding: 13px 11px; }
.method input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.method input:disabled + label { opacity: .45; cursor: not-allowed; }
@media (max-width: 520px) { .methods { grid-template-columns: 1fr; } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #8a8782; padding: 12px; background: var(--paper); min-height: 48px; font-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.hint { color: var(--muted); font-size: 16px; margin: 6px 0 0; }
.alert { border: 1px solid var(--accent); color: #8c1d3f; padding: 12px 14px; margin: 0 0 18px; font-size: 18px; }
#card-container { min-height: 90px; }
.summary { background: var(--bone); padding: 28px; position: sticky; top: 100px; }
.summary h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 28px; margin: 0 0 12px; }
.summary .row { padding: 6px 0; }
.summary .total { border-top: 1px solid var(--ink); margin-top: 10px; padding-top: 12px; font-weight: 600; font-size: 22px; }
.notice-small { font-size: 15px; color: var(--muted); margin-top: 18px; }
.thanks { text-align: center; padding: 96px 0; }
.thanks h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 46px; }
.test-banner { background: #f9eeda; text-align: center; font-size: 15px; padding: 8px; }
