:root {
  --content-width: 1180px;
  --article-width: 760px;
  --space-section: clamp(2.75rem, 5vw, 4.75rem);
  --space-gutter: max(1rem, calc((100vw - var(--content-width)) / 2));
  --radius-card: 18px;
  --radius-control: 999px;
  --surface-muted: #eef2ea;
  --shadow-card: 0 8px 24px rgba(23, 63, 53, .07);
}

body {
  overflow-x: hidden;
}

.site-header {
  height: 68px;
  padding-inline: var(--space-gutter);
}

.site-header nav {
  gap: clamp(.7rem, 2vw, 1.45rem);
}

.site-header nav a,
.button,
.nav-cta,
.menu-button {
  min-height: 44px;
}

.site-header nav a,
.button,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button,
.nav-cta {
  width: auto;
  padding: .58rem 1rem !important;
  line-height: 1.25;
}

main > section,
.page-hero {
  padding: var(--space-section) var(--space-gutter);
}

.compact-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.compact-hero h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 6vw, 5.65rem);
}

.compact-hero .lede {
  margin: 0 0 1.4rem;
}

.hero-card {
  padding: 1.5rem;
  border-radius: var(--radius-card);
}

.hero-card p {
  margin: .8rem 0;
}

.hero-card strong {
  padding: .72rem 0;
}

.section-head {
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-head > a,
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.storefront-section,
.guide-promo {
  padding-block: var(--space-section);
}

.tinted,
.guide-promo {
  background: var(--surface-muted);
}

.affiliate-notice {
  width: min(calc(100% - 2rem), var(--content-width));
  max-width: var(--content-width);
  margin: 2rem auto 1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(23, 63, 53, .05);
}

.affiliate-notice p {
  max-width: 90ch;
}

.published-deal-card {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.published-deal-card .product-art-frame {
  border-bottom: 1px solid var(--line);
}

.published-deal-card .deal-actions .button {
  min-width: 96px;
}

.deal-carousel {
  gap: 1rem;
  padding-bottom: .75rem;
}

.carousel-arrow {
  box-shadow: 0 8px 22px rgba(23, 63, 53, .16);
}

.page-hero {
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
}

.page-hero h1 {
  max-width: 860px;
  margin-bottom: .85rem;
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  line-height: .98;
}

.page-hero > p:last-child {
  margin: 0;
  font-size: 1.05rem;
}

.page-content > .published-deal-grid,
.page-content > .category-grid,
.page-content > .empty-state,
.page-content > .evidence-note,
.page-content > .notice,
.page-content > .prose,
.page-content > .affiliate-notice {
  margin-inline: auto;
}

.page-content > .published-deal-grid,
.page-content > .category-grid,
.page-content > .empty-state,
.page-content > .evidence-note {
  width: min(100%, var(--content-width));
}

.evidence-note,
.empty-state,
.notice {
  border-radius: 12px;
}

.evidence-note {
  margin: 0 0 1.25rem;
  padding: .85rem 1rem;
  border: 1px solid #cfdbd5;
  background: #f3f6f2;
  color: var(--ink-2);
}

.empty-state {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px dashed #aebbb5;
  background: #fff;
  text-align: center;
}

.empty-state > span {
  font-size: 1.8rem;
}

.empty-state h2 {
  margin: .4rem 0;
  font-size: 1.5rem;
  letter-spacing: -.025em;
}

.empty-state p {
  margin: 0;
  color: var(--ink-2);
}

.category-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 280px));
  justify-content: start;
  gap: .85rem;
}

.category {
  min-height: 130px;
  padding: 1rem 1.1rem;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(23, 63, 53, .04);
}

.category h3 {
  margin: .25rem 0;
  font-size: 1.12rem;
}

.category > span {
  font-size: 1.2rem;
}

.category-controls {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 1.5rem auto 0;
  gap: .75rem;
  padding: .85rem;
  border-radius: 14px;
  background: #fff;
}

.category-controls label {
  font-size: .82rem;
}

.category-controls select,
.category-controls input {
  min-height: 44px;
  padding: .5rem .6rem;
}

.prose,
.article-prose {
  max-width: var(--article-width);
  font-size: 1rem;
  line-height: 1.72;
}

