/* 우가북스 문법송 — 교재 QR 전용 페이지. 빌드 없음, 이 파일 하나로 전체 스타일. */
@font-face {
  font-family: 'Jalnan2';
  src: url('/fonts/Jalnan2.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:       #16161a;
  --ink-soft:  #55555f;
  --ink-faint: #8b8b96;
  --line:      #e6e6ea;
  --bg:        #ffffff;
  --bg-soft:   #f6f6f8;
  --brand:     #ff4d2d;
  --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
  --font-display: 'Jalnan2', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 16px 32px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

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

.logo { width: 108px; height: auto; border-radius: 8px; }

.title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 5.4vw, 28px);
  line-height: 1.3;
}
.title span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
}

/* 영상 — 16:9 유지, 화면이 낮으면 높이에 맞춰 줄어든다 */
.player {
  width: min(100%, 900px);
  aspect-ratio: 16 / 9;
  max-height: 70dvh;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
}
.player iframe { width: 100%; height: 100%; border: 0; }

.pending {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--bg-soft);
}
.pending strong { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.pending p { margin: 0; font-size: 14px; }

.help { margin: 0; font-size: 13px; color: var(--ink-faint); text-align: center; }
.help a { color: var(--brand); font-weight: 600; text-decoration: underline; }

/* 목록 (루트 페이지) */
.lead { margin: 0; font-size: 15px; color: var(--ink-soft); text-align: center; }
.list {
  width: min(100%, 620px);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  background: var(--bg);
}
.list a[aria-disabled='true'] { color: var(--ink-faint); background: var(--bg-soft); pointer-events: none; }
.list .badge { font-size: 12px; font-weight: 500; color: var(--ink-faint); }
.list a:not([aria-disabled='true']) .badge { color: var(--brand); }
.list--wide { grid-template-columns: 1fr; }

@media (hover: hover) {
  .list a:not([aria-disabled='true']):hover { border-color: var(--brand); }
}
