:root {
  --recipe-bg: #fbfaf7;
  --recipe-surface: #ffffff;
  --recipe-ink: #18151f;
  --recipe-muted: #625d68;
  --recipe-soft: #f1edf6;
  --recipe-ube: #6d35b4;
  --recipe-matcha: #3f6f3f;
  --recipe-citrus: #e7b844;
  --recipe-line: rgba(24, 21, 31, 0.12);
  --recipe-shadow: 0 18px 45px rgba(24, 21, 31, 0.09);
  --recipe-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --recipe-display: "Space Grotesk", var(--recipe-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--recipe-bg);
  color: var(--recipe-ink);
  font-family: var(--recipe-font);
  -webkit-font-smoothing: antialiased;
}

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

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

.recipe-page {
  overflow: hidden;
}

.recipe-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.recipe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 34px;
  align-items: stretch;
  padding: 28px 0 34px;
}

.recipe-hero__copy {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  border: 1px solid var(--recipe-line);
  border-radius: 8px;
  background: var(--recipe-surface);
  box-shadow: var(--recipe-shadow);
}

.recipe-eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--recipe-ube);
  font-family: var(--recipe-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.recipe-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.recipe-hero h1,
.recipe-section h2,
.recipe-card h3,
.recipe-panel h2,
.recipe-panel h3,
.quick-card h3,
.route-card h3 {
  margin: 0;
  font-family: var(--recipe-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

.recipe-hero h1 {
  max-width: 10ch;
  font-size: 5rem;
}

.recipe-hero__lead {
  max-width: 60ch;
  margin: 22px 0 0;
  color: var(--recipe-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.recipe-actions,
.recipe-card__actions,
.recipe-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.recipe-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--recipe-line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--recipe-ink);
  background: var(--recipe-surface);
  font-family: var(--recipe-display);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.recipe-btn:hover {
  transform: translateY(-2px);
  border-color: var(--recipe-ube);
}

.recipe-btn--primary {
  border-color: var(--recipe-ube);
  background: var(--recipe-ube);
  color: #fff;
}

.recipe-btn--primary:hover {
  background: #582898;
  color: #fff;
}

.recipe-hero__media {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 1fr 0.88fr;
  gap: 12px;
  min-height: 560px;
}

.recipe-hero__image,
.recipe-hero__note {
  border: 1px solid var(--recipe-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--recipe-surface);
}

.recipe-hero__image img {
  height: 100%;
  object-fit: cover;
}

.recipe-hero__image--large {
  grid-row: 1 / span 2;
}

.recipe-hero__note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: var(--recipe-ink);
  color: #fff;
}

.recipe-hero__note strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--recipe-display);
  font-size: 1.2rem;
}

.recipe-hero__note span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

.recipe-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--recipe-line);
  border-radius: 8px;
  background: var(--recipe-surface);
}

.route-card {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 8px;
  background: var(--recipe-soft);
  transition: transform 180ms ease, background-color 180ms ease;
}

.route-card:nth-child(2) {
  background: #edf4ea;
}

.route-card:nth-child(3) {
  background: #fff4d2;
}

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

.route-card span,
.recipe-kicker,
.recipe-meta span,
.quick-card__meta {
  color: var(--recipe-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.route-card h3 {
  margin-top: 18px;
  font-size: 1.45rem;
}

.route-card p {
  margin: 12px 0 0;
  color: var(--recipe-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.recipe-section,
.recipe-panel {
  padding: 74px 0 0;
}

.recipe-section__header {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.45fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.recipe-section h2,
.recipe-panel h2 {
  font-size: 3.2rem;
}

.recipe-section__header p,
.recipe-panel p,
.recipe-card p,
.quick-card p {
  margin: 0;
  color: var(--recipe-muted);
  line-height: 1.65;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recipe-card,
.quick-card,
.recipe-panel {
  border: 1px solid var(--recipe-line);
  border-radius: 8px;
  background: var(--recipe-surface);
}

.recipe-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.recipe-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 53, 180, 0.4);
  box-shadow: var(--recipe-shadow);
}

.recipe-card__image {
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background: var(--recipe-soft);
}

.recipe-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.recipe-card:hover .recipe-card__image img {
  transform: scale(1.035);
}

.recipe-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.recipe-kicker {
  color: var(--recipe-ube);
}

.recipe-card h3,
.quick-card h3,
.recipe-panel h3 {
  font-size: 1.75rem;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.recipe-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--recipe-line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
}

.recipe-card__link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  margin-top: 4px;
  color: var(--recipe-ube);
  font-family: var(--recipe-display);
  font-weight: 800;
  text-transform: uppercase;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quick-card {
  overflow: hidden;
}

.quick-card__image {
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: var(--recipe-soft);
}

.quick-card__image img {
  height: 100%;
  object-fit: cover;
}

.quick-card__body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.quick-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--recipe-muted);
  line-height: 1.55;
}

.recipe-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: center;
  margin-top: 74px;
  padding: 14px;
  overflow: hidden;
}

.recipe-panel__copy {
  padding: 30px;
}

.recipe-panel__copy > p {
  margin-top: 16px;
}

.recipe-panel__image {
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
}

.recipe-panel__image img {
  height: 100%;
  object-fit: cover;
}

.recipe-footer {
  margin-top: 74px;
  padding: 30px 0 56px;
  border-top: 1px solid var(--recipe-line);
}

.recipe-footer p {
  margin: 0;
  color: var(--recipe-muted);
  line-height: 1.7;
}

.recipe-footer a {
  color: var(--recipe-ube);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 980px) {
  .recipe-shell {
    width: min(100% - 28px, 720px);
  }

  .recipe-hero,
  .recipe-section__header,
  .recipe-panel {
    grid-template-columns: 1fr;
  }

  .recipe-hero__copy,
  .recipe-hero__media {
    min-height: auto;
  }

  .recipe-hero__copy {
    padding: 30px;
  }

  .recipe-hero h1 {
    font-size: 3.25rem;
  }

  .recipe-hero__media {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 190px;
  }

  .recipe-routes,
  .recipe-grid,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .recipe-section {
    padding-top: 52px;
  }

  .recipe-panel {
    margin-top: 52px;
    padding: 14px;
  }

  .recipe-section h2,
  .recipe-panel h2 {
    font-size: 2.45rem;
  }

  .recipe-panel__image {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .recipe-shell {
    width: min(100% - 24px, 540px);
  }

  .recipe-hero {
    padding-top: 16px;
  }

  .recipe-hero__copy {
    padding: 24px;
  }

  .recipe-hero h1 {
    max-width: none;
    font-size: 2.75rem;
  }

  .recipe-hero__lead {
    font-size: 1rem;
  }

  .recipe-actions,
  .recipe-card__actions,
  .recipe-panel__actions {
    flex-direction: column;
  }

  .recipe-btn {
    width: 100%;
  }

  .recipe-hero__media {
    grid-template-columns: 1fr;
    grid-template-rows: 320px 180px 180px;
  }

  .recipe-hero__image--large {
    grid-row: auto;
  }

  .recipe-section h2,
  .recipe-panel h2 {
    font-size: 2.1rem;
  }

  .recipe-card h3,
  .quick-card h3,
  .recipe-panel h3 {
    font-size: 1.5rem;
  }
}
