/* ============================================================
   m4ch77 — writing (글 목록 · 글 본문)

   theme.css 의 토큰만 씁니다. 새 색을 만들지 않습니다.
   styles.css 의 .shell · .section-kicker · .section-title ·
   .section-tagline · .tag 를 그대로 물려 씁니다.

   .section 을 쓰지 않는 이유가 두 가지 있습니다.
     1. .section 은 min-height: 100svh 입니다. 글은 길이가 내용에
        따라 정해져야 합니다.
     2. .section 은 스크롤 정렬(main.js 모듈 17)의 대상입니다.
        읽는 중에 화면이 다음 블록으로 끌려가면 글을 읽을 수 없습니다.
   ============================================================ */

/* ══ 1. 공통 블록 ════════════════════════════════════════ */
.wr-head,
.wr-body,
.wr-article {
  position: relative;
  padding-block: clamp(2.4rem, 6vh, 4rem);
}
.wr-head { padding-top: clamp(5.5rem, 14vh, 8rem); }
.wr-body { padding-bottom: clamp(4rem, 10vh, 6.5rem); }
.wr-article {
  padding-top: clamp(5.5rem, 14vh, 8rem);
  padding-bottom: clamp(4rem, 10vh, 6.5rem);
}

/* 목록이 걸러지며 길이가 바뀔 때 화면이 밀리지 않게 (design.md 6절) */
.wr-body { align-content: start; }

/* ══ 2. 목록 머리 ════════════════════════════════════════ */
.wr-head .section-title { margin-bottom: 1rem; }

.wr-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.wr-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  white-space: nowrap;
}
.wr-count .wr-slash { color: var(--faint); margin: 0 0.15em; }
.wr-count-unit { color: var(--faint); margin-left: 0.35em; }

/* 태그 칩 · 정렬 — 활성만 강조색입니다 */
.wr-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.wr-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* 정렬 — 조회수 Worker 가 응답할 때만 보입니다 (그전엔 hidden) */
.wr-sort { display: flex; gap: 0.4rem; }
.wr-sort[hidden] { display: none; }
/* 태그 줄과 구분되게 앞에 얇은 선을 둡니다 */
@media (min-width: 40rem) {
  .wr-sort { padding-left: 1.25rem; border-left: 1px solid var(--line); }
}

/* 조회수 (글 본문 머리) */
.wr-views[hidden] { display: none; }
.wr-views-n { font-variant-numeric: tabular-nums; }

.wr-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.wr-chip:hover { color: var(--fg); border-color: var(--line2); }
.wr-chip.is-on {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ══ 3. 피드 목록 ════════════════════════════════════════
   카드 격자가 아니라 한 줄씩 쌓는 목록입니다. 제목과 날짜를 훑어
   내려가는 것이 글 목록에서 가장 빠릅니다. */
.wr-list { list-style: none; }

.wr-item + .wr-item { border-top: 1px solid var(--line); }
.wr-item[hidden] { display: none; }

.wr-hit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding: clamp(1.3rem, 3vw, 1.9rem) 0;
  text-decoration: none;
  color: inherit;
}

/* ── 평소에는 텍스트 목록, 올리면 카드 ──────────────────
   비교해 보고 이 결로 정했습니다. 가만히 있을 때는 구분선만 있는 조용한
   목록이고, 포인터를 올린 행만 카드로 떠오릅니다.

   좌우 패딩을 주고 그만큼 음수 마진으로 당기는 이유: 글자는 텍스트 목록과
   같은 선에 있어야 하고, 카드는 그보다 넓게 잡혀야 여백이 생깁니다.
   패딩이 없으면 테두리가 글자에 딱 붙어서 어색합니다(처음 지적하신 것).

   커서 프레임이 정확히 맞는 것도 이 덕분입니다. 프레임은 대상의 bounding
   box 와 radius 를 그대로 복사하므로, 맞을 형태가 있어야 맞습니다. */
