/* ──────────────────────────────────────────────────────────────────
   Shared chrome — base type, palette vars, nav, contact, common UI.
   Each page sets its own data-palette on <body> and adds page-specific
   styles in its own <style> block.
   ────────────────────────────────────────────────────────────────── */

:root {
  /* Fallback palette — JS overrides via applyPalette() */
  --bg: #FBF6EE;
  --ink: #1E1410;
  --ink-soft: #6B5A50;
  --brand: #C84B27;
  --accent: #E8A33D;
  --line: #E8DECF;
  --card: #FFFCF6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "cv11" on;
}
.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- Nav ---------- */
.nav {
  position: absolute;     /* not sticky — sits over hero/page-header only */
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 28px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__brand .mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  position: relative;
}
.nav__brand .mark::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.nav__links {
  display: flex;
  gap: 38px;
  align-items: center;
}
.nav__links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--brand);
  transition: width 0.3s;
}
.nav__links a:hover { color: var(--brand); }
.nav__links a:hover::after { width: 100%; }
.nav__links a[data-current="true"]::after { width: 100%; background: var(--ink); }
.nav__links a .ext {
  display: inline-block;
  margin-left: 4px;
  font-size: 9px;
  vertical-align: super;
  opacity: 0.5;
}

/* ---------- Section primitives ---------- */
section.block { padding: 120px 64px; scroll-margin-top: 0; }
.block__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 72px;
}
.block__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.block__title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 700px;
}
.block__title em { font-style: italic; color: var(--brand); }
.block__desc {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.big-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 44px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.big-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform: translateY(101%);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.big-cta:hover::before { transform: translateY(0); }
.big-cta > * { position: relative; z-index: 1; }
.big-cta .arrow { transition: transform 0.25s; }
.big-cta:hover .arrow { transform: translateX(6px); }

.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
  cursor: pointer;
}
.pill-cta:hover { background: var(--ink); color: var(--bg); }
.pill-cta .arrow { transition: transform 0.25s; }
.pill-cta:hover .arrow { transform: translateX(4px); }

/* ---------- Contact / Footer ---------- */
.contact {
  background: var(--ink);
  color: var(--bg);
  padding: 120px 64px 48px;
}
.contact .block__title { color: var(--bg); }
.contact .block__eyebrow { color: var(--accent); }

.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
}
.contact__col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
  margin: 0 0 22px;
  font-weight: 500;
}
.contact__big {
  font-family: 'Instrument Serif', serif;
  font-size: 40px;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--bg);
}
.contact__big em { font-style: italic; color: var(--accent); }
.contact__sub {
  font-size: 14px;
  color: color-mix(in oklab, var(--bg) 65%, transparent);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 320px;
}
.contact__link {
  display: block;
  color: var(--bg);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.9;
  transition: color 0.2s, padding 0.2s;
}
.contact__link:hover { color: var(--accent); padding-left: 4px; }
.contact__socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.contact__social {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  text-decoration: none;
  transition: all 0.2s;
}
.contact__social:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.contact__newsletter {
  margin-top: 18px;
  display: flex;
  gap: 0;
  background: color-mix(in oklab, var(--bg) 10%, transparent);
  border-radius: 999px;
  padding: 4px;
  max-width: 360px;
}
.contact__newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--bg);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
}
.contact__newsletter input::placeholder { color: color-mix(in oklab, var(--bg) 45%, transparent); }
.contact__newsletter button {
  background: var(--bg);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.contact__newsletter button:hover { background: var(--accent); }
.contact__bottom {
  max-width: 1280px;
  margin: 80px auto 0;
  padding-top: 28px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
}
.contact__wordmark {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.85;
  margin: 80px 0 60px;
  text-align: center;
  color: var(--bg);
  letter-spacing: -0.03em;
  font-style: italic;
  opacity: 0.95;
}

/* ---------- Template note ribbon ---------- */
.placer-note {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  cursor: default;
}
.placer-note .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ---------- Generic product disc (used in best-sellers + menu) ---------- */
.product-disc {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--accent) 18%, var(--card)) 0%, color-mix(in oklab, var(--brand) 6%, var(--card)) 65%, transparent 72%);
  border: 1px dashed color-mix(in oklab, var(--ink) 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: color-mix(in oklab, var(--ink) 50%, transparent);
}
.product-disc .glyph {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 48px;
  color: color-mix(in oklab, var(--brand) 55%, var(--ink) 20%);
  line-height: 1;
}
.product-disc .placer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav { padding: 20px 24px; }
  .nav__links { gap: 20px; }
  section.block { padding: 80px 24px; }
  .contact { padding: 80px 24px 32px; }
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .block__head { flex-direction: column; align-items: flex-start; gap: 24px; }
}
