:root {
  --ink: #141210;
  --ink-soft: #3a3530;
  --muted: #6f675f;
  --ivory: #f3eee7;
  --paper: #faf7f2;
  --white: #fffcf8;
  --line: #e4dcd2;
  --gold: #9a7b4f;
  --gold-lt: #c4a574;
  --gold-dk: #7a5e38;
  --dark: #11100e;
  --danger: #8b2e2e;
  --shadow: 0 18px 50px rgba(20, 18, 16, 0.12);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.container-wide { width: min(1440px, calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Announcement */
.announce {
  background: var(--dark);
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}
.announce span { color: var(--gold-lt); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  gap: 16px;
}
.header-left, .header-right { display: flex; align-items: center; gap: 6px; }
.header-right { justify-content: flex-end; }
.icon-btn {
  width: 42px; height: 42px;
  border: 0; background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.icon-btn:hover { background: rgba(20,18,16,0.05); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 6px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--ink); color: var(--ivory);
  border-radius: 99px; font-size: 10px; line-height: 16px; text-align: center;
}
.cart-count:empty, .cart-count[data-n="0"] { display: none; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark { width: 28px; height: 28px; color: var(--gold); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.logo-sub {
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-top: 5px;
  text-align: center;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 0 0 12px;
}
.nav a, .nav-drop > span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  color: var(--ink-soft);
  display: inline-block;
}
.nav a:hover, .nav a.active, .nav-drop:hover > span { color: var(--ink); }
.nav-drop { position: relative; }
.nav-drop > span { cursor: default; }
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 220px;
  padding: 10px 0;
  box-shadow: var(--shadow);
}
.nav-drop:hover .nav-menu { display: block; }
.nav-menu a {
  display: block;
  padding: 8px 18px;
  letter-spacing: 0.12em;
}
.nav-menu a:hover { background: var(--ivory); }

.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--ivory);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: 0.2s ease;
}
.btn:hover { background: var(--gold-dk); border-color: var(--gold-dk); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dk); border-color: var(--gold-dk); }
.btn-full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: var(--dark);
  color: var(--ivory);
  overflow: hidden;
}
.hero-copy {
  padding: 80px 48px 80px 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(42px, 5.4vw, 78px);
  color: #f7f1e8;
  max-width: 11ch;
}
.hero p.lede {
  margin: 22px 0 36px;
  max-width: 38ch;
  color: #d9d0c4;
  font-size: 17px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  min-height: 520px;
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.hero-note {
  position: absolute; bottom: 28px; right: 28px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,0.35); padding: 8px 12px;
}

/* Sections */
.section { padding: 84px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 { font-size: clamp(32px, 4vw, 48px); }
.section-head p { color: var(--muted); max-width: 46ch; margin: 8px 0 0; }
.link-arrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-dk); white-space: nowrap;
  border-bottom: 1px solid var(--gold-lt); padding-bottom: 2px;
}

/* Collections */
.coll-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.coll-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #ddd;
  color: #fff;
}
.coll-card img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: transform 0.6s ease;
}
.coll-card:hover img { transform: scale(1.06); }
.coll-card .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.62) 100%);
}
.coll-card figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
}
.coll-card h3 { font-size: 28px; }
.coll-card span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 18px;
}
.product-card { display: flex; flex-direction: column; gap: 12px; }
.product-card .thumb {
  position: relative;
  background: #ece7e0;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .thumb img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--white); color: var(--ink);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 8px;
}
.product-card h3 { font-family: var(--sans); font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.35; }
.price { font-size: 14px; color: var(--ink-soft); }
.price s { color: var(--muted); margin-right: 8px; }

/* Story */
.story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 560px;
  background: var(--ivory);
}
.story img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.story-copy { padding: 72px 56px; display: flex; flex-direction: column; justify-content: center; }
.story-copy h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 18px; }
.story-copy p { color: var(--ink-soft); max-width: 48ch; }

