:root {
  --bg-canvas: #29251f;
  --bg-surface: #373129;
  --bg-surface-hover: #433c32;
  --text-primary: #ffffff;
  --text-muted: #d6cfc7;
  --accent-primary: #a3e635;
  --accent-secondary: #84cc16;
  --text-on-accent: #1c1917;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 28px -6px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 18px 36px -6px rgba(0, 0, 0, 0.65);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, .serif-heading {
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

p {
  margin-bottom: 1.15rem;
  max-width: 70ch;
}

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

a:hover {
  color: #bef264;
}

ul, ol {
  margin: 0 0 1.25rem 1.5rem;
  max-width: 70ch;
}

li {
  margin-bottom: 0.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose-center {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Header: Floating-style rounded-end box in normal flow, strictly left-aligned brand */
.site-header-wrap {
  padding: 1.25rem 1.5rem 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.site-header {
  background-color: var(--bg-surface);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-elevation);
  position: relative;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: var(--accent-primary);
  border-radius: 0;
}

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

.desktop-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
}

.mobile-nav-overlay {
  display: none;
  background-color: var(--bg-surface);
  margin-top: 0.5rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-elevation);
  border-radius: 0;
}

.mobile-nav-overlay.is-open {
  display: block;
}

.mobile-nav-overlay ul {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.mobile-nav-overlay a {
  display: block;
  padding: 0.6rem 0.75rem;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

/* Hero Section: Oversized headline on solid field, no hero image */
.hero-solid {
  padding: 4.5rem 0 4rem;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-kicker {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  margin-bottom: 1.25rem;
  border-radius: 0;
}

.hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 64ch;
  margin-bottom: 2rem;
}

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

/* Solid Buttons with 4px 4px 0 hard shadow that closes on hover */
.btn-solid {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 2px solid #ffffff;
  border-radius: 0;
  box-shadow: 4px 4px 0 #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-solid:hover {
  color: var(--text-on-accent);
  background-color: #bef264;
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #ffffff;
}

.btn-secondary {
  display: inline-block;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--accent-primary);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--accent-primary);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-secondary:hover {
  color: var(--text-primary);
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--accent-primary);
}

/* Sections & Full-Width Lime Blocks */
.section-block {
  padding: 4rem 0;
}

.lime-band {
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  padding: 3.25rem 0;
}

.lime-band h2,
.lime-band h3,
.lime-band p,
.lime-band li {
  color: var(--text-on-accent);
}

.lime-band a:not(.btn-dark) {
  color: var(--text-on-accent);
  font-weight: 700;
}

.btn-dark {
  display: inline-block;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--bg-canvas);
  border-radius: 0;
  box-shadow: 4px 4px 0 #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-dark:hover {
  color: var(--accent-primary);
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #ffffff;
}

/* Condition Strips */
.condition-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background-color: var(--border-subtle);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-elevation);
}

.condition-cell {
  background-color: var(--bg-surface);
  padding: 1.25rem;
  border-radius: 0;
}

.condition-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.condition-value {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.condition-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Grids & Borderless 0px Radius Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

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

.card-panel {
  background-color: var(--bg-surface);
  padding: 1.75rem;
  border: none;
  border-radius: 0;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.25s var(--ease-kinetic), box-shadow 0.25s var(--ease-kinetic), background-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  background-color: var(--bg-surface-hover);
}

.lime-band .card-panel {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

.lime-band .card-panel h3,
.lime-band .card-panel p {
  color: var(--text-primary);
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Images: strictly 0px radius, explicit aspect ratios */
.media-frame {
  width: 100%;
  margin-bottom: 1.25rem;
  background-color: #1f1c18;
  border-radius: 0;
  overflow: hidden;
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.ratio-16x9 img { aspect-ratio: 16 / 9; }
.ratio-4x3 img { aspect-ratio: 4 / 3; }
.ratio-1x1 img { aspect-ratio: 1 / 1; }

/* Accessible Tabs */
.tabs-wrapper {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
  border-radius: 0;
}

.tablist-bar {
  display: flex;
  flex-wrap: wrap;
  background-color: #1f1c18;
}

.tab-trigger {
  flex: 1 1 180px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-trigger:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.tab-trigger[aria-selected="true"] {
  background-color: var(--bg-surface);
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.tab-panel {
  padding: 2rem;
  display: none;
}

.tab-panel.is-active {
  display: block;
}

/* Accordions */
.accordion-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
  border-radius: 0;
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 1.25rem 1.5rem;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 0;
}

.accordion-trigger:hover {
  background-color: var(--bg-surface-hover);
}

.accordion-icon {
  color: var(--accent-primary);
  font-family: monospace;
  font-size: 1.35rem;
  margin-left: 1rem;
}

.accordion-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  display: none;
}

.accordion-item.is-open .accordion-content {
  display: block;
}

/* Tables & Comparisons */
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-elevation);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  text-align: left;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: #1f1c18;
  color: var(--accent-primary);
  font-family: Georgia, serif;
  font-weight: 700;
}

/* Preparation Checklist */
.prep-checklist {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.prep-checklist li {
  background-color: var(--bg-surface);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: var(--shadow-elevation);
}

.prep-checklist input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  accent-color: var(--accent-primary);
  border-radius: 0;
  flex-shrink: 0;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

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

.form-control:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}

/* Scroll Reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

.reveal-item.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background-color: #1c1915;
  padding: 3.5rem 0 2.5rem;
  margin-top: 4rem;
  border-top: 2px solid var(--accent-primary);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-block;
  }
  .site-header {
    padding: 0.65rem 1.15rem;
  }
  .section-block {
    padding: 2.75rem 0;
  }
}

@media (max-width: 480px) {
  .mobile-nav-overlay ul {
    grid-template-columns: 1fr;
  }
  .hero-solid {
    padding: 3rem 0 2.5rem;
  }
}

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