/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ── */
:root {
--bg: #e8eff5;
  --surface:   #ffffff;
  --ink:       #1c1b19;
  --ink-muted: #7a7870;
  --border:    #d6d3cc;
  --max:        860px;
  --pad-x:      clamp(1.5rem, 6vw, 4rem);
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
p { max-width: 58ch; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
}
.wordmark {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  gap: 2.5rem;
}
.site-nav a {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--ink); }

/* ── Section base ── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }

/* ── Eyebrow label ── */
.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* ── Section heading ── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.section-rule {
  width: 36px;
  height: 1px;
  background: var(--border);
  margin: 0.75rem auto 2rem;
}

/* ── Body text ── */
.section p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 auto 1.2rem;
  line-height: 1.75;
}
.section p:last-of-type { margin-bottom: 0; }

/* ── Hero ── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--pad-x) clamp(4rem, 9vw, 7rem);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2.2rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 2rem;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-filled {
  background: var(--ink);
  color: var(--bg);
}
.btn-filled:hover { opacity: 0.75; }

/* ── Shop preview grid ── */
.shop-preview {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x);
  border-bottom: 1px solid var(--border);
}
.shop-preview-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.shop-preview-header .eyebrow { margin-bottom: 0; }
.text-link {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.text-link:hover { color: var(--ink); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card { display: block; }
.product-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--border);
  margin-bottom: 1rem;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  max-width: none;
  margin: 0;
}
.product-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0.25rem 0 0;
  max-width: none;
}

/* ── Shop page ── */
.shop-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--pad-x) clamp(4rem, 8vw, 6rem);
}
.filter-bar {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.filter-btn {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.2s, border-color 0.2s;
}
.filter-btn.active,
.filter-btn:hover { color: var(--ink); border-bottom-color: var(--ink); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem 2rem;
}
.shop-item-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--border);
  margin-bottom: 1rem;
  overflow: hidden;
}
.shop-item-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-item-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  max-width: none;
  margin: 0 0 0.2rem;
}
.shop-item-price {
  font-size: 12px;
  color: var(--ink-muted);
  max-width: none;
  margin: 0 0 0.75rem;
}
.shop-item-btn {
  font-size: 10px;
  padding: 0.5rem 1.4rem;
  margin-top: 0;
}

/* ── Checkout modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 25, 0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg);
  max-width: 420px;
  width: calc(100% - 2rem);
  padding: 2.5rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink-muted);
  line-height: 1;
}
.modal-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}
.modal-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.modal-price {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

/* ── Forms ── */
.form-field { margin-bottom: 1.5rem; }
.form-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-bottom-color: var(--ink); }
.form-field textarea { resize: vertical; min-height: 100px; }

/* ── Payment section ── */
.payment-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0 1.5rem;
}
.payment-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
#card-container,
#bespoke-card-container { margin-bottom: 1rem; }
.payment-status {
  font-size: 13px;
  color: var(--ink-muted);
  min-height: 1.2em;
  margin-bottom: 0.75rem;
}
.payment-note {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 0.75rem;
  max-width: none;
}

/* ── Bespoke page ── */
.bespoke-page {
  max-width: 580px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) var(--pad-x) clamp(4rem, 8vw, 6rem);
}
.bespoke-note {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
  max-width: none;
  line-height: 1.7;
}
.deposit-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  margin-bottom: 1.5rem;
}
.deposit-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--ink);
  flex-shrink: 0;
}
#deposit-area { display: none; }
#form-status {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  min-height: 1.2em;
}
.success-message {
  display: none;
  text-align: center;
  padding: 4rem 0;
}
.success-message .section-title { font-size: 1.8rem; margin-bottom: 1rem; }
.success-message p { color: var(--ink-muted); font-family: var(--font-serif); margin: 0 auto; }

/* ── Page hero (inner pages) ── */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad-x) clamp(2rem, 4vw, 3rem);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.page-hero p {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0 auto;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem var(--pad-x);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 2.2;
}
.site-footer a:hover { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 1.5rem; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
