/* ============================================================
   CREPOPS landing — design tokens
   Soft, natural palette: warm off-white ground, warm-gray ink.
   ============================================================ */
:root {
  --bg: #f3f0ea;            /* page ground (warm off-white) */
  --bg-soft: #ebe7df;       /* a shade deeper, for bands */
  --surface: #ffffff;       /* cards */
  --ink: #3d3733;           /* headings */
  --ink-2: #6b625a;         /* body text */
  --ink-3: #9a918a;         /* captions / eyebrows */
  --line: #e2dcd3;          /* hairlines */
  --lemon: #f4c54b;
  --grape: #a7d847;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo',
    'Noto Sans KR', 'Malgun Gothic', sans-serif;

  --header-h: 64px;
  --container: 1200px;
  --gutter: 20px;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(61, 55, 51, 0.04), 0 18px 40px -24px rgba(61, 55, 51, 0.25);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --header-h: 72px;
    --gutter: 32px;
  }
}

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}

/* ============================================================
   Shared type & controls
   ============================================================ */
.eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ink-3);
}

.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.button:active {
  transform: translateY(1px);
}
.button--primary {
  background: var(--ink);
  color: #fff;
}
.button--primary:hover {
  background: #2b2623;
}
.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button--ghost:hover {
  border-color: var(--ink);
}
.button--ghost.is-added {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.icon-button:hover {
  background: rgba(61, 55, 51, 0.06);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(243, 240, 234, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  height: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: calc(var(--gutter) - 10px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--ink);
}
.wordmark__ko {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.wordmark__en {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink-3);
  margin-top: 4px;
}

.icon-button--cart {
  justify-self: end;
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Off-canvas menu */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(61, 55, 51, 0.32);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.menu-scrim.is-open {
  opacity: 1;
}

.site-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  width: min(86vw, 360px);
  padding: 16px 24px 32px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s var(--ease);
  box-shadow: 24px 0 60px -30px rgba(61, 55, 51, 0.35);
}
.site-menu.is-open {
  transform: translateX(0);
}
.site-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) - 16px);
}
.site-menu__list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}
.site-menu__list a {
  display: block;
  padding: 16px 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}
.site-menu__list a:hover {
  color: var(--ink-3);
}
.site-menu__foot {
  margin-top: auto;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: #efe6da; /* close to the image's wall tone — no flash before load */
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mobile: zoom in on the bottle + lemon on the right side of the shot. */
  object-position: 71% 50%;
}

/* Mobile: stacked — copy on the warm ground, then a portrait crop of the
   bottle + lemon. Overlaying the copy on a portrait crop put it on the jar. */
.hero__media {
  aspect-ratio: 4 / 5;
  max-height: 72svh;
  min-height: 420px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 40px var(--gutter) 28px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(30px, 8.4vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero__brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero__lead {
  font-size: 15px;
  color: var(--ink-2);
}
.hero .button {
  margin-top: 8px;
}

/* Tablet: landscape, text on the left, image still slightly biased right. */
@media (min-width: 768px) {
  .hero__media {
    aspect-ratio: 16 / 10;
    max-height: none;
    min-height: 0;
  }
  .hero__media img {
    object-position: 62% 50%;
  }
  .hero__content {
    position: absolute;
    inset: 0;
    justify-content: center;
    gap: 18px;
    padding: 0 0 0 clamp(32px, 7vw, 120px);
    max-width: 52%;
  }
  .hero .button {
    margin-top: 6px;
  }
  .hero__title {
    font-size: clamp(38px, 4.6vw, 64px);
    gap: 8px;
  }
  .hero__lead {
    font-size: 17px;
  }
}

/* Desktop: the full wide shot (1916 × 821). Copy sits in the empty left half. */
@media (min-width: 1100px) {
  .hero__media {
    aspect-ratio: 1916 / 821;
    max-height: 78vh;
  }
  .hero__media img {
    object-position: 50% 50%;
  }
  .hero__content {
    max-width: 46%;
    gap: 22px;
  }
  .hero__title {
    font-size: clamp(48px, 3.9vw, 68px);
  }
  .hero__lead {
    font-size: 18px;
  }
}

/* ============================================================
   Statement block — "상큼한 크레아틴 츄어블 하루 3알"
   ============================================================ */
.statement {
  padding: 72px 0 64px;
  text-align: center;
}
@media (min-width: 768px) {
  .statement {
    padding: 112px 0 96px;
  }
}
.statement__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.statement__title {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.statement__text {
  max-width: 34em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}
@media (min-width: 768px) {
  .statement__text {
    font-size: 17px;
  }
}
.br-mobile {
  display: inline;
}
@media (min-width: 560px) {
  .br-mobile {
    display: none;
  }
}

.facts {
  margin-top: 32px;
  width: 100%;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  padding: 22px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.fact + .fact {
  border-left: 1px solid var(--line);
}
.fact__value {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.fact__value small {
  margin-left: 2px;
  font-size: 0.42em;
  font-weight: 600;
  color: var(--ink-2);
}
.fact__label {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
@media (min-width: 768px) {
  .facts {
    margin-top: 44px;
  }
  .fact {
    padding: 28px 16px;
    gap: 10px;
  }
  .fact__label {
    font-size: 13px;
  }
}

/* ============================================================
   Products
   ============================================================ */
.products {
  padding: 8px 0 96px;
}
@media (min-width: 768px) {
  .products {
    padding: 16px 0 140px;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 36px;
}
@media (min-width: 768px) {
  .section-head {
    margin-bottom: 56px;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .product-grid {
    gap: 40px;
  }
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
@media (hover: hover) {
  .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(61, 55, 51, 0.05), 0 28px 50px -26px rgba(61, 55, 51, 0.32);
  }
}

.product__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #fff;
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) {
  .product:hover .product__media img {
    transform: scale(1.03);
  }
}

.product__body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 1024px) {
  .product__body {
    padding: 28px 30px 32px;
  }
}

.product__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.product__tag::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lemon);
}
.product--grape .product__tag::before {
  background: var(--grape);
}

.product__name {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.product__name em {
  font-style: normal;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .product__name {
    font-size: 22px;
  }
}

.product__meta {
  font-size: 14px;
  color: var(--ink-3);
}

.product__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.product__actions .button {
  flex: 1 1 0;
  min-height: 46px;
  padding-inline: 16px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  background: var(--bg-soft);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.site-footer__tagline {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}
.site-footer__links a {
  color: var(--ink-2);
}
.site-footer__links a:hover {
  color: var(--ink);
}
.site-footer__copy {
  font-size: 12px;
  color: var(--ink-3);
}
@media (min-width: 768px) {
  .site-footer {
    padding: 56px 0;
  }
  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    row-gap: 32px;
  }
  .site-footer__copy {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
