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

/* ── 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.1rem;
  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;
  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;
  flex: 1;
  justify-content: flex-end;
  margin-right: 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;
  flex-shrink: 0;
  margin-left: auto;
}

.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.15rem;
  color: var(--muted);
  line-height: var(--leading-loose);
  max-width: 640px;
}

/* 브랜드 철학 인용구 */
.brand-quote {
  margin-top: 24px;
  padding: 16px 20px 16px 22px;
  border-left: 3px solid var(--primary);
  background: var(--surface-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.65;
}

.brand-quote em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

.brand-quote strong {
  color: var(--primary);
}

.brand-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.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;
  will-change: transform;
  transform: translateZ(0);
}

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

.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: 1rem;
  color: var(--muted);
  line-height: var(--leading-loose);
  margin-bottom: 18px;
  flex: 1;
}

.card-meta {
  font-size: 0.9rem;
  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: 1rem;
  line-height: 1.7;
}

.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: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease),
              opacity 0.25s ease, visibility 0.25s ease;
}

.top-btn:hover { background: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.top-btn.show { opacity: 1; visibility: visible; pointer-events: auto; }

/* ================================================
   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: unset;
    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;
    margin-right: 0;
  }

  .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; }
}

/* ── AI 빵 분석 페이지 ── */
.ai-section { padding: 48px 0 80px; }

/* 모드 탭 */
.mode-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 0 auto 36px;
  background: var(--surface-soft);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 5px;
  max-width: 360px;
}
.mode-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.mode-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.mode-tab:hover:not(.active) { color: var(--text); }

/* 레이아웃 */
.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.ai-input-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 웹캠 */
.webcam-frame {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
}
#webcam-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#webcam-container canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.webcam-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 12px;
  color: var(--muted);
  padding: 20px;
  text-align: center;
}
.webcam-placeholder .cam-icon { font-size: 3rem; opacity: 0.5; }
.webcam-placeholder p { font-size: 0.88rem; line-height: 1.5; margin: 0; }
.webcam-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--primary);
  border-style: solid;
  opacity: 0.6;
}
.webcam-corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.webcam-corner.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }
.webcam-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; border-radius: 0 0 0 3px; }
.webcam-corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }

/* 드래그 앤 드롭 업로드 */
.drop-zone {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  border: 2.5px dashed var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--surface-warm);
}
.drop-zone.drag-over { border-style: solid; }
.drop-zone #fileInput {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-size: 0; /* hide file name on some browsers */
}
.drop-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  pointer-events: none;
}
.drop-prompt .drop-icon { font-size: 3rem; }
.drop-prompt p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.6; margin: 0; }
.drop-prompt .drop-hint { font-size: 0.78rem; color: var(--muted); }
.upload-preview {
  position: absolute;
  inset: 0;
  display: none;
}
.upload-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 2px);
}

/* 공통 버튼 */
.ai-start-btn {
  width: min(320px, 100%);
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.ai-start-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.ai-start-btn:disabled { background: var(--muted); cursor: not-allowed; transform: none; }
.ai-secondary-btn {
  width: min(320px, 100%);
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  cursor: pointer;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-soft);
  transition: background 0.2s;
  font-family: inherit;
}
.ai-secondary-btn:hover { background: var(--surface-soft); }

