/* Traddy Daddy — clean site styles
   Palette: emerald velvet / marble / brass (FDS deco interior)
   Tone: high-class luxury, no gimmicks
*/

:root {
  --bg: #12382f;
  --bg-elevated: #0e2c25;
  --bg-card: #18443a;
  --border: rgba(196, 160, 86, 0.48);
  --text: #eae4d6;
  --text-muted: #b5aa92;
  --burgundy: #7a1d38;
  --burgundy-soft: rgba(122, 29, 56, 0.22);
  --gold: #c4a056;
  --gold-dim: rgba(196, 160, 86, 0.20);
  --gold-hover: #d4b46a;
  --on-gold: #0c1f1a;
  --font-display: "Source Serif 4", "Georgia", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1080px;
  --radius: 10px;
  --space: 1.25rem;
}

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

/* The [hidden] attribute must win over any display rule set by a class
   (e.g. .recipe-layout uses display:grid), otherwise JS toggling `hidden`
   silently does nothing. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 56, 47, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo:hover {
  color: var(--gold);
  text-decoration: none;
}

.logo span {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  text-decoration: none;
}

.nav a.active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

/* Main */
main {
  flex: 1;
  padding-bottom: 4rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

/* Home hero */
.home-hero {
  padding: 4.5rem 0 3rem;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--gold);
  max-width: 22ch;
  margin-bottom: 1rem;
}

.home-hero .lede {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--on-gold);
}

.btn-primary:hover {
  background: var(--gold-hover);
  color: var(--on-gold);
}

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

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

.btn-burgundy {
  background: var(--burgundy);
  color: var(--text);
}

.btn-burgundy:hover {
  filter: brightness(1.08);
  color: var(--text);
}

/* Sections */
.section {
  padding: 2rem 0;
}

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

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.section-head a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-head a:hover {
  color: var(--gold);
}

/* Cards grid */
.grid {
  display: grid;
  gap: 1rem;
}

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

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

@media (max-width: 800px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: rgba(201, 168, 76, 0.28);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

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

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

/* Link list (socials / gear) */
.link-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.link-list a:hover {
  border-color: rgba(201, 168, 76, 0.35);
  text-decoration: none;
}

.link-list .label {
  font-weight: 550;
}

.link-list .hint {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Video embeds */
.video-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.video-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.75rem 0 0.25rem;
}

.video-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(160deg, #18443a, #12382f 70%);
}

.ig-wrap .instagram-media {
  margin: 0 auto !important;
  max-width: 540px;
}

/* Recipe detail */
.recipe-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
}

@media (max-width: 800px) {
  .recipe-layout {
    grid-template-columns: 1fr;
  }

  /* Single column: a sticky sidebar would hover over the steps. */
  .recipe-side {
    position: static;
  }
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.recipe-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5rem;
  align-self: start;
}

.ingredients {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.ingredients h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.ingredients ul {
  list-style: none;
}

.ingredients li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.ingredients li:last-child {
  border-bottom: 0;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text);
  border-color: var(--gold);
  background: var(--gold-dim);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, var(--burgundy-soft), transparent 55%),
    linear-gradient(200deg, #18443a, #0e2c25);
  display: grid;
  place-items: end start;
  padding: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Merch empty state */
.empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.empty h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }
}

/* Utility */
.muted {
  color: var(--text-muted);
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}

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

/* Shared extras */
.eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.card-link:hover {
  text-decoration: none;
}

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(135deg, var(--burgundy-soft), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.band h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

/* ---- In-kitchen tools (recipe page) ---- */

.cook-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.scaler,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.scale-btn,
.tool-btn {
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  min-height: 2.4rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.scale-btn {
  min-width: 3rem;
}

.scale-btn:hover,
.tool-btn:hover {
  color: var(--text);
  border-color: var(--gold);
}

.scale-btn.active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

.tool-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-dim);
}

.tool-btn.subtle {
  border-color: transparent;
  text-decoration: underline;
}

.scale-btn:focus-visible,
.tool-btn:focus-visible,
.ingredient input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Ingredient check-off — the whole row is the tap target. */
.ingredient {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  padding: 0.15rem 0;
}

.ingredient input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--gold);
  cursor: pointer;
}

.ingredient.is-checked span {
  text-decoration: line-through;
  opacity: 0.45;
}

/* ---- Print: the recipe, nothing else ---- */

