:root {
  --bg-canvas: #1c1f24;
  --bg-surface: #292a2d;
  --bg-surface-hover: #333539;
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #14b8a6;
  --accent-secondary: #0d9488;
  --border-subtle: #3f4147;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --glow-accent: 0 0 24px -4px rgba(20, 184, 166, 0.28);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0px !important;
}

html {
  background-color: #14161a;
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  margin: 28px;
  border: 1px solid var(--border-subtle);
  min-height: calc(100vh - 56px);
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1.2rem; max-width: 70ch; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #5eead4; }

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease;
  padding: 18px 0;
}

.site-header.scrolled-solid {
  background-color: var(--bg-surface);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.brand-icon {
  width: 14px;
  height: 14px;
  background-color: var(--accent-primary);
  display: inline-block;
}

.desktop-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s var(--ease-kinetic);
}

.nav-link:hover::after, .nav-link[aria-current="page"]::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  font-size: 1.3rem;
  cursor: pointer;
}

.mobile-dropdown {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
}

.mobile-dropdown.open {
  display: block;
}

.mobile-dropdown a {
  display: block;
  padding: 10px 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-band {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent-primary);
  margin-bottom: 8px;
  display: block;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 68ch;
  margin-bottom: 20px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #11181c;
  font-weight: 600;
  padding: 12px 24px;
  display: inline-block;
  border: 1px solid var(--accent-primary);
  transition: transform 0.25s var(--ease-kinetic), box-shadow 0.25s var(--ease-kinetic);
  cursor: pointer;
}

.btn-primary:hover {
  color: #090d0f;
  background-color: #2dd4bf;
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.link-secondary {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
}

.link-secondary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.link-secondary:hover {
  color: #ffffff;
}

.link-secondary:hover::after {
  width: 100%;
}

.lead-story {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 48px;
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic);
}

.lead-story:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevation);
}

.card-media-wrap {
  position: relative;
  width: 100%;
}

.card-media-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.lead-img {
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

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

.edge-badge {
  position: absolute;
  bottom: -14px;
  left: 24px;
  background-color: var(--accent-primary);
  color: #11181c;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border: 1px solid #11181c;
}

.card-body {
  padding: 28px 24px 24px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 28px 0 48px;
}

.field-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.field-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.caution-panel {
  background-color: #23272a;
  border-left: 4px solid var(--accent-primary);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px;
  margin: 28px 0;
}

.caution-title {
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0 36px;
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  text-align: left;
  font-size: 0.92rem;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: #222428;
  color: #ffffff;
  font-family: Georgia, serif;
  font-weight: 400;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #ffffff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent-primary);
  font-family: monospace;
  font-size: 1.3rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.prose-article {
  max-width: 72ch;
  margin: 0 auto 48px;
}

.prose-article ul, .prose-article ol {
  margin: 0 0 1.4rem 1.4rem;
}

.prose-article li {
  margin-bottom: 0.5rem;
}

.form-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  margin: 28px 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 12px;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: 2px solid var(--accent-primary);
}

.composer-output {
  background-color: #16181c;
  border: 1px solid var(--border-subtle);
  padding: 16px;
  font-family: monospace;
  white-space: pre-wrap;
  margin-top: 18px;
  font-size: 0.88rem;
  color: #d1d5db;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 64px;
  padding: 40px 0;
  background-color: #181a1f;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

@media (max-width: 768px) {
  body {
    margin: 10px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    margin: 6px;
  }
  .page-shell, .header-inner {
    padding: 0 14px;
  }
}

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