:root {
  --bg-canvas: #3b0d1a;
  --bg-surface: #541b2a;
  --bg-surface-hover: #692335;
  --text-primary: #fff5e7;
  --text-muted: #e2cbb0;
  --accent-primary: #e8d5a8;
  --accent-secondary: #d49a6a;
  --border-subtle: rgba(232, 213, 168, 0.28);
  --band-bg: #e8d5a8;
  --band-text: #3b0d1a;
  --band-surface: #f5ebd4;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(20, 4, 9, 0.5);
  --glow-accent: 0 0 24px -4px rgba(232, 213, 168, 0.3);
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.8;
  overflow-wrap: anywhere;
  hyphens: auto;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); object-fit: cover; }
a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 4px; transition: color 0.2s ease; }
a:hover { color: var(--text-primary); }

/* Header & Nav */
.site-header {
  position: relative;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.1rem 1.5rem;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 2px 2px 0 var(--accent-secondary);
}
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: nowrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--accent-primary);
  color: var(--bg-canvas);
}
.menu-toggle {
  display: none;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  border: none;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

/* Layout & Typography */
.wrapper { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.reading-col { max-width: 68ch; margin: 0 auto; padding: 2.75rem 1.25rem; }
.wide-breakout {
  max-width: 1040px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}
h1, h2, h3, h4 {
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 700;
  color: inherit;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-top: 1.5rem; }
h3 { font-size: 1.3rem; margin-top: 1.25rem; }
p, ul, ol { margin-bottom: 1.35rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.45rem; }

/* Bands */
.champagne-band {
  background-color: var(--band-bg);
  color: var(--band-text);
  padding: 3.5rem 0;
  margin: 2rem 0;
}
.champagne-band a { color: #541b2a; font-weight: 700; }
.champagne-band .surface-card {
  background: var(--band-surface);
  color: var(--band-text);
  border: 1px solid rgba(59, 13, 26, 0.2);
}

/* Hero */
.hero-section {
  max-width: 1160px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  position: relative;
}
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-elevation);
  border: 1px solid var(--border-subtle);
}
.hero-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: brightness(0.82);
}
.hero-overlay-grid {
  position: relative;
  margin-top: -140px;
  z-index: 2;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.75rem;
  align-items: end;
}
.hero-title-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-elevation);
}
.hero-facts-card {
  background: var(--band-bg);
  color: var(--band-text);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-elevation);
  border: 2px solid #3b0d1a;
}
.hero-facts-card h2 {
  font-size: 1.15rem;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(59, 13, 26, 0.2);
  padding-bottom: 0.5rem;
}
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(59, 13, 26, 0.25);
  font-size: 0.95rem;
  margin: 0;
}
.fact-list li:last-child { border-bottom: none; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.45rem;
  border-radius: 14px;
  border: 2px solid #23060e;
  box-shadow: 4px 4px 0 #23060e;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #23060e;
  background: #f5ebd4;
  color: var(--bg-canvas);
}
.champagne-band .btn {
  background: var(--bg-canvas);
  color: var(--text-primary);
  border-color: #23060e;
  box-shadow: 4px 4px 0 #7a3e4f;
}
.champagne-band .btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #7a3e4f;
  background: var(--bg-surface);
}

/* Cards & Symptom Badges */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}
.symptom-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.3s var(--ease-kinetic);
}
.symptom-card:hover { transform: translateY(-4px); }
.champagne-band .symptom-card {
  background: var(--band-surface);
  color: var(--band-text);
  border-color: rgba(59, 13, 26, 0.2);
}
.card-photo-wrap { position: relative; }
.card-photo-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.symptom-badge {
  position: relative;
  display: inline-block;
  margin: -1.1rem 1.25rem 0.5rem 1.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  align-self: flex-start;
}
.badge-amber { background: #d97706; color: #fff5e7; }
.badge-terracotta { background: #b91c1c; color: #fff5e7; }
.badge-emerald { background: #047857; color: #fff5e7; }
.badge-plum { background: #6d28d9; color: #fff5e7; }
.card-body { padding: 0.75rem 1.5rem 1.65rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-body h3 { margin-top: 0.25rem; }

/* Editorial Pull Quotes & Checklists */
.pull-quote {
  margin: 2.25rem -2rem;
  padding: 1.75rem 2rem;
  background: var(--bg-surface);
  border-left: 6px solid var(--accent-primary);
  border-radius: var(--radius);
  font-size: 1.2rem;
  font-style: italic;
  box-shadow: var(--shadow-elevation);
}
.champagne-band .pull-quote {
  background: var(--band-surface);
  border-left-color: var(--bg-canvas);
  color: var(--band-text);
}
.checklist-panel, .surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.85rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-elevation);
}
.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.champagne-band .checklist li::before {
  background: var(--bg-canvas);
  color: var(--text-primary);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.95rem;
}
.champagne-band table {
  background: var(--band-surface);
  color: var(--band-text);
}
th, td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
th {
  background: rgba(0, 0, 0, 0.2);
  font-weight: 700;
}
.champagne-band th { background: rgba(59, 13, 26, 0.1); }

/* Discussion Starter Box */
.starter-prompt {
  border: 2px dashed var(--accent-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: rgba(84, 27, 42, 0.55);
}
.champagne-band .starter-prompt {
  border-color: var(--bg-canvas);
  background: rgba(245, 235, 212, 0.85);
}
.starter-label {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}
.form-output {
  background: #260710;
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius);
  padding: 1.25rem;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: #260710;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic); }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .hero-overlay-grid { grid-template-columns: 1fr; margin-top: -60px; }
  .pull-quote { margin: 1.75rem 0; }
}
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--accent-primary);
    padding: 1rem 1.5rem;
    z-index: 50;
    box-shadow: var(--shadow-elevation);
  }
  .main-nav.nav-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
  .hero-media img { height: 340px; }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
