@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  --bg: #111111;
  --surface: #1c1c1c;
  --text: #f4f4f4;
  --muted: #d4d4d4;
  --line: #3a3a3a;
  --link: #8ecbff;
  --link-hover: #c5e4ff;
  --accent: #e07a4a;
  --font: "Atkinson Hyperlegible", "Source Sans 3", Arial, Helvetica, sans-serif;
  --font-display: "Source Sans 3", "Atkinson Hyperlegible", Arial, Helvetica, sans-serif;
  --max: 72rem;
  --article: 42rem;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.2rem;
  line-height: 1.7;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

button,
.btn,
.checklist label,
.nav-links a,
.smell-card {
  touch-action: manipulation;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.brand-wrap {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 0.85rem;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
}

.brand-name {
  font-size: clamp(1.85rem, 6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.brand-tag {
  font-family: var(--font);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  padding: 0.45rem 0.5rem;
  border-top: 1px solid var(--line);
  background: #0a0a0a;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  min-height: 48px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid transparent;
}

.nav-links a[aria-current="page"] {
  box-shadow: inset 0 0 0 2px #fff;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  filter: brightness(1.12);
}

.nav-topic--home {
  background: #2c2c2c;
}
.nav-topic--black-tank {
  background: #000;
  border-color: #666;
}
.nav-topic--gray-tank {
  background: #6f6f6f;
}
.nav-topic--storage {
  background: #e06a12;
}
.nav-links .nav-topic--propane {
  background: #e0b000;
  color: #111;
}
.nav-topic--water-heater {
  background: #c2302a;
}
.nav-topic--engine {
  background: #8a3b18;
}
.nav-topic--exhaust-fans {
  background: #2b6cb0;
}
.nav-topic--mold {
  background: #3d7a4a;
}
.nav-topic--animals {
  background: #6b3fa0;
}

.ad-band {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.ad-band .ad-slot {
  margin-inline: auto;
}

.main {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
}

.hero {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.45rem;
}

h1,
h2,
h3,
h4,
.brand-name,
.smell-card strong,
.kicker {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.85rem, 7vw, 2.6rem);
  margin: 0 0 0.85rem;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin: 1.4rem 0 0.5rem;
}

.lede,
.meta {
  max-width: 40rem;
  color: var(--muted);
}

.lede {
  font-size: 1.2rem;
  margin: 0;
}

.meta {
  font-size: 1.05rem;
  margin: 0;
}

.smell-index {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.smell-card {
  display: block;
  padding: 1.1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  min-height: 5.5rem;
}

.smell-card:hover,
.smell-card:focus-visible {
  filter: brightness(1.08);
  border-color: #fff;
}

.smell-card strong {
  display: block;
  font-size: 1.25rem;
  margin: 0 0 0.3rem;
}

.smell-card p {
  margin: 0;
  color: inherit;
  font-size: 1.05rem;
  opacity: 0.88;
}

.smell-card .plate {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.35rem;
}

.smell-card--black-tank {
  background: #000;
  border-color: #555;
  color: #f4f4f4;
}
.smell-card--gray-tank {
  background: #6f6f6f;
  border-color: #8a8a8a;
  color: #fff;
}
.smell-card--storage {
  background: #e06a12;
  border-color: #f08a38;
  color: #fff;
}
.smell-card--propane {
  background: #e0b000;
  border-color: #f0c430;
  color: #111;
}
.smell-card--water-heater {
  background: #c2302a;
  border-color: #e04a42;
  color: #fff;
}
.smell-card--engine {
  background: #8a3b18;
  border-color: #b35228;
  color: #fff;
}
.smell-card--exhaust-fans {
  background: #2b6cb0;
  border-color: #4a8ad0;
  color: #fff;
}
.smell-card--mold {
  background: #3d7a4a;
  border-color: #5a9a66;
  color: #fff;
}
.smell-card--fridge {
  background: #3d7a88;
  border-color: #5a9aaa;
  color: #fff;
}
.smell-card--pets,
.smell-card--animals {
  background: #6b3fa0;
  border-color: #8a5fc0;
  color: #fff;
}

body[data-topic="black-tank"] .kicker { color: #c8c8c8; }
body[data-topic="gray-tank"] .kicker { color: #b0b0b0; }
body[data-topic="storage"] .kicker { color: #f08a38; }
body[data-topic="propane"] .kicker { color: #e0b000; }
body[data-topic="water-heater"] .kicker { color: #e06a64; }
body[data-topic="engine"] .kicker { color: #d4784a; }
body[data-topic="exhaust-fans"] .kicker { color: #7eb4e8; }
body[data-topic="mold"] .kicker { color: #7ec48a; }
body[data-topic="animals"] .kicker { color: #c4a0e8; }

.layout {
  display: grid;
  gap: 1.5rem;
}

.article {
  max-width: var(--article);
}

.article p,
.article li {
  max-width: 40rem;
}

.article ul,
.article ol {
  padding-left: 1.25rem;
}

.article h2 {
  scroll-margin-top: 1rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 1.75rem;
}

.toc p {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.toc ol {
  margin: 0;
}

.toc a {
  color: var(--link);
}

.top-ten {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  counter-reset: top-ten;
}

.top-ten li {
  counter-increment: top-ten;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.75rem;
  max-width: 40rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.top-ten li:first-child {
  border-top: 0;
}

.top-ten li::before {
  content: counter(top-ten);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--accent);
}

.top-ten strong {
  display: block;
  margin-bottom: 0.2rem;
}

.ad-rail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.callout {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 1rem 1.1rem;
  margin: 1.4rem 0;
}

.callout--danger {
  border-left-color: #ff6b5a;
}

.callout p {
  margin: 0.35rem 0 0;
}

.callout strong {
  font-size: 1rem;
}

.checklist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1rem 1.15rem;
  margin: 1.25rem 0 2rem;
}

.checklist-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.checklist-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.progress {
  font-size: 1.05rem;
  color: var(--muted);
}

.checklist-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  max-width: min(100%, 28rem);
}

.checklist-save {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

.progress-bar {
  height: 8px;
  background: #2a2a2a;
  margin: 0 0 0.5rem;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--link);
}

.checklist label {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  min-height: 48px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  align-items: start;
}

.checklist label:first-of-type {
  border-top: 0;
}

.checklist input {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.2rem;
  accent-color: var(--link);
  flex-shrink: 0;
}

.btn {
  appearance: none;
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin: 1.25rem 0 2rem;
  padding: 1.1rem 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: #111;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  min-height: 48px;
  width: 100%;
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .cf-turnstile {
  min-height: 65px;
}

.contact-status {
  margin: 0;
  color: var(--muted);
}

.contact-status--error {
  color: #ff8a7a;
}

.site-footer {
  background: #0a0a0a;
  color: var(--muted);
  padding: 1.4rem 1rem 1.6rem;
  font-size: 1.05rem;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--link);
}

.home-ad-dock {
  position: sticky;
  bottom: 0;
  background: #000;
  border-top: 1px solid var(--line);
  padding: 0.45rem 1rem;
  padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
  z-index: 20;
}

.home-ad-dock .ad-slot {
  margin-inline: auto;
}

.ad-band,
.ad-rail,
.home-ad-dock,
.ad-slot {
  display: none;
}

.ad-slot {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.ad-slot::before {
  content: attr(data-label);
  position: absolute;
  top: 0.35rem;
  left: 0.45rem;
  z-index: 1;
  padding: 0.15rem 0.35rem;
  background: #000;
  color: #ccc;
  font-size: 0.75rem;
}

.ad-slot::after {
  content: attr(data-size);
  text-align: center;
  padding: 0.5rem;
}

.ad-slot--leaderboard {
  min-height: 50px;
  height: clamp(50px, 14vw, 90px);
  max-width: 728px;
}

.ad-slot--rectangle {
  width: min(100%, 300px);
  min-height: 250px;
  aspect-ratio: 300 / 250;
  margin-inline: auto;
}

.ad-slot--infeed {
  min-height: 90px;
  height: clamp(90px, 26vw, 120px);
  margin: 1.5rem 0;
}

.ad-slot.ad-slot--network,
.ad-band:has(.ad-slot--network),
.ad-rail:has(.ad-slot--network),
.home-ad-dock:has(.ad-slot--network) {
  display: none;
}

.ad-slot.ad-slot--sample {
  display: block;
  border: 1px solid #444;
  background: #fff;
  color: #1a1a1a;
}

.ad-slot.ad-slot--sample::before,
.ad-slot.ad-slot--sample::after {
  content: none;
  display: none;
}

.sample-ad {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.sample-ad-badge {
  position: absolute;
  top: 0.35rem;
  left: 0.4rem;
  z-index: 2;
  font-size: 0.7rem;
  background: #eee;
  color: #444;
  padding: 0.12rem 0.3rem;
}

.sample-ad-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  min-height: inherit;
  padding: 0.7rem 0.8rem 0.7rem 2.4rem;
  text-decoration: none;
  color: inherit;
}

.sample-ad-visual {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  background: var(--sample-ad-color, #17352c);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.sample-ad-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sample-ad-brand {
  font-size: 0.8rem;
  color: #555;
}

.sample-ad-headline {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.sample-ad-sub {
  font-size: 0.85rem;
  color: #444;
}

.sample-ad-cta {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sample-ad-color, #17352c);
}

.sample-ad--rectangle .sample-ad-link {
  flex-direction: column;
  align-items: stretch;
  padding: 1.6rem 0.9rem 0.9rem;
  gap: 0.7rem;
}

.sample-ad--rectangle .sample-ad-visual {
  width: 100%;
  height: 5.5rem;
  font-size: 1.4rem;
}

.sample-ad--rectangle .sample-ad-cta {
  margin-left: 0;
}

@media (min-width: 700px) {
  .smell-index {
    grid-template-columns: 1fr 1fr;
  }

  .brand img {
    width: 148px;
    height: 148px;
  }

  .brand-wrap {
    padding: 1.25rem 1.25rem 1rem;
  }

  .nav-links {
    justify-content: space-evenly;
  }
}

@media (min-width: 840px) {
  .brand {
    justify-content: flex-start;
    gap: 1.1rem;
  }

  .main {
    padding: 2rem 1.25rem 4rem;
  }
}

@media (min-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .ad-rail {
    position: sticky;
    top: 1rem;
  }
}

@media (max-width: 699px) {
  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 0.55rem 0.7rem;
    font-size: 1rem;
  }

  .ad-slot--leaderboard,
  .ad-slot--infeed {
    height: auto;
    min-height: 5.5rem;
  }

  .sample-ad--leaderboard .sample-ad-cta,
  .sample-ad--leaderboard .sample-ad-visual,
  .sample-ad--infeed .sample-ad-cta,
  .sample-ad--infeed .sample-ad-sub,
  .sample-ad--infeed .sample-ad-visual {
    display: none;
  }

  .sample-ad--leaderboard .sample-ad-link,
  .sample-ad--infeed .sample-ad-link {
    padding: 1.45rem 0.7rem 0.55rem;
    align-items: flex-start;
  }

  .sample-ad--leaderboard .sample-ad-headline,
  .sample-ad--infeed .sample-ad-headline {
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Sticky 728×90 on a phone covers the page. Auto ads will add their own mobile units later. */
  .home-ad-dock {
    display: none;
  }

  .site-footer {
    padding-bottom: 1.6rem;
  }

  .ad-rail {
    display: none;
  }
}