.prose h2,
.article-prose h2 {
  margin: 2.25rem 0 .7rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.prose h3,
.article-prose h3 {
  margin: 1.5rem 0 .5rem;
}

.prose p,
.article-prose p {
  max-width: 72ch;
  margin-block: .7rem;
}

.article-summary {
  margin-bottom: 1.75rem;
  padding: .75rem 0 .75rem 1rem;
  border-left-width: 4px;
  font-size: 1.12rem;
}

.related-guides {
  margin-top: 2.25rem;
  padding: 1.15rem;
  border-radius: 14px;
}

.principles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.principles article {
  padding: 1rem;
}

.method {
  gap: clamp(2rem, 6vw, 5rem);
}

.method h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.method li {
  padding: 1rem 0;
}

.deal-detail-section {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.deal-review-notice,
.deal-detail {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.deal-review-notice {
  margin-bottom: 1rem;
}

.deal-detail {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.deal-detail-media {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.deal-detail-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 460px;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.deal-detail-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  width: 100%;
  color: #60716b;
  background: linear-gradient(145deg, #eef1eb, #dbe3dc);
  font-size: .72rem;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.deal-detail-content {
  min-width: 0;
}

.deal-detail-content .sample-label {
  margin: 0 0 .45rem;
}

.deal-detail-content h1 {
  margin: 0 0 .8rem;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.deal-detail-summary {
  margin: 0 0 1rem;
  color: var(--ink-2);
}

.deal-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 1rem 0;
  border-top: 1px solid var(--line);
}

.deal-detail-meta > div {
  min-width: 0;
  padding: .65rem .75rem .65rem 0;
  border-bottom: 1px solid var(--line);
}

.deal-detail-meta dt {
  color: #657871;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.deal-detail-meta dd {
  margin: .15rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.deal-detail-meta .deal-current-price dd {
  font-size: 1.65rem;
  line-height: 1.1;
}

.deal-specific-disclosure {
  margin: .8rem 0;
  color: var(--ink-2);
  font-size: .82rem;
}

.deal-detail .affiliate-notice {
  width: 100%;
  margin: .85rem 0;
}

.deal-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}

.deal-detail-actions .button {
  width: auto;
  min-width: 110px;
}

.deal-category-link {
  margin: .8rem 0 0;
  font-size: .88rem;
  font-weight: 750;
}

footer {
  padding: 3rem var(--space-gutter) 1.25rem;
}

.footer-top {
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-bottom {
  gap: 1rem;
  margin-top: 2.25rem;
}

@media (max-width: 900px) {
  :root {
    --space-gutter: 1.25rem;
  }

  .compact-hero,
  .deal-detail {
    grid-template-columns: 1fr;
  }

  .compact-hero {
    gap: 2rem;
  }

  .hero-card {
    max-width: 560px;
  }

  .deal-detail-media {
    min-height: 300px;
  }

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

  .footer-top > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-top > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  :root {
    --space-section: 2.5rem;
    --space-gutter: 1rem;
  }

  .site-header {
    height: 64px;
  }

  .site-header nav {
    top: 63px;
  }

  .compact-hero {
    padding-block: 3rem;
  }

  .compact-hero h1 {
    font-size: clamp(2.75rem, 15vw, 3.6rem);
  }

  .section-head {
    gap: .5rem;
  }

  .section-head > a {
    margin-top: -.2rem;
  }

  .affiliate-notice,
  .category-controls {
    width: calc(100% - 2rem);
  }

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

  .category {
    min-height: 0;
  }

  .principles,
  .deal-detail-meta {
    grid-template-columns: 1fr;
  }

  .deal-detail-media {
    min-height: 240px;
    padding: .75rem;
  }

  .deal-detail-image {
    max-height: 300px;
  }

  .deal-detail-placeholder {
    min-height: 220px;
  }

  .deal-detail-content h1 {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
  }

  .deal-detail-actions .button {
    flex: 0 1 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 1.05rem;
  }

  .deal-detail-actions .button {
    flex: 1 1 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deal-carousel {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .carousel-arrow,
  .category {
    transition: none;
  }
}
