/* HotPower site styles */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-serif-4-700.woff2") format("woff2");
}

:root {
  --bg: #f3efe6;
  --bg-elev: #faf7f1;
  --ink: #1b1a16;
  --muted: #5c5850;
  --line: #d6d0c4;
  --forest: #1e3c32;
  --forest-deep: #152b24;
  --link: #1a5a40;
  --link-hover: #103c2b;
  --copper: #8a4b32;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

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

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--forest);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 10;
  text-decoration: none;
  border-radius: 2px;
}
.skip:focus { top: 0.6rem; color: #fff; }

.wrap {
  width: min(40.5rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-wide {
  width: min(60rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 1.15rem 0 1.1rem;
}

header.site .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.brand-block { min-width: min(100%, 16rem); }

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--forest);
  text-decoration: none;
}
.logo:hover { color: var(--forest-deep); }
.logo svg { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }

.brand-tag {
  margin: 0.35rem 0 0 1.85rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
}

header.site nav a {
  color: var(--forest);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}
header.site nav a:hover,
header.site nav a[aria-current="page"] {
  border-bottom-color: var(--copper);
  color: var(--forest-deep);
}

/* Main */
main { padding: 2.5rem 0 3.6rem; }

.hero { margin-bottom: 0.4rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.6rem);
  letter-spacing: -0.022em;
  margin: 0 0 0.85rem;
  font-weight: 700;
}

h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.7rem;
}

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

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.hero .lede { margin-bottom: 0.85rem; }

.hero .standfirst {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.45rem;
}

section.block {
  margin: 2.7rem 0 0;
  padding-top: 2.15rem;
  border-top: 1px solid var(--line);
}
section.block > h2:first-child { margin-top: 0; }

/* Guide list */
.guide-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}

.guide {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.guide-list li:last-child .guide { border-bottom: 1px solid var(--line); }

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.3rem;
}

.guide h3 {
  margin: 0 0 0.35rem;
  font-size: 1.18rem;
  color: var(--forest);
  font-weight: 600;
}
.guide p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
a.guide:hover h3 { color: var(--link); }

.note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Disclosure, boxes, tips */
.disclosure {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  padding: 0.85rem 1rem;
  font-size: 0.98rem;
  margin: 1.15rem 0 1.5rem;
}

.box {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1rem 1.2rem;
  margin: 1.15rem 0;
}
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }

.tip {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  padding: 0.85rem 1rem;
  margin: 1.2rem 0;
}

.small { font-size: 0.92rem; color: var(--muted); }

ul.check, ol { margin: 0.5rem 0; padding-left: 1.25rem; }
ul.check li, ol li { margin: 0.35rem 0; }
.box ul.check { margin: 0; }

/* Tables */
.tablewrap { overflow-x: auto; margin: 1.15rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  background: var(--bg-elev);
}

th, td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th {
  font-weight: 600;
  background: #efeae0;
}

/* Affiliate placeholders */
a.aff {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  font-size: 0.92rem;
  margin: 0.2rem 0.3rem 0.2rem 0;
}
a.aff:hover { color: #fff; background: var(--forest-deep); }
a.aff[href="#"] {
  background: #7a756c;
  cursor: not-allowed;
}
a.aff[href="#"]:hover { background: #7a756c; }

.related {
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.related h2 { margin-top: 0; font-size: 1.25rem; }
.related ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.related li { margin: 0.3rem 0; }

.crumb {
  font-size: 0.92rem;
  margin: 0 0 1.15rem;
}
.crumb a { color: var(--muted); }

/* Footer */
footer.site {
  border-top: 1px solid var(--forest-deep);
  background: var(--forest);
  color: #e6e2d8;
  padding: 2.3rem 0 2.1rem;
  font-size: 0.98rem;
}
footer.site a { color: #e6e2d8; }
footer.site a:hover { color: #fff; }

.footer-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.footer-blurb {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  color: #d5d0c6;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-bottom: 1.4rem;
}

.legal {
  margin: 0;
  font-size: 0.85rem;
  color: #c5bfb3;
}

@media print {
  header.site nav, .skip, a.aff, footer.site nav { display: none; }
  body, header.site, footer.site {
    background: #fff;
    color: #000;
  }
  footer.site, footer.site .footer-name, footer.site .footer-blurb, footer.site .legal { color: #000; }
  a { color: inherit; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  main { padding: 1.75rem 0 2.7rem; }
  .brand-tag { margin-left: 0; }
  header.site { padding: 1rem 0; }
  h1 { font-size: 1.75rem; }
}


/* Two-topic home and waste-heat section */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin: 1.6rem 0 0;
}
@media (min-width: 640px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: 1.35rem; }
}
.pillar {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1.2rem 1.25rem 1.3rem;
}
.pillar:hover { border-color: var(--forest); }
.pillar h2 { margin: 0 0 0.4rem; font-size: 1.28rem; color: var(--forest); }
.pillar p { margin: 0; color: var(--muted); font-size: 1rem; }
.pillar .kicker { margin-bottom: 0.35rem; }

.sources {
  margin: 2.4rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.sources h2 { font-size: 1.15rem; margin-top: 0; color: var(--ink); }
.sources ol { padding-left: 1.2rem; }
.sources li { margin: 0.4rem 0; }
.sources a { overflow-wrap: anywhere; }

.steps { padding-left: 1.3rem; }
.steps > li { margin: 0.7rem 0; }

.toc {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.toc li { border-bottom: 1px solid var(--line); }
.toc a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 0;
}
.toc a h3 { margin: 0 0 0.2rem; font-size: 1.12rem; color: var(--forest); }
.toc a p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.toc a:hover h3 { color: var(--link); }

cite, .src-ref { font-style: normal; font-size: 0.85em; color: var(--muted); }