.wr-item .wr-hit {
  --pad-x: clamp(1rem, 2vw, 1.4rem);
  padding-inline: var(--pad-x);
  margin-inline: calc(-1 * var(--pad-x));
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color var(--t-fast), background-color var(--t-fast),
              transform var(--t);
}
.wr-item .wr-hit:hover,
.wr-item .wr-hit:focus-visible {
  border-color: var(--line2);
  background: var(--card);
  transform: translateY(-3px);
}

.wr-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.wr-meta i { font-style: normal; opacity: 0.5; }
.wr-lang {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0.3rem;
  font-size: 0.6rem;
}

.wr-title {
  font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  word-break: keep-all;
  max-width: 34ch;
  /* 밑줄은 호버에서만 — 목록 전체에 밑줄이 있으면 시끄럽습니다 */
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--t-fast), color var(--t-fast);
}
.wr-hit:hover .wr-title,
.wr-hit:focus-visible .wr-title {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.wr-excerpt {
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 62ch;
  word-break: keep-all;
}

.wr-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.3rem; }

.wr-empty {
  color: var(--faint);
  font-size: 0.9rem;
  padding: 2.5rem 0;
}

/* 넓은 화면에서는 날짜를 왼쪽 여백으로 뺍니다 */
@media (min-width: 56rem) {
  .wr-hit {
    grid-template-columns: 8.5rem 1fr;
    grid-template-areas:
      "meta title"
      "meta excerpt"
      "meta tags";
    gap: 0.4rem 2rem;
    align-items: baseline;
  }
  /* 메타를 세 줄 전체에 걸칩니다. 첫 줄에만 두면 날짜·분·조회수 세 줄이
     제목 줄의 높이를 밀어 올려서 제목과 본문 사이가 벌어집니다. */
  .wr-meta {
    grid-area: meta;
    align-self: start;
    padding-top: 0.35rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .wr-meta i { display: none; }
  .wr-title { grid-area: title; }
  .wr-excerpt { grid-area: excerpt; }
  .wr-tags { grid-area: tags; }
}

/* ══ 4. 글 본문 — 머리 ═══════════════════════════════════ */
.wr-back {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}
.wr-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--dim);
  text-decoration: none;
}
.wr-back a:hover { color: var(--accent); }
.wr-back svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wr-hero {
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
  padding-bottom: clamp(1.6rem, 3.5vw, 2.2rem);
  border-bottom: 1px solid var(--line);
}
.wr-hero .wr-meta { margin-bottom: 1rem; }

.wr-h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.wr-lede {
  margin-top: 1.1rem;
  color: var(--dim);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  line-height: 1.75;
  word-break: keep-all;
}

.wr-hero-tags { margin-top: 1.2rem; }

/* ══ 5. 본문 + 목차 배치 ═════════════════════════════════ */
.wr-grid { display: block; }

