:root {
  --cream: #FBF3DF;
  --cream-2: #F4E9CF;
  --ink: #2E2A66;
  --ink-soft: #4a4675;
  --blueberry: #3A3A8C;
  --pineapple: #F4C667;
  --pineapple-soft: #FFE7A0;
  --leaf: #3F8C5A;
  --rule: rgba(46, 42, 102, 0.18);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(244, 198, 103, 0.25), transparent 40%),
    radial-gradient(circle at 88% 8%, rgba(58, 58, 140, 0.10), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(63, 140, 90, 0.10), transparent 50%);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* dotted grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(46, 42, 102, 0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

.masthead, .art, .recipe, .tips, footer {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* MASTHEAD */
.masthead { padding-top: 56px; padding-bottom: 24px; text-align: center; }

.kicker {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.title {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.title .line { display: block; }
.title .line-1 { color: var(--blueberry); }
.title .line-2 { color: #c89518; }
.title .line-3 em {
  font-style: italic;
  font-weight: 500;
  font-size: 0.55em;
  color: var(--leaf);
  letter-spacing: 0.01em;
}
.title .amp {
  display: inline-block;
  font-style: italic;
  font-weight: 500;
  font-size: 0.5em;
  color: var(--ink-soft);
  margin: 0 6px;
  transform: translateY(-0.15em);
}

.dek {
  max-width: 620px;
  margin: 0 auto 24px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  margin-top: 12px;
}
.meta strong {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--ink);
  margin-right: 6px;
  letter-spacing: 0.02em;
}

/* ART */
.art {
  margin-top: 36px;
  margin-bottom: 56px;
}
.art svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(46, 42, 102, 0.35), 0 4px 0 var(--ink);
  border: 2px solid var(--ink);
}

.berry-float { animation: float 6s ease-in-out infinite; transform-origin: center; }
.berry-float.delay-1 { animation-delay: -2s; }
.berry-float.delay-2 { animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* RECIPE */
.recipe {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  padding-top: 32px;
  padding-bottom: 56px;
  border-top: 1px solid var(--rule);
}

.recipe h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.recipe h3 {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--ink-soft);
  margin: 22px 0 8px;
  font-weight: 600;
}

.ingredients ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ingredients li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 15.5px;
}
.ingredients li::before {
  content: "●";
  color: var(--blueberry);
  margin-right: 10px;
  font-size: 10px;
  vertical-align: middle;
}

.steps ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 64px;
  margin-bottom: 12px;
  background: rgba(255, 253, 246, 0.7);
  border: 1px solid var(--rule);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.steps li:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px rgba(46, 42, 102, 0.4);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blueberry);
  color: var(--pineapple-soft);
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 var(--ink);
}
.steps li strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  font-size: 17px;
}
.steps li.done {
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-color: var(--rule);
}
.steps li.done::before { background: var(--leaf); }

/* TIPS */
.tips {
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--rule);
}
.tips h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 24px;
}
.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.tip-grid article {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 4px 4px 0 var(--ink);
}
.tip-grid article:nth-child(1) { background: var(--pineapple-soft); }
.tip-grid article:nth-child(2) { background: #E0E0F5; }
.tip-grid article:nth-child(3) { background: #FFE0E8; }
.tip-grid article:nth-child(4) { background: #DCEEDB; }
.tag {
  display: inline-block;
  background: var(--ink);
  color: var(--pineapple-soft);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tip-grid p { margin: 0; font-size: 14.5px; line-height: 1.55; }

/* FOOTER */
footer {
  padding: 32px 24px 56px;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  margin-top: 16px;
}

/* RESPONSIVE */
@media (max-width: 760px) {
  .recipe {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .meta { gap: 6px 18px; font-size: 12px; }
  .art { margin-bottom: 36px; }
  .steps li { padding-left: 56px; }
  .steps li::before { width: 30px; height: 30px; font-size: 15px; }
}