/* 상태 */
.ai-status {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.ai-status.running { color: var(--accent); }
.ai-pulse {
  flex-shrink: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: ai-pulse 1.2s ease-in-out infinite;
}
@keyframes ai-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

/* 결과 패널 */
.result-panel { display: flex; flex-direction: column; gap: 20px; }
.result-top-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.result-waiting { color: var(--muted); font-size: 0.93rem; line-height: 1.7; }
.result-waiting .wait-icon { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.result-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.result-name { font-size: 1.6rem; font-weight: 900; color: var(--primary); line-height: 1.2; }
.result-conf { font-size: 2.2rem; font-weight: 900; color: var(--text); }

.result-bars-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.result-bars-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
#label-container { display: flex; flex-direction: column; gap: 10px; }
.pred-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 10px;
}
.pred-label { font-size: 0.88rem; font-weight: 600; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pred-row.pred-top .pred-label { color: var(--primary); font-weight: 800; }
.pred-bar-wrap { height: 10px; background: var(--surface-soft); border-radius: 100px; overflow: hidden; }
.pred-bar { height: 100%; background: var(--border); border-radius: 100px; transition: width 0.35s ease; }
.pred-row.pred-top .pred-bar { background: var(--primary); }
.pred-pct { font-size: 0.82rem; font-weight: 700; color: var(--muted); width: 36px; text-align: right; }
.pred-row.pred-top .pred-pct { color: var(--primary); }

/* 가이드 */
.ai-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.ai-guide-card {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
}
.ai-guide-card .guide-num {
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.ai-guide-card p { font-size: 0.85rem; color: var(--text-soft); line-height: 1.5; margin: 0; }

/* 모바일 */
@media (max-width: 860px) {
  .ai-layout { grid-template-columns: 1fr; }
  .ai-guide-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .ai-guide-grid { grid-template-columns: 1fr; }
  .mode-tab { font-size: 0.82rem; padding: 9px 12px; }
}

/* ── 레시피 상세 페이지 ── */
.recipe-hero-photo {
  width: 100%;
  height: clamp(220px, 40vw, 420px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.recipe-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.recipe-hero-photo:hover img { transform: scale(1.02); }
.recipe-photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(30, 20, 10, 0.58);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.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; }
}

/* ================================================
   접근성 — 건너뛰기 링크
   ================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ================================================
   모바일 메뉴 백드롭
   ================================================ */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 998;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.nav-backdrop.show { display: block; }

/* ================================================
   레시피 재료 사이드바 — 데스크톱 sticky
   ================================================ */
@media (min-width: 769px) {
  .recipe-ingredients {
    position: sticky;
    top: 96px;
  }
}

/* ================================================
   누락 유틸리티 클래스
   ================================================ */
.section-text {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: var(--leading-loose);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* ================================================
   폼 검증 오류 상태
   ================================================ */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #e05c4b;
  box-shadow: 0 0 0 3px rgba(224, 92, 75, 0.12);
}
[data-theme="dark"] .form-group.has-error input,
[data-theme="dark"] .form-group.has-error select,
[data-theme="dark"] .form-group.has-error textarea {
  border-color: #ff7f70;
}
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.84rem;
  color: #e05c4b;
  font-weight: 700;
}
[data-theme="dark"] .field-error { color: #ff7f70; }
.form-group.has-error .field-error { display: block; }

/* ================================================
   Disqus 빈 박스 폴백
   ================================================ */
#disqus_thread:empty::before {
  content: "댓글을 불러오는 중입니다…";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 160px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ================================================
   videos.html 인라인 스타일 이관
   ================================================ */
.videos-section { padding: 0 0 80px; }
.cat-block { margin-bottom: 64px; }
.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-soft);
}
.cat-title-wrap { display: flex; align-items: center; gap: 14px; }
.cat-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;
}
.cat-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
  margin: 0;
}
.cat-count {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}
.cat-more {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.cat-more:hover {
  background: var(--surface-soft);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.video-card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  text-decoration: none;
  color: inherit;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}
.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
  overflow: hidden;
}
.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .thumb-wrap img { transform: scale(1.05); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
  background: rgba(0,0,0,0.25);
}
.play-btn::after {
  content: '▶';
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--primary-dark);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.video-card:hover .play-btn { opacity: 1; }
.view-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.01em;
}
.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-badge.gold   { background: #c9a84c; }
.rank-badge.silver { background: #8a9bb5; }
.rank-badge.bronze { background: #a0714f; }
.video-info {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.video-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.video-views {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.top-banner {
  background: linear-gradient(135deg, #7a5535 0%, #a27f53 100%);
  border-radius: var(--radius-xl);
  padding: 36px 44px;
  color: #fff;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}
.top-banner h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 900; margin-bottom: 8px; letter-spacing: -0.02em; }
.top-banner p { color: rgba(255,255,255,0.88); margin: 0; font-size: 0.97rem; }
.top-video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 28px;
}

@media (max-width: 1100px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .top-video-grid { grid-template-columns: repeat(3, 1fr); }
  .top-banner { padding: 28px; }
}
@media (max-width: 560px)  {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .top-video-grid { grid-template-columns: repeat(2, 1fr); }
  .top-banner { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}

/* 홈 인기영상 그리드 */
.home-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.home-video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.home-video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.home-thumb-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.home-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-video-title { font-size: 0.875rem; font-weight: 600; padding: 10px 12px; line-height: 1.4; margin: 0; }
@media (max-width: 640px) { .home-video-grid { grid-template-columns: 1fr; } }

/* 전문가 추천 포인트 */
.expert-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.expert-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.expert-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.expert-text {
  font-size: 0.855rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 640px) { .expert-bar { grid-template-columns: 1fr; } }

.expert-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin: 20px 0 6px;
  letter-spacing: 0.02em;
}

/* 홈 인기영상 5열 그리드 */
.home-video-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .home-video-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .home-video-grid--5 { grid-template-columns: repeat(2, 1fr); } }

/* 히어로 신뢰 지표 (전문가 권고: 사회적 증거) */
.hero-stats {
  display: flex;
  gap: 20px;
  margin: 20px 0 16px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat-num sup {
  font-size: 0.75rem;
  font-weight: 700;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── 쿠키 동의 배너 ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--border);
  box-shadow: 0 -4px 20px rgba(88,67,46,0.12);
  z-index: 9999;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
  min-width: 260px;
}
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-banner-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}
.cookie-btn-accept:hover { background: var(--primary-dark); }
.cookie-btn-decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font);
}
.cookie-btn-decline:hover { background: var(--surface-soft); }
@media (max-width: 640px) {
  .cookie-banner { padding: 14px 16px; }
  .cookie-banner p { font-size: 0.82rem; }
}

/* ── 레시피 저자 정보 ── */
.recipe-author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.recipe-author-bar .author-icon { font-size: 1.3rem; }
.recipe-author-bar strong { color: var(--text); }
.recipe-author-bar time { color: var(--muted); }

/* ── 면책조항 배너 ── */
.health-disclaimer {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #78570a;
  margin: 16px 0 0;
  line-height: 1.6;
}
[data-theme="dark"] .health-disclaimer {
  background: #2c2208;
  border-color: #c17f24;
  color: #e8c97a;
}

/* ── Language Toggle Button ── */
.lang-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Recipe Share Bar ── */
.recipe-share-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.share-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
@media print {
  .site-header, .top-btn, .cookie-banner, .recipe-share-bar, .disqus-section, footer { display: none !important; }
  body { background: #fff; color: #000; }
  .recipe-layout { display: block; }
}