@media (min-width: 64rem) {
  .wr-grid {
    display: grid;
    grid-template-columns: minmax(0, 42rem) 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

/* 목차 — 넓은 화면에서만 옆에 붙습니다 */
.wr-toc {
  display: none;
  position: sticky;
  /* 헤더에 가리지 않게 */
  top: 5.5rem;
  font-size: 0.8rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
}
@media (min-width: 64rem) { .wr-toc { display: block; order: 2; } }

.wr-toc-key {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.8rem;
}
.wr-toc ol { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.wr-toc li { position: relative; }

/* 하위 항목 — 패딩으로 계층을 보이고, 앞에 짧은 선 하나만 둡니다.
   세로 안내선과 서체 구분까지 넣었더니 목차가 본문보다 시끄러웠습니다.
   표시는 하나로 충분합니다.

   글자("-")로 넣지 않은 이유: 스크린리더가 항목마다 읽어 버립니다.
   1px 도형이라 소리로는 안 나가고 눈에만 보입니다. */
.wr-toc li.lv3 { padding-left: 0.95rem; }
.wr-toc li.lv4 { padding-left: 1.9rem; }
.wr-toc li.lv3 > a::before,
.wr-toc li.lv4 > a::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1px;
  margin-right: 0.45em;
  vertical-align: middle;
  background: var(--line2);
}
/* 3단은 같은 표시를 더 짧고 흐리게 — 단계는 패딩이 말해 줍니다. */
.wr-toc li.lv4 > a::before { width: 0.32em; opacity: 0.6; }

.wr-toc a {
  display: block;
  color: var(--dim);
  text-decoration: none;
  line-height: 1.45;
  word-break: keep-all;
  transition: color var(--t-fast);
}
.wr-toc a:hover { color: var(--accent); }

/* ── 지금 읽는 절 (스크롤 스파이) ────────────────────────
   main.js 20 번 모듈이 aria-current 를 옮겨 붙입니다.
   aria-current 라서 스크린리더에도 "현재 항목"으로 전달됩니다.

   표시는 **색만** 바꿉니다. 왼쪽에 막대까지 그렸더니 세로선이 겹쳐
   복잡했습니다. 색 하나로도 어디를 읽는지 충분히 보입니다. */
.wr-toc a[aria-current="true"] { color: var(--accent); }

/* ══ 6. 본문 타이포 ══════════════════════════════════════ */
.wr-prose {
  min-width: 0; /* 격자 안에서 코드 블록이 칸을 밀어내지 않게 */
  max-width: 42rem;
  font-size: clamp(1rem, 0.98rem + 0.1vw, 1.05rem);
  line-height: 1.85;
  word-break: keep-all;
}

.wr-prose > * + * { margin-top: 1.15em; }

.wr-prose h2,
.wr-prose h3,
.wr-prose h4 {
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 600;
  scroll-margin-top: 5rem; /* 앵커로 뛰었을 때 헤더에 가리지 않게 */
}
.wr-prose h2 {
  margin-top: 2.6em;
  font-size: 1.5em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
}
.wr-prose h3 { margin-top: 2.1em; font-size: 1.2em; }
.wr-prose h4 { margin-top: 1.8em; font-size: 1.02em; color: var(--dim); }

/* 제목 옆 앵커 — 호버에서만 보입니다 */
.hd-anchor {
  margin-left: 0.4em;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--faint);
  text-decoration: none;
  opacity: 0;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.wr-prose :is(h2, h3, h4):hover .hd-anchor { opacity: 1; }
.hd-anchor:hover { color: var(--accent); }
.hd-anchor:focus-visible { opacity: 1; }

.wr-prose p { color: var(--fg); }

.wr-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--line2);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--t-fast);
}
.wr-prose a:hover { text-decoration-color: var(--accent); }

.wr-prose strong { font-weight: 600; }
.wr-prose em { font-style: normal; color: var(--dim); }

.wr-prose ul,
.wr-prose ol { padding-left: 1.4em; }
.wr-prose li + li { margin-top: 0.4em; }
.wr-prose li::marker { color: var(--faint); }
.wr-prose ul ul,
.wr-prose ol ol,
.wr-prose ul ol,
.wr-prose ol ul { margin-top: 0.4em; }

.wr-prose blockquote {
  padding-left: 1.1em;
  border-left: 2px solid var(--line2);
  color: var(--dim);
}

.wr-prose hr {
  margin-block: 2.6em;
  border: 0;
  border-top: 1px solid var(--line);
}

.wr-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* 인라인 코드 */
.wr-prose :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--fg);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 0.12em 0.36em;
  word-break: break-all;
}

/* ══ 7. 코드 블록 (Shiki) ════════════════════════════════
   Shiki 는 토큰마다 --shiki-light / --shiki-dark 두 값을 남깁니다.
   색만 빌려 쓰고 배경·테두리는 사이트 토큰으로 그립니다.
   (github-dark 의 배경을 그대로 쓰면 서피스가 세 단계가 됩니다) */
.wr-prose pre {
  margin-block: 1.6em;
  padding: 1.1rem 1.2rem;
  background: var(--card) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  /* x 만 auto 로 두면 y 도 auto 로 계산돼서, 코드블록 위에서 휠을 굴릴 때
     페이지가 아니라 블록이 먼저 스크롤되며 걸립니다. */
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  font-size: 0.84rem;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}
.wr-prose pre code {
  font-family: var(--font-mono);
  display: block;
  width: fit-content;
  min-width: 100%;
}
.wr-prose pre .line { display: block; min-height: 1.7em; }

