:root {
  --bg-canvas: #0b0b0d;
  --bg-surface: #19191d;
  --bg-surface-elevated: #222227;
  --text-primary: #f2f2f4;
  --text-muted: #9da1aa;
  --accent-primary: #dc2626;
  --accent-hover: #b91c1c;
  --border-silver: #c0c4cc;
  --border-subtle: #2d2d34;
  --font-heading: "Arial Narrow", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::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: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus-visible {
  top: 1rem;
}

/* Site Header */
.site-header {
  position: relative;
  background-color: transparent;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(192, 196, 204, 0.15);
  z-index: 50;
  width: 100%;
}
.site-header.scrolled {
  background-color: var(--bg-canvas);
  border-bottom-color: var(--border-subtle);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-right: auto;
}
.brand-mark {
  color: var(--accent-primary);
  font-size: 1.3rem;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.desktop-nav a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text-primary);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
}
.mobile-nav-menu {
  display: none;
  flex-direction: column;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  gap: 1rem;
}
.mobile-nav-menu.open {
  display: flex;
}
.mobile-nav-menu a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.4rem 0;
}

/* Base Headings & Type */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  hyphens: auto;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  border-left: 2px solid var(--accent-primary);
  padding-left: 0.75rem;
}
h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
p {
  margin-bottom: 1.25rem;
  color: #d1d5db;
}
.lead-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 72ch;
}

/* Button & Interactive */
.pill-btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.8rem 2.2rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.pill-btn:hover {
  background-color: var(--accent-hover);
}
.pill-btn-outline {
  background: transparent;
  border: 1px solid var(--border-silver);
  color: var(--text-primary);
}
.pill-btn-outline:hover {
  background-color: var(--bg-surface);
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 1.5rem;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4rem) 1.5rem;
}

/* Hero Component */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000;
  overflow: hidden;
  padding: 4rem 1.5rem;
}
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.4) 0%, rgba(11, 11, 13, 0.85) 75%, var(--bg-canvas) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin: 0 auto;
}
.hero-kicker {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--border-silver);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

/* Inner Page Hero */
.page-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem 2.5rem;
  text-align: left;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Grids & Cards (0px radii, 1px silver border, no shadow) */
.editorial-grid-paired {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.editorial-lead-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-silver);
  border-radius: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
}
.card-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-silver);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #121215;
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--border-silver);
  margin-bottom: 0.5rem;
}
.card-body h3 {
  margin-bottom: 0.75rem;
}

/* Horizontal Split Card */
.horizontal-split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-silver);
  margin-bottom: 2rem;
}
.horizontal-split-image {
  min-height: 280px;
}
.horizontal-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.horizontal-split-content {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Definition Lists & Sourced Notes */
.spec-definition-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.spec-definition-item {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}
.spec-definition-item dt {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.spec-definition-item dd {
  color: #c0c4cc;
}

/* Sourced Tables */
.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-silver);
  margin: 2rem 0;
}
table.editorial-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 600px;
}
table.editorial-table th,
table.editorial-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
table.editorial-table th {
  background-color: var(--bg-surface-elevated);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--border-silver);
  font-weight: 700;
}
table.editorial-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* FAQ Accordion / Listing */
.faq-block {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.75rem 0;
}
.faq-block:first-of-type {
  border-top: 1px solid var(--border-subtle);
}
.faq-block h3 {
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

/* Interactive Message Tool / Form */
.observation-form-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-silver);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--border-silver);
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.preview-box {
  background-color: var(--bg-canvas);
  border: 1px dashed var(--border-silver);
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: #e5e7eb;
}

/* Site Footer */
.site-footer {
  background-color: #070709;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.16em;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}
.footer-legal-block {
  border-top: 1px solid rgba(192, 196, 204, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Accessibility & Utility */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .horizontal-split-card {
    grid-template-columns: 1fr;
  }
  .horizontal-split-image {
    min-height: 220px;
  }
}

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