:root {
  /* Palette: Plum Holiday Lab (Strictly No Blue) */
  --base: #fbf1f0;
  --surface: #ffffff;
  --text-primary: #1c1917;
  --text-muted: #4a4542;
  --accent: #6b2155;
  --accent-light: #943277;
  --border-subtle: #ebdcdb;

  /* Typography */
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  
  /* Metrics */
  --shadow-elevation: 0 12px 32px -4px rgba(28, 25, 23, 0.15);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
  --text-width: 70ch;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background-color: var(--base);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin-top: 0; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.25rem; font-weight: 400; color: var(--text-muted); }
a { color: var(--accent); text-decoration: none; font-weight: 600; transition: color 0.3s; }
a:hover { color: var(--accent-light); }

/* Layout Wrappers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-container {
  max-width: var(--text-width);
  margin: 0 auto;
}

/* Header & Nav */
.top-tagline {
  background-color: var(--text-primary);
  color: var(--base);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.5rem;
  text-align: center;
}
.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 50;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}
.desktop-nav {
  display: flex;
  gap: 2rem;
}
.desktop-nav a {
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--accent);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-elevation);
}
.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Sections */
section { padding: 4rem 0; }
.plum-band {
  background-color: var(--accent);
  color: var(--base);
}
.plum-band h2, .plum-band h3, .plum-band p { color: var(--base); }

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  min-height: 60vh;
  background-color: var(--text-primary);
  color: var(--base);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-content h1 { color: var(--base); }
.hero-facts-panel {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--surface);
  color: var(--text-primary);
  padding: 1.5rem;
  box-shadow: var(--shadow-elevation);
  z-index: 2;
  max-width: 350px;
  border: 4px solid var(--accent);
}
.hero-facts-panel ul {
  list-style: none; padding: 0; margin: 0;
}
.hero-facts-panel li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-facts-panel li:last-child { margin: 0; padding: 0; border: 0; }

/* Grid Components */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Square Cards with Overlap Badge */
.sq-card {
  background: var(--surface);
  position: relative;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sq-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevation);
}
.card-img-wrap {
  position: relative;
  padding-bottom: 100%; /* Square */
  background: var(--border-subtle);
}
.card-img-wrap img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.round-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(107, 33, 85, 0.4);
  z-index: 3;
}
.card-body {
  padding: 2.5rem 1.5rem 1.5rem;
  flex-grow: 1;
}
.card-body h3 { margin-top: 0; font-size: 1.25rem; }

/* Stat Strips */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  background: var(--surface);
  border: 2px solid var(--accent);
  margin: 3rem 0;
}
.stat-item {
  flex: 1;
  min-width: 200px;
  padding: 1.5rem;
  text-align: center;
  border-right: 2px solid var(--accent);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-muted);
}

/* Tabs */
.tabs-container { margin: 3rem 0; }
.tab-list {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  position: relative;
}
.tab-btn.active { color: var(--accent); }
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; width: 100%; height: 4px;
  background-color: var(--accent);
}
.tab-panel { display: none; padding: 1.5rem; background: var(--surface); }
.tab-panel.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Accordions */
.accordion { margin: 2rem 0; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}
details.faq-item summary {
  font-weight: 800;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); }
details.faq-item[open] summary::after { content: "-"; }
details.faq-item .faq-answer { padding: 0 1.5rem 1.25rem; color: var(--text-muted); border-top: 1px solid var(--border-subtle); margin-top: 1rem; padding-top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
  border-radius: 0; /* Square buttons */
}
.btn:hover { background: var(--accent); color: var(--surface); }
.btn-solid { background: var(--accent); color: var(--surface); }
.btn-solid:hover { background: var(--accent-light); border-color: var(--accent-light); }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
label { display: block; font-weight: 800; margin-bottom: 0.5rem; font-size: 0.9rem; text-transform: uppercase; }
input, textarea, select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-family: inherit;
  border-radius: 0;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.tool-preview { margin-top: 2rem; padding: 1.5rem; background: var(--base); border: 2px dashed var(--border-subtle); }

/* Table Wrapper */
.table-responsive { overflow-x: auto; margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: var(--accent); color: var(--base); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }

/* Contributor / Author Avatar */
.contributor { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }

/* Scroll Reveals */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s var(--ease-kinetic); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer { background-color: var(--accent); color: var(--base); padding: 4rem 0 0; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--base); font-size: 1.1rem; text-transform: uppercase; margin-top: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--border-subtle); font-weight: 400; }
.footer-col a:hover { color: var(--surface); }
.footer-bottom { background-color: var(--text-primary); padding: 1.5rem 0; text-align: center; font-size: 0.85rem; color: var(--border-subtle); }
.footer-bottom p { margin: 0; color: var(--border-subtle); }

/* Internal Pages Header */
.page-hero { padding: 5rem 0; background: var(--surface); border-bottom: 1px solid var(--border-subtle); text-align: center; }
.page-hero h1 { max-width: 800px; margin: 0 auto; }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Media Queries */
@media (max-width: 1024px) {
  .hero-facts-panel { position: relative; bottom: auto; right: auto; margin-top: 2rem; max-width: 100%; border-width: 2px; }
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0; min-height: auto; }
  h1 { font-size: 2rem; }
  .stat-item { border-right: none; border-bottom: 2px solid var(--accent); }
  .stat-item:last-child { border-bottom: none; }
}

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