/* Curox 발표 테마 — 토큰과 공통 컴포넌트
 * 색: Cerion-Web src/lib/styles/experience.css 라이트 테마
 *   :root                         → bg #f5f4f1 / surface #fff / text #1a1918 / ink teal #1f5f5a
 *   [data-theme-color='indigo']   → #5e5ce6 (1차 결과물 구간)
 * 구성: 팀 Canva 시안 — 큰 굵은 제목, 알약 라벨, 둥근 카드, 코드 목차
 * 글꼴: Noto Sans KR (assets/fonts, 오프라인)
 */

@font-face { font-family: 'Noto Sans KR'; font-weight: 400; font-display: block;
  src: url(../assets/fonts/noto-sans-kr-korean-400.woff2) format('woff2'); unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+AC00-D7AF, U+FF00-FFEF; }
@font-face { font-family: 'Noto Sans KR'; font-weight: 500; font-display: block;
  src: url(../assets/fonts/noto-sans-kr-korean-500.woff2) format('woff2'); unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+AC00-D7AF, U+FF00-FFEF; }
@font-face { font-family: 'Noto Sans KR'; font-weight: 700; font-display: block;
  src: url(../assets/fonts/noto-sans-kr-korean-700.woff2) format('woff2'); unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+AC00-D7AF, U+FF00-FFEF; }
@font-face { font-family: 'Noto Sans KR'; font-weight: 800; font-display: block;
  src: url(../assets/fonts/noto-sans-kr-korean-800.woff2) format('woff2'); unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+AC00-D7AF, U+FF00-FFEF; }
