@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.css");

:root {
  --ink: #101119;
  --ink-soft: #4A4E5C;
  --ink-faint: #8A8F9E;
  --paper: #F4F5F7;
  --line: #DEE0E6;
  --accent: #5B4BE0;
  --live: #E5484D;
  --measure: 34rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}

/* ── 상단 ─────────────────────────────── */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0;
}

.wordmark {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.langs { display: flex; gap: 0.5rem; }

.lang {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}

.lang.is-current { color: var(--accent); }

/* ── 글 ───────────────────────────────── */
main { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem 5rem; }

.post { padding-top: 3.5rem; }

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.post h1 {
  margin: 0;
  font-size: clamp(2rem, 6.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.standfirst {
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.body { margin-top: 2.5rem; }

.body h2 {
  margin: 3.25rem 0 1rem;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.body p { margin: 0 0 1.25rem; }

.body strong { font-weight: 700; }

.body ul { margin: 0 0 1.25rem; padding-left: 1.1rem; }

.body li { margin-bottom: 0.5rem; }

.body a { color: var(--accent); text-underline-offset: 0.2em; }

/* ── 시그니처: 30초 되감기 띠 ──────────── */
.rewind {
  margin: 2.5rem 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.rewind-track {
  position: relative;
  height: 46px;
  display: flex;
  align-items: stretch;
  border-radius: 2px;
  overflow: hidden;
}

.rewind-lost {
  flex: 3;
  background: repeating-linear-gradient(
    -45deg,
    rgba(91, 75, 224, 0.10) 0 6px,
    rgba(91, 75, 224, 0.04) 6px 12px
  );
}

.rewind-kept { flex: 4; background: rgba(91, 75, 224, 0.85); }

.rewind-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 42.857%;
  width: 2px;
  background: var(--live);
}

.rewind-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.rewind-labels .is-live { color: var(--live); }

.rewind-caption {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ── 인용 ─────────────────────────────── */
.pull {
  margin: 2.5rem 0;
  padding-left: 1.125rem;
  border-left: 2px solid var(--accent);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

/* ── 자주 묻는 질문 ───────────────────── */
.qa { margin-top: 1.75rem; border-top: 1px solid var(--line); }

.qa-item { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }

.qa-q { margin: 0 0 0.5rem; font-weight: 700; }

.qa-a { margin: 0; color: var(--ink-soft); }

/* ── 앱 카드 ──────────────────────────── */
.endcard {
  margin-top: 4rem;
  padding: 1.75rem 1.5rem;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
}

.endcard-label {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.endcard-name {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.endcard-desc {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.endcard-cta {
  display: inline-block;
  padding: 0.6875rem 1.25rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
}

/* ── 목록 ─────────────────────────────── */
.index-head { padding-top: 3.5rem; }

.index-head h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.list { margin-top: 2.5rem; border-top: 1px solid var(--line); }

.list-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }

.list-item h2 { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }

.list-item h2 a { color: var(--ink); text-decoration: none; }

.list-item h2 a:hover { color: var(--accent); }

.list-item p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }

/* ── 하단 ─────────────────────────────── */
.colophon {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.colophon p { margin: 0; }

a:focus-visible, .endcard-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── 표 ───────────────────────────────── */
.body table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.body thead th {
  padding: 0.625rem 0.75rem 0.625rem 0;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.body tbody td {
  padding: 0.75rem 0.75rem 0.75rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.body tbody tr td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.body th:last-child,
.body td:last-child { padding-right: 0; }

@media (max-width: 480px) {
  .body table { font-size: 0.875rem; }
  .body thead th,
  .body tbody td { padding-right: 0.5rem; }
  .body tbody tr td:first-child { white-space: normal; }
}
