:root {
  --bg-canvas: #f7f5f0;
  --bg-surface: #ffffff;
  --bg-surface-translucent: rgba(255, 255, 255, 0.88);
  --bg-surface-tint: #eeebe1;
  --text-primary: #111111;
  --text-muted: #55524c;
  --accent-primary: #d62828;
  --accent-hover: #b71c1c;
  --accent-amber: #b45309;
  --border-ink: #111111;
  --border-subtle: #d3cfc4;
  --shadow-neo: 4px 4px 0px #111111;
  --shadow-neo-sm: 2px 2px 0px #111111;
  --shadow-elevation: 0 14px 28px rgba(17, 17, 17, 0.08);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

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

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

body {
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-left: 8px solid var(--border-ink);
  border-right: 8px solid var(--border-ink);
  background-color: var(--bg-canvas);
}

/* Header & Navigation */
header.site-header {
  position: relative;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 3px solid var(--border-ink);
  padding: 1.25rem 2rem;
  z-index: 50;
}

.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.75rem;
  text-decoration: none;
  color: var(--text-primary);
  margin-right: auto;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background-color: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  border: 2px solid var(--border-ink);
  box-shadow: 2px 2px 0px var(--border-ink);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  padding: 0.35rem 0.65rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  border-color: var(--border-ink);
  background: var(--bg-surface-tint);
  box-shadow: var(--shadow-neo-sm);
}

.nav-cta {
  background: var(--accent-primary);
  color: #ffffff !important;
  border: 2px solid var(--border-ink) !important;
  box-shadow: var(--shadow-neo-sm);
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-neo);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  border: 2px solid var(--border-ink);
  box-shadow: var(--shadow-neo-sm);
  font-size: 1.5rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 3px solid var(--border-ink);
  padding: 1rem 2rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  z-index: 100;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer .nav-link {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  border-color: transparent;
}

/* Layout Containers */
main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.content-prose {
  max-width: 70ch;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-ink);
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

p strong, p b {
  color: var(--text-primary);
}

/* Neo-Brutalist Components */
.hero-compact {
  padding: 2rem 0 3rem;
  border-bottom: 3px solid var(--border-ink);
  margin-bottom: 3rem;
}

.eyebrow {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-ink);
}

.lead-text {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 500;
  max-width: 68ch;
  line-height: 1.5;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  border: 2px solid var(--border-ink);
  box-shadow: var(--shadow-neo);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--border-ink);
  background: var(--accent-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  border: 2px solid var(--border-ink);
  box-shadow: var(--shadow-neo);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: var(--bg-surface-tint);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--border-ink);
}

/* Timeline Architecture */
.treaty-pathway {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 2rem;
  border-left: 3px solid var(--border-ink);
}

.pathway-node {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-surface-translucent);
  border: 2px solid var(--border-ink);
  box-shadow: var(--shadow-neo);
  backdrop-filter: blur(8px);
}

.node-marker {
  position: absolute;
  left: -2.9rem;
  top: 1.25rem;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--accent-primary);
  color: #ffffff;
  border: 2px solid var(--border-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Cards & Bento Grid */
.statute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.statute-card {
  background: var(--bg-surface-translucent);
  border: 2px solid var(--border-ink);
  padding: 1.5rem;
  box-shadow: var(--shadow-neo);
  transition: transform 0.2s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
}

.statute-card:hover {
  transform: translateY(-4px);
}

.statute-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 2px solid var(--border-ink);
  margin-bottom: 1rem;
}

.statute-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-amber);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border: 2px solid var(--border-ink);
  box-shadow: var(--shadow-neo);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

th {
  background: var(--bg-surface-tint);
  font-weight: 800;
  border-bottom: 2px solid var(--border-ink);
  color: var(--text-primary);
}

tr:nth-child(even) {
  background: #fbfaf7;
}

/* Regulatory Matrix Diff */
.diff-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.diff-box {
  background: var(--bg-surface);
  border: 2px solid var(--border-ink);
  padding: 1.5rem;
  box-shadow: var(--shadow-neo);
}

.diff-box.prior {
  border-left: 6px solid var(--text-muted);
}

.diff-box.current {
  border-left: 6px solid var(--accent-primary);
}

/* Interactive Assessment Tool */
.tool-panel {
  background: var(--bg-surface);
  border: 3px solid var(--border-ink);
  padding: 2rem;
  box-shadow: var(--shadow-neo);
  margin: 3rem 0;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-ink);
  background: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
}

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

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.result-terminal {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #111111;
  color: #f7f5f0;
  font-family: monospace;
  font-size: 0.9rem;
  border-radius: 0;
  white-space: pre-wrap;
  display: none;
}

/* FAQ Accordion */
.faq-item {
  border: 2px solid var(--border-ink);
  margin-bottom: 1rem;
  background: var(--bg-surface);
  box-shadow: var(--shadow-neo-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 800;
  font-size: 1.05rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  display: none;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  display: block;
}

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

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

/* Footer */
footer.site-footer {
  background: var(--bg-surface);
  border-top: 3px solid var(--border-ink);
  padding: 3rem 2rem 2rem;
  margin-top: auto;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.footer-column h5 {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    border-left-width: 4px;
    border-right-width: 4px;
  }
  .nav-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .diff-container {
    grid-template-columns: 1fr;
  }
}

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