/* ================================================
   빵톡 공통 스타일시트
   따뜻하고 가독성 높은 홈베이킹 레시피 사이트
   ================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800;900&display=swap');

/* ── CSS 변수 ── */
:root {
  --bg:           #fffaf3;
  --surface:      #ffffff;
  --surface-soft: #f7f1e7;
  --surface-warm: #fdf4e7;
  --text:         #2e2a25;
  --text-soft:    #4a4540;
  --muted:        #6b675f;
  --primary:      #8a6240;
  --primary-dark: #6f4f34;
  --primary-light:#b5895e;
  --accent:       #8e9b62;
  --border:       #e7dccd;
  --border-soft:  #f0e8da;
  --shadow-sm:    0 2px 8px rgba(88, 67, 46, 0.06);
  --shadow:       0 8px 24px rgba(88, 67, 46, 0.10);
  --shadow-lg:    0 16px 40px rgba(88, 67, 46, 0.14);
  --shadow-hover: 0 20px 48px rgba(88, 67, 46, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Pretendard", sans-serif;
  --leading-tight:  1.25;
  --leading-normal: 1.75;
  --leading-loose:  1.9;
  --max-width: 1180px;
  --ease: 0.22s ease;
}

[data-theme="dark"] {
  --bg:           #1a1612;
  --surface:      #242018;
  --surface-soft: #2c2720;
  --surface-warm: #2a241e;
  --text:         #ede5d8;
  --text-soft:    #cec4b5;
  --muted:        #a09484;
  --primary:      #c59b74;
  --primary-dark: #d4a97e;
  --primary-light:#a07a56;
  --accent:       #a3b576;
  --border:       #3d3529;
  --border-soft:  #332d24;
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow:       0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg:    0 16px 40px rgba(0, 0, 0, 0.36);
  --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.44);
}

/* ================================================
   리셋 & 기본
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  transition: background var(--ease), color var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================================================
   레이아웃
   ================================================ */
.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.section { padding: 80px 0; }

/* ================================================
   타이포그래피
   ================================================ */
.page-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--primary-dark);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--primary-dark);
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.section-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-desc,
.page-desc {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: var(--leading-loose);
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-soft);
}

/* ================================================
   버튼
   ================================================ */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-soft);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.btn-white {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-white:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* ================================================
   헤더 & 네비게이션
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--ease), border-color var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--primary-dark);
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c59b74, #8a6240);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition: transform var(--ease), box-shadow var(--ease);
}

.logo:hover .logo-badge {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: var(--shadow-lg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background var(--ease), color var(--ease);
  position: relative;
}

.nav a:hover,
.nav a.active {
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  color: var(--primary-dark);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), transform var(--ease);
  flex-shrink: 0;
}

