:root {
  --paper: #f9f0da;
  --paper-deep: #ecd9b0;
  --ink: #17120c;
  --ink-soft: #5a4c3c;
  --sunset: #b83c0a;
  --sunset-dark: #8f2f08;
  --amber: #f6a81c;
  --lime: #93b402;
  --pine: #2f4f1f;
  --white: #fffaf0;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif;
  --body: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --label: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --page: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

a { color: var(--sunset-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(3rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

.wrap {
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}

.narrow { max-width: 720px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: var(--white); }

.draft-bar {
  background: var(--amber);
  color: var(--ink);
  font-family: var(--label);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  padding: 0.4rem 1rem;
}

.site-header {
  background: var(--ink);
  color: var(--white);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand:hover { color: var(--amber); }
.brand svg { width: 2rem; height: 2.5rem; flex: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--white);
  font-family: var(--label);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.35rem 0;
  display: inline-block;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--amber); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--lime); }
.site-nav :focus-visible, .brand:focus-visible { outline-color: var(--amber); }

.eyebrow {
  font-family: var(--label);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero {
  padding-block: clamp(3rem, 8vw, 6rem);
  border-bottom: 6px solid var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.hero h1 { color: var(--sunset); font-size: clamp(4.25rem, 14vw, 10rem); line-height: 0.95; }
.hero-lede { font-size: clamp(1.2rem, 2.4vw, 1.45rem); max-width: 34em; }
.hero-art { justify-self: center; width: min(100%, 300px); }
.hero-art svg { display: block; width: 100%; height: auto; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.button {
  display: inline-block;
  padding: 0.75rem 1.3rem;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--label);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.button:hover { background: var(--sunset); border-color: var(--sunset); color: var(--white); transform: translateY(-2px); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section.deep { background: var(--paper-deep); }
.section.dark { background: var(--pine); color: var(--white); }
.section.dark a { color: var(--white); }
.section.dark a:hover { color: var(--amber); }
.section.dark :focus-visible { outline-color: var(--amber); }

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  border-bottom: 6px solid var(--ink);
}
.page-head h1 { font-size: clamp(3rem, 8vw, 5.25rem); color: var(--sunset); }
.page-head p { font-size: 1.25rem; max-width: 40em; margin-bottom: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.step { border-top: 5px solid var(--ink); padding-top: 0.9rem; }
.step-number {
  display: block;
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--sunset);
  margin-bottom: 0.4rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-grid a {
  display: block;
  height: 100%;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.category-grid a:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--lime); }
.category-grid strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.55rem; line-height: 1.1; margin-bottom: 0.3rem; }
.category-grid span { font-size: 1rem; color: var(--ink-soft); }

.callout {
  border-left: 8px solid var(--sunset);
  background: var(--white);
  padding: 1.1rem 1.4rem;
  margin-block: 1.5rem;
}
.callout > :last-child { margin-bottom: 0; }

.notice {
  border: 3px solid var(--ink);
  background: var(--amber);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-button {
  padding: 0.45rem 0.9rem;
  background: var(--white);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--label);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.filter-button:hover { background: var(--paper-deep); }
.filter-button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--label);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}
.filter-check input { width: 1.2rem; height: 1.2rem; accent-color: var(--sunset); }

.result-count { font-family: var(--label); color: var(--ink-soft); font-size: 1rem; margin-bottom: 1rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 1.25rem;
}

.product-meta {
  font-family: var(--label);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.product-card h3 { margin-bottom: 0.45rem; }
.product-card p { font-size: 1.02rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }

.badge {
  font-family: var(--label);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  background: var(--pine);
  color: var(--white);
}
.badge.warn { background: var(--amber); color: var(--ink); }

.receipts {
  font-size: 0.95rem;
  border-top: 2px dashed var(--ink-soft);
  padding-top: 0.75rem;
  margin: 0 0 1rem;
}
.receipts dt { font-family: var(--label); font-weight: 700; }
.receipts dd { margin: 0 0 0.45rem; }

.product-action { margin-top: auto; }
.product-action .button { display: block; text-align: center; }
.product-pending { font-family: var(--label); font-weight: 700; color: var(--ink-soft); margin: 0; font-size: 1rem; }

.empty-state { background: var(--white); border: 3px dashed var(--ink); padding: 1.5rem; }

.ingredient-list { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.ingredient-list li { background: var(--white); border: 3px solid var(--ink); padding: 1.1rem 1.25rem; }
.ingredient-list h3 { margin-bottom: 0.3rem; }
.ingredient-list p { margin-bottom: 0; }

.rule-list { padding-left: 1.3rem; }
.rule-list li { margin-bottom: 0.7rem; }

.source-line { font-size: 1rem; color: var(--ink-soft); }

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding-block: 2.5rem;
  font-size: 1rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--amber); }
.site-footer :focus-visible { outline-color: var(--amber); }
.site-footer p { max-width: 62em; }
.site-footer .emergency { font-weight: 700; color: var(--amber); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0 0 1rem; padding: 0; font-family: var(--label); font-weight: 700; }
.footer-legal { margin-bottom: 0; color: #d9cdbb; }

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .brand { font-size: 1.45rem; }
  .button-row .button { flex: 1 1 100%; text-align: center; }
}

.visually-hidden { position: absolute; width: 0; height: 0; overflow: hidden; }

.section-gap { margin-top: 2.5rem; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-family: var(--label);
  font-weight: 700;
}

.travel-card {
  background: var(--white);
  border: 4px solid var(--sunset);
  padding: 1.4rem 1.5rem;
  margin-block: 1.25rem;
}
.travel-card h3 { color: var(--sunset-dark); }
.travel-card > :last-child { margin-bottom: 0; }
.card-edit { color: var(--sunset-dark); font-style: italic; }

.source-list { font-size: 1rem; padding-left: 1.2rem; color: var(--ink-soft); }
.source-list li { margin-bottom: 0.35rem; }
.sources-heading { font-size: 1.8rem; }

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.merch-card h2 { font-size: 1.6rem; margin: 0.8rem 0 0.15rem; }
.merch-type { font-family: var(--label); font-weight: 700; color: var(--ink-soft); font-size: 1rem; margin: 0; }

.merch-art {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  background: var(--paper-deep);
  overflow: hidden;
  container-type: inline-size;
}
.merch-art svg { position: absolute; inset: 7%; width: 86%; height: 86%; }

.merch-slogan {
  position: relative;
  margin: 0;
  max-width: 42%;
  font-family: var(--display);
  font-size: 13cqw;
  line-height: 1.02;
  text-align: center;
}
.merch-slogan.small { font-size: 9.5cqw; }
.tee-art .merch-slogan { transform: translateY(-6%); }

.tee-art.dark svg { fill: var(--ink); }
.tee-art.dark .merch-slogan { color: var(--lime); }
.tee-art.sunset svg { fill: var(--sunset); }
.tee-art.sunset .merch-slogan { color: var(--white); }
.tee-art.amber svg { fill: var(--amber); }
.tee-art.amber .merch-slogan { color: var(--ink); }
.tee-art.pine svg { fill: var(--pine); }
.tee-art.pine .merch-slogan { color: var(--white); }

.sticker-art .merch-slogan {
  max-width: none;
  width: 62%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 50%;
  border: 8px solid var(--white);
  background: var(--sunset);
  color: var(--white);
  font-size: 11cqw;
}

.tote-art .merch-slogan {
  max-width: none;
  width: 56%;
  height: 66%;
  margin-top: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--white);
  border: 3px solid var(--ink);
  color: var(--ink);
  font-size: 9.5cqw;
}
.tote-art::before {
  content: "";
  position: absolute;
  top: 9%;
  width: 28%;
  height: 22%;
  border: 6px solid var(--ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

@media print {
  body * { visibility: hidden; }
  .travel-card, .travel-card * { visibility: visible; }
  .travel-card { position: absolute; top: 0; left: 0; width: 100%; margin: 0; }
  .card-edit { color: #000; }
}

.site-header { background: #000; }
.site-header .wrap { padding-block: 0.4rem; }
.brand img { display: block; width: auto; height: 96px; }

.hero { background: #000; color: var(--white); text-align: center; padding-block: 0.5rem 3rem; }
.hero h1 { margin: 0 0 1rem; line-height: 0; }
.hero h1 img { display: block; width: min(100%, 900px); height: auto; margin-inline: auto; }
.hero-lede { margin-inline: auto; }
.hero .button-row { justify-content: center; }
.hero .button { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.hero .button:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.hero .button.ghost { background: transparent; border-color: var(--white); color: var(--white); }
.hero .button.ghost:hover { background: var(--white); color: var(--ink); }
.hero :focus-visible { outline-color: var(--amber); }

@media (max-width: 720px) {
  .brand img { height: 84px; }
}

.site-footer { background: #000; }
.page-head { border-bottom-color: var(--lime); }
.step { border-top-color: var(--lime); }

.page-head { background: #000; color: var(--white); }
.page-head h1 { color: #f94709; }

/* Black theme: cream text on black, with the logo's colors as accents. */
:root {
  --sunset: #f94709;
  --sunset-dark: #f6a81c;
  --ink-soft: #cbbfa8;
  --surface: #15110b;
  --line: #5a4c3c;
}

html, body { background: #000; }
body { color: var(--paper); }

a:hover { color: var(--white); }
:focus-visible { outline-color: var(--lime); }

.section.deep { background: #0d0a06; }
.section.dark {
  background: #000;
  color: var(--paper);
  border-block: 6px solid var(--lime);
}
.section.dark a { color: var(--amber); }
.section.dark a:hover { color: var(--white); }

.button { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.button:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.button.ghost { background: transparent; border-color: var(--paper); color: var(--paper); }
.button.ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.category-grid a,
.product-card,
.ingredient-list li,
.empty-state,
.filter-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--paper);
}
.category-grid a:hover { color: var(--paper); }
.callout { background: var(--surface); }
.travel-card { background: var(--surface); }
.notice { border-color: var(--amber); color: var(--ink); }
.filter-button:hover { background: #2a2318; }
.filter-button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.receipts { border-top-color: var(--line); }
.merch-art { border-color: var(--line); }
.tee-art.dark svg { fill: var(--ink); }
.sticker-art .merch-slogan, .tote-art .merch-slogan { color: var(--white); }
.tote-art .merch-slogan { color: var(--ink); }

@media print {
  html, body { background: #fff; }
  .travel-card { background: #fff; color: #000; border-color: #000; }
  .travel-card h3 { color: #000; }
}

.home-row { margin-bottom: 2.75rem; }
.home-row:last-child { margin-bottom: 0; }
.home-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-bottom: 3px solid var(--lime);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.home-row-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.button.see-all { padding: 0.35rem 0.85rem; font-size: 0.95rem; border-width: 2px; flex: none; }
.home-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-row-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card.compact { padding: 1rem; }
.product-card.compact h3 { font-size: 1.3rem; }
.product-card.compact p { font-size: 0.98rem; }
.product-card.compact .product-meta { font-size: 0.8rem; }
.product-card.compact .badge-row { margin-bottom: 0.6rem; }
.product-card.compact .product-pending { font-size: 0.92rem; }
.product-card.compact .button { padding: 0.5rem 0.6rem; font-size: 0.95rem; }
.product-checked { font-family: var(--label); color: var(--ink-soft); }

@media (max-width: 900px) {
  .home-row-grid, .home-row-grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .home-row-grid, .home-row-grid.six { gap: 0.6rem; }
  .product-card.compact { padding: 0.75rem; }
  .product-card.compact > p:not(.product-meta):not(.product-checked):not(.product-status) { display: none; }
  .product-card.compact h3 { font-size: 1.15rem; }
}

/* Important product notes: easy to spot, but muted so they don't swamp the card. */
.badge.flag { background: transparent; color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.flag-box {
  background: #2a1f0e;
  color: var(--paper);
  border: 1px solid #6b5020;
  border-left: 4px solid var(--amber);
  padding: 0.5rem 0.7rem;
  margin: 0 0 0.8rem;
}
.flag-box .flag-title {
  font-family: var(--label);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
  color: var(--amber);
}
.flag-box ul { margin: 0; padding-left: 1rem; }
.flag-box li { font-size: 0.82rem; line-height: 1.35; margin-bottom: 0.15rem; color: var(--paper); }
.flag-box li:last-child { margin-bottom: 0; }
.product-card.compact .flag-box { padding: 0.45rem 0.6rem; }
.product-card.compact .flag-box li { font-size: 0.78rem; }
@media print {
  .flag-box { background: #fff; color: #000; border: 1px solid #000; border-left-width: 4px; }
  .flag-box .flag-title, .flag-box li { color: #000; }
}
@media (max-width: 480px) {
  .product-card.compact .flag-box ul { display: none; }
  .product-card.compact .flag-box .flag-title { margin: 0; font-size: 0.75rem; }
  .product-card.compact .flag-box { padding: 0.35rem 0.5rem; }
}

/* Product photos: one fixed frame size so every card lines up. */
.product-photo {
  aspect-ratio: 4 / 3;
  background: #fff;
  margin: -1rem -1.1rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-photo img { width: 100%; height: 100%; object-fit: contain; padding: 0.6rem; box-sizing: border-box; }
.product-photo.empty { background: #221b12; }
.photo-icon { font-size: 3rem; opacity: 0.55; filter: grayscale(0.3); }
.product-card.compact .product-photo { margin: -1rem -1rem 0.7rem; }
.product-card.compact .photo-icon { font-size: 2.4rem; }
@media (max-width: 480px) {
  .product-card.compact .product-photo { margin: -0.75rem -0.75rem 0.55rem; }
  .product-card.compact .product-photo img { padding: 0.35rem; }
}

/* Shop cards: ingredient details fold away so cards stay a similar size. */
details.receipts { padding-top: 0.6rem; margin: 0 0 0.6rem; }
details.receipts summary {
  cursor: pointer;
  font-family: var(--label);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--amber);
}
details.receipts summary:hover { color: var(--white); }
details.receipts dl { margin: 0.5rem 0 0; font-size: 0.85rem; }
.product-card:not(.compact) .product-checked { font-size: 0.82rem; margin: 0 0 0.8rem; }
.product-card:not(.compact) .badge-row { margin-bottom: 0.6rem; }
.product-card:not(.compact) { padding: 1rem 1.1rem; }
.product-card:not(.compact) h3 { font-size: 1.4rem; line-height: 1.1; }
.product-card:not(.compact) > p:not(.product-meta):not(.product-checked):not(.product-status) { font-size: 0.95rem; line-height: 1.45; margin-bottom: 0.7rem; }

.product-status {
  font-family: var(--label);
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--paper);
  color: #000;
  border-left: 6px solid var(--lime);
  padding: 0.4rem 0.6rem;
  margin: 0 0 0.8rem;
}
.product-card.compact .product-status { font-size: 0.85rem; }
.product-status.highlight { border-left-color: var(--amber); }

/* Shop page: wider page, 4 cards across on standard screens. */
.wrap.wide { width: min(100% - 2.5rem, 1320px); }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; } }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr; } }

.filter-label { font-family: var(--label); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.35rem; }
.filters + .filter-label { margin-top: 0.4rem; }
.filter-button.type-button { font-size: 0.92rem; padding: 0.35rem 0.75rem; }
.filter-hint { font-size: 0.82rem; color: var(--ink-soft); margin: -0.25rem 0 0.75rem; }

/* Home page: small cards, 6 across. */
.home-row-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 1000px) { .home-row-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .home-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; } }
.product-card.compact { padding: 0.65rem; border-width: 2px; }
.product-card.compact .product-photo { margin: -0.65rem -0.65rem 0.55rem; }
.product-card.compact .product-photo img { padding: 0.4rem; }
.product-card.compact h3 { font-size: 0.98rem; line-height: 1.15; margin-bottom: 0.4rem; }
.product-card.compact .product-meta { font-size: 0.68rem; margin-bottom: 0.2rem; }
.product-card.compact .badge-row { gap: 0.25rem; margin-bottom: 0.45rem; }
.product-card.compact .badge { font-size: 0.68rem; padding: 0.1rem 0.35rem; }
.product-card.compact .product-status { font-size: 0.72rem; padding: 0.3rem 0.45rem; margin-bottom: 0.45rem; }
.product-card.compact .product-checked { font-size: 0.7rem; margin: 0 0 0.45rem; }
.product-card.compact .button { padding: 0.4rem 0.4rem; font-size: 0.82rem; border-width: 2px; }
.product-card.compact .photo-icon { font-size: 2rem; }
@media (max-width: 480px) {
  .product-card.compact { padding: 0.55rem; }
  .product-card.compact .product-photo { margin: -0.55rem -0.55rem 0.45rem; }
}

/* Subcategory buttons: shown under the category row once a category is picked. */
.filters[hidden], .filter-label[hidden] { display: none; }
.sub-filters { padding-left: 0.75rem; border-left: 3px solid var(--lime); }
.filter-button.sub-button { font-size: 0.9rem; padding: 0.3rem 0.7rem; }
.filter-button.sub-button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #000; }

/* Home cards open the full shop listing; the buy button sits above the card link. */
.product-card.compact { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.product-card.compact:hover { border-color: var(--amber); }
.product-card.compact:hover .card-link { text-decoration: underline; text-underline-offset: 0.15em; }
.product-card.compact:focus-within { outline: 3px solid var(--lime); outline-offset: 2px; }
.card-link:focus-visible { outline: none; }
.product-card.compact .product-action { position: relative; z-index: 1; }
.product-card.compact .badge.flag::after { content: " · see notes"; }

/* The shop listing a home card linked to. */
.product-card.linked { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber); scroll-margin: 6rem; }

/* Merch: product photos, Etsy buttons. A card with no Etsy link yet shows "Coming soon". */
.merch-card { display: flex; flex-direction: column; background: var(--surface); border: 3px solid var(--line); padding: 1rem; }
.merch-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 0.4rem; }
.merch-card h2 { font-size: 1.4rem; }
.merch-blurb { font-size: 0.95rem; margin: 0.5rem 0 1rem; }
.merch-buy { margin-top: auto; text-align: center; }
.merch-buy[href=""] { display: none; }
.merch-soon { display: none; margin-top: auto; font-family: var(--label); font-weight: 700; color: var(--amber); }
.merch-buy[href=""] + .merch-soon { display: block; }
.merch-buy:not([href=""]) + .merch-soon { display: none; }
.merch-note { font-family: var(--label); color: var(--ink-soft); margin-bottom: 1rem; }

/* Buy Direct: farms and makers with plain store links, kept apart from the affiliate grid. */
.buy-direct { border-top: 4px solid var(--lime); }
.buy-direct[hidden], .farm-strip[hidden], .direct-hint[hidden] { display: none; }
.buy-direct h2 { margin-bottom: 0.4rem; }
.direct-intro { font-family: var(--label); color: var(--ink-soft); font-size: 1rem; max-width: 48rem; margin: 0 0 1.25rem; }
.direct-hint { font-family: var(--label); font-size: 0.95rem; border-left: 4px solid var(--lime); padding: 0.35rem 0.6rem; margin: -0.4rem 0 1rem; }
.direct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.direct-grid .product-card .product-photo { aspect-ratio: 16 / 9; }
@media (max-width: 800px) { .direct-grid { grid-template-columns: 1fr; } }

/* Home page farm strip: two wide cards, photo filling the left side. */
.farm-strip .direct-intro { margin-top: -0.4rem; }
.direct-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.direct-home-grid .product-card.compact { padding: 0.9rem 0.9rem 0.9rem calc(40% + 1rem); min-height: 15rem; }
.direct-home-grid .product-card.compact .product-photo { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; margin: 0; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.direct-home-grid .product-card.compact .product-photo img { object-fit: cover; padding: 0; transform: scale(1.12); }
.direct-home-grid .product-card.compact h3 { font-size: 1.3rem; }
.direct-home-grid .product-card.compact .product-meta { font-size: 0.8rem; }
.direct-home-grid .product-card.compact > p.product-tagline { display: block !important; font-size: 0.92rem; line-height: 1.4; margin: 0 0 0.6rem; }
.direct-home-grid .product-card.compact .product-action { margin-top: auto; }
@media (max-width: 700px) { .direct-home-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .direct-home-grid .product-card.compact { padding: 0.9rem; }
  .direct-home-grid .product-card.compact .product-photo { position: static; width: auto; margin: -0.9rem -0.9rem 0.6rem; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
}
