:root {
  --orange: #EE6A3A;
  --peach: #F3D1A5;
  --ink: #1A1714;
  --paper: #FAF8F3;
  --taupe: #937D63;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
}
.prose { max-width: 36rem; }
.prose p + p { margin-top: 1em; }
.big { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; }

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  background: var(--paper);
}
.nav--overlay { position: absolute; inset: 0 0 auto; background: transparent; color: var(--paper); }
.brand {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  text-transform: uppercase;
  text-decoration: none;
}
.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.nav__links a { font-size: 1.15rem; text-decoration: none; }
.nav__links a:hover, .nav__links a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }
.nav__toggle { display: none; background: none; border: 0; color: inherit; font: inherit; font-size: 1.15rem; cursor: pointer; }

@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--ink);
    color: var(--paper);
  }
  .nav.is-open .nav__links { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1.1rem 2.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--paper);
  font: 500 1.05rem/1 var(--body);
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--paper); color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--peach { background: var(--peach); }
.section--orange { background: var(--orange); color: var(--paper); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split__media img, .split__media video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(26, 23, 20, .08);
}
.split__media video { aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 8rem 1.25rem 4rem;
  text-align: center;
  color: var(--paper);
  background: var(--taupe) center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(26, 23, 20, .45); }
.hero__inner { position: relative; max-width: 62rem; }
.hero h1 { font-size: clamp(3.4rem, 9.5vw, 9rem); }
.lead { max-width: 38rem; margin: 1.25rem auto 2.5rem; font-size: clamp(1.1rem, 1.8vw, 1.5rem); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; margin-bottom: clamp(2rem, 5vw, 4rem); }
.marquee__track { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee__track span {
  padding-right: .35em;
  font-family: var(--display);
  font-size: clamp(4rem, 13vw, 12rem);
  line-height: 1;
  text-transform: uppercase;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 1.75rem; }
.calc fieldset { border: 0; padding: 0; }
.calc legend, .calc label {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: .6rem;
  font-weight: 600;
}
.calc output { font-weight: 400; }
.hint { margin-top: .4rem; font-size: .95rem; opacity: .75; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; }
.seg button, .chip {
  padding: .9rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 1rem var(--body);
  cursor: pointer;
}
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--peach); }
.seg--goal button { display: grid; gap: .15rem; padding: 1rem 1.1rem; border-radius: 1.25rem; text-align: left; }
.seg--goal strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.seg--goal small { font-size: .85rem; }
@media (max-width: 480px) { .seg--goal { grid-auto-flow: row; } }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 / var(--fill, 50%) 100% no-repeat,
    rgba(26, 23, 20, .18);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
}

.result { display: grid; gap: 1.25rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.result__kcal { font-family: var(--display); font-size: clamp(3.2rem, 6vw, 5rem); line-height: 1; }
.result__kcal small { font-family: var(--body); font-size: 1.1rem; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.macros dt { font-size: .9rem; }
.macros dd { margin: 0; font-size: 1.5rem; font-weight: 600; }

/* ---------- Offer / gallery / CTA ---------- */
.offer h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 1rem; }
.offer .price { font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; margin-bottom: 1.25rem; }
.offer .btn { margin-top: 2rem; }

.center { text-align: center; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: rgba(26, 23, 20, .08); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.cta h2 { font-size: clamp(3rem, 8.5vw, 8rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.cta__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(3.6rem, 11vw, 10rem); }
.page-head .big { margin-top: 1.25rem; max-width: 40rem; }

/* ---------- Plan ---------- */
.target { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.target dt { font-size: .9rem; }
.target dd { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chip { padding: .6rem 1.3rem; }

.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 3.5rem 2rem; }
.recipe__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--peach); }
.recipe__img img { width: 100%; height: 100%; object-fit: cover; }
.recipe h3 { margin: 1.1rem 0 .4rem; font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; text-transform: uppercase; }
.recipe__desc { opacity: .8; }
.recipe__kcal { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 .6rem; }
.recipe__kcal strong { font-size: 1.35rem; }
.recipe__kcal span { font-size: .95rem; opacity: .75; }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.bar .p { background: var(--ink); }
.bar .c { background: var(--orange); }
.bar .f { background: var(--taupe); }
.recipe__macros { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .7rem; font-size: .95rem; }
.recipe__macros dd { margin: 0; font-weight: 600; }
.recipe__macros div:nth-child(1) dt::before,
.recipe__macros div:nth-child(2) dt::before,
.recipe__macros div:nth-child(3) dt::before {
  content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .4em; border-radius: 50%;
}
.recipe__macros div:nth-child(1) dt::before { background: var(--ink); }
.recipe__macros div:nth-child(2) dt::before { background: var(--orange); }
.recipe__macros div:nth-child(3) dt::before { background: var(--taupe); }
.recipe__allergens { margin-top: .8rem; font-size: .9rem; opacity: .75; }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; margin-bottom: .45rem; }
.form label small { opacity: .75; font-size: .9em; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: .95rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
}
.form select option { color: var(--ink); }
.form textarea { min-height: 9rem; border-radius: 1.5rem; resize: vertical; }
.form__status { grid-column: 1 / -1; min-height: 1.5em; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 3rem 0; background: var(--taupe); color: var(--paper); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer small { display: block; margin-top: .5rem; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .btn { transition: none; }
}
