@font-face {
  font-family: Figtree;
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --bg: #f5f6f3;
  --surface: #ffffff;
  --soft: #e8f2ec;
  --text: #15201b;
  --muted: #55625b;
  --line: #e0e4df;
  --brand: #0a6b4d;
  --ink: #0f2a21;
  --ink-2: #17402f;
  --on-ink: #f1f6f3;
  --on-ink-muted: #b9cbc2;
  --cta: #ffb020;
  --cta-hover: #f09c00;
  --cta-text: #1f1502;
  --good: #0b7a4b;
  --bad: #b3372b;
  --shadow: 0 1px 2px rgb(16 32 24 / .05), 0 6px 18px rgb(16 32 24 / .06);
  --shadow-up: 0 2px 4px rgb(16 32 24 / .07), 0 14px 30px rgb(16 32 24 / .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101513;
    --surface: #1a211e;
    --soft: #1f2d27;
    --text: #e8ece9;
    --muted: #a3aea8;
    --line: #2e3833;
    --brand: #62d3a9;
    --ink: #0c1f18;
    --ink-2: #143528;
    --good: #62d3a9;
    --bad: #f0897c;
    --shadow: none;
    --shadow-up: 0 10px 26px rgb(0 0 0 / .4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: 74rem; margin: 0 auto; padding-inline: 1.25rem; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.012em; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

/* Product photos always sit on white, because Amazon's images have white backgrounds. */
.photo { display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.photo img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.photo:hover img, .cat-tile:hover .photo img, .card:hover .photo img { transform: scale(1.04); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  align-items: center; justify-content: space-between; padding-block: .7rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 9px; background: var(--ink); color: var(--cta); font-size: 1rem;
}
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.3rem; font-size: .95rem; font-weight: 600; }
.menu-toggle {
  display: none; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 10px; background: var(--soft); color: var(--text); font: inherit; font-size: 1.3rem; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.main-nav a { color: var(--muted); text-decoration: none; }
.main-nav a:hover { color: var(--brand); }
.main-nav .nav-tool { padding: .3rem .8rem; border-radius: 999px; background: var(--soft); color: var(--brand); }
main { padding-block: 1.25rem 3.5rem; }

/* Buttons */
.button {
  display: inline-block; padding: .68rem 1.2rem; border-radius: 10px;
  background: var(--cta); color: var(--cta-text);
  font-size: 1rem; font-weight: 700; text-align: center; text-decoration: none;
  transition: background .15s ease;
}
.button:hover { background: var(--cta-hover); }
.button-light { background: rgb(255 255 255 / .12); color: var(--on-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
.button-light:hover { background: rgb(255 255 255 / .22); }
.button-small { padding: .5rem .85rem; font-size: .9rem; white-space: nowrap; }
.button-wide { display: block; width: 100%; }

/* Home hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2.5rem; align-items: center;
  padding: 2.75rem; margin-top: .5rem; border-radius: 22px;
  background: radial-gradient(60rem 30rem at 85% -10%, var(--ink-2), transparent 70%), var(--ink);
  color: var(--on-ink);
}
.hero h1 { font-size: 2.9rem; font-weight: 800; margin: 0 0 .9rem; }
.hero-text > p { margin: 0 0 1.35rem; color: var(--on-ink-muted); font-size: 1.14rem; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; list-style: none; margin: 0; padding: 0; color: var(--on-ink-muted); font-size: .92rem; }
.hero-points li::before { content: "✓"; margin-right: .4rem; color: var(--cta); font-weight: 800; }
.hero-card { padding: 1.1rem; border-radius: 16px; background: #fff; color: #15201b; box-shadow: 0 18px 40px rgb(0 0 0 / .3); }
.hero-card .badge { background: #0a6b4d; color: #fff; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem; margin-bottom: .75rem; }
.hero-tags .badge { margin-bottom: 0; }
.hero-tags .thumb-logo { position: static; margin-left: auto; }
.hero-photo { height: 13.5rem; margin-bottom: .6rem; border-radius: 8px; overflow: hidden; text-decoration: none; }
.hero-card h2 { margin: 0 0 .2rem; font-size: 1.2rem; }
.hero-card h2 a, .shelf-item h3 a { color: inherit; text-decoration: none; }
.hero-card h2 a:hover, .shelf-item h3 a:hover { color: var(--brand); text-decoration: underline; }
.hero-card h2 a:hover { color: #0a6b4d; }
.spec-line { margin: 0 0 .85rem; color: #55625b; font-size: .92rem; }

/* Section headings */
.section-title { font-size: 1.6rem; font-weight: 800; margin: 2.75rem 0 1.1rem; }
.section-head { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; justify-content: space-between; margin: 2.75rem 0 1.1rem; }
.section-head .section-title { margin: 0; }
.section-head > a { font-weight: 700; font-size: .95rem; text-decoration: none; }
.section-head > span { color: var(--muted); font-size: .92rem; }

/* Tiles and cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cat-tile, .card, .shelf-item {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  color: var(--text); text-decoration: none;
  box-shadow: var(--shadow); transition: box-shadow .18s ease, transform .18s ease;
}
.cat-tile:hover, .card:hover, .shelf-item:hover { box-shadow: var(--shadow-up); transform: translateY(-2px); }
.cat-body, .card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.cat-tile h3, .card h2, .card h3 { margin: 0 0 .35rem; font-size: 1.14rem; font-weight: 700; }
.cat-tile p, .card p { margin: 0 0 .8rem; color: var(--muted); font-size: .94rem; line-height: 1.5; flex: 1; }
.cat-count { color: var(--brand); font-weight: 700; font-size: .92rem; }
.arrow { display: inline-block; transition: transform .15s ease; }
.cat-tile:hover .arrow, .card:hover .arrow { transform: translateX(3px); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 1.1rem; }
.thumb {
  position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr);
  gap: 1px; height: 13rem; background: #e6e9e4;
}
.thumb .photo { grid-column: span 2; min-height: 0; padding: .45rem; }
.thumb-1 .photo { grid-column: span 6; padding: 1rem; }
.thumb-2 .photo, .thumb-4 .photo, .thumb-5 .photo:nth-child(n + 4) { grid-column: span 3; }
.thumb-review .photo { grid-column: span 3; padding: 0; }
.thumb-review .photo img { object-fit: cover; }
.thumb-review .photo:first-child { grid-row: span 2; padding: .6rem; }
.thumb-review .photo:first-child img { object-fit: contain; }
.thumb-review.thumb-1 .photo:first-child { grid-column: span 6; }
.thumb-label, .thumb-logo {
  position: absolute; padding: .12rem .42rem; border-radius: 6px; background: rgb(15 42 33 / .86);
  color: #f1f6f3; font-size: .66rem; font-weight: 700; line-height: 1.4;
}
.thumb-label { top: .35rem; left: .35rem; }
.thumb-logo { top: .35rem; right: .35rem; }
.thumb-logo span { margin-right: .2rem; color: var(--cta); }
.cat-thumb { height: 10.5rem; border-bottom: 1px solid var(--line); }
.cat-thumb .photo { padding: .35rem; }
.cat-thumb .photo img { object-fit: contain; }
.cat-thumb .photo:nth-child(2) { padding-top: 1.55rem; }
@media (max-width: 360px) { .thumb-label, .thumb-logo { padding-inline: .3rem; font-size: .58rem; } }
@media (max-width: 360px) {
  .hero-card { padding: .8rem; }
  .hero-tags { gap: .25rem; }
  .hero-tags .badge { padding-inline: .5rem; font-size: .7rem; }
}
.eyebrow { color: var(--brand); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.card-meta { color: var(--muted); font-size: .85rem; }

/* Product shelf on the home page */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.shelf-item { --shelf-pad: .9rem; padding: var(--shelf-pad); }
/* Runs to the card's edges, so the logo sits in the corner like the other thumbnails. */
.shelf-thumb { height: 10.5rem; margin: calc(-1 * var(--shelf-pad)) calc(-1 * var(--shelf-pad)) .7rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.shelf-item h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; flex: 1; }
.mini-specs { display: flex; justify-content: space-between; gap: .5rem; margin: 0 0 .8rem; font-size: .85rem; }
.mini-specs dt { color: var(--muted); }
.mini-specs dd { margin: 0; font-weight: 700; white-space: nowrap; }

/* Calculator band */
.band {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  padding: 1.6rem 2rem; margin-top: 2.75rem; border-radius: 18px; background: var(--ink); color: var(--on-ink);
}
.band h2 { margin: 0 0 .2rem; font-size: 1.4rem; }
.band p { margin: 0; color: var(--on-ink-muted); }

/* Category and listing headers */
.page-hero {
  display: flex; gap: 1.5rem; align-items: center; justify-content: space-between;
  padding: 1.75rem 2rem; margin-block: .75rem 1.5rem; border-radius: 18px; background: var(--ink); color: var(--on-ink);
}
.page-hero h1 { margin: 0 0 .3rem; font-size: 2.2rem; font-weight: 800; }
.page-hero p { margin: 0; color: var(--on-ink-muted); }
.page-hero-photo { flex: 0 0 8.5rem; height: 8.5rem; padding: .5rem; border-radius: 14px; }

/* Articles */
.crumbs { color: var(--muted); font-size: .9rem; }
.crumbs a { color: var(--muted); }
.guide {
  display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; column-gap: 2.5rem;
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "head side" "picks side" "body side";
}
.guide-head { grid-area: head; }
.guide-head h1 { font-size: 2.4rem; font-weight: 800; margin: .5rem 0 .4rem; }
.guide .picks { grid-area: picks; }
.guide .prose { grid-area: body; min-width: 0; }
.guide-side { grid-area: side; align-self: start; position: sticky; top: 5rem; margin-top: .75rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.meta { color: var(--muted); font-size: .92rem; margin: 0 0 .75rem; }
.meta a { color: inherit; }
.author-box { display: flex; align-items: flex-start; gap: .85rem; margin-top: 2rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.author-box .brand-mark { flex: none; }
.author-label { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.author-name { font-weight: 700; color: var(--text); }
.author-box p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }
.notice {
  margin: 0 0 1.25rem; padding: .6rem .85rem; border-radius: 10px;
  background: var(--soft); color: var(--muted); font-size: .87rem;
}
.home-notice { margin: 0 0 .75rem; }
.picks, .toc, .side-cta, .product {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.picks { padding: 1.15rem 1.3rem .5rem; margin-bottom: 1.5rem; border-top: 4px solid var(--cta); }
.picks h2 { margin: 0 0 .35rem; font-size: 1.25rem; font-weight: 800; }
.picks ol { list-style: none; margin: 0; padding: 0; }
.picks li { display: flex; gap: 1rem; align-items: center; padding-block: .75rem; border-top: 1px solid var(--line); }
.picks li:first-child { border-top: 0; }
.pick-photo { flex: 0 0 4.75rem; height: 4.75rem; padding: .2rem; border-radius: 10px; border: 1px solid var(--line); }
.pick-text { flex: 1; min-width: 0; }
.pick-text a { font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.pick-text a:hover { text-decoration: underline; }
.pick-badge { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; }
.toc { padding: 1rem 1.15rem; margin-bottom: 1rem; font-size: .92rem; line-height: 1.45; }
.toc ol { margin: .5rem 0 0; padding-left: 1.15rem; }
.toc li { margin-bottom: .35rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.side-cta { padding: 1rem 1.15rem; font-size: .92rem; }
.side-cta p { margin: .1rem 0 .7rem; color: var(--muted); }
.side-product { margin-bottom: 1rem; }
.side-photo { height: 10rem; margin-block: .5rem; border-radius: 10px; }
.side-product p { color: var(--text); font-weight: 700; }

.page { max-width: 46rem; }
.page > h1 { font-size: 2.2rem; font-weight: 800; margin: .75rem 0 .75rem; }
.prose h2 { font-size: 1.55rem; font-weight: 800; margin-top: 2.4rem; scroll-margin-top: 5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.table-wrap { overflow-x: auto; margin-block: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th { background: var(--soft); white-space: nowrap; }
th, td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
tr:last-child td { border-bottom: 0; }

.product { position: relative; padding: 1.35rem; margin-block: 1.25rem 1.75rem; scroll-margin-top: 5rem; }
.badge {
  display: inline-block; margin-bottom: .75rem; padding: .2rem .7rem; border-radius: 999px;
  background: var(--brand); color: var(--surface); font-size: .8rem; font-weight: 700;
}
.product-top { display: flex; gap: 1.25rem; align-items: center; }
.product-top > div { flex: 1; min-width: 0; }
.product-top > .product-photo { flex: 0 0 12rem; height: 12rem; padding: .4rem; border-radius: 12px; border: 1px solid var(--line); }
.prose .product-name { margin: 0 0 .6rem; font-size: 1.25rem; font-weight: 800; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem .85rem; margin: 0; font-size: .9rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }
.prose .product-who { margin: .9rem 0 0; font-size: .95rem; }
.prose .product-note { margin: .75rem 0 0; color: var(--muted); font-size: .87rem; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: .85rem 1.1rem; font-size: .93rem; line-height: 1.5; }
.proscons h4 { margin: .25rem 0 .35rem; }
.proscons ul { list-style: none; margin: 0; padding: 0; }
.proscons li { position: relative; padding-left: 1.3rem; margin-bottom: .3rem; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }

.calculator {
  display: grid; gap: 1rem; padding: 1.35rem; margin-block: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.calculator label { display: grid; gap: .3rem; font-size: .95rem; font-weight: 600; }
.calculator input {
  width: 100%; padding: .6rem .7rem; font: inherit;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px;
}
.result { font-size: 1.3rem; font-weight: 800; margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 2.5rem 1.5rem; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 2rem; }
.footer-about p { margin: .6rem 0 0; max-width: 26rem; }
.site-footer .brand { color: var(--on-ink); }
.site-footer .brand-mark { background: var(--ink-2); }
.site-footer nav { display: flex; flex-direction: column; gap: .3rem; }
.site-footer h2 { margin: 0 0 .35rem; color: var(--on-ink); font-size: .95rem; }
.site-footer nav a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--cta); }
.footer-note { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .14); font-size: .85rem; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 2rem; }
  .hero-card { max-width: 24rem; }
  .cat-grid, .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "picks" "side" "body"; }
  .guide-side { position: static; margin-top: 0; max-height: none; overflow: visible; }
  .side-cta { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { position: relative; flex-wrap: nowrap; padding-block: .4rem; }
  .site-header .brand { font-size: 1.05rem; white-space: nowrap; }
  .js .menu-toggle { display: inline-grid; }
  .js .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 3.5rem); overflow-y: auto;
    padding: .25rem 1.25rem .75rem; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-up); font-size: 1rem;
  }
  .js .main-nav.is-open { display: block; }
  .js .main-nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .js .main-nav a:last-child { border-bottom: 0; }
  .js .main-nav .nav-tool { padding: .7rem 0; border-radius: 0; background: none; color: var(--brand); }
  .prose h2, .product { scroll-margin-top: 4.5rem; }
  .hero { padding: 1.5rem; gap: 1.5rem; border-radius: 18px; }
  .hero h1 { font-size: 2rem; }
  .hero-card { max-width: none; }
  .hero .button { flex: 1 1 100%; }
  .section-title { font-size: 1.4rem; }
  .guide-head h1, .page > h1 { font-size: 1.8rem; }
  .page-hero { padding: 1.25rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero-photo { flex-basis: 5.5rem; height: 5.5rem; }
  .cat-thumb { height: 8.5rem; }
  .cat-thumb .thumb-logo { padding-inline: .3rem; font-size: .56rem; }
  .cat-body { padding: .8rem .85rem .9rem; }
  .cat-tile h3 { font-size: 1.02rem; }
  .cat-tile p { font-size: .88rem; }
  .shelf-thumb { height: 8.5rem; }
  .shelf-thumb .thumb-logo { padding-inline: .3rem; font-size: .56rem; }
  .shelf-item { --shelf-pad: .7rem; }
  .mini-specs { font-size: .8rem; }
  .shelf .button-small { padding-inline: .4rem; font-size: .85rem; }
  .band { padding: 1.25rem; }
  .band .button { width: 100%; }
  .product-top { flex-direction: column; align-items: stretch; }
  .product-top > .product-photo { flex: 0 0 auto; height: 13rem; }
  .proscons { grid-template-columns: 1fr; }
  .picks li { flex-wrap: wrap; }
  .pick-text { flex-basis: calc(100% - 6rem); }
  .picks .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