.theme-btn:hover {
  background: var(--border);
  transform: rotate(20deg) scale(1.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}

.nav-toggle:hover { background: var(--border); }

/* ================================================
   히어로 (index.html)
   ================================================ */
.hero { padding: 80px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: var(--leading-loose);
  max-width: 640px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.hero-points span:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.hero-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-warm) 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.hero-image {
  border-radius: var(--radius-md);
  min-height: 340px;
  background:
    linear-gradient(rgba(72,52,37,0.12), rgba(72,52,37,0.12)),
    url("https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&w=1200&q=80")
    center/cover no-repeat;
}

.hero-card-info {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.info-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.info-item:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }

.info-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.info-value {
  display: block;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.96rem;
  line-height: 1.4;
}

/* ================================================
   카드
   ================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.card-thumb {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.card:hover .card-thumb { transform: scale(1.04); }

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  letter-spacing: 0.02em;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.38;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: var(--leading-loose);
  margin-bottom: 18px;
  flex: 1;
}

.card-meta {
  font-size: 0.87rem;
  color: var(--muted);
  font-weight: 700;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

/* ================================================
   소프트 박스 & 체크리스트
   ================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.soft-box {
  background: var(--surface-soft);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.soft-box:hover { border-color: var(--border); box-shadow: var(--shadow); }

.check-list { margin-top: 18px; }

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 13px;
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.65;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);
  font-weight: 900;
}

/* ================================================
   영상
   ================================================ */
.video-wrap {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-soft);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================================================
   CTA 배너
   ================================================ */
.cta-banner {
  background: linear-gradient(135deg, #7a5535 0%, #a27f53 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.cta-banner h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-banner p { color: rgba(255,255,255,0.88); font-size: 1.03rem; line-height: var(--leading-loose); }

.cta-box {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.cta-box strong { display: block; font-size: 1.05rem; font-weight: 900; margin-bottom: 10px; }

/* ================================================
   페이지 히어로 (공통)
   ================================================ */
.page-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.page-hero .page-desc {
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 0;
}

/* ================================================
   필터 탭 & 레시피 카드 (recipes.html)
   ================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.filter-btn:hover { border-color: var(--primary-light); color: var(--primary-dark); transform: translateY(-1px); }

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.recipe-card.hidden { display: none; }

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

.recipe-card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ================================================
   소개 페이지 (about.html)
   ================================================ */
.brand-card {
  background: linear-gradient(135deg, #7a5535 0%, #a27f53 100%);
  border-radius: var(--radius-xl);
  padding: 52px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
  box-shadow: var(--shadow-lg);
}

.brand-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.brand-card p { color: rgba(255,255,255,0.88); font-size: 1.05rem; line-height: var(--leading-loose); }

.brand-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-item {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  transition: background var(--ease);
}

.stat-item:hover { background: rgba(255,255,255,0.18); }
.stat-num { display: block; font-size: 2.1rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 5px; }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.78); font-weight: 700; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.value-card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border); }

.value-icon { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.value-title { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 10px; }
.value-text { color: var(--muted); font-size: 0.95rem; line-height: var(--leading-loose); }

.timeline { margin-top: 28px; }

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-date { font-weight: 900; color: var(--primary); font-size: 0.95rem; padding-top: 3px; letter-spacing: 0.02em; }
.timeline-content h4 { font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 7px; letter-spacing: -0.01em; }
.timeline-content p { color: var(--muted); font-size: 0.95rem; line-height: var(--leading-loose); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

/* ================================================
   추천 재료 (recommend.html)
   ================================================ */
.tip-banner {
  background: linear-gradient(135deg, #7a5535 0%, #a27f53 100%);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 64px;
  box-shadow: var(--shadow-lg);
}

.tip-banner h3 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 900; margin-bottom: 10px; letter-spacing: -0.01em; }
.tip-banner p { color: rgba(255,255,255,0.88); font-size: 1rem; line-height: var(--leading-loose); }

.section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }

.section-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1.5px solid var(--border-soft);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.item-card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border); }

.item-top { display: flex; align-items: flex-start; gap: 14px; }
.item-emoji { font-size: 1.9rem; flex-shrink: 0; }
.item-name { font-size: 1.03rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; letter-spacing: -0.01em; }

.item-tag {
  display: inline-block;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  letter-spacing: 0.02em;
}

.item-desc { color: var(--muted); font-size: 0.92rem; line-height: var(--leading-loose); }

.item-tip {
  background: var(--surface-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 11px 15px;
  font-size: 0.87rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.item-tip strong { color: var(--primary-dark); font-weight: 800; }

.divider { border: none; border-top: 1px solid var(--border-soft); margin: 0 0 64px; }

/* ================================================
   문의 폼 (contact.html)
   ================================================ */
.form-section { padding: 0 0 80px; }

.form-wrap {
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 24px; }

label {
  display: block;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 9px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

label span { color: #e05c4b; margin-left: 2px; }
[data-theme="dark"] label span { color: #ff7f70; }

input, select, textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: var(--leading-normal);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
  outline: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(138, 98, 64, 0.14);
  background: var(--surface);
}

input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.7; }
textarea { resize: vertical; min-height: 148px; }

.submit-btn {
  width: 100%;
  min-height: 58px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  margin-top: 10px;
}

.submit-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.success-msg { display: none; text-align: center; padding: 36px 20px; }
.success-msg .icon { font-size: 3.2rem; margin-bottom: 18px; }
.success-msg h3 { font-size: 1.6rem; color: var(--primary-dark); font-weight: 900; margin-bottom: 10px; }
.success-msg p { color: var(--muted); line-height: var(--leading-loose); }

.info-grid {
  max-width: 640px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.info-box {
  background: var(--surface-soft);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.info-box:hover { border-color: var(--border); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.info-box .icon { font-size: 1.7rem; margin-bottom: 10px; }
.info-box strong { display: block; color: var(--primary-dark); font-size: 0.92rem; font-weight: 800; margin-bottom: 5px; }
.info-box span { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

/* ================================================
   푸터
   ================================================ */
.site-footer {
  padding: 44px 0 64px;
  border-top: 1px solid var(--border-soft);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand { color: var(--muted); line-height: var(--leading-loose); }
.footer-copy { color: var(--muted); font-size: 0.9rem; }

.footer-title {
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { color: var(--muted); font-weight: 700; font-size: 0.92rem; transition: color var(--ease); }
.footer-links a:hover { color: var(--primary-dark); }

/* ================================================
   맨 위로 버튼
   ================================================ */
.top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1100;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.top-btn:hover { background: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.top-btn.show { display: inline-flex; }

/* ================================================
   CTA 공통
   ================================================ */
.cta-wrap {
  background: var(--surface-soft);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-wrap h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-wrap p { color: var(--muted); line-height: var(--leading-loose); margin-bottom: 28px; }

.section-block { margin-bottom: 64px; }

/* ================================================
   반응형
   ================================================ */
@media (max-width: 980px) {
  .hero-grid, .intro-grid, .cta-banner, .footer-grid,
  .grid-3, .recipe-grid, .values-grid, .brand-card, .two-col {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 56px; }
  .hero-card-info, .brand-stats { grid-template-columns: 1fr 1fr; }
  .tip-banner { grid-template-columns: 1fr; }
  .brand-card { padding: 36px 28px; gap: 28px; }
  .cta-banner { padding: 36px 28px; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    padding: 14px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; border-radius: var(--radius-sm); }
  .nav a.active::after { display: none; }

  .section { padding: 60px 0; }
  .hero-title { font-size: 2.1rem; }
  .hero-card-info { grid-template-columns: 1fr; }
  .cta-banner, .cta-wrap, .form-wrap, .tip-banner { padding: 28px 20px; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) { .recipe-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .item-grid { grid-template-columns: 1fr; } }

@media (max-width: 480px) {
  .container { width: min(100% - 24px, var(--max-width)); }
  .btn { width: 100%; }
  .btn-group { flex-direction: column; }
  .hero-points span { width: 100%; justify-content: center; }
  .card-body, .soft-box { padding: 20px; }
  .timeline-item { grid-template-columns: 64px 1fr; gap: 14px; }
}

/* ================================================
   Disqus 댓글
   ================================================ */
.disqus-section {
  padding: 64px 0 0;
  border-top: 1px solid var(--border-soft);
  margin-top: 80px;
}

.disqus-section .disqus-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.disqus-section .disqus-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1.5px solid var(--border-soft);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.disqus-section .disqus-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
  margin: 0;
}

.disqus-section .disqus-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 3px 0 0;
}

#disqus_thread {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 200px;
  box-shadow: var(--shadow-sm);
}

.disqus-noscript {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.disqus-noscript a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .disqus-section { padding: 48px 0 0; margin-top: 60px; }
  #disqus_thread { padding: 20px; }
}

/* ── 레시피 상세 페이지 ── */
.recipe-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 20px;
  justify-content: center;
}
.recipe-meta-bar span {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 500;
}

.recipe-detail-section {
  padding: 60px 0 80px;
}

.recipe-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.section-label-lg {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.ingredient-group {
  margin-bottom: 20px;
}
.ingredient-group h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ingredient-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}
.ingredient-list li:last-child { border-bottom: none; }
.ing-name { color: var(--text); font-weight: 500; }
.ing-amount { color: var(--primary); font-weight: 700; }

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 2px;
}
.step-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.step-item p {
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .recipe-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .recipe-meta-bar {
    gap: 8px 12px;
  }
  .recipe-meta-bar span {
    font-size: 0.85rem;
    padding: 5px 12px;
  }
}

/* ── 쿠팡파트너스 제휴 링크 섹션 ── */
.affiliate-section {
  background: var(--surface-warm);
  border-top: 1.5px solid var(--border-soft);
  border-bottom: 1.5px solid var(--border-soft);
  padding: 56px 0;
  margin-top: 0;
}
.affiliate-header {
  text-align: center;
  margin-bottom: 32px;
}
.affiliate-header h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.affiliate-notice {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-block;
  padding: 6px 14px;
  line-height: 1.5;
}
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}
.affiliate-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
}
.affiliate-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.aff-emoji {
  font-size: 1.8rem;
  line-height: 1;
}
.aff-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.aff-tag {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  background: var(--surface-soft);
  border-radius: 6px;
  padding: 3px 8px;
}
.affiliate-placeholder-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .affiliate-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .affiliate-item {
    padding: 14px 8px;
  }
  .aff-emoji { font-size: 1.5rem; }
  .aff-name { font-size: 0.82rem; }
}
