:root {
  --bg-canvas: #faf6ef;
  --bg-surface: #efe7da;
  --bg-surface-hover: #e6dccb;
  --text-primary: #2b211a;
  --text-muted: #5c4b40;
  --accent-primary: #c2562e;
  --accent-secondary: #6b7a3a;
  --border-subtle: #d6cbb9;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(43, 33, 26, 0.12);
  --shadow-hover: 0 18px 40px -4px rgba(43, 33, 26, 0.2);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

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

h1, h2, h3, h4, .heading-font, .transect-num, .brand-name, .nav-link, .btn {
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1.2rem; max-width: 70ch; }

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

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

:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

.top-tagline {
  background-color: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-header {
  position: relative;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.2rem 1.5rem;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 28px;
  height: 28px;
  background-color: var(--accent-primary);
  border-radius: 6px;
  display: inline-block;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background-color: var(--bg-canvas);
  border-radius: 50%;
}

.brand-name {
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover, .nav-link[aria-current="page"] {
  background-color: var(--bg-surface);
  color: var(--accent-primary);
}

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

.hero-full {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: #1f1813;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(28, 22, 18, 0.64);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  color: #faf6ef;
  padding: 2rem;
}

.hero-content p {
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
  color: #efe7da;
  margin-bottom: 2rem;
}

.hero-kicker {
  display: inline-block;
  background-color: var(--accent-secondary);
  color: #faf6ef;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.page-banner {
  max-width: 1200px;
  margin: 2.5rem auto 1rem;
  padding: 0 1.5rem;
}

.page-banner-inner {
  background-color: var(--bg-surface);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-elevation);
}

.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #faf6ef;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  border: 2px solid #2b211a;
  box-shadow: 4px 4px 0px #2b211a;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover, .btn:focus-visible {
  color: #faf6ef;
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px #2b211a;
}

.btn-secondary {
  background-color: var(--accent-secondary);
}

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

.transect-stream {
  position: relative;
  padding-left: 3.2rem;
  margin-top: 2rem;
}

.transect-stream::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.1rem;
  width: 2px;
  background-color: var(--accent-primary);
}

.transect-node {
  position: relative;
  margin-bottom: 4.5rem;
}

.transect-node:last-child {
  margin-bottom: 1rem;
}

.transect-marker {
  position: absolute;
  left: -3.2rem;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--accent-primary);
  color: #faf6ef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 3px solid var(--bg-canvas);
  z-index: 2;
}

.section-meta {
  color: var(--accent-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  display: block;
}

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

.grid-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  margin: 1.75rem 0;
}

.field-card {
  background-color: var(--bg-surface);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic), background-color 0.25s ease;
}

.field-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  background-color: var(--bg-surface-hover);
}

.img-frame {
  border-radius: 20px;
  overflow: hidden;
  background-color: #2b211a;
  margin-bottom: 1.2rem;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

.caption-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.swatch-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.swatch-item {
  background-color: var(--bg-surface);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow-elevation);
}

.swatch-color {
  height: 56px;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(43, 33, 26, 0.15);
}

.swatch-label {
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
}

.swatch-code {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.triad-box {
  background-color: var(--bg-surface);
  border-radius: 20px;
  padding: 1.4rem;
  border-left: 5px solid var(--accent-secondary);
}

.triad-box.obs { border-left-color: var(--accent-primary); }
.triad-box.evid { border-left-color: #2b211a; }

.triad-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.table-wrap {
  overflow-x: auto;
  background-color: var(--bg-surface);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow-elevation);
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

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

th {
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.faq-item {
  background-color: var(--bg-surface);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-elevation);
}

.faq-item summary {
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.05rem;
}

.faq-item p {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

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

.tool-output {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.88rem;
  white-space: pre-wrap;
  margin: 1rem 0;
  min-height: 110px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

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

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
}

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

.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 4rem;
}

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

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-elevation);
    z-index: 50;
  }
  .main-nav.nav-open {
    display: flex;
  }
  .grid-split {
    grid-template-columns: 1fr;
  }
  .transect-stream {
    padding-left: 2.4rem;
  }
  .transect-stream::before {
    left: 0.85rem;
  }
  .transect-marker {
    left: -2.4rem;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.75rem;
  }
}

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