:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f0ece6;
  --text: #2b2927;
  --text-soft: #5f5a54;
  --accent: #b66f3d;
  --accent-dark: #915430;
  --border: #ddd4ca;
  --success: #3f6c52;
  --max: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 28px rgba(58, 39, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Source Serif 4', Georgia, Cambria, 'Times New Roman', Times, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', 'Iowan Old Style', 'Baskerville', serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
}

p,
li {
  color: var(--text-soft);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  padding: 0.72rem 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
  border: 0;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  padding: 3.5rem 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 70px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-soft);
}

.nav-categories {
  position: static;
}

.categories-trigger {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0;
}

.categories-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-offset, 72px);
  z-index: 25;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(58, 39, 24, 0.12);
  display: none;
}

.nav-categories.open .categories-menu {
  display: block;
}

.categories-wrap {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0.9rem 0;
}

.category-chip {
  text-decoration: none;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
}

.category-chip:hover,
.category-chip:focus-visible {
  background: var(--surface-muted);
}

.category-chip img {
  width: 84px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.category-chip span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.25;
}

.category-link {
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 700;
}

.guide-hero-wrap {
  margin: 1rem 0 1.25rem;
}

.guide-hero-collage {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.notice {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  box-shadow: none;
}

.notice a {
  color: var(--accent-dark);
  font-weight: 700;
}

.eyebrow {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.home-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  overflow: hidden;
}

.home-hero-image {
  width: 100%;
  height: clamp(280px, 52vh, 560px);
  object-fit: cover;
  display: block;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 1.25rem 0;
  background: linear-gradient(to top, rgba(25, 20, 15, 0.6), rgba(25, 20, 15, 0.2) 45%, rgba(25, 20, 15, 0.05));
}

.home-hero-content {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 1.2rem 1.2rem 0.4rem;
}

.home-hero-content h1,
.home-hero-content p {
  color: var(--bg);
}

.home-hero-content h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.12;
}

.home-hero-content p {
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.home-hero-content .eyebrow {
  margin-bottom: 0.4rem;
  color: var(--bg);
  font-size: 0.95rem;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding-left: 1rem;
  margin: 0.35rem 0 0;
}

.trust-under-hero {
  margin: 1rem 0 0.25rem;
}

.category-grid,
.featured-grid,
.deals-grid,
.guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amazon-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-reviews-grid,
.home-best-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.amazon-card {
  overflow: hidden;
}

.amazon-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  padding: 1rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  transform-origin: center;
  will-change: transform;
}

.amazon-card:hover .amazon-photo,
.amazon-card:focus-within .amazon-photo {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 28px rgba(58, 39, 24, 0.18);
}

.tag-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  background: var(--surface-muted);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.45rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.deals-grid .deal.amazon-card {
  display: flex;
  flex-direction: column;
}

.deals-grid .deal .inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.85rem;
}

.deals-grid .deal h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  margin-bottom: 0.35rem;
}

.deals-grid .deal p {
  font-size: 0.95rem;
}

.deals-grid .deal .card-actions {
  margin-top: auto;
  padding-top: 0.75rem;
}

.deals-grid .amazon-photo {
  aspect-ratio: 4 / 3;
  padding: 1rem;
}

.random-guides-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category {
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.category img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.inner,
.body,
.deal,
.pick-card,
.top-item,
.rel-card,
.form-wrap,
.email-box {
  padding: 1rem;
}

.form-wrap {
  display: grid;
  gap: 0.75rem;
  max-width: 680px;
}

.form-wrap label {
  display: block;
  font-weight: 600;
}

.form-wrap input,
.form-wrap textarea {
  width: 100%;
}

.form-wrap .btn {
  justify-self: start;
}

.guide-card {
  overflow: hidden;
  background: #efe9e1;
}

.guide-card h3 a,
.rel-card,
.deal {
  text-decoration: none;
}

.meta {
  font-size: 0.9rem;
}

.crumbs ol {
  list-style: none;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.crumbs li {
  color: var(--text-soft);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 0.45rem;
}

.crumbs a {
  text-decoration: none;
  color: var(--accent-dark);
}

.top-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.2rem;
  align-items: start;
}

.jump-menu {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 1rem;
}

.jump-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.jump-menu a {
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 600;
}

.spec-list {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
}

.pick-note {
  margin-top: 0.5rem;
  font-size: 0.94rem;
}

.rank {
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  padding: 0.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 0.85rem;
  vertical-align: top;
}

.pros-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.faq-wrap {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 0.9rem 1rem;
  box-shadow: none;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  width: fit-content;
  margin-inline: auto;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  z-index: 20;
  display: none;
}

.tools {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.5rem;
  padding: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.tools #results-count {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
}

input,
textarea,
select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  font: inherit;
  background: #fff;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #efe9e1;
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) max-content max-content;
  column-gap: 2.25rem;
  row-gap: 1rem;
}

.footer-grid > div:nth-child(2),
.footer-grid > div:nth-child(3) {
  justify-self: end;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-brand {
  display: inline-flex;
  text-decoration: none;
}

.footer-logo {
  height: 70px;
  width: auto;
}

.footer-grid > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  row-gap: 0.35rem;
  align-items: center;
}

.footer-grid > div:first-child h3,
.footer-grid > div:first-child p {
  margin: 0;
}

.footer-grid > div:first-child h3 {
  grid-column: 1;
  grid-row: 1;
}

.footer-grid > div:first-child .copyright {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  white-space: nowrap;
}

.footer-grid > div:first-child > p:not(.copyright) {
  grid-column: 1 / -1;
}

.copyright {
  font-size: 0.95rem;
}

.small {
  font-size: 0.9rem;
}

.gallery-image {
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(20, 16, 12, 0.86);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  width: min(100%, 1024px);
}

.lightbox-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
}

.lightbox-meta {
  margin-top: 0.5rem;
  color: #f6eee6;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #2b2927;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .home-hero-overlay {
    padding: 1rem 0;
  }

  .home-hero-content {
    width: min(100% - 1rem, var(--max));
    padding: 1rem 1rem 0.25rem;
  }

  .categories-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .jump-menu {
    position: static;
    order: -1;
  }

  .trust,
  .category-grid,
  .featured-grid,
  .deals-grid,
  .guide-grid,
  .amazon-grid,
  .home-best-grid,
  .random-guides-grid,
  .top-grid,
  .pros-grid,
  .cols,
  .related,
  .tools,
  .footer-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  .section {
    padding: 2.5rem 0;
  }

  nav ul {
    gap: 0.75rem;
    font-size: 0.92rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .sticky-cta {
    display: inline-flex;
  }
}
