:root {
  --bg-canvas: #0b0b0d;
  --bg-surface: #19191e;
  --text-primary: #f4f4f6;
  --text-muted: #c0c4cc;
  --accent-primary: #dc2626;
  --accent-hover: #ef4444;
  --border-subtle: #282830;
  --radius-sm: 4px;
  --radius-full: 9999px;
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-reading: 72ch;
  --max-content: 1160px;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-muted);
  font-family: var(--font-stack);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

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

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

/* Skip link */
.skip-link {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #ffffff;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  z-index: 100000;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  border: 2px solid #ffffff;
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Header - Slim, Proper, Simple & Moves Up Naturally When Scrolling Down */
.site-header {
  position: relative; /* Not stuck; naturally moves up on scroll */
  z-index: 100;
  width: calc(100% - 2rem);
  max-width: var(--max-content);
  margin: 0.75rem auto 1.5rem;
  padding: 6px 14px 6px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 13px;
  height: 13px;
  fill: #ffffff;
}

.brand-name {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 0.975rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.28rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Small, compact header button */
.header-actions .btn-crimson {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

/* 3-Dot Mobile Toggle Button */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.menu-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Crimson Pill Buttons */
.btn-crimson {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn-crimson:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
}

.btn-crimson:active {
  transform: translateY(1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.4rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Layout Containers */
.page-container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1.25rem;
}

/* Hero Section */
.hero-block {
  padding: clamp(2rem, 5vw, 4rem) 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.hero-art-cluster {
  display: flex;
  position: relative;
  height: 320px;
  align-items: center;
  justify-content: center;
}

.art-panel {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  box-shadow: 0 16px 32px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

.art-panel-1 {
  background: linear-gradient(135deg, #1f1f26 0%, #111115 100%);
  transform: translate(-50px, -20px) rotate(-6deg);
  z-index: 1;
}

.art-panel-2 {
  background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
  transform: translate(0px, 15px) rotate(3deg);
  z-index: 2;
}

.art-panel-3 {
  background: linear-gradient(135deg, #282832 0%, #141418 100%);
  transform: translate(55px, -15px) rotate(8deg);
  z-index: 3;
}

.art-panel svg {
  width: 48px;
  height: 48px;
  fill: #ffffff;
  margin-bottom: 0.5rem;
}

.art-panel span {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Radial Glow Background Sections */
.glow-section {
  position: relative;
  padding: 3.5rem 0;
  margin: 2.5rem 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(220, 38, 38, 0.14), transparent 70%);
}

/* Thin-Divider List Rows */
.list-rows {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
}

.divider-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.divider-row:first-child {
  border-top: 1px solid var(--border-subtle);
}

.row-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.row-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.row-content h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.row-content p {
  margin-bottom: 0.5rem;
}

.row-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.row-tag {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Breakout Elements */
.breakout-media {
  margin: 2.5rem 0;
  width: 100%;
}

.breakout-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: block;
}

.caption-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: left;
}

/* Pull Quotes */
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.pull-quote p {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.pull-quote cite {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
  display: block;
}

/* Form Styles */
.form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2rem;
  margin: 2.5rem 0;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

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

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

.draft-output {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #111115;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.9375rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

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

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

th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 700;
}

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

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

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-col p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

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

.footer-bottom {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Responsive Overrides */
@media (max-width: 1040px) {
  .site-header {
    border-radius: 8px;
    padding: 6px 12px;
    margin: 0.5rem auto 1.5rem;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    flex-direction: column;
    padding: 0.6rem;
    gap: 0.2rem;
    z-index: 1000;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
  }
  .header-actions .btn-crimson {
    display: none;
  }
  .site-nav .mobile-cta {
    display: block;
    margin-top: 0.35rem;
    text-align: center;
    width: 100%;
    font-size: 0.8125rem;
    padding: 0.5rem 0.85rem;
  }
}

@media (min-width: 1041px) {
  .site-nav .mobile-cta {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-art-cluster {
    height: 240px;
  }
  .art-panel {
    width: 170px;
    height: 170px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .divider-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

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