:root {
  --navy: #16233f;
  --navy-dark: #0b1526;
  --accent: #c1531c;
  --accent-dark: #9c4215;
  --bg-alt: #f3efe6;
  --text: #1c2430;
  --text-muted: #5c6474;
  --shadow: 0 1px 0 rgba(11, 21, 38, 0.08), 0 6px 18px rgba(11, 21, 38, 0.08);

  --font-display: "Big Shoulders Display", "Archivo Black", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

a {
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: 2.3rem;
  font-weight: 800;
}

h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
}

img {
  max-width: 100%;
  display: block;
}

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

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 27, 56, 0.08);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-links .btn {
  margin-left: 0.25rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-dark);
}

/* Hero (home page) */

.hero-home {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: #0b1526 url("house-bg.jpg") center / cover no-repeat;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 21, 38, 0.92), rgba(11, 21, 38, 0.55));
}

.hero-home-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: #fff;
  padding: 5rem 0;
}

.hero-home-content h1 {
  color: #fff;
  font-size: 2.7rem;
  text-transform: uppercase;
}

.hero-home-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Page banner (secondary pages) */

.page-banner {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 32px),
    linear-gradient(120deg, var(--navy), var(--navy-dark));
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.page-banner h1,
.page-banner h2 {
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

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

/* Stat cards */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.stat-compare {
  grid-template-columns: repeat(2, 1fr);
}

.stat-compare .stat-card {
  border-top: 4px solid var(--accent);
  text-align: left;
}

.stat-compare .stat-muted {
  border-top-color: #d5dbe4;
}

.stat-compare .stat-muted .stat-num {
  color: #8892a3;
}

/* Proof page: de-emphasized CFM comparison (relocated below testimonials) */

.proof-stats {
  padding: 2.5rem 0;
}

.proof-stats .section-head {
  margin-bottom: 1.25rem;
}

.proof-stats .section-head h2 {
  font-size: 1.15rem;
}

.proof-stats-box {
  background: var(--bg-alt);
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  padding: 1.5rem;
}

.proof-stats .stat-compare {
  gap: 1rem;
}

.proof-stats .stat-compare .stat-card {
  box-shadow: none;
  background: #fff;
  padding: 1.1rem 1rem;
  border-top-width: 3px;
}

.proof-stats .stat-compare .stat-num {
  font-size: 1.4rem;
}

.proof-stats .stat-compare .stat-label {
  font-size: 0.82rem;
}

/* Feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.feature-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}

.feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(193, 83, 28, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* Quotes */

.quote-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  margin-bottom: 1.5rem;
}

.quote-card p {
  font-style: italic;
  font-size: 1.05rem;
  margin: 0;
}

.quote-card cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

/* Product shots */

.product-shots {
  display: flex;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.product-shots img {
  width: 50%;
  border-radius: var(--radius-lg);
  background: #eef1f5;
  object-fit: contain;
  box-shadow: var(--shadow);
}

/* Founder */

.founder-block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.founder-photo {
  width: 220px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

/* Contact */

.contact-email {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.contact-email:hover {
  color: var(--accent-dark);
}

/* Sources / fine print */

.sources {
  font-size: 0.85em;
  color: var(--text-muted);
}

/* Field Notes (post index + entries) */

.field-notes-toc {
  background: var(--bg-alt);
  border: 1px solid #e3e9f2;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}

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

.toc-group:last-child {
  margin-bottom: 0;
}

.toc-group-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.toc-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.toc-group a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.toc-group a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.post-entry {
  padding: 2.75rem 0;
  border-bottom: 1px solid #e3e9f2;
  scroll-margin-top: 90px;
}

.post-entry:last-child {
  border-bottom: none;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.post-entry h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.post-headline {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.post-entry h4 {
  font-size: 1rem;
  color: var(--navy);
  margin: 1.5rem 0 0.4rem;
}

.post-entry ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.post-entry li {
  margin-bottom: 0.4rem;
}

.post-cta {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-weight: 600;
  color: var(--navy);
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.post-table th,
.post-table td {
  border: 1px solid #e3e9f2;
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.post-table th {
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}

/* Footer */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.75rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-tagline {
  font-size: 0.9rem;
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact {
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
  font-size: 0.82rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    box-shadow: 0 8px 16px rgba(16, 27, 56, 0.1);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eef1f5;
  }

  .nav-links .btn {
    margin: 0.75rem 0 0;
  }

  .hero-home-content h1 {
    font-size: 2.1rem;
  }

  .stat-grid,
  .stat-compare,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .product-shots {
    flex-direction: column;
  }

  .product-shots img {
    width: 100%;
  }

  .founder-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .field-notes-toc {
    padding: 1.25rem 1.5rem;
  }

  .post-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
