:root {
  --bg-canvas: #faf6ef;
  --bg-surface: #f2ebd9;
  --bg-surface-alt: #ebe3ce;
  --text-primary: #2b211a;
  --text-muted: #5e4f44;
  --accent-primary: #c2562e;
  --accent-secondary: #6b7a3a;
  --border-subtle: #c2562e;
  --border-light: rgba(194, 86, 46, 0.35);
  --radius-card: 20px;
  --radius-pill: 9999px;
  --font-heading: "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

p.muted, .muted {
  color: var(--text-muted);
}

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

a.text-link {
  display: inline-block;
  font-weight: 600;
}

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

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

.btn-terracotta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-primary);
  color: #faf6ef;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--accent-primary);
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s;
}

.btn-terracotta:hover {
  background-color: #a44521;
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-surface);
  color: var(--accent-primary);
}

header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-leaf-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--bg-surface);
}

.brand-name {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--text-primary);
}

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

nav.desktop-nav a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.25rem 0;
}

nav.desktop-nav a.active {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}

.menu-toggle-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav-panel {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-panel.open {
  display: flex;
}

.mobile-nav-panel a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-light);
  color: var(--text-primary);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.hero-strip {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tag-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--bg-canvas);
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.hero-img-box {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

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

.flat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  position: relative;
}

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

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

.roadmap-wrapper {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 2rem;
}

.roadmap-line {
  position: absolute;
  top: 15px;
  bottom: 20px;
  left: 17px;
  width: 2px;
  background-color: var(--accent-primary);
}

.roadmap-node {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.node-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-canvas);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  z-index: 2;
}

.node-content {
  flex-grow: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.section-head {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-content {
  max-width: 72ch;
  margin: 0 auto 3rem auto;
}

.article-content h2 {
  margin-top: 2rem;
}

.article-content img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
}

.table-scroller {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--bg-surface);
}

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

th, td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
}

th {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--bg-surface-alt);
  color: var(--text-primary);
}

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

/* Calculator & Lookup tools */
.calc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin: 2rem 0;
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

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

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

.calc-result {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-canvas);
  border: 1px dashed var(--accent-primary);
  border-radius: 16px;
  display: none;
}

/* Accordion Component */
.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-surface);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-body {
  display: none;
  padding: 0 1.4rem 1.25rem;
  color: var(--text-muted);
}

.accordion-item.active .accordion-body {
  display: block;
}

/* Contact interactive tool */
.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

footer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

@media (max-width: 768px) {
  nav.desktop-nav {
    display: none;
  }
  .menu-toggle-btn {
    display: block;
  }
  .hero-strip {
    grid-template-columns: 1fr;
  }
  .hero-img-box {
    height: 220px;
  }
  .roadmap-wrapper {
    padding-left: 1.5rem;
  }
  .roadmap-line {
    left: 13px;
  }
  .node-number {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
}

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