:root {
  --bg: #f3ece1;
  --bg-deep: #ebe1d2;
  --ink: #1c1712;
  --muted: #6d645a;
  --paper: #fffaf3;
  --line: rgba(28, 23, 18, 0.12);
  --accent: #b4531a;
  --accent-ink: #fff8f1;
  --gold: #c9a227;
  --shadow: 0 24px 50px rgba(28, 23, 18, 0.1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(180, 83, 26, 0.08), transparent 50%),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
  background: rgba(243, 236, 225, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.2rem;
}

.header-inner {
  flex-wrap: wrap;
  padding: 0.35rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search {
  display: flex;
  align-items: stretch;
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 24rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.site-search:focus-within {
  border-color: var(--ink);
}

.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.4rem 0.55rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
}

.site-search input::placeholder {
  color: var(--muted);
}

.site-search input:focus {
  outline: none;
}

.site-search button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 0.85rem;
  cursor: pointer;
}

.site-search button:hover,
.site-search button:focus-visible {
  color: var(--ink);
}

.site-search svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.search-empty {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
}

.search-empty p:last-child {
  margin-bottom: 0;
}

.search-empty q {
  font-style: italic;
}

.wordmark {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.wordmark-dupe {
  font-weight: 700;
}

.wordmark-listing {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

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

.browse {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin: 1.4rem 0 0;
}

.browse-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.browse a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.featured-copy h2 a {
  text-decoration: none;
}

.featured-copy h2 a:hover {
  text-decoration: underline;
}

.eyebrow,
.category-chip,
.footer-label,
.crumbs,
.card-meta,
.affiliate-note {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.eyebrow,
.crumbs {
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.listing-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  margin-bottom: 0.8rem;
}

.listing-hero-top .crumbs {
  margin-bottom: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.listing-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
}

.listing-pager--compact {
  display: flex;
  flex: 0 0 auto;
  gap: 1.25rem;
  white-space: nowrap;
}

.listing-pager-wrap {
  padding-bottom: 1rem;
}

.listing-pager-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
}

.listing-pager-item:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.listing-pager-item--next {
  text-align: right;
  align-items: flex-end;
}

.listing-pager-item--placeholder {
  visibility: hidden;
  pointer-events: none;
}

.listing-pager-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.listing-pager-item--prev .listing-pager-label::before {
  content: "← ";
}

.listing-pager-item--next .listing-pager-label::after {
  content: " →";
}

.listing-pager-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.listing-pager-item:hover .listing-pager-label {
  color: var(--ink);
}

.listing-pager-item:hover .listing-pager-title {
  text-decoration: underline;
}

.listing-pager-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.listing-pager-wrap .listing-pager {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--muted);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs [aria-current="page"] {
  color: var(--muted);
}

.category-chip {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: inherit;
}

a.category-chip:hover {
  border-color: var(--ink);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
}

.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero-inner,
.about-inner,
.not-found {
  max-width: 44rem;
}

.featured,
.listings,
.about,
.listing-page {
  padding: 2rem 0 4rem;
}

.featured-grid,
.listing-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.featured-grid--video {
  align-items: start;
}

.featured-visual {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.tagline {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink);
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.meta-list--stacked {
  grid-template-columns: 1fr 1fr;
}

.meta-list dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-list dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #000;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.product-visual,
.video-shell {
  background:
    linear-gradient(160deg, rgba(201, 162, 39, 0.28), rgba(243, 236, 225, 0.4)),
    var(--bg-deep);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-visual {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background:
    linear-gradient(160deg, rgba(255, 250, 243, 0.92), rgba(243, 236, 225, 0.55)),
    var(--bg-deep);
}

.product-visual::before,
.card-media::before {
  content: "";
  display: block;
  padding-bottom: 133.333%;
}

.product-visual img,
.card-media img,
.product-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 1.25rem;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}

.product-gallery {
  display: grid;
  gap: 1rem;
}

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

.product-shot {
  position: relative;
  display: block;
  text-decoration: none;
  background:
    linear-gradient(160deg, rgba(255, 250, 243, 0.9), rgba(243, 236, 225, 0.55)),
    var(--bg-deep);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-shot::before {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.product-shot:has(.product-shot-caption) img {
  padding-bottom: 2.6rem;
}

.product-shot-caption {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.7rem;
  z-index: 1;
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}

.product-picks {
  margin: 1.5rem 0;
}

.product-picks .product-gallery {
  margin-top: 0.75rem;
}

.howto h2 {
  font-size: 1.4rem;
}

.howto p {
  color: var(--muted);
}

.actions--sticky .btn {
  width: 100%;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.listing-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.listing-card[hidden],
.featured[hidden],
.search-empty[hidden] {
  display: none !important;
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff;
}

.card-body {
  padding: 1.25rem 1.3rem 1.4rem;
}

.card-body h3 a {
  text-decoration: none;
}

.card-body h3 a:hover {
  text-decoration: underline;
}

.card-meta {
  color: var(--muted);
  letter-spacing: 0.06em;
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.about {
  padding-bottom: 5rem;
}

.about-inner,
.listing-details,
.not-found {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2rem;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.related {
  padding: 0 0 4.5rem;
}

.wordmark--footer {
  margin-bottom: 0.6rem;
}

.listing-hero {
  padding-top: 3rem;
}

.listing-layout {
  align-items: start;
  padding-bottom: 2.5rem;
}

.video-shell {
  min-height: 640px;
  max-width: 420px;
  display: grid;
  place-items: stretch;
  overflow: hidden;
  background: #111;
}

.video-frame {
  width: 100%;
  height: 100%;
  min-height: 640px;
  border: 0;
}

.video-shell:has(.tiktok-embed) {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 0;
  overflow: visible;
}

.video-shell .tiktok-embed {
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.video-source {
  display: inline-block;
  margin-top: 0.85rem;
}

.ingredients h2 {
  font-size: 1.4rem;
}

.ingredients ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.ingredients li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}

.notice {
  background: #f8efe3;
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1rem;
  margin: 1.5rem 0;
}

.notice p {
  margin: 0;
  color: #4d453c;
}

.actions--sticky {
  position: sticky;
  bottom: 1rem;
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper);
  padding-top: 0.5rem;
}

.affiliate-note {
  margin: 0;
  color: var(--muted);
}

.not-found {
  margin: 4rem auto 5rem;
}

.video-fallback {
  color: #fff;
  display: grid;
  place-items: center;
  min-height: 320px;
  font-weight: 600;
}

@media (max-width: 860px) {
  .featured-grid,
  .listing-layout,
  .footer-grid,
  .meta-list,
  .meta-list--stacked,
  .section-head {
    grid-template-columns: 1fr;
  }

  .listing-hero-top {
    flex-direction: column;
  }

  .listing-pager--compact {
    width: 100%;
    justify-content: space-between;
  }

  .listing-pager:not(.listing-pager--compact) {
    grid-template-columns: 1fr 1fr;
  }

  .listing-pager-count {
    grid-column: 1 / -1;
    order: -1;
    text-align: center;
  }

  .site-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }

  .wordmark {
    flex: 1;
  }

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

  .video-shell,
  .video-frame {
    min-height: 480px;
  }

  .hero {
    padding-top: 2.5rem;
  }
}
