/* Chimney Sweep Index — mobile-first, calm, no tracking */
:root {
  --bg: #f3ece3;
  --bg-2: #fbf6ef;
  --ink: #1f1a16;
  --muted: #5e554c;
  --line: #ddd3c4;
  --brick: #7c3a28;
  --brick-2: #5c2a1d;
  --sand: #efe4d4;
  --sand-ink: #5a4718;
  --ember: #f3e4d4;
  --ember-ink: #7a3a28;
  --slate: #e8e4ee;
  --slate-ink: #3a3160;
  --note: #f6ead8;
  --note-edge: #8a6230;
  --focus: #7c3a28;
  --max: 72rem;
  --prose: 40rem;
  --radius: 0.35rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--brick);
  color: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip:focus {
  top: 0.75rem;
}

a {
  color: var(--brick);
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--brick-2);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap-prose {
  width: min(100% - 2rem, var(--prose));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 0.9rem 0 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--brick);
  border-radius: 0.2rem;
  color: var(--brick);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}
nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}
nav a:hover,
nav a[aria-current="page"] {
  background: var(--sand);
  color: var(--brick-2);
}

main {
  padding: 1.75rem 0 3rem;
}
h1 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
h2 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
}
h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
}
p {
  margin: 0 0 1rem;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42rem;
}

.grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .grid.states {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
  .grid.three {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .grid.states {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid.three {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.1rem 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card:hover {
  border-color: var(--brick);
}
.card h2,
.card h3 {
  margin-top: 0;
}
.stat {
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--brick);
  line-height: 1.15;
  margin: 0.2rem 0 0.35rem;
}
.stat small {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.25rem;
}
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.note {
  background: var(--note);
  border-left: 3px solid var(--note-edge);
  padding: 0.85rem 1rem;
  margin: 1.1rem 0 1.4rem;
  border-radius: 0 0.35rem 0.35rem 0;
}
.note p:last-child {
  margin-bottom: 0;
}

ul.plain,
ol.plain {
  padding-left: 1.2rem;
}
.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.checklist li {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.55rem;
}
.checklist strong {
  display: block;
  margin-bottom: 0.15rem;
}

.sources {
  font-size: 0.92rem;
  color: var(--muted);
}
.sources a {
  color: var(--brick);
}

.prose h1 {
  margin-bottom: 0.75rem;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0;
}
.prose code {
  font-size: 0.9em;
  background: var(--sand);
  padding: 0.05em 0.3em;
  border-radius: 0.2rem;
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.prose li {
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.byline {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.site-footer p {
  margin: 0 0 0.55rem;
  max-width: 48rem;
}
.foot-nav {
  margin-top: 0.8rem;
}
.foot-nav a {
  margin-right: 0.85rem;
}

@media print {
  .site-header nav,
  .skip,
  .foot-nav {
    display: none;
  }
  body,
  .card,
  .site-header,
  .site-footer {
    background: #fff;
  }
  a {
    color: inherit;
  }
}

.prose blockquote {
  margin: 1rem 0 1.2rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
