/* Worth a Look. Brand source of truth: ~/VSCP/hq/brands/worth-a-look/ (brand guide, brand.json, board). */
:root {
  color-scheme: light;

  /* Brand palette (brand.json) */
  --charcoal: #0f0e0b;
  --ivory: #f7f3ea;
  --sand: #d6c6a4;
  --clay: #a67c52;
  --olive: #6b7f63;
  --teal: #2f6f6a;
  --copper: #e07d57;

  /* Badge colors (brand guide badge system) */
  --badge-owned: #2e7d4f;
  --badge-tested: #2f6fc4;
  --badge-recommended: #7a4fd0;
  --badge-interesting: #f2c14e;
  --badge-interesting-ink: #0f0e0b;
  --badge-watching: #5d5b55;

  /* Theme roles */
  --bg: var(--ivory);
  --surface: #fffdf8;
  --surface-2: #efe8d9;
  --text: var(--charcoal);
  --copy: #3a372f;
  --muted: #6b665a;
  --line: rgba(15, 14, 11, 0.1);
  --line-strong: rgba(15, 14, 11, 0.18);
  --link: var(--teal);
  --accent: var(--copper);
  --accent-ink: #b5552f;
  --on-accent: var(--charcoal);
  --verdict-keep: #4d6246;
  --verdict-watch: #8a6337;
  --verdict-pass: #b0452c;
  --header-bg: var(--charcoal);
  --header-text: var(--ivory);
  --card-shadow: 0 1px 2px rgba(15, 14, 11, 0.05), 0 8px 24px rgba(15, 14, 11, 0.06);
  --card-shadow-hover: 0 2px 4px rgba(15, 14, 11, 0.06), 0 16px 36px rgba(15, 14, 11, 0.1);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: Caveat, "Segoe Print", "Bradley Hand", cursive;
  --max: 1200px;
  --radius: 12px;

  font-family: var(--sans);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15140f;
  --surface: #1f1d17;
  --surface-2: #29261e;
  --text: var(--ivory);
  --copy: #d9d2c2;
  --muted: #a9a190;
  --line: rgba(247, 243, 234, 0.1);
  --line-strong: rgba(247, 243, 234, 0.2);
  --link: #7cc0b8;
  --accent-ink: #ee9a78;
  --verdict-keep: #a3b89a;
  --verdict-watch: #d6ae7f;
  --verdict-pass: #ef8f76;
  --header-bg: #0b0a08;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 36px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.eyebrow,
.guide-label {
  color: var(--accent-ink);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

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

/* ---------- Header ---------- */

.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  align-items: center;
  display: flex;
  gap: 28px;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 72px;
  padding: 0 20px;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
}

.brand-mark {
  height: 37px;
  width: 46px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark-accent {
  color: var(--copper);
}

.wordmark sup {
  font-family: var(--sans);
  font-size: 0.4em;
  font-weight: 600;
  margin-left: 1px;
  vertical-align: super;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  color: rgba(247, 243, 234, 0.82);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
}

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

.nav-links a[aria-current="page"] {
  border-bottom-color: var(--copper);
  color: var(--ivory);
}

.nav-menu-toggle {
  display: none;
}

.theme-toggle {
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--ivory);
  cursor: pointer;
  flex: 0 0 auto;
  height: 38px;
  position: relative;
  width: 38px;
}

.theme-toggle::before {
  /* sun: dot with a ring of rays */
  border-radius: 50%;
  box-shadow:
    0 -9px 0 -3px currentColor, 0 9px 0 -3px currentColor,
    9px 0 0 -3px currentColor, -9px 0 0 -3px currentColor,
    6.4px 6.4px 0 -3px currentColor, -6.4px -6.4px 0 -3px currentColor,
    6.4px -6.4px 0 -3px currentColor, -6.4px 6.4px 0 -3px currentColor;
  background: currentColor;
  content: "";
  height: 10px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
}

.theme-toggle[data-theme="dark"]::before {
  /* moon */
  background: transparent;
  box-shadow: inset -5px -3px 0 0 currentColor;
  height: 18px;
  width: 18px;
}

.theme-toggle:hover {
  background: rgba(247, 243, 234, 0.08);
}

/* ---------- Search ---------- */

.site-search {
  align-items: center;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--charcoal);
  display: flex;
  gap: 8px;
  padding: 0 14px;
  position: relative;
}

