:root {
  --bg: #fbf7f1;
  --paper: #fffdf9;
  --paper-2: #fff8ef;
  --text: #2f241c;
  --muted: #78695f;
  --line: #eadfd1;
  --accent: #b56a2d;
  --accent-2: #e6a557;
  --accent-soft: #fff0df;
  --shadow: 0 14px 34px rgba(111, 78, 48, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 219, 180, 0.38), transparent 28%),
    linear-gradient(180deg, #fffaf3 0%, var(--bg) 100%);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 980px; margin: 0 auto; padding: 0 18px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}
.site-title { font-weight: 800; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-nav a { font-size: 14px; font-weight: 700; }

.hero {
  padding: 56px 0 24px;
}
.hero-box,
.article-box {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-box {
  padding: 34px 30px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.hero h1,
.article-box h1 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.hero p,
.summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

.section {
  margin: 26px 0;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.recipe-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}
.recipe-facts span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff2e3;
  border: 1px solid #efd8bf;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.recipe-grid,
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.recipe-card,
.ingredient-card {
  display: block;
  background: linear-gradient(180deg, #fff 0%, #fff9f2 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ingredient-card {
  overflow: hidden;
}
.recipe-card:hover,
.ingredient-card:hover {
  transform: translateY(-4px);
  border-color: #d9b18b;
  box-shadow: 0 18px 32px rgba(123, 87, 55, 0.12);
  text-decoration: none;
}
.recipe-card h3,
.ingredient-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}
.recipe-card p,
.ingredient-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.ingredient-thumb {
  margin: -22px -22px 16px;
}
.ingredient-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.recipe-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1e0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.article-box {
  padding: 30px;
  margin-top: 28px;
}
.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

.hero-photo {
  margin: 22px 0 0;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ingredient-list,
.tip-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}
.steps {
  margin: 0;
  padding-left: 22px;
  line-height: 1.9;
}
.steps li + li { margin-top: 10px; }

.step-visual {
  margin: 0 0 18px;
}
.step-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.step-visual figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ingredient-card .cta {
  display: inline-flex;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe9a9 0%, #f4bf4f 48%, #f8d97a 100%);
  color: #4b2d0b;
  font-size: 13px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(153, 102, 14, 0.18) inset,
    0 10px 24px rgba(239, 175, 71, 0.26),
    0 0 26px rgba(255, 206, 88, 0.38);
  animation: recipeCtaPulse 1.8s ease-in-out infinite;
}
.ingredient-card .cta:hover { text-decoration: none; }
.ingredient-card .cta::before {
  content: "";
  position: absolute;
  top: -140%;
  left: -35%;
  width: 44%;
  height: 320%;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.88) 45%, transparent 100%);
  transform: rotate(24deg);
  animation: recipeCtaShine 2.1s linear infinite;
}

.affiliate-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff5e8;
  border: 1px solid #f1dcc2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.disclosure {
  margin: 26px 0 50px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff5e8;
  border: 1px solid #f1dcc2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.article-links a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff4e7;
  border: 1px solid #edd8bf;
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@keyframes recipeCtaPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 1px rgba(153, 102, 14, 0.18) inset,
      0 10px 24px rgba(239, 175, 71, 0.26),
      0 0 26px rgba(255, 206, 88, 0.38);
  }
  50% {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
      0 0 0 1px rgba(153, 102, 14, 0.2) inset,
      0 14px 28px rgba(239, 175, 71, 0.34),
      0 0 38px rgba(255, 216, 111, 0.62);
  }
}

@keyframes recipeCtaShine {
  0% { left: -35%; }
  100% { left: 120%; }
}

@media (max-width: 720px) {
  .hero-box,
  .article-box,
  .section {
    padding: 22px 18px;
    border-radius: 22px;
  }
  .ingredient-thumb {
    margin: -18px -18px 14px;
  }
  .site-header .container {
    align-items: flex-start;
    flex-direction: column;
  }
}