/* 테마에 따라 어느 변수를 볼지 정합니다 */
[data-theme="dark"] .shiki,
[data-theme="dark"] .shiki span { color: var(--shiki-dark, var(--fg)); }
[data-theme="light"] .shiki,
[data-theme="light"] .shiki span { color: var(--shiki-light, var(--fg)); }

/* 강조 없이 나온 블록(모르는 언어) */
.shiki-plain code { color: var(--dim); }

/* ══ 8. 표 ═══════════════════════════════════════════════ */
.tbl-wrap {
  margin-block: 1.6em;
  overflow-x: auto;
  /* 표 위에서도 휠이 걸리지 않게 (위 pre 와 같은 이유) */
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.wr-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.wr-prose th,
.wr-prose td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  word-break: keep-all;
}
.wr-prose thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.wr-prose tbody tr:last-child td { border-bottom: 0; }

/* ══ 9. 수식 (KaTeX) ═════════════════════════════════════
   빌드 시점에 만들어진 마크업입니다. 브라우저에서 KaTeX JS 가
   돌지 않습니다. 긴 수식만 가로로 스크롤되게 둡니다. */
.katex { font-size: 1.04em; }
.katex-display {
  margin-block: 1.6em;
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 0.35rem;
}
.katex-block { margin-block: 1.6em; }
/* 인라인 수식이 줄 높이를 밀어 올리지 않게 */
.wr-prose p .katex { line-height: normal; }

/* ══ 10. 각주 ════════════════════════════════════════════ */
.wr-prose .footnotes {
  margin-top: 3em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--dim);
}
.wr-prose .footnotes-sep { display: none; }
.wr-prose .footnote-item p { color: var(--dim); }
.wr-prose .footnote-backref {
  text-decoration: none;
  margin-left: 0.3em;
}
.wr-prose sup.footnote-ref a {
  font-family: var(--font-mono);
  font-size: 0.75em;
  text-decoration: none;
  padding: 0 0.15em;
}

/* ══ 11. 이전 · 다음 글 ══════════════════════════════════ */
.wr-adj {
  display: grid;
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: clamp(1.6rem, 3.5vw, 2.2rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 44rem) {
  .wr-adj { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
}

.wr-adj-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast), transform var(--t);
}
.wr-adj-item:hover {
  border-color: var(--line2);
  transform: translateY(-4px);
}
/* 오른쪽 칸(최신 글)은 오른쪽으로 정렬해서 두 칸이 바깥을 향하게 둡니다 */
.wr-adj-item.is-newer { text-align: right; }

.wr-adj-key {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.wr-adj-item.is-newer .wr-adj-key { justify-content: flex-end; }
.wr-adj-key svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 화살표가 살짝 움직여 방향을 한 번 더 알려 줍니다 */
.wr-adj-item svg { transition: transform var(--t); }
.wr-adj-item.is-older:hover svg { transform: translateX(-3px); }
.wr-adj-item.is-newer:hover svg { transform: translateX(3px); }
.wr-adj-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  word-break: keep-all;
}
.wr-adj-item:hover .wr-adj-title { color: var(--accent); }

/* ══ 12. 모션을 줄이는 설정 ══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .wr-adj-item:hover { transform: none; }
}

/* ══ 13. Notion 에서 온 것들 ══════════════════════════════
   Notion 고유 블록은 build/notion.mjs 가 아래 마크업으로 바꿔 둡니다. */

