:root {
  --bg-canvas: #13261d;
  --bg-surface: #20382b;
  --bg-parchment: #efe6d2;
  --text-primary: #efe6d2;
  --text-dark: #13261d;
  --text-muted: #c2b8a3;
  --accent-primary: #b8923a;
  --accent-secondary: #9c7928;
  --border-subtle: rgba(239, 230, 210, 0.18);
  --border-dark: rgba(19, 38, 29, 0.2);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-panel: 20px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
}

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

h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
}

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.28rem;
}

p {
  margin-bottom: 1.15rem;
  max-width: 70ch;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.25s var(--ease-kinetic);
}

a:not(.btn-primary):not(.brand-link)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s var(--ease-kinetic);
}

a:not(.btn-primary):not(.brand-link):hover::after {
  width: 100%;
}

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

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

/* Header - strictly relative/static so it scrolls out of view */
.site-header {
  position: relative;
  width: 100%;
  padding: 1.35rem 0;
  background-color: transparent;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease;
  z-index: 40;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin-right: auto;
}

.brand-mark {
  width: 16px;
  height: 16px;
  background-color: var(--accent-primary);
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent-primary);
}

.menu-toggle {
  display: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

/* Hero & Lead Feature */
.hero-band {
  padding: 2.5rem 0 1.25rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 0.35rem;
}

.lead-feature {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 2rem;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
}

.lead-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease-kinetic), background-color 0.2s ease;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  background-color: #cda547;
  transform: translateY(-2px);
}

/* Two-Column Editorial Field & Thinly Divided List Rows */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 1.5rem 0 3rem;
}

.row-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
}

.list-row {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.row-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.parchment-panel .row-icon {
  background-color: var(--bg-canvas);
}

.row-content h3 {
  margin-bottom: 0.3rem;
  font-size: 1.18rem;
}

.row-content p {
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Parchment & Forest Supporting Panels */
.parchment-panel {
  background-color: var(--bg-parchment);
  color: var(--text-dark);
  border-radius: var(--radius-panel);
  padding: 2.25rem;
  margin: 2.5rem 0;
}

.parchment-panel h2,
.parchment-panel h3 {
  color: var(--text-dark);
  border-color: var(--border-dark);
  margin-top: 0;
}

.parchment-panel p,
.parchment-panel .row-content p {
  color: #2c4237;
}

.parchment-panel .row-list,
.parchment-panel .list-row {
  border-color: var(--border-dark);
}

.parchment-panel a:not(.btn-primary) {
  color: #7c5c16;
  font-weight: 600;
}

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

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  background-color: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.94rem;
}

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

th {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent-primary);
  font-weight: 400;
  background-color: rgba(19, 38, 29, 0.45);
}

/* Native FAQ Disclosures */
.faq-list {
  margin: 1.5rem 0 3rem;
  border-top: 1px solid var(--border-subtle);
}

details.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.1rem 0;
}

details.faq-item summary {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.4rem;
  line-height: 1;
}

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

details.faq-item .faq-body {
  padding-top: 0.85rem;
  color: var(--text-muted);
}

/* Article Layout */
.article-body {
  max-width: 72ch;
  margin: 0 auto 3rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.figure-block {
  margin: 2rem 0;
}

.figure-block figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
}

/* Correspondence Panel (Contact Tool) */
.correspondence-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 2.25rem;
  margin: 2rem 0;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

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

.correspondence-preview {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: monospace;
  font-size: 0.88rem;
  white-space: pre-wrap;
  color: var(--text-primary);
  margin: 1.25rem 0;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.status-note {
  font-size: 0.9rem;
  color: var(--accent-primary);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

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

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2.5rem;
  margin-top: 4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
  }

  .main-nav.nav-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .lead-feature {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .parchment-panel,
  .surface-panel,
  .correspondence-panel {
    padding: 1.35rem;
  }
}

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