:root {
  --color-bg: #f8fbf4;
  --color-surface: #ffffff;
  --color-text: #193b1f;
  --color-muted: #5d715f;
  --color-primary: #4a7f19;
  --color-accent: #f3b449;
  --color-coral: #e77f68;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --container: 1180px;
  --space-section: 88px;
  --space-card: 22px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 42px rgba(56, 112, 36, 0.12);
  --ratio-hero: 16 / 9;
  --ratio-card: 4 / 5;
  --ratio-product: 4 / 5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(28px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e5ecd8;
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 10px 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.nav a.is-active,
.nav a:hover {
  color: var(--color-primary);
}

.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  width: min(520px, calc(100% - 40px));
  margin-left: max(24px, calc((100vw - var(--container)) / 2));
  padding: 40px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.08;
}

h1 { font-size: clamp(2.8rem, 5rem, 5rem); }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.1rem; }
p { line-height: 1.7; color: var(--color-muted); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.button.secondary {
  background: white;
  color: var(--color-text);
  border: 1px solid #bdccb7;
}

.section {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: var(--space-section) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid #e4eadb;
  box-shadow: var(--shadow-card);
}

.product-card img {
  width: 100%;
  aspect-ratio: var(--ratio-product);
  object-fit: cover;
}

.product-card h2,
.product-card h3,
.product-card p {
  padding-left: var(--space-card);
  padding-right: var(--space-card);
}

.product-card h2,
.product-card h3 {
  padding-top: 20px;
}

.product-card p {
  padding-bottom: 22px;
  margin-bottom: 0;
}

.ingredient-band {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ingredient-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ingredient-panel {
  position: relative;
  width: min(720px, calc(100% - 40px));
  padding: 34px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  backdrop-filter: blur(14px);
}

.story-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: white;
}

.story-strip img {
  width: 100%;
  min-height: 520px;
  height: 100%;
  object-fit: cover;
}

.story-strip > div {
  padding: 54px;
}

.page-hero {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 76px 0 12px;
}

.page-hero h1 {
  max-width: 760px;
}

.ingredient-cover {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 0;
}

.ingredient-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ingredient-cover div {
  position: relative;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding-bottom: 64px;
}

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

.ingredient-grid div {
  padding: 26px;
  background: white;
  border: 1px solid #e4eadb;
}

.ingredient-grid img {
  grid-column: span 3;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.story-page {
  min-height: calc(100vh - 76px);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(28px, calc((100vw - var(--container)) / 2));
  background: #edf5e8;
  color: var(--color-muted);
}

.footer strong {
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    border: 1px solid #cbd8bf;
    background: white;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    background: white;
    padding: 14px;
    border: 1px solid #dce7d2;
    box-shadow: var(--shadow-card);
  }

  .nav.is-open { display: flex; }
  .hero { min-height: 620px; }
  .hero-copy { margin: 0 auto; }
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
  .product-grid,
  .story-strip,
  .ingredient-grid {
    grid-template-columns: 1fr;
  }
  .ingredient-grid img { grid-column: auto; }
  .story-strip > div { padding: 30px 20px; }
  .footer { flex-direction: column; }
}
