:root {
  --bg-canvas: #0f1b2d;
  --bg-surface: #18283e;
  --bg-surface-hover: #1f334f;
  --text-primary: #f4f1ea;
  --text-muted: #b8c5d6;
  --accent-primary: #d4a84b;
  --accent-secondary: #f0c868;
  --border-subtle: rgba(212, 168, 75, 0.28);
  --border-strong: #d4a84b;
  --focus-ring: #f0c868;
  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--accent-secondary);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  font-weight: 700;
  padding: 0.5rem 1rem;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Header: Slim, far-left logo, non-sticky */
.site-header {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 10px 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 50;
  transition: background-color 0.25s ease;
}

.site-header.is-scrolled {
  background-color: var(--bg-surface);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-title span {
  color: var(--accent-primary);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.1rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
}

/* Hero Section */
.hero-band {
  padding: 2.25rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(24, 40, 62, 0.4) 0%, rgba(15, 27, 45, 1) 100%);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-band h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.hero-band p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 68ch;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn-gold {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--accent-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-gold:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: var(--bg-canvas);
}

.btn-secondary {
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.65rem 0.5rem;
}

.btn-secondary::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--accent-primary);
  transition: transform 0.2s ease;
}

.btn-secondary:hover::after {
  transform: scaleX(1.15);
}

/* Sections & Alternating Splits */
.editorial-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.editorial-section:nth-of-type(even) {
  background-color: var(--bg-surface);
}

.editorial-section:nth-of-type(odd) {
  background-color: var(--bg-canvas);
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-layout.reversed {
  direction: rtl;
}

.split-layout.reversed > * {
  direction: ltr;
}

.split-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.split-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.split-text p strong {
  color: var(--text-primary);
}

.split-graphic {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.editorial-section:nth-of-type(even) .split-graphic {
  background: #111d2e;
}

.split-graphic img {
  max-width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.graphic-caption {
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-top: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Flat Cards & Grids */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.flat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.flat-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--accent-primary);
}

.flat-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.badge-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.contributor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  object-fit: cover;
}

/* Worked Examples & Interactive Reveals */
.worked-example {
  background: #111e30;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.worked-example h3, .worked-example h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.joke-row {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin-bottom: 1.25rem;
}

.joke-setup {
  padding: 1.25rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.joke-payoff {
  padding: 1.25rem;
  background: rgba(15, 27, 45, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.joke-punchline {
  color: var(--accent-primary);
  font-weight: 700;
}

.joke-reveal-toggle {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.joke-reveal-toggle:hover {
  background: var(--accent-primary);
  color: var(--bg-canvas);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(212, 168, 75, 0.15);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* Contact Message Drafting Tool */
.draft-tool-card {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 2rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.tool-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.status-feedback {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent-secondary);
  min-height: 1.5rem;
}

/* Footer: Consistent across all pages */
.site-footer {
  background: #091220;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--accent-primary);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.footer-base {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 168, 75, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-layout.reversed {
    direction: ltr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .nav-mobile-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
  }
  .nav-mobile-open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .nav-mobile-open .nav-links li {
    width: 100%;
  }
  .nav-mobile-open .nav-link {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }
}

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