:root {
  --ff-bg: #0b0e13;
  --ff-ink: #e9eef5;
  --ff-mute: #a9b4c2;
  --ff-ember: #ff7a18;
  --ff-fire: #ff3d00;
  --ff-glow: #ffd9b3;
  --ff-accent: #2aa8ff;
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--ff-ink);
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(255, 122, 24, .25), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(255, 61, 0, .18), transparent 60%),
    linear-gradient(180deg, #10141b 0%, #0b0e13 60%, #090c11 100%);
}

a {
  color: var(--ff-accent);
}

.text-light-50 {
  color: rgba(233, 238, 245, .78);
}

.grill-overlay {
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 18px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .6), rgba(0, 0, 0, .15) 60%, transparent);
  pointer-events: none;
}

.smoke {
  position: absolute;
  inset: 0;
  opacity: .25;
  mix-blend-mode: screen;
  background:
    radial-gradient(800px 300px at 30% 10%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(1000px 400px at 80% 5%, rgba(255, 255, 255, .06), transparent 60%);
  filter: blur(2px);
  pointer-events: none;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 65% 5%, rgba(255, 217, 179, .25), transparent 60%),
    radial-gradient(900px 450px at 20% -10%, rgba(255, 61, 0, .18), transparent 60%);
}

.hero .container,
.hero .navbar {
  position: relative;
  z-index: 1;
}

.brand-flame {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.flame-btn {
  background: linear-gradient(90deg, var(--ff-ember), var(--ff-fire));
  border: 0;
  color: #140800;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 61, 0, .25);
}

.flame-btn:hover,
.flame-btn:focus {
  color: #140800;
  filter: brightness(1.05);
}

.glow-input {
  background: #0f141b;
  border: 1px solid rgba(255, 217, 179, .18);
  color: var(--ff-ink);
}

.glow-input::placeholder {
  color: rgba(233, 238, 245, .55);
}

.glow-input:focus {
  background: #0f141b;
  color: var(--ff-ink);
  box-shadow: 0 0 0 .25rem rgba(255, 122, 24, .25);
  border-color: var(--ff-ember);
}

.chips {
  display: flex;
  gap: .5rem;
  overflow: auto;
  padding-bottom: .25rem;
}

.chip {
  --_bg: rgba(255, 122, 24, .15);
  background: var(--_bg);
  border: 1px solid rgba(255, 122, 24, .25);
  color: #ffd9b3;
  white-space: nowrap;
}

.chip:hover,
.chip:focus {
  background: rgba(255, 122, 24, .25);
  color: #ffd9b3;
}

.pill {
  border-radius: 999px;
}

.snap-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
}

.snap-card {
  scroll-snap-align: start;
}

.recipe-card {
  position: relative;
  background: #0f141b;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}

.recipe-media {
  position: relative;
}

.recipe-media img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.recipe-card > img {
  height: 220px;
  object-fit: cover;
}

.archive-card-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

.ff-entry-content {
  color: var(--ff-ink);
}

.ff-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.ff-entry-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ff-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.ff-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  color: var(--ff-mute);
  font-size: .92rem;
  list-style: none;
}

.ff-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: .5rem;
  color: rgba(255, 255, 255, .28);
}

.ff-breadcrumbs a {
  color: var(--ff-glow);
  text-decoration: none;
}

.ff-detail-section {
  padding: 1.25rem;
  background: rgba(15, 20, 27, .72);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
}

.ff-ingredient-grid,
.ff-meta-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: .75rem;
}

.ff-ingredient,
.ff-info-pill {
  padding: .75rem .9rem;
  color: var(--ff-ink);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
}

.ff-steps {
  display: grid;
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ff-step;
}

.ff-steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  counter-increment: ff-step;
}

.ff-steps li::before {
  content: counter(ff-step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  color: #140800;
  background: linear-gradient(90deg, var(--ff-ember), var(--ff-fire));
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
}

.ff-step-title {
  display: block;
  margin-bottom: .35rem;
  color: var(--ff-glow);
  font-weight: 700;
}

.ff-steps p {
  margin: 0;
  color: var(--ff-mute);
}

.ff-params {
  display: grid;
  gap: .8rem;
  margin: 0;
}

.ff-params div,
.ff-mini-facts div {
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ff-params div:last-child,
.ff-mini-facts div:last-child {
  border-bottom: 0;
}

.ff-params dt,
.ff-mini-facts dt {
  color: var(--ff-glow);
  font-weight: 700;
}

.ff-params dd,
.ff-mini-facts dd {
  margin: .25rem 0 0;
  color: var(--ff-mute);
}

.ff-faq-list {
  display: grid;
  gap: .85rem;
}

.ff-faq-item {
  padding: .95rem;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
}

.ff-faq-item h3 {
  color: var(--ff-glow);
}

.ff-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  margin-right: .35rem;
  padding: 0 .65rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: var(--ff-ink);
  text-decoration: none;
}

.ff-pagination .current {
  color: #140800;
  background: linear-gradient(90deg, var(--ff-ember), var(--ff-fire));
  border-color: transparent;
  font-weight: 700;
}

.js-firefood-sentinel {
  width: 100%;
  height: 1px;
}

.badge-fire {
  background: linear-gradient(90deg, rgba(255, 122, 24, .3), rgba(255, 61, 0, .3));
  border: 1px solid rgba(255, 122, 24, .5);
  color: #ffd9b3;
}

.divider {
  height: 36px;
  background: transparent;
  position: relative;
}

.divider svg {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  width: 100%;
  height: 36px;
}

.zone {
  background: #0f141b;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
}

.zone h3 {
  font-size: 1.05rem;
}

.ff-icon {
  display: inline-flex;
  width: 1.2em;
  min-width: 1.2em;
  color: var(--ff-glow);
  line-height: 1;
}

.firefood-footer {
  background: #0b0e13;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.visually-hidden-focusable:focus {
  position: static !important;
  clip: auto !important;
  width: auto;
  height: auto;
}

@media (min-width: 768px) {
  .snap-row {
    grid-auto-columns: 45%;
  }

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

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

@media (min-width: 1200px) {
  .snap-row {
    grid-auto-columns: 30%;
  }

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