:root {
  /* Dynamic Palette: Terracotta Party Workshop (Strictly No Blue) */
  --bg-canvas: #faf6ef;
  --bg-surface: #f0e8db;
  --text-primary: #2b211a;
  --text-muted: #5a4b41;
  --accent-primary: #c2562e;
  --accent-secondary: #6b7a3a;
  
  /* Advanced UI Micro-Interactions & Depth */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(43, 33, 26, 0.15);
  --glow-accent: 0 0 24px -4px rgba(194, 86, 46, 0.4);
  --glass-backdrop: blur(16px) saturate(180%);
  --border-subtle: 1px solid rgba(43, 33, 26, 0.1);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--accent-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p { margin-bottom: 1.5rem; }
a { color: var(--accent-primary); transition: color 0.3s var(--ease-kinetic); text-decoration: underline; }
a:hover { color: var(--accent-secondary); }

/* Layout Architecture & Bands */
.band-cream {
  background-color: var(--bg-canvas);
  padding: 5rem 1rem;
}

.band-sand {
  background-color: var(--bg-surface);
  padding: 5rem 1rem;
}

.band-olive {
  background-color: var(--accent-secondary);
  color: var(--bg-canvas);
  padding: 5rem 1rem;
}
.band-olive h1, .band-olive h2, .band-olive h3 { color: var(--bg-canvas); }
.band-olive p { color: var(--bg-canvas); }

.bg-dots {
  position: relative;
}
.bg-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--accent-secondary) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Reading Layouts */
.reading-content {
  max-width: 72ch;
  margin: 0 auto;
}
.reading-content p {
  font-size: 1.1rem;
}

/* Header & Navigation */
.header {
  position: relative;
  background-color: var(--bg-canvas);
  padding: 1.5rem 1rem;
  border-bottom: var(--border-subtle);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--accent-primary);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--accent-primary); text-decoration: none; }

.desktop-nav {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-group {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-group a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-group a:hover {
  color: var(--accent-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1;
}

.mobile-menu {
  display: none;
  background-color: var(--bg-surface);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 2rem;
  border-bottom: 2px solid var(--accent-primary);
  z-index: 100;
}
.mobile-menu.active { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a { text-decoration: none; font-size: 1.25rem; font-weight: bold; color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0; /* Square buttons */
  cursor: pointer;
  transition: all 0.4s var(--ease-kinetic);
  font-family: inherit;
  font-size: 0.95rem;
}

.btn:hover, .btn:focus-visible {
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  outline: none;
}

/* Cards & Interactions */
.card {
  background: rgba(250, 246, 239, 0.6);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: var(--border-subtle);
  border-radius: 0; /* Square corners */
  padding: 2.5rem;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  position: relative;
  z-index: 1;
}
.band-sand .card { background: rgba(240, 232, 219, 0.6); }

.card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%; /* Round badges */
  background: var(--accent-secondary);
  color: var(--bg-canvas);
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Table Wrappers */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
  border: var(--border-subtle);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th, td { padding: 1rem; border-bottom: var(--border-subtle); }
th { background-color: var(--bg-surface); color: var(--accent-primary); }

/* Images & Visuals */
.hero-visuals {
  position: relative;
  width: 100%;
  min-height: 400px;
}
.hero-img {
  position: absolute;
  border: 8px solid var(--bg-canvas);
  object-fit: cover;
  border-radius: 0;
  box-shadow: var(--shadow-elevation);
}
.hero-img-1 { top: 0; left: 0; width: 65%; height: 260px; z-index: 1; }
.hero-img-2 { top: 60px; right: 0; width: 55%; height: 280px; z-index: 2; }
.hero-img-3 { bottom: 0; left: 15%; width: 60%; height: 220px; z-index: 3; }

.img-fluid {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.img-ratio-16-9 { aspect-ratio: 16 / 9; }
.img-ratio-4-3 { aspect-ratio: 4 / 3; }
.img-ratio-1-1 { aspect-ratio: 1 / 1; }

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

/* Forms & Tools */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--accent-secondary);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  border-radius: 0;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--glow-accent);
}

/* Footer */
.footer-band { padding: 3rem 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { text-decoration: none; color: inherit; }
.footer-links a:hover { color: var(--accent-primary); }

/* Media Queries */
@media (max-width: 1024px) {
  .hero-visuals { min-height: 350px; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
  
  h1 { font-size: 2.2rem; }
  .band-cream, .band-sand, .band-olive { padding: 3rem 1rem; }
  
  .hero-visuals { min-height: 300px; margin-top: 2rem; }
  .hero-img { border-width: 4px; }
  .hero-img-1 { height: 180px; }
  .hero-img-2 { height: 200px; }
  .hero-img-3 { height: 160px; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}

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