:root {
  --bg-canvas: #13261d;
  --bg-surface: #1a3327;
  --bg-surface-elevated: #214032;
  --bg-surface-hover: #294e3d;
  --text-primary: #efe6d2;
  --text-muted: #c2b69d;
  --accent-primary: #b8923a;
  --accent-secondary: #d4aa4f;
  --accent-crimson: #a6382e;
  --border-subtle: rgba(184, 146, 58, 0.28);
  --border-focus: #b8923a;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 14px 34px -4px rgba(0, 0, 0, 0.45);
  --shadow-button: 4px 4px 0 #000000;
  --glow-accent: 0 0 20px -3px rgba(184, 146, 58, 0.35);
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
  position: relative;
}

h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

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

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.2s var(--ease-kinetic);
}

a:hover, a:focus-visible {
  color: #f7e1a0;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.prose-block {
  max-width: 70ch;
  margin: 0 auto 2.5rem;
}

/* Floating Top Navigation Deck */
.deck-header {
  position: relative;
  width: 100%;
  padding: 1.25rem 1rem;
  z-index: 100;
}

.deck-nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-elevation);
}

.deck-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.brand-roundel {
  width: 28px;
  height: 28px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #13261d;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 #000;
}

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

.deck-links a {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
}

.deck-links a:hover, .deck-links a.active {
  color: var(--accent-secondary);
  background: rgba(184, 146, 58, 0.12);
  text-decoration: none;
}

.mobile-menu-trigger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 1.5rem;
  right: 1.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 99;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-panel a {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  color: var(--text-primary);
}

/* Brass Buttons */
.btn-brass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: #0b1510;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.85rem 1.65rem;
  border: 1px solid #7a6023;
  border-radius: 0;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-brass:hover, .btn-brass:focus-visible {
  background-color: var(--accent-secondary);
  color: #0b1510;
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.btn-brass:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-primary);
  box-shadow: var(--shadow-button);
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.btn-secondary:hover {
  background: rgba(184, 146, 58, 0.18);
  color: var(--text-primary);
  text-decoration: none;
}

/* Hero Section */
.hero-diplomat {
  padding: 3rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.25rem;
  color: #f7edd7;
}

.hero-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-treaty-card {
  position: absolute;
  bottom: -1.75rem;
  right: -1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-primary);
  padding: 1.25rem 1.5rem;
  width: 82%;
  box-shadow: var(--shadow-button);
}

.hero-treaty-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.hero-treaty-card ul {
  list-style: none;
  font-size: 0.825rem;
  color: var(--text-primary);
}

.hero-treaty-card li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(184, 146, 58, 0.2);
  display: flex;
  justify-content: space-between;
}

.hero-treaty-card li:last-child {
  border-bottom: none;
}

/* Bento Grid Architecture */
.bento-section {
  padding: 4.5rem 0;
  position: relative;
}

.diagonal-band {
  background: #0f1d16;
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  padding: 6rem 0;
  margin: 2rem 0;
}

.section-head {
  margin-bottom: 2.75rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.bento-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-cell {
  background: var(--bg-surface);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
}

.bento-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  border-color: var(--accent-primary);
}

.bento-cell.span-8 { grid-column: span 8; }
.bento-cell.span-4 { grid-column: span 4; }
.bento-cell.span-6 { grid-column: span 6; }
.bento-cell.span-12 { grid-column: span 12; }

.status-roundel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 6px var(--accent-secondary);
}

.status-dot.danger {
  background: var(--accent-crimson);
  box-shadow: 0 0 6px var(--accent-crimson);
}

.bento-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

/* Roll-Call Legislative Table */
.table-responsive-box {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.diplomat-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  min-width: 620px;
}

.diplomat-table th {
  background: #112018;
  color: var(--accent-secondary);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diplomat-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(184, 146, 58, 0.15);
  color: var(--text-primary);
}

.diplomat-table tr:hover td {
  background: rgba(184, 146, 58, 0.06);
}

.badge-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 2px;
  background: rgba(184, 146, 58, 0.18);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-primary);
}

/* Policy Impact Interactive Simulator */
.simulator-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-primary);
  padding: 2.5rem;
  box-shadow: var(--shadow-elevation);
  margin: 3rem 0;
}

.simulator-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-group select, .field-group input, .field-group textarea {
  background: #0f1c15;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

.field-group select:focus, .field-group input:focus, .field-group textarea:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}

.sim-output-box {
  background: #0b140f;
  border: 1px dashed var(--accent-primary);
  padding: 1.5rem;
  margin-top: 1.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  color: #efe6d2;
  white-space: pre-wrap;
  min-height: 120px;
}

.sim-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Scroll reveal engine */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

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

/* Footer Specifications */
.diplomatic-footer {
  background: #0b1510;
  border-top: 2px solid var(--accent-primary);
  padding: 4.5rem 0 2.5rem;
  margin-top: 5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  margin-bottom: 1.25rem;
}

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

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

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

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

.footer-bottom-bar {
  border-top: 1px solid rgba(184, 146, 58, 0.2);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-treaty-card {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
  .bento-cell.span-8, .bento-cell.span-4, .bento-cell.span-6 {
    grid-column: span 12;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .deck-links {
    display: none;
  }
  .mobile-menu-trigger {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .simulator-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .deck-nav-wrapper {
    padding: 0.6rem 1.15rem;
    border-radius: 8px;
  }
  .btn-brass, .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

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