@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --bg: #0e1210;
  --bg-soft: #141a16;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --glass: rgba(20, 26, 22, 0.78);
  --text: #e8ede9;
  --muted: #8fa394;
  --accent: #8fbc8f;
  --accent-warm: #d4a574;
  --accent-dim: rgba(143, 188, 143, 0.14);
  --accent-glow: rgba(143, 188, 143, 0.32);
  --line: rgba(255, 255, 255, 0.08);
  --serif: "Georgia", "Noto Serif KR", serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", system-ui, sans-serif;
  --sidebar-w: 240px;
  --radius: 18px;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #0e1210;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.glow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(14, 18, 16, 0.15) 0%, rgba(14, 18, 16, 0.88) 72%),
    radial-gradient(ellipse 70% 45% at 80% 0%, rgba(143, 188, 143, 0.1), transparent),
    radial-gradient(ellipse 50% 35% at 10% 90%, rgba(212, 165, 116, 0.06), transparent);
}

.app {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 2rem 1.25rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.side-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.side-nav a:hover,
.side-nav a[aria-current="page"] {
  background: var(--accent-dim);
  color: var(--accent);
}

.side-nav .nav-icon {
  font-size: 1rem;
  opacity: 0.85;
}

.side-meta {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}

.content-inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.85rem 1rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
}

.mobile-bar .brand-mark {
  font-size: 1.2rem;
}

.menu-btn {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.splash {
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 3rem;
}

.splash-inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.splash-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.splash h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.splash-lead {
  margin: 0 0 2rem;
  max-width: 34em;
  font-size: 1.05rem;
  color: var(--muted);
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: none;
  cursor: pointer;
}

.btn-glow {
  background: var(--accent);
  color: #0e1210;
  box-shadow: 0 0 28px var(--accent-glow);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(143, 188, 143, 0.3);
}

.section-block {
  padding: 3.5rem 0;
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.bento-card:hover {
  background: var(--surface-hover);
  border-color: rgba(143, 188, 143, 0.2);
  transform: translateY(-2px);
}

.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-12 { grid-column: span 12; }

.bento-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.bento-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.bento-card h3 a {
  color: inherit;
  text-decoration: none;
}

.bento-card h3 a:hover {
  color: var(--accent);
}

.bento-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.bento-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  color: var(--accent-warm);
  letter-spacing: 0.05em;
}

.story-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.story-item {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), transparent);
}

.story-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.story-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

.protein-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(143, 188, 143, 0.25);
}

.protein-badge .amount {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.protein-badge .unit {
  font-size: 0.85rem;
  color: var(--muted);
}

.quote-band {
  margin: 2rem 0;
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-dim), transparent);
  text-align: center;
}

.quote-band blockquote {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.5;
}

.quote-band cite {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
}

.page-hero .lead {
  margin: 0;
  max-width: 38em;
  color: var(--muted);
  font-size: 1.02rem;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article {
  padding: 2.5rem 0 4rem;
}

.article h2 {
  margin: 2.5rem 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
}

.article h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
}

.article p,
.article li {
  color: #c5d0c8;
}

.article ul,
.article ol {
  padding-left: 1.25rem;
}

.article li {
  margin-bottom: 0.45rem;
}

.article a {
  color: var(--accent);
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-list .step-n {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1;
}

.callout {
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
}

.callout.warn {
  border-left-color: var(--accent-warm);
  background: rgba(212, 165, 116, 0.1);
}

.callout strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent);
}

.callout.warn strong {
  color: var(--accent-warm);
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tip-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.tip-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.tip-card p,
.tip-card li {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.tip-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-stack details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-stack summary {
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-stack summary::-webkit-details-marker {
  display: none;
}

.faq-stack .faq-body {
  padding: 0 1.3rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.food-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.food-table th,
.food-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  text-align: left;
}

.food-table th {
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
}

.food-table td {
  color: var(--muted);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.site-footer .content-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-text p {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 28em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .bento-card.span-8,
  .bento-card.span-6,
  .bento-card.span-4 {
    grid-column: span 12;
  }

  .story-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 40;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .main-wrap {
    margin-left: 0;
  }

  .mobile-bar {
    display: flex;
  }

  .splash {
    min-height: auto;
    padding: 2.5rem 0 2rem;
  }

  .splash-inner,
  .content-inner {
    width: min(100% - 2rem, var(--max));
  }

  .story-row {
    grid-template-columns: 1fr;
  }

  .step-list li {
    grid-template-columns: 2.5rem 1fr;
  }

  .food-table {
    font-size: 0.82rem;
  }
}
