:root {
  --cream: #fffaf0;
  --coral: #ff8f6b;
  --gold: #ffd166;
  --sky: #8ecae6;
  --mint: #b8f2e6;
  --ink: #253049;
  --soft-ink: #55627a;
  --card-shadow: 0 22px 55px rgba(37, 48, 73, 0.12);
  --rounded-xl: 32px;
  --rounded-lg: 24px;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.52), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(142, 202, 230, 0.42), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, #fefaf5 44%, #f7fff8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
}

.page-shell__orb--one {
  top: 88px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: rgba(255, 143, 107, 0.22);
}

.page-shell__orb--two {
  right: -40px;
  top: 340px;
  width: 180px;
  height: 180px;
  background: rgba(184, 242, 230, 0.45);
}

.site-header,
.page-content,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 24px 20px 12px;
}

.site-header__inner,
.page-content,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(37, 48, 73, 0.08);
  backdrop-filter: blur(10px);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-brand__logo {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.site-brand strong,
.section-title,
.recipe-card__title,
.recipe-detail__title,
.checklist-card__title {
  font-family: "Baloo 2", "Trebuchet MS", cursive;
}

.site-brand strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.site-brand small {
  display: block;
  font-size: 0.9rem;
  color: var(--soft-ink);
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.page-content {
  padding: 24px 0 48px;
}

.recipe-card,
.checklist-card,
.recipe-detail__summary {
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--card-shadow);
}

.section-kicker,
.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff3ce;
  color: #8f5b00;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.recipe-card__description,
.recipe-detail__description,
.checklist-card__hint,
.site-footer p {
  color: var(--soft-ink);
  font-size: 1.05rem;
}

.recipe-chooser {
  display: grid;
  gap: 24px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.recipe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: var(--rounded-xl);
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  animation: rise-in 640ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

.recipe-card--link {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.recipe-card--link:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px rgba(37, 48, 73, 0.16);
}

.recipe-card--link:focus-visible {
  outline: 4px solid rgba(142, 202, 230, 0.8);
  outline-offset: 6px;
  transform: translateY(-4px);
}

.recipe-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 46%);
  pointer-events: none;
}

.recipe-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.recipe-card__tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.recipe-card__image {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
}

.recipe-card__image img {
  max-height: 210px;
}

.recipe-card__title {
  margin: 0;
  font-size: 2rem;
  line-height: 0.95;
}

.recipe-detail {
  display: grid;
  gap: 28px;
}

.recipe-detail__summary {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 28px;
  border-radius: 40px;
}

.recipe-detail__media {
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 248, 239, 0.92));
  padding: 18px;
}

.recipe-detail__media img {
  width: min(100%, 195px);
  margin: 0 auto;
}

.recipe-detail__title {
  margin: 16px 0 12px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.95;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.checklist-card {
  padding: 24px;
  border-radius: 34px;
}

.checklist-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.checklist-card__title {
  margin: 10px 0 6px;
  font-size: 2rem;
}

.checklist-progress {
  min-width: 88px;
  padding: 12px 14px;
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 900;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.check-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.check-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 26px rgba(37, 48, 73, 0.08);
}

.check-card__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.check-card__mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 3px solid rgba(37, 48, 73, 0.16);
  background: white;
  flex-shrink: 0;
}

.check-card__mark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 8px;
  height: 14px;
  border-right: 4px solid white;
  border-bottom: 4px solid white;
  opacity: 0;
  transform: rotate(45deg) scale(0.4);
  transition: opacity 150ms ease, transform 150ms ease;
}

.check-card__text {
  position: relative;
  z-index: 1;
  font-size: 1.03rem;
  font-weight: 700;
}

.check-card--ingredient {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.ingredient-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.check-card__input:focus-visible + .check-card__mark {
  box-shadow: 0 0 0 4px rgba(142, 202, 230, 0.38);
}

.check-card.is-done {
  background: linear-gradient(135deg, rgba(216, 243, 220, 0.94), rgba(255, 248, 220, 0.95));
}

.check-card.is-done .check-card__mark {
  border-color: transparent;
  background: linear-gradient(135deg, #58cc7e, #8be28a);
}

.check-card.is-done .check-card__mark::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.check-card.is-done .check-card__text {
  color: #42614e;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: rgba(88, 204, 126, 0.68);
}

.fanfare-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  pointer-events: none;
  animation: burst 720ms ease-out forwards;
}

.site-footer {
  padding: 0 0 32px;
  text-align: center;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes burst {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.25) rotate(0deg);
  }

  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y))) scale(1.05) rotate(200deg);
  }
}

@media (max-width: 991.98px) {
  .recipe-detail__summary,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .site-header {
    padding: 16px 10px 12px;
  }

  .site-header__inner {
    width: 100%;
    border-radius: 26px;
    padding: 18px;
    justify-content: flex-start;
  }

  .site-brand {
    flex-direction: row;
    align-items: flex-start;
  }

  .site-brand {
    width: 100%;
  }

  .site-header__inner {
    width: 100%;
  }

  .page-content,
  .site-footer {
    width: calc(100% - 20px);
  }

  .recipe-detail__summary,
  .checklist-card {
    padding: 22px;
    border-radius: 28px;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .recipe-card {
    padding: 20px;
  }

  .recipe-card__title,
  .checklist-card__title {
    font-size: 1.8rem;
  }
}