:root {
  --bg-out: #0a120e;
  --bg-canvas: #13261d;
  --bg-surface: #20382b;
  --text-primary: #efe6d2;
  --text-muted: rgba(239, 230, 210, 0.75);
  --accent-primary: #b8923a;
  --accent-hover: #cdaa56;
  --border-subtle: #b8923a;
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-panel: 20px;
  --shadow-button: 4px 4px 0 var(--text-primary);
  
  --font-heading: system-ui, "Segoe UI", sans-serif;
  --font-body: system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  margin: 0;
  padding: 2vw;
  background-color: var(--bg-out);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Inset Frame */
.page-frame {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 1.5rem 0 1rem;
  line-height: 1.2;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-top: 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.5rem; }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--accent-primary); }
p, ul, ol { margin-bottom: 1.2rem; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }
strong { color: var(--accent-primary); }

/* Header & Nav */
.site-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: lowercase;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.header-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}
.header-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0;
}

/* Hero Section */
.hero-band {
  padding: 4rem 2rem 2rem;
  text-align: center;
}
.hero-band h1 { margin: 0 auto; max-width: 900px; }
.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Layout Engine */
main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.grid-tactical {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.reading-content {
  max-width: 72ch;
  margin: 0 auto 3rem;
}

/* Tactical Panels (Cards) */
.tactical-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.tactical-panel img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius-panel) - 4px);
  margin-bottom: 1.5rem;
  filter: contrast(1.2) brightness(0.8);
}
.tactical-panel h3 { margin-top: 0; }
.panel-footer { margin-top: auto; padding-top: 1.5rem; }

/* Interactive Tabs / Expandable Notes */
.coaching-note {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  margin-bottom: 1rem;
  overflow: hidden;
}
.note-header {
  background: var(--bg-surface);
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  transition: background 0.3s;
}
.note-header:hover { background: rgba(184, 146, 58, 0.1); }
.note-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-kinetic), padding 0.4s;
  background: var(--bg-canvas);
}
.note-content.open {
  padding: 1.5rem;
  max-height: 800px;
  border-top: 1px solid var(--border-subtle);
}

/* Stat Strips */
.stat-strip {
  display: flex;
  gap: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.stat-item { flex: 1; min-width: 150px; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--accent-primary); display: block; line-height: 1; margin-bottom: 0.25rem; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }

/* Buttons */
.btn-brass {
  display: inline-block;
  background: var(--accent-primary);
  color: #13261d;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
}
.btn-brass:hover {
  box-shadow: 0 0 0 var(--text-primary);
  transform: translate(4px, 4px);
  background: var(--accent-hover);
  color: #13261d;
}

/* Composer Tool */
.composer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.composer-area {
  width: 100%;
  height: 300px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: var(--radius-panel);
  font-family: var(--font-body);
  resize: none;
}
.composer-preview {
  background: var(--bg-canvas);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 1.5rem;
  height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
}
.composer-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Forms */
label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
input[type="text"], input[type="email"] {
  width: 100%; padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

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

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  background: var(--bg-surface);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col h4 { color: var(--accent-primary); margin-top: 0; }
.footer-col p, .footer-col a { font-size: 0.9rem; color: var(--text-muted); display: block; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(184, 146, 58, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom a { margin: 0 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 2rem;
    z-index: 50;
    gap: 1rem;
    align-items: flex-start;
  }
  .header-nav.active { display: flex; }
  .mobile-toggle { display: block; }
  .composer-grid { grid-template-columns: 1fr; }
  .hero-band { padding: 3rem 1rem 1rem; }
}

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