:root {
  --ink: #1a221c;
  --ink-soft: #3a463c;
  --flour: #eef1eb;
  --flour-deep: #e2e7df;
  --olive: #2a3d2f;
  --olive-deep: #1c2a21;
  --paprika: #d4482a;
  --paprika-deep: #b3381f;
  --butter: #e8b84a;
  --mist: rgba(238, 241, 235, 0.82);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

html[data-font-theme="b"] {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

html[data-font-theme="c"] {
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

html[data-font-theme="d"] {
  --font-display: "Lilita One", system-ui, cursive;
  --font-body: "Mulish", system-ui, sans-serif;
}

html[data-font-theme="e"] {
  --font-display: "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(232, 184, 74, 0.12), transparent 55%),
    radial-gradient(90% 60% at 100% 20%, rgba(212, 72, 42, 0.08), transparent 50%),
    linear-gradient(180deg, var(--flour) 0%, var(--flour-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--olive);
  color: var(--flour);
  text-decoration: none;
  border-radius: 0.35rem;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(26, 34, 28, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #f5f7f3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(245, 247, 243, 0.35);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: rgba(245, 247, 243, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #fff;
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--paprika);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--paprika-deep);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.55rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #f5f7f3;
  margin: 0.35rem 0;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f5f7f3;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--olive-deep);
}

.hero-base {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: kenburns 22s var(--ease) infinite alternate;
  will-change: transform;
}

.hero-puzzle {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.hero-puzzle.is-active {
  opacity: 1;
}

.hero-tile {
  position: absolute;
  display: block;
  box-sizing: border-box;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.55) rotate(var(--rot, 0deg));
  filter: brightness(1.05);
  box-shadow: 0 0 0 0.5px rgba(26, 34, 28, 0.35);
  transition:
    opacity 0.55s var(--ease),
    transform 0.7s var(--ease),
    filter 0.7s var(--ease);
  will-change: transform, opacity;
}

.hero-tile.is-in {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0deg);
  filter: brightness(1);
}

@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.14) translate(-1.2%, -0.8%); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 34, 28, 0.45) 0%, rgba(26, 34, 28, 0.25) 35%, rgba(26, 34, 28, 0.82) 100%),
    linear-gradient(90deg, rgba(26, 34, 28, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 12ch;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: rgba(245, 247, 243, 0.88);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) 0.6s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--paprika);
  color: #fff;
}

.btn-primary:hover {
  background: var(--paprika-deep);
}

.btn-secondary {
  background: var(--olive);
  color: #f5f7f3;
}

.btn-secondary:hover {
  background: var(--olive-deep);
}

.btn-ghost {
  border: 1.5px solid rgba(245, 247, 243, 0.45);
  color: #f5f7f3;
  background: rgba(26, 34, 28, 0.25);
}

.btn-ghost:hover {
  border-color: #f5f7f3;
  background: rgba(26, 34, 28, 0.45);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paprika);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--olive-deep);
}

.section-lead {
  margin: 1.1rem 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.section-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.about .section-title {
  max-width: 14ch;
}

/* Recipes */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--olive);
  white-space: nowrap;
  transition: gap 0.25s var(--ease), color 0.2s ease;
}

.text-link:hover {
  gap: 0.6rem;
  color: var(--paprika);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.35rem;
}

.recipe {
  text-decoration: none;
  color: inherit;
}

.recipe-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--olive);
  margin-bottom: 0.85rem;
}

.recipe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.recipe:hover .recipe-thumb img {
  transform: scale(1.06);
}

.play {
  position: absolute;
  inset: auto auto 0.85rem 0.85rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(26, 34, 28, 0.78);
  backdrop-filter: blur(4px);
  transition: transform 0.25s var(--ease), background 0.2s ease;
}

.play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.4rem 0 0.4rem 0.7rem;
  border-color: transparent transparent transparent #fff;
}

.recipe:hover .play {
  transform: scale(1.08);
  background: var(--paprika);
}

.recipe h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--olive-deep);
}

.recipe p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Schedule */
.schedule {
  background:
    linear-gradient(135deg, var(--olive) 0%, var(--olive-deep) 100%);
  color: #f5f7f3;
  position: relative;
  overflow: hidden;
}

.schedule::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle, rgba(232, 184, 74, 0.18), transparent 65%);
  pointer-events: none;
}

.schedule .eyebrow {
  color: var(--butter);
}

.schedule .section-title,
.schedule .section-lead {
  color: #f5f7f3;
}

.schedule .section-lead {
  opacity: 0.9;
}

.schedule .section-lead strong {
  color: var(--butter);
}

.schedule-inner {
  position: relative;
}

.schedule-days {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.day {
  min-width: 10rem;
  padding: 1.15rem 1.35rem;
  border-top: 2px solid rgba(245, 247, 243, 0.35);
  display: grid;
  gap: 0.25rem;
}

.day-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.day-time {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--butter);
  letter-spacing: -0.02em;
}

/* Follow */
.follow-inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.follow .section-lead {
  margin-inline: auto;
}

.follow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(42, 61, 47, 0.15);
}

.footer-inner {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--olive-deep);
}

.footer-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--paprika);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-base { animation: none; transform: none; }
  .hero-tile {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .hero-brand,
  .hero-title,
  .hero-lead,
  .hero-actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .recipe:hover .recipe-thumb img,
  .recipe:hover .play {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 3.75rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(26, 34, 28, 0.96);
    backdrop-filter: blur(12px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(245, 247, 243, 0.1);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 0 !important;
  }

  .site-header {
    background: rgba(26, 34, 28, 0.72);
    backdrop-filter: blur(8px);
  }

  .hero-content {
    padding-bottom: 3.25rem;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .follow-actions .btn {
    flex: 1 1 10rem;
  }
}