@font-face { font-family: 'Noto Sans KR'; font-weight: 400; font-display: block;
  src: url(../assets/fonts/noto-sans-kr-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2200-22FF; }
@font-face { font-family: 'Noto Sans KR'; font-weight: 500; font-display: block;
  src: url(../assets/fonts/noto-sans-kr-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2200-22FF; }
@font-face { font-family: 'Noto Sans KR'; font-weight: 700; font-display: block;
  src: url(../assets/fonts/noto-sans-kr-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2200-22FF; }
@font-face { font-family: 'Noto Sans KR'; font-weight: 800; font-display: block;
  src: url(../assets/fonts/noto-sans-kr-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2200-22FF; }

/* 포인트 컬러가 슬라이드 사이에서 부드럽게 바뀌도록 등록한다 */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #5e5ce6; }

:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --surface-2: #efede8;
  --border: #dedbd4;
  --border-light: #ece9e3;
  --text: #1a1918;
  --text-dim: #625f5a;
  --text-faint: #8a867f;

  --accent-v1: #5e5ce6;   /* 인디고 — 1차 결과물 */
  --accent-v2: #1f5f5a;   /* 잉크 틸 — 현재 Curox 기본 */
  --ink: #1f5f5a;
  --ink-deep: #164a46;
  --ink-mint: #a4e0d2;
  --accent: var(--accent-v1);
  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 30%, transparent);

  --radius-card: 28px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(40, 32, 24, 0.09), 0 1px 3px rgba(34, 31, 27, 0.05);
  --shadow-lg: 0 22px 56px rgba(40, 32, 24, 0.15);

  --font: 'Noto Sans KR', system-ui, sans-serif;
  --mono: 'Noto Sans KR', ui-monospace, monospace;

  transition: --accent 900ms cubic-bezier(.4, 0, .2, 1);
}
:root[data-era='v2'] { --accent: var(--accent-v2); }

html, body, .reveal-viewport {
  background:
    radial-gradient(1200px 700px at 100% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 60%),
    var(--bg);
}

.reveal {
  font-family: var(--font);
  font-size: 26px;
  color: var(--text);
  letter-spacing: -0.015em;
  word-break: keep-all;
}
.reveal .slides { text-align: left; }
.reveal .slides section { height: 100%; padding: 52px 72px 56px; box-sizing: border-box; }
.reveal .slides section > .stack { height: 100%; display: flex; flex-direction: column; gap: 26px; }

.reveal h1, .reveal h2, .reveal h3 { margin: 0; color: var(--text); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; text-transform: none; }
.reveal h1 { font-size: 132px; }
.reveal h2 { font-size: 64px; }
.reveal h3 { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; }
.reveal p { margin: 0; line-height: 1.55; }
.reveal ul, .reveal ol { margin: 0; }
.reveal strong { font-weight: 700; color: var(--text); }
.reveal .accent { color: var(--accent); }
.reveal .dim { color: var(--text-dim); }
.reveal .small { font-size: 20px; }
.reveal .tiny { font-size: 16px; color: var(--text-faint); }

/* 머리: 로고줄 · 알약 라벨 · 명사 제목 · -습니다 한 줄 */
.head { display: flex; flex-direction: column; gap: 10px; }
.head .kicker { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.head .lead { font-size: 26px; color: var(--text-dim); font-weight: 500; }
.brand { position: absolute; top: 40px; right: 64px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; margin: 0; }

/* pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff;
  font-size: 18px; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.pill.soft { background: var(--accent-soft); color: var(--accent); }
.pill.ghost { background: var(--surface); border: 1.5px solid var(--border); color: var(--text-dim); }

/* 카드 */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 30px 32px;
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.card.fill-accent { background: var(--accent); border-color: transparent; color: #fff; }
.card.fill-accent h3, .card.fill-accent p, .card.fill-accent strong { color: #fff; }
.card.tint { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-color: var(--accent-line); }
.card h3 { font-size: 27px; }
.card p { color: var(--text-dim); font-size: 21px; line-height: 1.5; }

.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.row { display: flex; gap: 20px; align-items: center; }
.fill { flex: 1; min-height: 0; }
.center { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-bottom: 30px; }

/* 화면 캡처 프레임 — 파일이 없으면 자리표시 */
.frame {
  position: relative; margin: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; min-width: 0;
}
.frame img, .frame video { display: block; width: 100%; height: auto; margin: 0; max-width: none; max-height: none; }
.frame.crop img { height: 100%; object-fit: cover; object-position: top left; }
.frame.phone { border-radius: 40px; border: 8px solid #2b2c30; aspect-ratio: 9 / 19.5; }
.frame.phone img, .frame.phone video { height: 100%; object-fit: cover; }
.frame.missing img, .frame.missing video { display: none; }
.frame.missing {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(135deg, var(--surface) 0 18px, var(--surface-2) 18px 36px);
}
.frame.phone.missing { aspect-ratio: 9 / 19.5; }
.frame.missing::after {
  content: '📷 ' attr(data-label);
  margin: auto; padding: 10px 18px; max-width: 80%;
  border-radius: 12px; background: var(--surface); border: 1px dashed var(--accent-line);
  color: var(--text-dim); font-size: 17px; text-align: center; line-height: 1.4;
}

/* 근거 표기 */
.cite { position: absolute; left: 72px; bottom: 22px; font-size: 15px; color: var(--text-faint); }

/* 확인 필요 표시 — 발표 전 모두 없어져야 한다 (?todo=0 으로 숨김 확인) */
.todo {
  display: inline-block; padding: 3px 10px; border-radius: 8px;
  border: 1.5px dashed #c9822e; color: #a8651c; background: rgba(224, 163, 92, 0.1);
  font-size: 16px; font-weight: 500; line-height: 1.4;
}
html.hide-todo .todo { visibility: hidden; }

/* 슬라이드 번호 / 진행 바 */
.reveal .slide-number { background: transparent; color: var(--text-faint); font-family: var(--font); font-size: 15px; right: 26px; bottom: 20px; }
.reveal .progress { color: var(--accent); height: 4px; }

.reveal .slides section .fragment.fade-up { transform: translate(0, 22px); }
.reveal .slides section .fragment.fade-up.visible { transform: none; }

@media print { :root { transition: none; } }
