:root {
  --ink: #171714;
  --muted: #6d6a61;
  --paper: #f4f1ea;
  --surface: #fffefb;
  --line: #d9d3c7;
  --oak: #bd8d5c;
  --oak-light: #e8d2b7;
  --green: #245f48;
  --green-soft: #e1eee7;
  --amber: #8a5a19;
  --amber-soft: #f6ead7;
  --shadow: 0 24px 64px rgb(38 28 16 / 9%);
  --radius: 22px;
  --sans: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Rubik", var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgb(189 141 92 / 14%), transparent 26rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #c8781d;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  width: min(1320px, calc(100% - 40px));
  height: 88px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(23 23 20 / 12%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
}

.site-header nav {
  display: flex;
  gap: 28px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 180ms ease;
}

.site-header nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 720px;
  padding-block: 78px 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #7a4c25;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.hero h1,
.section-heading h2,
.method h2,
.decision h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 700;
}

.hero h1 span {
  color: #7e542e;
}

.hero-lead {
  max-width: 620px;
  margin: 32px 0 38px;
  color: #504d46;
  font-size: 18px;
}

.hero-lead strong {
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stats div {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-family: var(--display);
  font-size: 28px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.top-pick {
  overflow: hidden;
  border: 1px solid rgb(23 23 20 / 10%);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.top-pick-image {
  position: relative;
  height: 360px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgb(232 210 183 / 54%), transparent 55%),
    #f7f5ef;
}

.top-pick-image img {
  width: 78%;
  height: 88%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.rank-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.top-pick-body {
  padding: 30px 34px 34px;
}

.score-row,
.top-pick-footer,
.purchase-row,
.product-header,
.media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.label-positive {
  color: var(--green);
  background: var(--green-soft);
}

.score {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.top-pick h2 {
  margin: 16px 0 10px;
  font-family: var(--display);
  font-size: 29px;
  letter-spacing: -0.035em;
}

.top-pick-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.dimension-line {
  margin: 24px 0;
  padding: 17px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.dimension-line b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 25px;
}

.top-pick-footer > div:first-child,
.purchase-row > div:first-child {
  display: flex;
  flex-direction: column;
}

.muted,
.top-pick-footer span,
.purchase-row span,
.purchase-row small {
  color: var(--muted);
  font-size: 11px;
}

.top-pick-footer strong,
.purchase-row strong {
  font-family: var(--display);
  font-size: 21px;
}

.button {
  min-height: 44px;
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 20px rgb(23 23 20 / 14%);
}

.button-primary:hover {
  background: #35352f;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
}

.button-secondary:hover {
  background: #f1ede4;
}

.criteria-band {
  border-block: 1px solid rgb(23 23 20 / 12%);
  background: rgb(255 254 251 / 48%);
}

.criteria-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 35px;
}

.criteria-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.criteria-inner ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.criteria-inner li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.results,
.method,
.rejected {
  padding-block: 112px;
}

.section-heading {
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.72fr);
  align-items: end;
  gap: 80px;
}

.section-heading h2,
.method h2,
.decision h2 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.section-heading > p,
.method-intro > p:last-child {
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-button span {
  margin-left: 7px;
  color: #9a968d;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.product-list {
  display: grid;
  gap: 24px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  overflow: hidden;
  border: 1px solid rgb(23 23 20 / 11%);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 35px rgb(39 28 18 / 4%);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card[hidden] {
  display: none;
}

.product-media {
  min-height: 520px;
  padding: 42px 34px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 40%, rgb(255 255 255 / 95%), rgb(232 210 183 / 42%) 72%),
    #eee7dd;
}

.product-media-dark {
  background:
    radial-gradient(circle at 50% 35%, rgb(255 255 255 / 95%), rgb(95 92 85 / 24%) 72%),
    #e9e8e3;
}

.product-media img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.media-caption {
  padding-top: 18px;
  border-top: 1px solid rgb(23 23 20 / 14%);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.media-caption span:first-child {
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
}

.product-content {
  padding: 42px 46px;
}

.product-kicker {
  margin: 0 0 7px;
  color: #855628;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.product-header {
  align-items: flex-start;
}

.product-header h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.confidence {
  flex: 0 0 auto;
  min-width: 76px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.confidence strong,
.confidence span {
  display: block;
}

.confidence strong {
  font-family: var(--display);
  font-size: 21px;
}

.confidence span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.verdict {
  margin: 26px 0;
  color: #4e4b44;
}

.verdict strong {
  color: var(--ink);
}

.spec-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.spec-grid div {
  min-width: 0;
  padding: 15px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-grid dd {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.requirements {
  margin: 22px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.requirements span {
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.requirements .pass {
  color: var(--green);
  background: var(--green-soft);
}

.requirements .partial {
  color: var(--amber);
  background: var(--amber-soft);
}

.caveat {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid #c99b62;
  color: var(--muted);
  background: #f7f2e9;
  font-size: 12px;
}

.caveat b {
  color: var(--ink);
}

.purchase-row {
  margin-top: 24px;
  align-items: flex-end;
}

.purchase-row strong {
  margin-block: 2px;
}

.purchase-row small {
  line-height: 1.3;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.method {
  border-top: 1px solid var(--line);
}

.method-intro {
  max-width: 810px;
}

.method-intro > p:last-child {
  max-width: 700px;
  margin-top: 28px;
  font-size: 18px;
}

.method-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.method-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 254 251 / 50%);
}

.method-grid span {
  color: #8c5b2d;
  font-family: var(--display);
  font-size: 13px;
}

.method-grid h3 {
  margin: 42px 0 10px;
  font-family: var(--display);
  font-size: 21px;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.source-cloud {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-cloud span {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  background: rgb(23 23 20 / 5%);
  font-size: 11px;
  font-weight: 700;
}

.rejected {
  border-top: 1px solid var(--line);
}

.rejected-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 254 251 / 50%);
}

.rejected-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.1fr 90px;
  border-bottom: 1px solid var(--line);
}

.rejected-row:last-child {
  border-bottom: 0;
}

.rejected-row > span {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  font-size: 13px;
}

.rejected-row > span:last-child {
  border-right: 0;
}

.rejected-head {
  color: var(--muted);
  background: rgb(23 23 20 / 4%);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rejected-row a {
  color: #75502d;
  font-weight: 800;
  text-underline-offset: 3px;
}

.decision {
  margin-block: 0 112px;
  padding: 58px;
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 50px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(118deg, rgb(189 141 92 / 22%), transparent 47%),
    var(--ink);
}

.decision .eyebrow {
  color: #dbb88f;
}

.decision ol {
  margin: 0;
  padding-left: 22px;
}

.decision li {
  margin-bottom: 16px;
  padding-left: 6px;
  color: #d7d4ca;
}

.decision li strong {
  color: #fff;
}

.decision-note {
  grid-column: 2;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  color: #bdb9ae;
  font-size: 13px;
}

footer {
  border-top: 1px solid var(--line);
  background: rgb(255 254 251 / 48%);
}

.footer-inner {
  min-height: 170px;
  padding-block: 42px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
}

.footer-inner strong {
  font-family: var(--display);
}

.footer-inner span,
.footer-inner p {
  color: var(--muted);
  font-size: 12px;
}

.footer-inner p {
  max-width: 640px;
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .top-pick {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .top-pick-image {
    height: auto;
    min-height: 420px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > p {
    max-width: 680px;
  }

  .product-card {
    grid-template-columns: 0.72fr 1.28fr;
  }

  .product-media {
    min-height: 470px;
    padding-inline: 22px;
  }

  .product-media img {
    height: 360px;
  }

  .product-content {
    padding: 34px 32px;
  }

  .purchase-row {
    align-items: stretch;
    flex-direction: column;
  }

  .actions {
    justify-content: flex-start;
  }

  .rejected-row {
    grid-template-columns: 1fr 1fr 1.05fr 70px;
  }

  .rejected-row > span {
    padding: 13px;
  }
}

@media (max-width: 760px) {
  .section-shell,
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 72px;
  }

  .site-header nav {
    display: flex;
    gap: 0;
  }

  .site-header nav a {
    display: none;
  }

  .site-header nav a:first-child {
    display: block;
  }

  .hero {
    min-height: 0;
    padding-block: 60px 70px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .top-pick {
    display: block;
  }

  .top-pick-image {
    min-height: 330px;
  }

  .top-pick-body {
    padding: 24px;
  }

  .top-pick-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .criteria-inner {
    padding-block: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .results,
  .method,
  .rejected {
    padding-block: 76px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-media {
    min-height: 390px;
  }

  .product-media img {
    height: 300px;
  }

  .product-content {
    padding: 28px 22px;
  }

  .product-header {
    gap: 12px;
  }

  .confidence {
    min-width: 66px;
    padding-left: 10px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .actions,
  .actions .button {
    width: 100%;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .rejected-table {
    border: 0;
    background: transparent;
  }

  .rejected-head {
    display: none;
  }

  .rejected-row {
    margin-bottom: 12px;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgb(255 254 251 / 60%);
  }

  .rejected-row > span {
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rejected-row > span:last-child {
    border-bottom: 0;
  }

  .decision {
    margin-bottom: 76px;
    padding: 36px 24px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .decision-note {
    grid-column: 1;
  }

  .footer-inner {
    flex-direction: column;
    gap: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
