/* thehvacstack.com — mobile-first, practical tech kit */
:root {
  --ink: #14181f;
  --ink-soft: #252b36;
  --muted: #5a6472;
  --muted-light: #8892a0;
  --line: #e2e6eb;
  --line-strong: #c8ced6;
  --paper: #ffffff;
  --paper-alt: #f4f6f8;
  --accent: #c45c26;          /* tool orange */
  --accent-hover: #a34a1c;
  --accent-soft: #f8ebe3;
  --accent-ink: #8a3d16;
  --steel: #1e4a6e;           /* industrial blue */
  --steel-soft: #e8f0f6;
  --steel-ink: #163a56;
  --green: #1a7a4c;
  --amber-bg: #faf6ef;
  --amber-line: #e8dcc8;
  --amber-ink: #6b5420;
  --status-bg: #eef4f8;
  --status-ink: #1e4a6e;
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1040px;
  --prose: 720px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.9rem; }
ul, ol { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.container { width: min(100% - 1.75rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.55rem 0; min-height: 54px;
  position: relative;
}
.logo-link {
  display: flex; align-items: baseline; gap: 0.35rem;
  text-decoration: none; color: var(--ink); font-weight: 800;
}
.logo-mark {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 0.15rem 0.4rem;
  border-radius: 4px; margin-right: 0.25rem;
}
.logo-text { font-size: 1rem; letter-spacing: -0.03em; }
.logo-text span { color: var(--muted); font-weight: 600; }
.nav { display: none; gap: 1.1rem; align-items: center; }
.nav a {
  color: var(--muted); font-weight: 560; text-decoration: none; font-size: 0.9rem;
}
.nav a:hover { color: var(--ink); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
@media (min-width: 820px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}
.nav.is-open {
  display: flex; flex-direction: column; align-items: flex-start;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; padding: 0.85rem 1rem 1rem;
  border-bottom: 1px solid var(--line); gap: 0.75rem;
  box-shadow: 0 8px 16px rgba(20,24,31,0.06);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.55rem 1rem; border-radius: var(--radius-sm); font-weight: 650;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-size: 0.9rem; font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  color: #fff; background: var(--accent); border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-steel {
  color: #fff; background: var(--steel); border-color: var(--steel);
}
.btn-steel:hover { background: var(--steel-ink); color: #fff; }
.btn-outline {
  color: var(--ink-soft); background: #fff; border: 1px solid var(--line-strong);
}
.btn-outline:hover { background: var(--paper-alt); color: var(--ink); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8125rem; }

/* Hero */
.hero {
  padding: 1.85rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-alt) 0%, var(--paper) 100%);
}
.hero .lead {
  font-size: 1.05rem; color: var(--muted); max-width: 42rem;
  margin: 0 0 1.1rem; line-height: 1.5;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1rem; }
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--steel-ink); background: var(--steel-soft);
  padding: 0.18rem 0.5rem; border-radius: 4px; margin-bottom: 0.55rem;
}
.badge-warn {
  color: var(--amber-ink); background: var(--amber-bg);
  border: 1px solid var(--amber-line);
}
.badge-status {
  color: var(--status-ink); background: var(--status-bg);
}

/* For / not for */
.audience-grid {
  display: grid; gap: 0.75rem; margin-top: 0.5rem;
}
@media (min-width: 700px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
}
.audience-box {
  border-radius: var(--radius); padding: 0.95rem 1rem; border: 1px solid var(--line);
  background: #fff;
}
.audience-box.for { border-color: #b8d4c4; background: #f3faf6; }
.audience-box.not-for { border-color: var(--amber-line); background: var(--amber-bg); }
.audience-box h3 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}
.audience-box.for h3 { color: var(--green); }
.audience-box.not-for h3 { color: var(--amber-ink); }
.audience-box ul { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.audience-box li { margin-bottom: 0.3rem; }

/* Sections */
.section { padding: 2rem 0; }
.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 1.15rem; }
.section-head p { color: var(--muted); max-width: 40rem; margin: 0; }

/* Path cards */
.path-grid {
  display: grid; gap: 0.75rem;
}
@media (min-width: 640px) { .path-grid { grid-template-columns: 1fr 1fr; } }
.path-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.05rem; transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.path-card:hover {
  border-color: var(--accent); text-decoration: none; color: inherit;
  box-shadow: 0 0 0 1px var(--accent);
}
.path-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--ink); }
.path-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.path-card .path-cta {
  display: inline-block; margin-top: 0.65rem; font-size: 0.85rem;
  font-weight: 650; color: var(--accent); text-decoration: none;
}

/* Essentials list */
.essentials-list {
  display: grid; gap: 0.65rem;
}
.essential-item {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.95rem 1rem;
}
.essential-item h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.essential-item p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 36rem; }
.essential-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

