:root {
  --bg-canvas: #eef7f2;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f6fbf8;
  --bg-tint: #dceee4;
  --text-primary: #1f2937;
  --text-muted: #4b5563;
  --accent-primary: #14532d;
  --accent-secondary: #166534;
  --border-subtle: #c5ded0;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 10px 26px -8px rgba(20, 83, 45, 0.14);
  --glow-accent: 0 0 18px -6px rgba(20, 83, 45, 0.25);
  --radius-sm: 4px;
  --measure: 68ch;
  --container-max: 1160px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  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-serif {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--text-primary);
  line-height: 1.22;
  margin-top: 0;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 1rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin-bottom: 0.85rem; }
h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }

p { margin: 0 0 1.15rem; max-width: var(--measure); }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.35rem; max-width: var(--measure); }
li { margin-bottom: 0.45rem; }

a {
  color: var(--accent-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-kinetic);
}
a:hover { color: var(--accent-secondary); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 0.65rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrapper {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.reading-col {
  width: 100%;
  max-width: 72ch;
  margin: 0 auto;
}

/* Header & Tagline Bar (Normal Flow) */
.tagline-bar {
  background-color: var(--accent-primary);
  color: #eef7f2;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0;
}
.tagline-bar .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header {
  position: static;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  position: relative;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  font-family: Georgia, serif;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.desktop-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-nav-drawer {
  display: none;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem 1.15rem;
}
.mobile-nav-drawer.is-open { display: block; }
.mobile-nav-drawer a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--bg-canvas);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
}
.mobile-nav-drawer a:last-child { border-bottom: none; }

/* Dot pattern background */
.dot-backdrop {
  background-color: var(--bg-canvas);
  background-image: radial-gradient(rgba(20, 83, 45, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Outlined square-ended buttons */
.btn-outline {
  display: inline-block;
  padding: 0.78rem 1.45rem;
  border: 2px solid var(--accent-primary);
  border-radius: 0;
  background: transparent;
  color: var(--accent-primary);
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-kinetic), color 0.25s var(--ease-kinetic), transform 0.25s var(--ease-kinetic), box-shadow 0.25s var(--ease-kinetic);
}
.btn-outline:hover {
  background-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}
.btn-solid {
  background-color: var(--accent-primary);
  color: #ffffff;
}
.btn-solid:hover {
  background-color: var(--accent-secondary);
}

/* Hero */
.hero-section {
  padding: 3.5rem 0 3.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 1.65rem;
}
.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-elevation);
  filter: contrast(1.06) brightness(0.94);
}
.hero-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
}

/* Sections & Extended Bleed Figures */
.journal-section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.journal-section.surface-band {
  background-color: var(--bg-surface);
}
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.45rem;
}

.extended-figure {
  width: 100%;
  max-width: 920px;
  margin: 2rem auto;
}
.extended-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  filter: contrast(1.05) brightness(0.95);
}
.extended-figure figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent-primary);
}

/* Pull Quotes & Margin Notes */
.pull-quote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.45;
  color: var(--text-primary);
}
.surface-band .pull-quote {
  background-color: var(--bg-canvas);
}

.margin-note {
  background-color: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.margin-note strong {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

/* Chapter Cards with Overlapping Lower-Edge Badges */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
  margin-top: 1.75rem;
}
.chapter-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic);
}
.chapter-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}
.card-media {
  position: relative;
}
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  filter: contrast(1.05) brightness(0.93);
}
.card-badge {
  position: absolute;
  left: 1rem;
  bottom: -0.75rem;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-sm);
}
.card-body {
  padding: 1.45rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex: 1;
}
.card-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 0.5rem;
  display: inline-block;
}

/* Comparison Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}
th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
th {
  background-color: var(--bg-tint);
  font-family: Georgia, serif;
  color: var(--text-primary);
  font-weight: 700;
}
tr:last-child td { border-bottom: none; }

/* Short Question Accordions */
.accordion-list {
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}
.accordion-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.accordion-item summary {
  padding: 1rem 1.15rem;
  font-family: Georgia, serif;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.2rem;
  font-weight: 700;
}
.accordion-item[open] summary::after { content: "−"; }
.accordion-content {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--bg-canvas);
  padding-top: 0.85rem;
}

/* Editorial Letter / Contact Form */
.letter-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.98rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.proof-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: var(--bg-canvas);
  border: 1px dashed var(--accent-primary);
  border-radius: var(--radius-sm);
}
.proof-box pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  margin: 0.5rem 0 0;
}
.status-msg {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--accent-primary);
  font-weight: 600;
}

/* Page Header for Inner Pages */
.page-hero {
  padding: 2.75rem 0 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero .hero-lead { margin-bottom: 0; }

/* Two-column utility for editorial split */
.split-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2.5rem;
  align-items: start;
}

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

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 2px solid var(--accent-primary);
  padding: 3rem 0 2.25rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.footer-heading {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent-primary); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-section { padding: 2.25rem 0 2.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .tagline-bar .wrapper { justify-content: flex-start; }
  .letter-panel { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chapter-card:hover { transform: none; }
}