/* Why */
.why { background: var(--dark); color: var(--ivory); }
.why h2 { color: #f7f1e8; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.why-grid h3 { font-size: 26px; margin-bottom: 10px; color: var(--gold-lt); }
.why-grid p { color: #cfc6ba; font-size: 14.5px; margin: 0; }

/* Journal */
.journal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
.journal-card { background: var(--white); border: 1px solid var(--line); }
.journal-card img { width: 100%; height: 240px; object-fit: cover; }
.journal-card.featured img { height: 360px; }
.journal-card .pad { padding: 20px 22px 24px; }
.journal-card .meta { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: 8px; }
.journal-card h3 { font-size: 28px; }
.journal-card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* Newsletter */
.news {
  background: var(--ivory);
  text-align: center;
  padding: 72px 20px;
}
.news h2 { font-size: 42px; margin-bottom: 10px; }
.news p { color: var(--muted); margin-bottom: 24px; }
.news-form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; }
.news-form input {
  flex: 1; height: 50px; border: 1px solid var(--ink); border-right: 0;
  padding: 0 16px; background: var(--white); outline: none;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #d8d0c6;
  padding: 64px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2a2723;
}
.site-footer .logo-name { color: #f7f1e8; }
.site-footer .logo-sub { color: var(--gold-lt); }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-lt); margin-bottom: 16px;
}
.site-footer a { display: block; padding: 4px 0; color: #cfc6ba; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; font-size: 12px; color: #8a837a;
}

/* Page hero */
.page-hero {
  padding: 56px 0 28px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(36px, 5vw, 62px); }
.page-hero p { color: var(--muted); max-width: 54ch; margin: 12px auto 0; }
.crumbs {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.crumbs a:hover { color: var(--ink); }

/* Shop layout */
.shop-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  padding-bottom: 80px;
}
.filters h3 {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  margin: 0 0 12px;
}
.filter-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 28px; }
.filter-list button {
  text-align: left; border: 0; background: transparent;
  padding: 7px 0; color: var(--muted); font-size: 14px;
}
.filter-list button.active, .filter-list button:hover { color: var(--ink); }
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px; gap: 12px;
}
.shop-toolbar select {
  height: 40px; border: 1px solid var(--line); background: var(--white);
  padding: 0 10px; color: var(--ink);
}
.count { color: var(--muted); font-size: 13px; }

