:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --oat: #EEF3F8;
  --oat-deep: #DCE6F0;
  --olive: #1E3A5F;
  --olive-soft: rgba(30, 58, 95, 0.09);
  --coral: #3B7EA1;
  --coral-hover: #2D6684;
  --coral-soft: rgba(59, 126, 161, 0.11);
  --ink: #172536;
  --muted: #5A6B7D;
  --border: #DCE5EE;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 12px 32px rgba(23, 37, 54, 0.07);
  --shadow-soft: 0 4px 16px rgba(23, 37, 54, 0.04);
  --serif: "Gowun Batang", "Noto Serif KR", Georgia, serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Version Switcher Strip (A / B / C 비교용) */
.version-bar {
  background: var(--oat);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.version-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.version-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.version-pill {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-weight: 500;
  transition: all 0.18s ease;
}

.version-pill:hover {
  border-color: var(--coral);
  color: var(--ink);
}

.version-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(59, 126, 161, 0.28);
}

.brand-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.header-nav a:hover {
  color: var(--coral);
}

.header-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s ease;
}

.header-cta:hover {
  background: #152B47;
}

/* Main 2-Column Layout */
.page-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 68%) minmax(0, 32%);
  gap: 36px;
  align-items: start;
}

.main-col {
  min-width: 0;
}

.sidebar-col {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Breadcrumb & Title Block */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.article-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article-lead {
  margin: 0 0 20px;
  font-size: 1rem;
  color: #334155;
  line-height: 1.78;
}

/* Spec 4 Chips */
.spec-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.spec-chip {
  background: var(--oat);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.spec-chip-label {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.spec-chip-val {
  display: block;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

/* Hero Image */
.hero-figure {
  margin: 0 0 32px;
}

.hero-img-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--oat);
  cursor: zoom-in;
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-img-box:hover img {
  transform: scale(1.02);
}

.hero-caption {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Content Sections */
.content-section {
  margin-bottom: 40px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--oat-deep);
  font-family: var(--serif);
  font-size: 1.38rem;
  color: var(--ink);
}

.section-tag {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--olive);
  background: var(--olive-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Mise en place box */
.prep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.prep-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.prep-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prep-tips {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.92rem;
}

.prep-tips li {
  margin-bottom: 8px;
}

/* Story Step Cards */
.step-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.step-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}

.step-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.step-photo:hover img {
  transform: scale(1.02);
}

.step-desc {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #334155;
}

.couple-tip {
  background: var(--oat);
  border-left: 3px solid var(--olive);
  padding: 11px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.86rem;
  color: #334155;
}

.couple-tip strong {
  color: var(--olive);
}

/* Coupang Partners 3-Column Kitchen Gear Block */
.gear-section {
  background: var(--oat);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
}

.gear-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.gear-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.ad-badge {
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
}

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

.gear-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.gear-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--olive);
  background: var(--olive-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.gear-card h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
  line-height: 1.4;
}

.gear-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.gear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--coral);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.18s ease;
}

.gear-btn:hover {
  background: var(--coral-hover);
}

.ftc-notice {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* FAQ & Storage */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.faq-q {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.faq-a {
  margin: 0;
  font-size: 0.9rem;
  color: #334155;
}

/* Related Recipes */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.related-cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coral);
  display: block;
  margin-bottom: 6px;
}

.related-card h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.4;
}

.related-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sticky Sidebar Widgets */
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.side-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink);
}

.side-sub {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.scale-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.scale-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--oat);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.scale-btn:hover {
  border-color: var(--coral);
}

.scale-btn.active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.ing-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ing-checklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.86rem;
  cursor: pointer;
  user-select: none;
}

.ing-checklist li:last-child {
  border-bottom: none;
}

.ing-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ing-box {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1.5px solid #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  flex-shrink: 0;
}

.ing-qty {
  font-weight: 700;
  color: var(--coral);
  white-space: nowrap;
}

.ing-checklist li.checked .ing-box {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.ing-checklist li.checked .ing-name {
  text-decoration: line-through;
  color: #94A3B8;
}

.ing-checklist li.checked .ing-qty {
  color: #94A3B8;
}

/* Sidebar Coupang Grocery Box */
.grocery-card {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--oat) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.grocery-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.grocery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.grocery-info strong {
  display: block;
  font-size: 0.86rem;
  color: var(--ink);
}

.grocery-info span {
  font-size: 0.75rem;
  color: var(--muted);
}

.grocery-link {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.grocery-link:hover {
  background: var(--coral);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--oat);
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28, 23, 20, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 880px;
  width: 100%;
  text-align: center;
}

.lightbox-inner img {
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 12px;
}

.lightbox-cap {
  margin-top: 12px;
  color: #EEF3F8;
  font-size: 0.9rem;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .page-container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 16px 56px;
  }

  .sidebar-col {
    position: static;
    order: -1;
  }

  .spec-chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .gear-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
