/* fidem.dev 공용 토큰 + 목록 화면 */

:root {
  --bg: #0f1115;
  --surface: #181b22;
  --surface-2: #222630;
  --line: #2d323e;
  --text: #f4f2ec;
  --soft: #d6d4cd;
  --muted: #979cab;
  --accent: #ffd84d;
  --on-accent: #17130a;
  --key: #5fd4c2;
  --value: #ff8f70;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic",
    system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
    "Noto Sans Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* --- 목록 화면 --- */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

.page-head { margin: 56px 0 32px; }

.page-head .eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.page-head h1 {
  margin: 0;
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--soft);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.list a {
  display: grid;
  grid-template-columns: 2.4em 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.list .num {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--muted);
}

.list b {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.list small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

.list a::after {
  content: "→";
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.list a:hover::after,
.list a:focus-visible::after {
  color: var(--accent);
  transform: translateX(4px);
}

.list a:hover .num,
.list a:focus-visible .num { color: var(--accent); }

.list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.page-foot {
  margin-top: 40px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* 근호처럼 한글 글꼴에서 폭이 어색한 기호 */
.sym { font-family: var(--mono); }