/* Disclosure strip — visible, not footer-only */
.disclosure-strip {
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--amber-ink);
  line-height: 1.45;
}
.disclosure-strip a { color: var(--accent-ink); font-weight: 650; }
.disclosure-strip strong { color: var(--ink); }

.disclosure-inline {
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius-sm);
  color: var(--amber-ink);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  margin: 0.75rem 0 1rem;
  line-height: 1.4;
}
.disclosure-inline a { color: var(--accent-ink); font-weight: 650; }

/* Methodology teaser / stack preview */
.teaser-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.teaser-box ul { margin-bottom: 0.85rem; }
.dim-list {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: grid; gap: 0.4rem;
}
@media (min-width: 640px) {
  .dim-list { grid-template-columns: 1fr 1fr; }
}
.dim-list li {
  font-size: 0.9rem; padding: 0.45rem 0.65rem;
  background: var(--paper-alt); border-radius: var(--radius-sm);
  border-left: 3px solid var(--steel);
}
.dim-list strong { color: var(--ink); }

.stack-preview {
  display: grid; gap: 0.5rem;
  font-size: 0.9rem;
}
.stack-branch {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}
.stack-branch strong { display: block; color: var(--ink); margin-bottom: 0.15rem; }
.stack-branch span { color: var(--muted); font-size: 0.85rem; }

/* Page chrome */
.page-hero {
  padding: 1.5rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
.breadcrumb { font-size: 0.85rem; color: var(--muted-light); margin-bottom: 0.45rem; }
.breadcrumb a { color: var(--steel); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.prose { max-width: var(--prose); }
.prose h2 { margin-top: 1.6rem; }
.prose h3 { margin-top: 1.2rem; }
.prose li { margin-bottom: 0.3rem; }

.note {
  background: var(--steel-soft);
  border-left: 3px solid var(--steel);
  padding: 0.7rem 0.9rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem; color: var(--ink-soft); margin: 0.85rem 0;
}
.note-warn {
  background: var(--amber-bg);
  border-left-color: var(--amber-ink);
}

.status-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem;
  background: var(--status-bg); border: 1px solid #c5d5e3;
  border-radius: var(--radius); padding: 0.9rem 1rem; margin: 1rem 0;
}
.status-banner p { margin: 0; color: var(--steel-ink); font-size: 0.95rem; }

/* Spec table shells */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--line); margin: 1rem 0;
}
.compare-table {
  width: 100%; border-collapse: collapse; background: #fff;
  font-size: 0.875rem; min-width: 640px;
}
.compare-table th, .compare-table td {
  padding: 0.6rem 0.75rem; text-align: left;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.compare-table th {
  background: var(--ink); color: #fff; font-weight: 650; font-size: 0.8rem;
}
.compare-table tr:nth-child(even) td { background: var(--paper-alt); }
.compare-table .placeholder {
  color: var(--muted-light); font-style: italic;
}

.card-grid { display: grid; gap: 0.75rem; }
@media (min-width: 700px) {
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.content-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem;
}
.content-card h3 { margin-bottom: 0.35rem; }
.content-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.two-col { display: grid; gap: 0.75rem; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Tree list for /stack/ */
.tree {
  list-style: none; padding: 0; margin: 0;
}
.tree > li {
  margin-bottom: 0.85rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; overflow: hidden;
}
.tree-head {
  background: var(--paper-alt); padding: 0.65rem 0.9rem;
  font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line);
}
.tree ul {
  list-style: none; margin: 0; padding: 0.55rem 0.9rem 0.75rem;
  font-size: 0.9rem; color: var(--ink-soft);
}
.tree ul li { margin-bottom: 0.25rem; padding-left: 0.85rem; position: relative; }
.tree ul li::before {
  content: "–"; position: absolute; left: 0; color: var(--muted-light);
}

/* Footer */
.site-footer {
  background: var(--ink); color: #a8b0ba; padding: 2rem 0 1.25rem; margin-top: 1.5rem;
}
.footer-grid { display: grid; gap: 1.35rem; margin-bottom: 1.25rem; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 {
  color: #fff; margin-bottom: 0.5rem; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.site-footer a { color: #9aa3ad; text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer p { font-size: 0.875rem; line-height: 1.45; }
.footer-brand { margin-bottom: 0.45rem; }
.footer-brand strong { color: #fff; font-size: 1rem; }
.footer-entity { font-size: 0.8rem; color: #8a939e; margin: 0; }
.footer-bottom {
  border-top: 1px solid #333a44; padding-top: 0.9rem;
  font-size: 0.8rem; color: #8a939e;
}

.muted { color: var(--muted); }
.mt-1 { margin-top: 0.4rem; }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.15rem; }
.mb-0 { margin-bottom: 0; }