/* 콜아웃 (<aside> → .nt-callout) */
.nt-callout {
  display: flex;
  gap: 0.85rem;
  margin-block: 1.6em;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.nt-callout-icon {
  flex: none;
  font-size: 1.05rem;
  line-height: 1.7;
}
.nt-callout-body { min-width: 0; }
/* 콜아웃 안에서는 위아래 여백을 줄여 상자가 부풀지 않게 합니다. */
.nt-callout-body > :first-child { margin-top: 0; }
.nt-callout-body > :last-child { margin-bottom: 0; }
.nt-callout-body > * + * { margin-top: 0.7em; }

/* 토글 (<details>) */
.wr-prose details {
  margin-block: 1.6em;
  padding: 0.85rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.wr-prose summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.wr-prose summary::-webkit-details-marker { display: none; }
.wr-prose summary::before {
  content: "";
  flex: none;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(-45deg);
  transition: transform var(--t-fast);
}
.wr-prose details[open] > summary::before { transform: rotate(45deg); }
.wr-prose details[open] > summary { margin-bottom: 0.8em; }

/* 밑줄 — 링크와 헷갈리지 않게 색을 빌려 쓰지 않습니다. */
.wr-prose u {
  text-decoration: underline;
  text-decoration-color: var(--line2);
  text-underline-offset: 3px;
}

/* 글자색 · 배경색
   Notion 에서 고른 색은 UI 색이 아니라 **글의 내용**입니다. 그래서
   theme.css 의 강조색 규칙(design.md 2절) 바깥에 둡니다. 대신 두 테마
   모두에서 읽히도록 채도를 낮춰 잡았습니다. */
[data-theme="dark"] {
  --nt-gray: #9aa0aa;  --nt-brown: #b08968;  --nt-orange: #e0a267;
  --nt-yellow: #d9bf5e; --nt-green: #7fc08a;  --nt-blue: #7aa2ff;
  --nt-purple: #b08ae0; --nt-pink: #e08ab0;   --nt-red: #ff8080;
  --nt-bg-alpha: 0.16;
}
[data-theme="light"] {
  --nt-gray: #6b6b6b;  --nt-brown: #7a5230;  --nt-orange: #9a5b18;
  --nt-yellow: #7a6410; --nt-green: #2f6b3c;  --nt-blue: #2a52cc;
  --nt-purple: #6b3a9a; --nt-pink: #9a3a63;   --nt-red: #b02525;
  --nt-bg-alpha: 0.13;
}

.nt-gray { color: var(--nt-gray); }
.nt-brown { color: var(--nt-brown); }
.nt-orange { color: var(--nt-orange); }
.nt-yellow { color: var(--nt-yellow); }
.nt-green { color: var(--nt-green); }
.nt-blue { color: var(--nt-blue); }
.nt-purple { color: var(--nt-purple); }
.nt-pink { color: var(--nt-pink); }
.nt-red { color: var(--nt-red); }

[class^="nt-bg-"] {
  border-radius: var(--radius);
  padding: 0.04em 0.28em;
}
.nt-bg-gray { background: color-mix(in srgb, var(--nt-gray) calc(var(--nt-bg-alpha) * 100%), transparent); }
.nt-bg-brown { background: color-mix(in srgb, var(--nt-brown) calc(var(--nt-bg-alpha) * 100%), transparent); }
.nt-bg-orange { background: color-mix(in srgb, var(--nt-orange) calc(var(--nt-bg-alpha) * 100%), transparent); }
.nt-bg-yellow { background: color-mix(in srgb, var(--nt-yellow) calc(var(--nt-bg-alpha) * 100%), transparent); }
.nt-bg-green { background: color-mix(in srgb, var(--nt-green) calc(var(--nt-bg-alpha) * 100%), transparent); }
.nt-bg-blue { background: color-mix(in srgb, var(--nt-blue) calc(var(--nt-bg-alpha) * 100%), transparent); }
.nt-bg-purple { background: color-mix(in srgb, var(--nt-purple) calc(var(--nt-bg-alpha) * 100%), transparent); }
.nt-bg-pink { background: color-mix(in srgb, var(--nt-pink) calc(var(--nt-bg-alpha) * 100%), transparent); }
.nt-bg-red { background: color-mix(in srgb, var(--nt-red) calc(var(--nt-bg-alpha) * 100%), transparent); }
