:root {
  --bg: #0e0c0b;
  --bg-elevated: #171412;
  --ink: #f4efe8;
  --ink-muted: rgba(244, 239, 232, 0.62);
  --ember: #ff6a3d;
  --ember-soft: #c45a32;
  --line: rgba(244, 239, 232, 0.12);
  --surface: #f7f3ee;
  --surface-ink: #1a1614;
  --surface-muted: rgba(26, 22, 20, 0.55);
  --radius: 2px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1120px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 106, 61, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(196, 90, 50, 0.12), transparent 50%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.small {
  font-size: 0.875rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 500;
}

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

h1 {
  margin: 0.15em 0 0.35em;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  background: linear-gradient(to bottom, rgba(14, 12, 11, 0.88), rgba(14, 12, 11, 0));
  mix-blend-mode: normal;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.top-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    #1a1410
    url("https://images.unsplash.com/photo-1594041680534-e8c8cdebd659?auto=format&fit=crop&w=2000&q=80")
    center / cover no-repeat;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 28s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 12, 11, 0.35) 0%, rgba(14, 12, 11, 0.2) 40%, rgba(14, 12, 11, 0.92) 100%),
    linear-gradient(90deg, rgba(14, 12, 11, 0.55), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: calc(var(--pad) + 4rem) var(--pad) clamp(3rem, 8vh, 5rem);
  max-width: 42rem;
}

.brand-hero {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
  font-weight: 300;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.today,
.archive {
  padding: clamp(3rem, 8vh, 5.5rem) var(--pad);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}

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

.timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.timer-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.timer-digits {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.today-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .today-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .today-grid .recipe-tile:first-child:nth-last-child(2),
  .today-grid .recipe-tile:first-child:nth-last-child(2) ~ .recipe-tile {
    grid-column: span 1;
  }

  .today-grid:has(.recipe-tile:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.recipe-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  border-radius: var(--radius);
}

.recipe-tile .media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elevated);
}

.recipe-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.recipe-tile:hover img,
.recipe-tile:focus-visible img {
  transform: scale(1.05);
}

.recipe-tile .meta {
  padding: 1rem 0.1rem 0.25rem;
}

.recipe-tile .cat {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-soft);
}

.recipe-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
}

.recipe-tile .sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.recipe-tile .stats {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.filter-btn:hover {
  color: var(--ink);
  border-color: rgba(244, 239, 232, 0.28);
}

.filter-btn[aria-selected="true"] {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

.feed {
  display: grid;
  gap: 1.5rem 1.25rem;
}

@media (min-width: 700px) {
  .feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feed {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feed .recipe-tile .media {
  aspect-ratio: 3 / 4;
}

.recipe-dialog {
  width: min(920px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--surface-ink);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.recipe-dialog::backdrop {
  background: rgba(8, 6, 5, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-chrome {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem;
  margin: 0;
  background: linear-gradient(to bottom, rgba(247, 243, 238, 0.95), transparent);
}

.dialog-close {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 0;
  background: rgba(26, 22, 20, 0.08);
  cursor: pointer;
  font-size: 1rem;
}

.dialog-body {
  padding: 0 1.5rem 2rem;
  overflow: auto;
}

.dialog-hero {
  margin: -3rem -1.5rem 1.25rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.dialog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-soft);
}

.dialog-body h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.4rem;
}

.dialog-sub {
  margin: 0 0 1rem;
  color: var(--surface-muted);
  font-weight: 300;
}

.dialog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--surface-muted);
}

.dialog-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .dialog-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.dialog-grid h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.dialog-grid ul,
.dialog-grid ol {
  margin: 0;
  padding-left: 1.15rem;
}

.dialog-grid li {
  margin-bottom: 0.45rem;
}

.tip {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(196, 90, 50, 0.1);
  border-left: 3px solid var(--ember-soft);
  color: var(--surface-ink);
}

.site-footer {
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}

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

.site-footer p {
  margin: 0 0 0.35rem;
}

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

.site-footer a {
  color: var(--ink-muted);
  font-weight: 500;
  text-decoration: none;
}

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

.site-footer a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.seo-content {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 7rem) var(--pad) 2rem;
}

.seo-content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.seo-lead,
.seo-meta {
  color: var(--ink-muted);
  font-weight: 300;
  max-width: 40rem;
}

.seo-meta {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.seo-image {
  width: min(100%, 920px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 1.5rem;
}

.seo-content h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.6rem;
}

.seo-content ul,
.seo-content ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink-muted);
  font-weight: 300;
}

.seo-content li {
  margin-bottom: 0.4rem;
}

.seo-content a {
  color: var(--ember);
}

.seo-recipe-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.seo-recipe-list a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.seo-recipe-list a strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.seo-recipe-list a span {
  color: var(--ink-muted);
  font-weight: 300;
  font-size: 0.95rem;
}

.dialog-kicker a {
  color: inherit;
  text-decoration: none;
}

.dialog-kicker a:hover {
  text-decoration: underline;
}

.recipe-route .hero,
.category-route .hero,
.recipe-route .today {
  display: none;
}

.legal-page .topbar {
  position: sticky;
  background: rgba(14, 12, 11, 0.92);
  backdrop-filter: blur(12px);
}

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 7rem) var(--pad) clamp(3rem, 8vh, 5rem);
}

.legal h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
}

.legal .updated {
  margin: 0 0 2rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.legal h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.legal p,
.legal li {
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.2em;
  color: var(--ink-muted);
}

.legal a {
  color: var(--ember);
  font-weight: 500;
}

.legal .operator {
  margin: 1.5rem 0 0.4rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.legal .company {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 400;
}

.legal address {
  margin: 0 0 1.75rem;
  font-style: normal;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
}

.legal dl {
  margin: 0;
}

.legal dt {
  margin: 0 0 0.35rem;
  color: var(--ember);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal dd {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.05rem;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .recipe-tile img {
    animation: none;
    transition: none;
  }
}