.site-search label {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-search > svg {
  fill: none;
  flex: 0 0 auto;
  height: 17px;
  stroke: #6b665a;
  stroke-linecap: round;
  stroke-width: 2;
  width: 17px;
}

.site-search input {
  background: transparent;
  border: 0;
  color: var(--charcoal);
  flex: 1;
  font: inherit;
  font-size: 0.9rem;
  min-height: 40px;
  min-width: 0;
  outline: none;
}

.site-search input::placeholder {
  color: #7d776a;
}

.site-search:focus-within {
  box-shadow: 0 0 0 2px var(--copper);
}

.header-search {
  margin-left: auto;
  width: min(300px, 26vw);
}

.search-results {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-hover);
  color: var(--text);
  display: grid;
  gap: 2px;
  left: 0;
  max-height: 70vh;
  min-width: 320px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  text-align: left;
  top: calc(100% + 8px);
  z-index: 30;
}

.search-result {
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
}

.search-result:hover {
  background: var(--surface-2);
}

.search-result span {
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-result strong {
  font-size: 0.92rem;
}

.search-result small,
.search-empty {
  color: var(--muted);
  font-size: 0.8rem;
}

.search-empty {
  padding: 10px;
}

/* ---------- Home hero ---------- */

.hero {
  background:
    linear-gradient(90deg, rgba(15, 14, 11, 0.82) 0%, rgba(15, 14, 11, 0.55) 45%, rgba(15, 14, 11, 0.1) 80%),
    url("/assets/brand/hero-landscape.svg") center / cover no-repeat,
    var(--charcoal);
  color: var(--ivory);
}

.hero-inner {
  margin: 0 auto;
  max-width: var(--max);
  padding: 72px 20px 120px;
  position: relative;
}

.hero .eyebrow {
  color: var(--sand);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 22px;
  max-width: 12ch;
}

.hero .lede {
  color: rgba(247, 243, 234, 0.88);
  font-size: 1.12rem;
  margin-bottom: 28px;
  max-width: 34rem;
}

.hero-note {
  color: var(--ivory);
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1.05;
  position: absolute;
  right: 40px;
  top: 48px;
  transform: rotate(-8deg);
}

.hero-search {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  max-width: 520px;
  padding: 4px 18px;
}

.hero-search input {
  font-size: 1rem;
  min-height: 46px;
}

/* ---------- Category tiles ---------- */

.category-strip {
  display: grid;
  gap: 12px;
  grid-auto-columns: minmax(150px, 1fr);
  grid-auto-flow: column;
  margin: -64px auto 0;
  max-width: var(--max);
  overflow-x: auto;
  padding: 0 20px 8px;
  position: relative;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-tile {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 10px;
  min-height: 76px;
  padding: 10px 12px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.category-tile:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.category-tile img {
  background: #fff;
  border-radius: 8px;
  flex: 0 0 auto;
  height: 52px;
  object-fit: contain;
  width: 52px;
}

.category-tile span {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
}

.category-tile svg,
.view-all svg {
  fill: none;
  flex: 0 0 auto;
  height: 14px;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 2.4;
  width: 14px;
}

.category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.category-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 16px;
  padding: 14px;
  transition: box-shadow 0.15s;
}

.category-card:hover {
  box-shadow: var(--card-shadow-hover);
}

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

.category-card h2 {
  font-size: 1.25rem;
}

.category-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Sections ---------- */

.home-section,
.page {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 20px;
}

.home-section {
  margin-top: 56px;
}

.home-section:last-child {
  margin-bottom: 72px;
}

.home-section-head {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.home-section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.home-section-head p {
  color: var(--muted);
  margin-top: 4px;
}

.view-all {
  color: var(--text);
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 600;
}

.view-all:hover {
  color: var(--accent-ink);
}

.page {
  padding-bottom: 72px;
  padding-top: 48px;
}

.section-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px 40px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 28px;
  padding-bottom: 24px;
}

.section-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.section-head > p {
  color: var(--copy);
  justify-self: end;
  max-width: 34rem;
}

.crumbs {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.crumbs a {
  color: var(--link);
}

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

.catalog-toolbar {
  color: var(--muted);
  display: flex;
  font-size: 0.84rem;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ---------- Badges ---------- */

.badge {
  --badge: var(--badge-watching);
  --badge-ink: #fff;
  align-items: center;
  background: var(--badge);
  border-radius: 999px;
  color: var(--badge-ink);
  display: inline-flex;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  gap: 5px;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 5px 10px 5px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge svg {
  fill: currentColor;
  height: 12px;
  width: 12px;
}

.badge-owned { --badge: var(--badge-owned); }
.badge-tested { --badge: var(--badge-tested); }
.badge-recommended { --badge: var(--badge-recommended); }
.badge-interesting { --badge: var(--badge-interesting); --badge-ink: var(--badge-interesting-ink); }
.badge-watching { --badge: var(--badge-watching); }

.badge.on-image {
  box-shadow: 0 2px 8px rgba(15, 14, 11, 0.2);
  left: 12px;
  position: absolute;
  top: 12px;
}

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}

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

/* Verdict outline: 2px in the verdict color; "Skip it" gets the full color plus a soft glow. */
.product-card.positive,
.product-embed.positive,
.product-card.watch,
.product-embed.watch,
.product-card.pass,
.product-embed.pass {
  border-width: 2px;
}

.product-card.positive,
.product-embed.positive {
  border-color: color-mix(in srgb, var(--verdict-keep) 70%, transparent);
}

.product-card.watch,
.product-embed.watch {
  border-color: color-mix(in srgb, var(--verdict-watch) 75%, transparent);
}

.product-card.pass,
.product-embed.pass {
  border-color: var(--verdict-pass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--verdict-pass) 18%, transparent), var(--card-shadow);
}

.product-card.pass:hover {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--verdict-pass) 26%, transparent), var(--card-shadow-hover);
}

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

.product-card-media img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.product-body {
  align-content: start;
  display: grid;
  gap: 8px;
  grid-template-rows: auto auto 1fr auto;
  padding: 16px 18px 18px;
}

.product-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.7rem;
  font-weight: 600;
  gap: 8px;
  justify-content: space-between;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.verdict.positive { color: var(--verdict-keep); }
.verdict.watch { color: var(--verdict-watch); }
.verdict.pass { color: var(--verdict-pass); }

.product-card h3 {
  font-size: 1.22rem;
}

.product-card h3 a:hover {
  color: var(--accent-ink);
}

.product-card p {
  color: var(--copy);
  font-size: 0.92rem;
}

.card-cta {
  color: var(--link);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 4px;
}

.card-cta:hover {
  text-decoration: underline;
}

.card-cta.disabled {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Buttons ---------- */

.button {
  align-items: center;
  background: var(--copper);
  border: 0;
  border-radius: 999px;
  color: var(--on-accent);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  transition: filter 0.15s;
  white-space: nowrap;
}

.button:hover {
  filter: brightness(1.06);
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.button.disabled {
  background: var(--surface-2);
  color: var(--muted);
  cursor: default;
  filter: none;
}

.affiliate-button {
  font-size: 0.88rem;
  justify-self: start;
  min-height: 40px;
  padding: 0 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Guide cards ---------- */

.guide-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.guide-card {
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  color: var(--ivory);
  display: grid;
  isolation: isolate;
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.guide-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform 0.3s;
  width: 100%;
  z-index: -2;
}

.guide-card::before {
  background: linear-gradient(180deg, rgba(15, 14, 11, 0.1) 0%, rgba(15, 14, 11, 0.6) 40%, rgba(15, 14, 11, 0.92) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.guide-card:hover img {
  transform: scale(1.03);
}

.guide-card-copy {
  align-self: end;
  text-shadow: 0 1px 12px rgba(15, 14, 11, 0.5);
  display: grid;
  gap: 8px;
  padding: 22px;
}

.guide-card .guide-label,
.post-hero .guide-label {
  color: var(--sand);
  margin: 0;
}

.guide-card h3 {
  font-size: 1.5rem;
}

.guide-card p {
  color: rgba(247, 243, 234, 0.82);
  font-size: 0.9rem;
}

/* ---------- Product detail ---------- */

.product-hero {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  margin-bottom: 36px;
}

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr);
}

.gallery-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-column: 2;
  overflow: hidden;
}

.gallery-main img {
  aspect-ratio: 1;
  object-fit: contain;
  padding: 16px;
  width: 100%;
}

.gallery-thumbs {
  display: grid;
  gap: 10px;
  grid-column: 1;
  grid-row: 1;
  align-content: start;
}

.gallery-thumb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 4px;
}

.gallery-thumb[aria-pressed="true"] {
  border-color: var(--copper);
  box-shadow: 0 0 0 1px var(--copper);
}

.gallery-thumb img {
  aspect-ratio: 1;
  object-fit: contain;
  width: 100%;
}

.gallery:not(:has(.gallery-thumbs)) {
  grid-template-columns: minmax(0, 1fr);
}

.gallery:not(:has(.gallery-thumbs)) .gallery-main {
  grid-column: 1;
}

.product-summary {
  display: grid;
  gap: 16px;
}

.product-summary .product-meta {
  justify-content: flex-start;
}

.product-summary h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.full-name {
  color: var(--muted);
  font-size: 0.9rem;
}

.lede {
  color: var(--copy);
  font-size: 1.1rem;
}

.why-here {
  border-left: 3px solid var(--copper);
  color: var(--copy);
  padding-left: 14px;
}

.disclosure-inline {
  color: var(--muted);
  font-size: 0.78rem;
}

.content-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-span {
  grid-column: 1 / -1;
}

.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.detail-panel h2,
.subhead {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.subhead {
  margin-top: 20px;
}

.detail-panel p,
.detail-panel li {
  color: var(--copy);
}

.detail-panel p + p {
  margin-top: 12px;
}

.detail-panel ul {
  margin: 0;
  padding-left: 20px;
}

.detail-panel a {
  color: var(--link);
  text-decoration: underline;
}

.notes-panel {
  background: var(--surface-2);
  border-color: transparent;
}

.notes-panel p {
  font-size: 1.05rem;
}

.good-for {
  border-top: 3px solid var(--olive);
}

.skip-if {
  border-top: 3px solid var(--clay);
}

.disclosure {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 40px;
  padding-top: 18px;
}

.policy-stack {
  display: grid;
  gap: 16px;
  max-width: 780px;
}

/* ---------- Guide post ---------- */

.post-hero {
  color: var(--ivory);
  display: grid;
  isolation: isolate;
  min-height: 460px;
  overflow: hidden;
  position: relative;
}

.post-hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.post-hero::before {
  background: linear-gradient(180deg, rgba(15, 14, 11, 0.15) 0%, rgba(15, 14, 11, 0.85) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.post-hero-copy {
  align-self: end;
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 780px;
  padding: 80px 20px 44px;
  width: 100%;
}

.post-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
}

.post-hero-copy > p {
  color: rgba(247, 243, 234, 0.88);
  font-size: 1.1rem;
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 16px;
}

.post-byline a {
  text-decoration: underline;
}

.post-cover-caption {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 10px auto 0;
  max-width: 780px;
  padding: 0 20px;
}

.post-body {
  margin: 0 auto;
  max-width: 780px;
  padding: 32px 20px 72px;
}

.post-body > p,
.post-body > ul {
  color: var(--copy);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 1.2em;
}

.post-body > .disclosure-inline {
  font-size: 0.8rem;
  margin-bottom: 24px;
}

.post-body > h2 {
  font-size: 1.9rem;
  margin: 1.6em 0 0.6em;
}

.post-body > h3 {
  font-size: 1.4rem;
  margin: 1.4em 0 0.5em;
}

.post-body a {
  color: var(--link);
  text-decoration: underline;
}

.post-body code {
  background: var(--surface-2);
  border-radius: 4px;
  font-size: 0.9em;
  padding: 1px 5px;
}

.post-body hr {
  border: 0;
  border-top: 1px solid var(--line-strong);
  margin: 36px 0;
}

.blog-image {
  margin: 28px 0;
}

.blog-image img {
  border-radius: var(--radius);
  width: 100%;
}

.blog-image figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 8px;
}

.post-related h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
}

.product-embed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 20px;
  grid-template-columns: 170px minmax(0, 1fr);
  margin: 24px 0;
  padding: 16px;
}

.product-embed-media {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.product-embed-media img {
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

.product-embed-copy {
  align-content: start;
  display: grid;
  gap: 8px;
}

.product-embed-copy .product-meta {
  justify-content: flex-start;
}

.product-embed h3 {
  font-size: 1.3rem;
}

.product-embed h3 a:hover {
  color: var(--accent-ink);
}

.product-embed p {
  color: var(--copy);
  font-size: 0.95rem;
}

.product-embed .affiliate-button {
  margin-top: 4px;
}

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.pagination a,
.pagination span,
.pagination strong {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 600;
  justify-content: center;
  min-height: 38px;
  min-width: 38px;
  padding: 0 12px;
}

.pagination strong {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--on-accent);
}

.pagination span {
  opacity: 0.45;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--header-bg);
  color: var(--header-text);
}

.footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 40px 20px;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-tagline {
  color: var(--sand);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: rgba(247, 243, 234, 0.75);
  font-size: 0.9rem;
}

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

/* ---------- Cookie notice ---------- */

.cookie-notice {
  align-items: center;
  background: var(--charcoal);
  border: 1px solid rgba(247, 243, 234, 0.12);
  border-radius: var(--radius);
  bottom: 16px;
  box-shadow: 0 18px 50px rgba(15, 14, 11, 0.3);
  color: var(--ivory);
  display: flex;
  font-size: 0.84rem;
  gap: 16px;
  left: 50%;
  max-width: min(560px, calc(100vw - 32px));
  padding: 14px 16px;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 40;
}

.cookie-notice button {
  background: var(--copper);
  border: 0;
  border-radius: 999px;
  color: var(--charcoal);
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-weight: 600;
  min-height: 36px;
  padding: 0 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav {
    gap: 20px;
  }

  .nav-links {
    gap: 18px;
  }

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

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 16px;
  }

  .nav-menu-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: grid;
    gap: 5px;
    margin-left: auto;
    order: 2;
    padding: 10px 6px;
  }

  .nav-menu-toggle span {
    background: var(--ivory);
    border-radius: 2px;
    display: block;
    height: 2px;
    width: 22px;
  }

  .theme-toggle {
    order: 3;
  }

  .header-search {
    margin-left: 0;
    order: 4;
    width: 100%;
  }

  /* The home hero has its own search bar. */
  body:has(.hero-search) .header-search {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    order: 5;
    width: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-bottom: 1px solid rgba(247, 243, 234, 0.08);
    padding: 12px 0;
  }

  .nav-links a[aria-current="page"] {
    border-bottom-color: rgba(247, 243, 234, 0.08);
    box-shadow: inset 3px 0 0 var(--copper);
    padding-left: 12px;
  }

  .hero-note {
    display: none;
  }

  .section-head,
  .product-hero,
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head > p {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .wordmark {
    font-size: 1.35rem;
  }

  .brand-mark {
    height: 30px;
    width: 38px;
  }

  .hero-inner {
    padding: 48px 16px 104px;
  }

  .home-section,
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-strip {
    grid-auto-columns: 176px;
    padding: 0 16px 8px;
  }

  .featured-grid,
  .product-grid,
  .guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-section-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

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

  .gallery-main {
    grid-column: 1;
  }

  .gallery-thumbs {
    grid-auto-columns: 64px;
    grid-auto-flow: column;
    grid-row: 2;
    overflow-x: auto;
  }

  .product-embed {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-embed-media img {
    aspect-ratio: 4 / 3;
  }

  .search-results {
    min-width: 0;
  }
}
