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

:root {
  --parchment:     #F5E7C6;
  --parchment-mid: #EDD9A3;
  --parchment-drk: #E0C878;
  --ink:           #333333;
  --ink-mid:       #442B00;
  --ink-lt:        #7A6040;
  --gold:          #FFB000;
  --gold-lt:       #FFCA4D;
  --gold-dk:       #CC8E00;
  --charcoal:      #333333;
  --shadow:        rgba(51, 51, 51, 0.18);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--parchment);
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--parchment-mid); }
::-webkit-scrollbar-thumb { background: var(--ink-lt); border-radius: 4px; }

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(100%); }             to { transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; }                               to { opacity: 1; } }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.95); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1);   }
}

.fade-up { animation: fadeUp .4s ease forwards; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--charcoal);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s, transform .1s;
  box-shadow: 0 2px 8px rgba(255, 176, 0, 0.3);
  text-decoration: none;
}
.btn-primary:hover  { background: var(--gold-dk); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255, 176, 0, 0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--ink);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  border-radius: 2px;
  transition: all .2s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--ink); color: var(--parchment); border-color: var(--ink); }

/* ── Filter chips ───────────────────────────────────────────────────────── */
.chip {
  padding: 6px 16px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--ink-lt);
  background: transparent;
  color: var(--ink-mid);
  border-radius: 2px;
  transition: all .2s;
}
.chip:hover, .chip.active { background: var(--ink); color: var(--parchment); border-color: var(--ink); }

/* ── Module card ────────────────────────────────────────────────────────── */
.module-card {
  background: linear-gradient(145deg, #F8EDCB, #EDD9A4);
  border: 1px solid var(--parchment-drk);
  border-radius: 2px;
  box-shadow: 2px 3px 10px var(--shadow), inset 0 0 24px rgba(255, 255, 255, .25);
  overflow: hidden;
  transition: box-shadow .3s, transform .2s;
  display: flex;
  flex-direction: column;
}
.module-card:hover {
  box-shadow: 4px 7px 18px var(--shadow), inset 0 0 24px rgba(255, 255, 255, .25);
  transform: translateY(-2px);
}

/* ── Badge ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 600;
  text-transform: uppercase;
}

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--parchment);
  padding: 12px 24px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: .08em;
  border-radius: 2px;
  z-index: 1100;
  white-space: nowrap;
  animation: toastIn .3s ease;
  box-shadow: 0 4px 16px var(--shadow);
  pointer-events: none;
}

/* ── Session Kit drawer ─────────────────────────────────────────────────── */
.kit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 15, 5, .55);
  z-index: 900;
  animation: fadeIn .3s ease;
}
.kit-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #F0DDB0, #E8CF96);
  border-top: 2px solid var(--ink-mid);
  padding: 32px;
  z-index: 950;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp .38s ease;
}

/* ── Nav links ──────────────────────────────────────────────────────────── */
.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .14em;
  color: #C1C1C1;
  text-transform: uppercase;
  transition: color .2s;
  padding: 0;
}
.nav-link:hover { color: #FFB000; }

/* ── Footer platform links ──────────────────────────────────────────────── */
.platform-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid #555;
  color: #C1C1C1;
  text-decoration: none;
  font-size: 13px;
  font-family: 'Cinzel', serif;
  letter-spacing: .06em;
  transition: all .2s;
}
.platform-link:hover {
  background: rgba(255, 176, 0, .12);
  border-color: #FFB000;
  color: #FFB000;
}

/* ── Checkout layout ────────────────────────────────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 40px;
  align-items: start;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links  { display: none !important; }
  .hero-pad   { padding: 44px 22px !important; }
  .hero-h1    { font-size: 30px !important; }
  .section-pad { padding: 60px 20px !important; }
  .checkout-grid { grid-template-columns: 1fr; gap: 28px; }
}
