/* Badeum — Warm-Trust palette + Korean type system */

:root {
  --color-ivory: #FAF7F2;
  --color-signal: #FF6A2C;
  --color-charcoal: #1A1A1A;
  --color-trust: #1E3A5F;
  --color-hanji: #E8DFD3;
  --color-sage: #B8C5A6;

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', sans-serif;
  --font-num: 'IBM Plex Sans KR', 'Pretendard Variable', sans-serif;
  --font-serif: 'Nanum Myeongjo', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-ivory);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-feature-settings: "ss06" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Korean letter-spacing rules — applied globally */
body { letter-spacing: -0.01em; }
h1, h2, h3, h4, .headline { letter-spacing: -0.02em; }
.tabular { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--font-serif); }

button { font-family: inherit; cursor: pointer; }

/* Section background variants */
.bg-ivory { background: var(--color-ivory); }
.bg-hanji { background: var(--color-hanji); }
.bg-trust { background: var(--color-trust); color: var(--color-ivory); }
.bg-charcoal { background: var(--color-charcoal); color: var(--color-ivory); }

/* Reveal animation default */
@keyframes badeum-reveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-on-view {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-on-view.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--color-signal);
  outline-offset: 2px;
}

/* Custom scrollbar (transcript) */
.thin-scroll::-webkit-scrollbar { width: 6px; }
.thin-scroll::-webkit-scrollbar-thumb { background: rgba(26,26,26,0.15); border-radius: 999px; }

/* Subtle striped placeholder for imagery */
.img-placeholder {
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(26,26,26,0.04) 0 8px,
      rgba(26,26,26,0.0) 8px 16px
    );
  background-color: var(--color-hanji);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(26,26,26,0.4);
  text-transform: uppercase;
  border: 1px solid rgba(26,26,26,0.06);
}

/* Korean caret-blink for typing indicator */
@keyframes typing-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40%           { opacity: 1;   transform: translateY(-2px); }
}
.typing-dot {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--color-charcoal); margin: 0 1px;
  animation: typing-dot 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.30s; }

/* Idle waveform pulse */
@keyframes idle-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* Thumb ping on selection */
@keyframes thumbPing {
  0%   { transform: translateX(-50%) scale(1);    }
  50%  { transform: translateX(-50%) scale(1.12); }
  100% { transform: translateX(-50%) scale(1);    }
}

/* Horizon glow pulse (live demo screen) */
@keyframes horizonPulse {
  0%, 100% { opacity: 1;    }
  50%      { opacity: 0.78; }
}