@media print {
  .site-header,
  .site-footer,
  .cook-toolbar,
  .embed,
  #video-wrap,
  .hero-actions,
  .page-hero .muted {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .recipe-layout {
    display: block;
  }

  .recipe-side {
    position: static;
  }

  .ingredients {
    background: transparent;
    border: 1px solid #ccc;
    break-inside: avoid;
    margin-bottom: 1.5rem;
  }

  .ingredients li,
  .prose,
  .muted {
    color: #000;
  }

  .tag {
    border: 1px solid #999;
    color: #000;
  }

  a[href]::after {
    content: "";
  }

  .section,
  .page-hero {
    padding: 0;
  }
}

/* ---- Shared search / result count (wiki + recipes) ---- */

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

.wiki-search {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.wiki-search:focus {
  outline: 2px solid rgba(201, 168, 76, 0.35);
  border-color: var(--gold);
}
.wiki-count {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* ---- "Pour this" wine pairing ---- */

.wine-block {
  background: var(--burgundy-soft);
  border: 1px solid rgba(139, 21, 56, 0.45);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
}

.wine-block h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.wine-bottle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.wine-why {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---- Date Night Menus ---- */

.menu-list {
  display: grid;
  gap: 1rem;
}

.menu-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.menu-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  text-decoration: none;
}

.menu-occasion {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.menu-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.menu-summary {
  color: var(--text-muted);
  max-width: 46rem;
}

.menu-dishes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
}

.menu-dishes li {
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.menu-wine {
  font-family: var(--font-display);
  color: var(--gold);
}

.menu-meta {
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* Menu detail */
.menu-detail {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.menu-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5rem;
}

.menu-section {
  margin-bottom: 2.5rem;
}

.menu-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.menu-dish-grid {
  display: grid;
  gap: 1rem;
}

/* Timeline */
.timeline {
  list-style: none;
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
}

.timeline li {
  position: relative;
  padding-bottom: 1.25rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
}

.timeline li:last-child::before {
  background: var(--burgundy);
  box-shadow: 0 0 0 3px var(--burgundy-soft);
}

.timeline-at {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.timeline-do {
  color: var(--text-muted);
}

/* The room */
.room-list dt {
  font-family: var(--font-display);
  color: var(--text);
  margin-top: 0.9rem;
}

.room-list dt:first-child {
  margin-top: 0;
}

.room-list dd {
  color: var(--text-muted);
  margin-left: 0;
}

/* Shopping list grouping */
.shop-group {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
  padding-bottom: 0.2rem;
  border-bottom: 0 !important;
}

.shop-group:first-child {
  margin-top: 0;
}

@media (max-width: 800px) {
  .menu-detail {
    grid-template-columns: 1fr;
  }

  .menu-side {
    position: static;
  }
}

/* Link-in-bio: links.thetraddydaddy.com */
.links-body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.links-wrap {
  width: min(28rem, calc(100% - 2rem));
  margin: 3rem auto 4rem;
  text-align: center;
}

.links-logo {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.links-tag {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.kitchen-h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  margin: 0.4rem 0 0.35rem;
  line-height: 1.2;
  color: var(--gold);
}

.kitchen-disc {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.kitchen-lede {
  color: var(--text);
  font-size: 0.98rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.kitchen-proof {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1.25rem 0 1rem;
}

.links-contact {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.shop-fine {
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.4;
  margin: 0.25rem 0 0;
  opacity: 0.8;
}

.holiday-section {
  margin-top: 1.6rem;
  text-align: left;
}

.holiday-kicker {
  margin: 0 0 0.15rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.holiday-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.holiday-section .links-tag {
  margin-top: 0.2rem;
}

.holiday-recipe .shop-card-photo {
  padding: 0;
  background: #12382f;
}

.holiday-recipe .shop-card-photo img {
  object-fit: cover;
}

.links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.links-btn {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.links-btn:hover {
  text-decoration: none;
  border-color: var(--gold);
}

.links-btn-primary {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}

.links-btn .label {
  display: block;
}

.links-btn-primary .hint {
  color: var(--on-gold);
  opacity: 0.8;
}

.shop-land.links-wrap {
  width: min(40rem, calc(100% - 1.25rem));
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  text-align: left;
}

.shop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.shop-card:hover,
.shop-card:focus-visible {
  text-decoration: none;
  border-color: var(--gold);
  transform: translateY(-1px);
}

.shop-card-primary {
  border-color: var(--gold);
}

/* Photos sit on a white mat so every product reads the same size. */
.shop-card-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 8%;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.shop-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* No verified product photo: brass monogram on marble, never a stand-in image. */
.shop-card-photo-none {
  background: #eae4d6;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 12vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 0 0 0.6rem #eae4d6, inset 0 0 0 calc(0.6rem + 1px) var(--gold);
}

.shop-card .label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.3em);
  padding: 0.7rem 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
}

.shop-card-cta {
  margin-top: auto;
  padding: 0.5rem 0.75rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.shop-card-cta::after {
  content: " \2192";
}

@media (max-width: 380px) {
  .shop-grid {
    gap: 0.55rem;
  }

  .shop-card .label {
    padding: 0.6rem 0.6rem 0;
    font-size: 0.88rem;
  }

  .shop-card-cta {
    padding: 0.4rem 0.6rem 0.65rem;
  }
}

.shop-filters {
  justify-content: center;
  margin-top: 0.25rem;
}

.links-btn .hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.links-icons {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.links-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text);
}

.links-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.links-icon:hover {
  text-decoration: none;
  border-color: var(--gold);
  color: var(--gold);
}

.links-news {
  margin-top: 1.75rem;
  text-align: center;
}

.links-news-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.links-news-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.links-news-input {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
}

.links-news-input::placeholder {
  color: var(--text-muted);
}

.links-news-btn {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.links-news-honey {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.links-news-status {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

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

/* ---- Recipes index: compact layout ---- */

body[data-page="recipes"] .page-hero {
  padding: 1.75rem 0 1rem;
  margin-bottom: 0;
}

.recipes-index {
  padding-top: 1rem;
}

.band-compact {
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  margin-bottom: 1rem;
}

.band-compact p {
  font-weight: 600;
  min-width: 0;
}

.band-compact .btn {
  flex-shrink: 0;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

.recipes-index .wiki-search {
  margin-bottom: 0.75rem;
}

.recipes-index .filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  scrollbar-width: none;
}

.recipes-index .filter-btn {
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
}

.recipes-index .wiki-count {
  margin-bottom: 0.75rem;
}

.recipes-index .grid {
  gap: 0.75rem;
}

.recipes-index .card {
  padding: 0.9rem 1rem;
  overflow: hidden;
}

.recipes-index .card-photo {
  display: block;
  width: calc(100% + 2rem);
  height: 130px;
  margin: -0.9rem -1rem 0.7rem;
  max-width: none;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.recipes-index .card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}

.recipes-index .card p:not(.muted) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipes-index .card .meta {
  margin-top: 0.5rem;
}
