/* ============================================
   PALETTE — light & dark are the same place,
   different times of day. Unified gold accent.
   ============================================ */
:root[data-theme="light"] {
  --primary: #8B2635;
  --primary-dark: #5C161F;
  --primary-hover: #A03040;
  --gray: #7A7570;
  --bg: #F5EFE3;
  --surface: #FBF7ED;
  --surface-2: #FFFFFF;
  --text: #2A1F1A;
  --text-soft: #5C4F47;
  --rule: #E0D6C4;
  --rule-soft: #ECE3D2;
  --accent: #D4A857;
  --accent-text: #8C6E1F;
  --on-primary: #F5EFE3;
  --on-accent: #2A1F1A;
  --shadow: 0 1px 3px rgba(42, 31, 26, 0.08);
  --shadow-hover: 0 6px 20px rgba(42, 31, 26, 0.12);
}
:root[data-theme="dark"] {
  --primary: #B83545;
  --primary-dark: #8B2635;
  --primary-hover: #C84050;
  --gray: #9B9690;
  --bg: #1A1416;
  --surface: #251D20;
  --surface-2: #2F2529;
  --text: #F0E9D8;
  --text-soft: #C4BCA8;
  --rule: #3A2F33;
  --rule-soft: #2A2226;
  --accent: #D4A857;
  --accent-text: #D4A857;
  --on-primary: #F0E9D8;
  --on-accent: #1A1416;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.015em;
  text-decoration: none;
  line-height: 1;
}
.logo:hover { color: var(--primary-hover); }

.site-header nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-header nav a:hover {
  color: var(--primary);
  background: var(--rule-soft);
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: all 0.15s ease;
  padding: 0;
}
.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
}
/* Show sun in dark mode, moon in light mode */
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile nav */
.site-header { position: relative; }
.hamburger {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 4px;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--text-soft);
  padding: 0; margin-left: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hamburger:hover { color: var(--primary); border-color: var(--primary); }
.hamburger svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .logo { font-size: 22px; }
  .site-header nav .nav-links { display: none; }
  .hamburger { display: inline-flex; }

  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 8px 16px 16px;
    gap: 2px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(42,31,26,0.08);
  }
  .site-header.nav-open .nav-links a {
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 4px;
  }
}


/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 40px 0 60px;
  font-size: 13px;
  color: var(--gray);
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: baseline;
}
footer a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s ease;
}
footer a:hover { color: var(--primary); }
footer .footer-links a {
  margin-left: 16px;
}
@media (max-width: 500px) {
  footer .footer-links a:first-child { margin-left: 0; }
}


/* ============================================
   BOTTLE SWAP PAGE
   ============================================ */
.page { padding: 40px 24px 24px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.page h1 { font-family: 'Fraunces', serif; font-size: clamp(34px, 5.5vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 24px; }
.flyer { margin: 0 0 28px; }
.flyer img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.details { display: flex; flex-wrap: wrap; gap: 8px 28px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 6px; padding: 18px 22px; margin-bottom: 48px; font-size: 17px; }
.details strong { font-family: 'Fraunces', serif; font-size: 20px; }
.details span { color: var(--text-soft); }
.page h2 { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 20px; }
.rules { list-style: none; counter-reset: rule; margin-bottom: 56px; }
.rules li { counter-increment: rule; position: relative; padding: 16px 0 16px 64px; border-bottom: 1px dotted var(--rule); font-size: 19px; line-height: 1.5; min-height: 64px; }
.rules li:last-child { border-bottom: none; }
.rules li::before { content: counter(rule); position: absolute; left: 0; top: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rules strong { color: var(--primary); }
.new-this-year { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 24px; margin-bottom: 32px; }
.new-this-year h2 { font-size: 24px; margin-bottom: 12px; }
.new-this-year ul { padding-left: 20px; }
.new-this-year li { margin-bottom: 8px; line-height: 1.6; }
.practice { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--primary); border-radius: 6px; padding: 24px; margin-bottom: 32px; }
.practice h2 { font-size: 24px; margin-bottom: 8px; }
.practice p { color: var(--text-soft); margin-bottom: 16px; }
.btn-practice { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 6px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 17px; text-decoration: none; transition: background .15s ease; }
.btn-practice:hover { background: var(--primary-hover); }
.tradition { color: var(--gray); font-style: italic; font-size: 14px; padding: 8px 0 40px; }
@media (max-width: 600px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .rules li { font-size: 18px; padding-left: 56px; }
  .rules li::before { width: 38px; height: 38px; font-size: 19px; }
  .details { flex-direction: column; }
}
