/* Traddy Daddy — clean site styles
   Palette: charcoal / cream / burgundy / gold
   Tone: simple, calm, no gimmicks
*/

:root {
  --bg: #121212;
  --bg-elevated: #1a1a1a;
  --bg-card: #1e1e1e;
  --border: rgba(245, 241, 232, 0.08);
  --text: #f5f1e8;
  --text-muted: #a39e93;
  --burgundy: #8b1538;
  --burgundy-soft: rgba(139, 21, 56, 0.18);
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --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, 18, 18, 0.92);
  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(--text);
  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;
  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;
  max-width: 16ch;
  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: #1a1408;
}

.btn-primary:hover {
  background: #d4b45c;
  color: #1a1408;
}

.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, #1e1e1e, #151015 70%);
}

/* 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, #2a1a1e, #121212);
  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;
}

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

.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: #121212;
  border-color: var(--gold);
}
