:root {
  --bg-canvas: #0d2a26;
  --bg-surface: #143d38;
  --text-primary: #e0f2e9;
  --text-muted: rgba(224, 242, 233, 0.7);
  --accent: #ff6f59;
  --border: #e0f2e9;
  
  --font-head: "Arial Narrow", "Helvetica Neue Condensed", "Franklin Gothic Medium", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, 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);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  padding: 1rem;
  min-height: 100vh;
}

.page-frame {
  border: 1px solid var(--border);
  min-height: calc(100vh - 2rem);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, .brand {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

/* Header & Nav */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.brand {
  font-size: 1.25rem;
  text-decoration: none;
  border: none;
}

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

.nav-desktop a {
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-head);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  z-index: 9;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Layout Utilities */
main {
  flex-grow: 1;
}

.reading-column {
  max-width: 68ch;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.breakout {
  width: calc(100% + 3rem);
  margin-left: -1.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 769px) {
  .breakout {
    width: 100%;
    margin-left: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
  background-color: var(--bg-surface);
}

.img-16-9 {
  aspect-ratio: 16 / 9;
}

.img-4-3 {
  aspect-ratio: 4 / 3;
}

.pull-quote {
  font-size: 1.5rem;
  font-family: var(--font-head);
  line-height: 1.3;
  margin: 3rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  color: var(--text-primary);
}

/* Hero Split */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 80vh;
  padding-top: 6rem; /* Account for absolute header */
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1025px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
    padding-top: 0;
  }
}

.hero-text {
  padding: 6rem 2rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1025px) {
  .hero-text {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.hero-image-wrapper {
  position: relative;
  height: 40vh;
  border-top: 1px solid var(--border);
}

@media (min-width: 1025px) {
  .hero-image-wrapper {
    height: auto;
    border-top: none;
    border-left: 1px solid var(--border);
  }
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Cards & Grids */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.card-flat {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-canvas);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

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

.card-flat h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buttons & Inputs */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--bg-canvas);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: max-content;
}

.btn-pill:hover, .btn-pill:focus-visible {
  opacity: 0.9;
  transform: translateY(-2px);
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  border-radius: 0;
  margin-bottom: 1rem;
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* Tool Container */
.tool-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2rem;
  margin: 3rem 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
}

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

.footer-bottom {
  border-top: 1px solid rgba(224, 242, 233, 0.2);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 769px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
th, td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}
th {
  font-family: var(--font-head);
  text-transform: uppercase;
  background: var(--bg-surface);
}

/* Document formatting overrides */
.faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(224, 242, 233, 0.2);
  padding-bottom: 1.5rem;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}