/* Product page */
.pdp {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding: 40px 0 80px;
}
.gallery-main {
  background: #ece7e0;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button {
  width: 72px; height: 72px; padding: 0; border: 1px solid transparent; background: #ece7e0;
}
.thumbs button.active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .kicker { margin-bottom: 10px; color: var(--gold-dk); }
.pdp-info h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.pdp-price { font-size: 20px; margin-bottom: 18px; }
.pdp-info .short { color: var(--ink-soft); font-size: 17px; }
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 16px 0 24px; }
.qty-row { display: flex; gap: 10px; margin: 8px 0 16px; }
.qty {
  display: flex; border: 1px solid var(--ink); height: 48px;
}
.qty button { width: 42px; border: 0; background: transparent; font-size: 18px; }
.qty input {
  width: 48px; border: 0; text-align: center; background: transparent; font-size: 14px;
}
.features { margin: 28px 0; }
.features li {
  padding: 8px 0 8px 18px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.features li:before { content: ""; width: 6px; height: 6px; background: var(--gold); position: absolute; left: 0; top: 16px; border-radius: 50%; }
.ship-note { font-size: 13px; color: var(--muted); }

/* Content pages */
.prose {
  max-width: 740px;
  margin: 0 auto 80px;
  font-size: 17px;
  color: var(--ink-soft);
}
.prose h2 { font-size: 32px; color: var(--ink); margin: 32px 0 12px; }
.prose h3 { font-size: 24px; color: var(--ink); margin: 24px 0 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.faq { max-width: 820px; margin: 0 auto 80px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 18px;
  list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; color: var(--gold-dk); font-size: 22px; }
.faq details[open] summary:after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 4px; padding-right: 32px; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding-bottom: 80px;
}
.contact-card {
  background: var(--ivory);
  padding: 32px;
}
.contact-card h2 { font-size: 32px; margin-bottom: 12px; }
.contact-card p { color: var(--ink-soft); }
form .row { margin-bottom: 14px; }
form label { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%; border: 1px solid var(--line); background: var(--white);
  padding: 12px 12px; outline: none; color: var(--ink);
}
form textarea { min-height: 140px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { border-color: var(--ink); }
.form-ok {
  display: none;
  background: var(--ivory);
  padding: 14px 16px;
  margin-top: 12px;
  border-left: 3px solid var(--gold);
}

/* Cart drawer */
.overlay {
  position: fixed; inset: 0; background: rgba(16,14,12,0.4);
  opacity: 0; pointer-events: none; transition: 0.25s ease; z-index: 60;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 70;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 28px; }
.drawer-body { flex: 1; overflow: auto; padding: 12px 20px; }
.cart-line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-line img { width: 72px; height: 88px; object-fit: cover; background: #ece7e0; }
.cart-line h4 { font-family: var(--sans); font-size: 14px; font-weight: 500; }
.cart-line .rm { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0; margin-top: 6px; }
.drawer-foot { padding: 16px 20px 22px; border-top: 1px solid var(--line); }
.totals { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.empty-cart { color: var(--muted); padding: 40px 0; text-align: center; }

/* Search */
.search-modal {
  position: fixed; inset: 0; background: rgba(250,247,242,0.97);
  z-index: 80; display: none; padding: 8vh 20px 40px;
}
.search-modal.open { display: block; }
.search-modal .box { max-width: 720px; margin: 0 auto; }
.search-modal input {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink);
  background: transparent; font-size: 28px; padding: 12px 0; outline: none;
  font-family: var(--serif);
}
.search-results { margin-top: 24px; display: grid; gap: 8px; }
.search-hit {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 8px; border: 1px solid transparent;
}
.search-hit:hover { border-color: var(--line); background: var(--white); }
.search-hit img { width: 56px; height: 64px; object-fit: cover; background: #ece7e0; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0 20% 0 0; max-width: 360px;
  background: var(--paper);
  z-index: 70;
  transform: translateX(-110%);
  transition: 0.3s ease;
  padding: 28px 22px;
  overflow: auto;
}
.mobile-nav.open { transform: none; }
.mobile-nav a {
  display: block;
  font-size: 22px;
  font-family: var(--serif);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--ivory);
  padding: 12px 18px; font-size: 13px; letter-spacing: 0.06em;
  opacity: 0; pointer-events: none; transition: 0.25s ease; z-index: 90;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding-bottom: 80px;
}
.order-box { background: var(--ivory); padding: 24px; }
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0 48px;
}
.guide-card { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.guide-card h3 { font-size: 26px; margin-bottom: 8px; }

@media (max-width: 980px) {
  .hero, .story, .shop-layout, .pdp, .contact-grid, .checkout-grid, .journal-grid, .foot-grid, .coll-grid, .why-grid, .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero { min-height: auto; }
  .hero-copy { padding: 48px 28px; }
  .journal-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
  .coll-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: flex; gap: 24px; overflow: auto; }
  .filter-list { flex-direction: row; gap: 8px; }
  .filter-list button { border: 1px solid var(--line); padding: 6px 10px; white-space: nowrap; }
  .filter-list button.active { border-color: var(--ink); color: var(--ink); }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 28px); }
  .hero, .story, .why-grid, .journal-grid, .foot-grid, .coll-grid, .contact-grid, .checkout-grid, .pdp, .guide-grid {
    grid-template-columns: 1fr;
  }
  .header-row { min-height: 64px; }
  .logo-name { font-size: 22px; letter-spacing: 0.14em; }
  .hero-copy { padding: 40px 22px 32px; }
  .hero p.lede { max-width: none; }
  .hero-visual { min-height: 360px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 56px 0; }
  .product-grid { gap: 16px 10px; }
  .story-copy { padding: 36px 24px; }
  .news-form { flex-direction: column; }
  .news-form input { border-right: 1px solid var(--ink); }
  .announce { font-size: 10px; letter-spacing: 0.08em; white-space: normal; line-height: 1.45; }
}
