/* Eat DimSum 點心 — base styles */

:root {
  --transition-mood: 1.2s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-feature-settings: "kern", "liga", "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-mood), color var(--transition-mood);
}

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

/* ─── MOODS ─────────────────────────────────────────────── */

/* Mood 1 — Modern Oriental (먹/금) */
body[data-mood="oriental"] {
  --bg: #f5efe2;
  --bg-deep: #1a1611;
  --bg-section: #ede4d1;
  --fg: #1a1611;
  --fg-muted: #5a4d36;
  --fg-soft: #8a7a5a;
  --accent: #b88a3e;          /* gold */
  --accent-deep: #8c6420;
  --ink: #1a1611;
  --rule: rgba(26, 22, 17, 0.18);
  --card: #faf6ec;

  --font-display: "Cormorant Garamond", "Noto Serif KR", serif;
  --font-serif:   "Cormorant Garamond", "Noto Serif KR", serif;
  --font-body:    "Noto Serif KR", "Cormorant Garamond", serif;
  --font-han:     "Noto Serif TC", "Noto Serif KR", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

/* Mood 2 — Warm & Cozy (우드/크림) */
body[data-mood="cozy"] {
  --bg: #f4ebde;
  --bg-deep: #2d1f12;
  --bg-section: #e9dcc6;
  --fg: #3a2818;
  --fg-muted: #6b4f36;
  --fg-soft: #9a7f5e;
  --accent: #c2502b;          /* terracotta */
  --accent-deep: #8a3517;
  --ink: #3a2818;
  --rule: rgba(58, 40, 24, 0.16);
  --card: #fbf4e6;

  --font-display: "Cormorant Garamond", "Noto Serif KR", serif;
  --font-serif:   "Cormorant Garamond", "Noto Serif KR", serif;
  --font-body:    "Noto Serif KR", "Cormorant Garamond", serif;
  --font-han:     "Noto Serif TC", "Noto Serif KR", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

/* Mood 3 — Editorial Luxe (블랙/아이보리) */
body[data-mood="luxe"] {
  --bg: #f6f3ec;
  --bg-deep: #0a0908;
  --bg-section: #ebe6da;
  --fg: #0a0908;
  --fg-muted: #3a3733;
  --fg-soft: #807a70;
  --accent: #0a0908;
  --accent-deep: #000;
  --ink: #0a0908;
  --rule: rgba(10, 9, 8, 0.14);
  --card: #fcfaf3;

  --font-display: "Bodoni Moda", "Noto Serif KR", serif;
  --font-serif:   "Cormorant Garamond", "Noto Serif KR", serif;
  --font-body:    "Noto Serif KR", "Cormorant Garamond", serif;
  --font-han:     "Noto Serif TC", "Noto Serif KR", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-soft);
  font-weight: 500;
}

.eyebrow-gold {
  color: var(--accent);
}

.han {
  font-family: var(--font-han);
  font-feature-settings: "palt";
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.015em;
}

.italic {
  font-style: italic;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */

.section {
  position: relative;
  padding: 140px 80px;
  transition: background var(--transition-mood), color var(--transition-mood);
}

.section--dark {
  background: var(--bg-deep);
  color: #f5efe2;
}

.section--dark .eyebrow { color: rgba(245, 239, 226, 0.6); }
.section--dark .rule { border-color: rgba(245, 239, 226, 0.18); }

.container {
  max-width: 1440px;
  margin: 0 auto;
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ─── REVEAL ANIMATIONS ─────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity calc(0.9s * var(--reveal-mult, 1)) cubic-bezier(.16, 1, .3, 1),
    transform calc(0.9s * var(--reveal-mult, 1)) cubic-bezier(.16, 1, .3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: calc(0.08s * var(--reveal-mult, 1)); }
.reveal-delay-2 { transition-delay: calc(0.16s * var(--reveal-mult, 1)); }
.reveal-delay-3 { transition-delay: calc(0.24s * var(--reveal-mult, 1)); }
.reveal-delay-4 { transition-delay: calc(0.32s * var(--reveal-mult, 1)); }
.reveal-delay-5 { transition-delay: calc(0.4s * var(--reveal-mult, 1)); }

/* ─── BUTTONS / LINKS ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}
.btn:hover { background: currentColor; }
.btn:hover > * { color: var(--bg); }
.btn .arrow { display: inline-block; transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ─── PLACEHOLDER (image) ───────────────────────────────── */

.img-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.32); }

/* ─── UTILITIES ─────────────────────────────────────────── */

.flex { display: flex; }
.col  { flex-direction: column; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.gap-s  { gap: 12px; }
.gap-m  { gap: 24px; }
.gap-l  { gap: 48px; }

.text-center { text-align: center; }
