:root {
  --bg-canvas: #faf6ef;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f3ece0;
  --bg-terracotta: #c2562e;
  --bg-terracotta-dark: #a34421;
  --bg-olive: #6b7a3a;
  --bg-olive-dark: #53602b;
  --text-primary: #2b211a;
  --text-muted: #6e6056;
  --text-light: #faf6ef;
  --border-subtle: #e4d8c8;
  --border-strong: #c8b9a6;
  --radius-panel: 20px;
  --radius-pill: 9999px;
  --radius-subtle: 8px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 14px 34px -6px rgba(43, 33, 26, 0.12);
  --font-display: "Arial Narrow", "Helvetica Neue", "Franklin Gothic Medium", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 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);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.site-header {
  position: relative;
  width: 100%;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 2rem 0.75rem;
}

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

.brand-insignia {
  text-align: left;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-terracotta);
  line-height: 1.1;
}

.brand-subtitle {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-olive);
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-subtle);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.main-navigation {
  max-width: 1200px;
  margin: 0.75rem auto 0;
}

.nav-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease-kinetic);
}

.nav-link:hover,
.nav-link.active {
  background: var(--bg-terracotta);
  color: var(--text-light);
}

/* Mobile Nav Overlay */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-canvas);
  border-bottom: 2px solid var(--bg-terracotta);
  padding: 1.5rem;
  z-index: 100;
  box-shadow: var(--shadow-elevation);
}

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

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

.mobile-nav-list .nav-link {
  display: block;
  font-size: 1rem;
  padding: 0.6rem 1rem;
}

/* Containers & Layouts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.reading-wrap {
  max-width: 70ch;
  margin: 0 auto;
}

.section-gap {
  padding: 4rem 0;
}

/* Typographic Standards */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin-bottom: 1.25rem;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Minimal Typographic Hero */
.hero-ledger {
  background: var(--bg-canvas);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg-olive);
  background: var(--bg-surface-alt);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 65ch;
  margin-bottom: 1.75rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Terracotta Pill Buttons */
.btn-terracotta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bg-terracotta);
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-kinetic), background-color 0.2s ease;
}

.btn-terracotta:hover {
  background-color: var(--bg-terracotta-dark);
  transform: translateY(-2px);
}

.btn-olive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bg-olive);
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-kinetic), background-color 0.2s ease;
}

.btn-olive:hover {
  background-color: var(--bg-olive-dark);
  transform: translateY(-2px);
}

/* Metric Stat Strip */
.metric-digest {
  background: var(--bg-surface);
  border-radius: var(--radius-panel);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  box-shadow: var(--shadow-elevation);
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 3px solid var(--bg-terracotta);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--bg-terracotta);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Punchy Swaths */
.swath-terracotta {
  background-color: var(--bg-terracotta);
  color: var(--text-light);
  padding: 4rem 0;
}

.swath-terracotta h2, 
.swath-terracotta h3 {
  color: var(--text-light);
}

.swath-terracotta p,
.swath-terracotta .lead-text {
  color: #f7ded3;
}

.swath-olive {
  background-color: var(--bg-olive);
  color: var(--text-light);
  padding: 4rem 0;
}

.swath-olive h2,
.swath-olive h3 {
  color: var(--text-light);
}

.swath-olive p {
  color: #edf2d8;
}

/* Cardless Horizontal List Rows */
.ledger-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.ledger-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.ledger-row:hover {
  background: rgba(194, 86, 46, 0.04);
}

.ledger-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-alt);
  color: var(--bg-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
}

.ledger-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.ledger-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ledger-action {
  text-align: right;
}

/* Media Containers (20px Rounded) */
.media-frame {
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: var(--shadow-elevation);
  background: var(--bg-surface-alt);
  position: relative;
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-kinetic);
}

.media-frame:hover img {
  transform: scale(1.03);
}

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

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

/* Grid Layouts */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* Tabbed Matrix */
.tab-matrix-container {
  background: var(--bg-surface);
  border-radius: var(--radius-panel);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  box-shadow: var(--shadow-elevation);
  margin-top: 1.5rem;
}

.tab-nav {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: var(--bg-surface-alt);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--bg-terracotta);
  color: var(--text-light);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Interactive Recipe Box Tool */
.tool-box {
  background: var(--bg-surface);
  border-radius: var(--radius-panel);
  border: 2px solid var(--border-subtle);
  padding: 2.25rem;
  box-shadow: var(--shadow-elevation);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-subtle);
  background: var(--bg-canvas);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--bg-terracotta);
}

.tool-output {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-subtle);
  border: 1px dashed var(--border-strong);
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  min-height: 120px;
}

.tool-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border-radius: var(--radius-panel);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--bg-terracotta);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-indicator {
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.is-open .faq-indicator {
  transform: rotate(45deg);
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Table Wrappers */
.table-scroll-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin: 1.5rem 0;
}

.heritage-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.heritage-table th {
  background: var(--bg-surface-alt);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem;
  border-bottom: 2px solid var(--border-strong);
}

.heritage-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.heritage-table tr:last-child td {
  border-bottom: none;
}

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

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

/* Footer (Prescribed specs) */
.site-footer {
  background: #201712;
  color: #d1c3b7;
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
  border-top: 4px solid var(--bg-terracotta);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #faf6ef;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-legal-creds {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #a8998d;
}

.footer-col h4 {
  color: #faf6ef;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.14em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #d1c3b7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #f79d77;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.25rem;
  }
  .nav-row {
    display: none;
  }
  .nav-toggle-btn {
    display: block;
  }
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ledger-row {
    grid-template-columns: 60px 1fr;
    row-gap: 0.75rem;
  }
  .ledger-action {
    grid-column: span 2;
    text-align: left;
  }
}

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