:root {
  --ink: #10151c;
  --ink-soft: #1a222d;
  --copper: #c9854a;
  --copper-bright: #e09a58;
  --cream: #f3ebe0;
  --cream-muted: rgba(243, 235, 224, 0.78);
  --line: rgba(243, 235, 224, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 133, 74, 0.18), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(54, 78, 104, 0.35), transparent 50%),
    var(--ink);
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 0.35rem;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 1.25rem 1.25rem 0;
}

.site-header--solid {
  position: sticky;
  top: 0;
  background: rgba(16, 21, 28, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding-bottom: 1rem;
}

.site-header__inner,
.section__inner,
.site-footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  opacity: 0.86;
  transition: opacity 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  opacity: 1;
}

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

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 21, 28, 0.2) 0%, rgba(16, 21, 28, 0.55) 45%, rgba(16, 21, 28, 0.92) 100%),
    url("https://images.unsplash.com/photo-1556910103-1c02745aae4d?auto=format&fit=crop&w=2400&q=80")
      center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 21, 28, 0.72) 0%, rgba(16, 21, 28, 0.35) 55%, rgba(16, 21, 28, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 7.5rem 0 4.5rem;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--cream-muted);
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  color: var(--cream-muted);
  font-size: 1.05rem;
}

.hero__actions {
  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.2rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

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

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

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--copper-bright);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(16, 21, 28, 0.35);
  color: var(--cream);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(243, 235, 224, 0.4);
}

.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.section--about,
.section--what {
  background:
    linear-gradient(180deg, rgba(26, 34, 45, 0.7), rgba(16, 21, 28, 0.2));
}

.section--recipes,
.section--browse {
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(201, 133, 74, 0.12), transparent 60%),
    var(--ink);
}

.section--instagram,
.section--page-intro {
  background:
    linear-gradient(160deg, rgba(26, 34, 45, 0.95), rgba(16, 21, 28, 0.85));
}

.section__inner--narrow {
  max-width: 640px;
}

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

.page-title,
.section h2,
.recipe-hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section h2 {
  max-width: 16ch;
}

.page-title {
  max-width: 18ch;
}

.section__copy {
  margin: 0;
  max-width: 46ch;
  color: var(--cream-muted);
}

.section__copy--follow {
  margin-top: 1rem;
}

.section__cta {
  margin: 2rem 0 0;
}

.feature-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.feature-list h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.feature-list p {
  margin: 0;
  max-width: 42ch;
  color: var(--cream-muted);
}

.recipe-list,
.browse-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.recipe-item,
.browse-item {
  border-top: 1px solid var(--line);
}

.recipe-item:last-child,
.browse-item:last-child {
  border-bottom: 1px solid var(--line);
}

.recipe-item__link,
.browse-item__link {
  display: block;
  padding: 1.35rem 0;
  transition: color 180ms ease;
}

.recipe-item__link:hover h3,
.browse-item__link:hover h2 {
  color: var(--copper-bright);
}

.recipe-item__meta,
.browse-item__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.4rem;
}

.recipe-item__time,
.recipe-item__category {
  color: var(--copper-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recipe-item h3,
.browse-item h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.recipe-item p,
.browse-item p {
  margin: 0;
  color: var(--cream-muted);
  max-width: 42ch;
}

.form-note {
  min-height: 1.4em;
  margin: 0.85rem 0 0;
  color: var(--cream-muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--line);
}

.site-footer__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.site-footer__meta {
  margin: 0.35rem 0 0;
  color: var(--cream-muted);
  font-size: 0.9rem;
  max-width: 52ch;
}

.ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 1.25rem;
}

.ratings--compact {
  margin-top: 0.9rem;
  gap: 0.85rem 1.5rem;
}

.rating {
  display: grid;
  gap: 0.3rem;
  min-width: 9rem;
}

.rating__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

.rating__meter {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  min-height: 1rem;
}

.rating-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  opacity: 0.28;
  transition: opacity 180ms ease, transform 180ms ease;
}

.rating-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rating-icon--chef svg {
  fill: rgba(243, 235, 224, 0.55);
}

.rating-icon--smile svg {
  stroke: rgba(243, 235, 224, 0.55);
  fill: rgba(243, 235, 224, 0.55);
}

.rating-icon--smile svg circle[fill="none"] {
  fill: none;
}

.rating-icon--smile svg path {
  fill: none;
  stroke: rgba(243, 235, 224, 0.55);
}

.rating-icon.is-filled {
  opacity: 1;
}

.rating-icon--chef.is-filled svg {
  fill: var(--copper-bright);
}

.rating-icon--smile.is-filled svg {
  fill: var(--copper-bright);
  stroke: var(--copper-bright);
}

.rating-icon--smile.is-filled svg circle[fill="none"],
.rating-icon--smile.is-filled svg path {
  fill: none;
  stroke: var(--copper-bright);
}

.rating__scale,
.rating__hint {
  font-size: 0.8rem;
  color: var(--cream-muted);
}

.recipe-hero {
  position: relative;
  min-height: min(78svh, 720px);
  display: grid;
  align-items: end;
  overflow: clip;
}

.recipe-hero__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  animation: hero-drift 20s var(--ease) infinite alternate;
}

.recipe-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 21, 28, 0.25) 0%, rgba(16, 21, 28, 0.55) 40%, rgba(16, 21, 28, 0.94) 100%);
}

.recipe-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 7rem 0 2.75rem;
}

.recipe-hero h1 {
  max-width: 14ch;
  margin-bottom: 0.25rem;
}

.recipe-body {
  padding-top: 3rem;
}

.recipe-layout {
  display: grid;
  gap: 2.5rem;
  max-width: 720px;
}

.recipe-thoughts h2,
.recipe-block h2,
.recipe-notes h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.recipe-thoughts p {
  margin: 0;
  color: var(--cream-muted);
  font-size: 1.08rem;
  max-width: 52ch;
}

.recipe-thoughts p.is-placeholder {
  font-style: italic;
  opacity: 0.85;
}

.recipe-subtitle {
  margin: 1rem 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

.recipe-subtitle:first-child {
  margin-top: 0;
}

.recipe-source {
  margin: 0;
  color: var(--cream-muted);
  font-size: 0.9rem;
}

.recipe-source a {
  color: var(--copper-bright);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.recipe-block ul,
.recipe-block ol,
.recipe-notes ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--cream-muted);
}

.recipe-block li,
.recipe-notes li {
  margin: 0.45rem 0;
  max-width: 52ch;
}

.recipe-notes {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.recipe-notes strong {
  color: var(--cream);
  font-weight: 600;
}

.recipe-back {
  margin: 0.5rem 0 0;
}

.page-inner .section--page-intro {
  border-top: 0;
  padding-top: 3.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 900ms var(--ease) forwards;
}

.reveal--delay-1 {
  animation-delay: 120ms;
}

.reveal--delay-2 {
  animation-delay: 240ms;
}

.reveal--delay-3 {
  animation-delay: 360ms;
}

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

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

@media (max-width: 720px) {
  .nav {
    gap: 0.85rem;
    font-size: 0.82rem;
  }

  .hero__content,
  .recipe-hero__content {
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .ratings {
    gap: 1rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero__media,
  .recipe-hero__media {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}
