/* 토큰과 규칙은 Design.md를 따른다. 값을 바꿀 때는 Design.md를 먼저 고친다. */

:root {
  color-scheme: light;

  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #1F1E1B;
  --text: #3D3A35;
  --muted: #6E695F;
  --line: #E4E0D8;
  --accent: #3B5340;
  --accent-soft: #EEF1EC;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --fs-display: 32px;
  --fs-h1: 26px;
  --fs-h2: 20px;
  --fs-h3: 17px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-metric-label: 20px;
  --fs-metric: 16px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  --w-text: 720px;
  --w-wide: 1080px;
  --gutter: 16px;
  --r-card: 12px;
  --r-img: 8px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
    --fs-display: 48px;
    --fs-h1: 36px;
    --fs-h2: 24px;
    --fs-h3: 18px;
    --fs-body: 17px;
    --fs-metric-label: 25px;
    --fs-metric: 20px;
  }
}

/* ---------- 기본 ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.02em; }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
dl, dd, figure { margin: 0; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: calc(var(--w-wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow-page { max-width: calc(var(--w-text) + 2 * var(--gutter)); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: var(--sp-2) var(--sp-4); background: var(--ink); color: #fff; border-radius: var(--r-img); }
.skip:focus { left: var(--gutter); }

.eyebrow {
  margin: 0 0 var(--sp-3);
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 머리말 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); height: 60px; }
.brand { color: var(--ink); font-weight: 700; text-decoration: none; }
.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav-link { color: var(--text); font-size: var(--fs-small); text-decoration: none; transition: color .15s; }
.nav-link:hover { color: var(--accent); }
@media (max-width: 767px) {
  .nav-link { display: none; }
}

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--sp-5);
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-sm { height: 36px; padding: 0 var(--sp-4); }

/* ---------- 섹션 ---------- */

.section { padding: var(--sp-8) 0; border-top: 1px solid var(--line); }
@media (min-width: 1024px) {
  .section { padding: var(--sp-9) 0; }
}
.section-head { margin-bottom: var(--sp-6); max-width: var(--w-text); }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.4; }
.section-head p:not(.eyebrow) { margin-top: var(--sp-2); color: var(--muted); }

.prose ul, .prose ol { margin: 0; padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ul ul { list-style: circle; }
.prose li + li { margin-top: var(--sp-1); }
.prose li > ul { margin-top: var(--sp-1); }
.prose li::marker { color: var(--muted); }
.prose p + ul, .prose ul + p { margin-top: var(--sp-3); }

/* ---------- 첫 화면 ---------- */

.hero { padding: var(--sp-8) 0 var(--sp-7); }
@media (min-width: 1024px) {
  .hero { padding: var(--sp-9) 0 var(--sp-8); }
}
.display { font-size: var(--fs-display); font-weight: 700; line-height: 1.25; }
.hero .lead { max-width: var(--w-text); margin-top: var(--sp-5); color: var(--muted); }

.metrics { display: grid; margin-top: var(--sp-7); border-top: 1px solid var(--line); }
.metric { padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .metrics { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .metric { padding: var(--sp-5) var(--sp-5) var(--sp-5) 0; border-bottom: 0; }
  .metric + .metric { padding-left: var(--sp-5); border-left: 1px solid var(--line); }
}
/* 설명이 위·크게, 수치가 아래·작게 (설명 : 수치 = 1.25 : 1) */
.metric-label { color: var(--ink); font-size: var(--fs-metric-label); font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; }
.metric-value { margin-top: var(--sp-2); color: var(--muted); font-size: var(--fs-metric); font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.metric-value span { margin-left: 2px; color: var(--accent); }

/* ---------- 강점 ---------- */

.strengths { display: grid; gap: var(--sp-6); margin: 0; padding: 0; list-style: none; counter-reset: strength; }
@media (min-width: 768px) {
  .strengths { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}
.strength { padding-top: var(--sp-4); border-top: 2px solid var(--ink); counter-increment: strength; }
.strength::before { content: "0" counter(strength); display: block; margin-bottom: var(--sp-2); color: var(--accent); font-size: var(--fs-small); font-weight: 600; }
.strength h3 { margin-bottom: var(--sp-2); font-size: var(--fs-h3); line-height: 1.5; }

/* ---------- 프로젝트 카드 ---------- */

.cards { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s;
}
.card:hover { border-color: var(--accent); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg); border-bottom: 1px solid var(--line); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media.contain img { object-fit: contain; padding: var(--sp-4); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); }
.card-meta { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.card h3 { font-size: var(--fs-h3); line-height: 1.5; }
.card-summary { margin: 0; font-size: var(--fs-small); line-height: 1.7; }
.card-foot { display: grid; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-4); }
.card-metric { margin: 0; padding-top: var(--sp-3); border-top: 1px solid var(--line); color: var(--ink); font-size: var(--fs-small); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.tag { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-small); line-height: 1.6; }

/* ---------- 경력 여정 ---------- */

.journey { display: grid; gap: var(--sp-7); }
.stage { display: grid; gap: var(--sp-4); }
@media (min-width: 1024px) {
  .stage { grid-template-columns: 200px 1fr; gap: var(--sp-6); }
  .stage-label { position: sticky; top: 84px; align-self: start; }
}
.stage-num { margin: 0; color: var(--accent); font-size: var(--fs-small); font-weight: 600; }
.stage-name { margin: 0; color: var(--ink); font-size: var(--fs-h3); font-weight: 700; }
.stage-time { margin: 0; color: var(--muted); font-size: var(--fs-small); }

.stage-items { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.job { position: relative; padding: 0 0 var(--sp-6) var(--sp-5); }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}
.job.current::before { background: var(--bg); border: 2px solid var(--accent); }
.job-period { margin: 0; color: var(--muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.job h3 { margin: var(--sp-1) 0 var(--sp-2); font-size: var(--fs-h3); }
.job.brief h3 { margin-bottom: 0; }
.job-intro { color: var(--muted); }
.job-cols { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) {
  .job-cols { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
}
.job h4 { margin-bottom: var(--sp-1); color: var(--ink); font-size: var(--fs-small); font-weight: 600; }
.job .prose { font-size: var(--fs-small); line-height: 1.7; }
.badge { display: inline-block; margin-left: var(--sp-2); padding: 0 8px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 12px; line-height: 1.6; vertical-align: 1px; }

.job-projects { display: grid; gap: var(--sp-2); margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.job-projects a { font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
.job-projects a:hover { text-decoration: underline; }

.job-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-top: var(--sp-4); }
@media (min-width: 768px) {
  .job-gallery { grid-template-columns: repeat(6, 1fr); }
}
.job-gallery a { display: block; }
.job-gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-img); }

/* ---------- 역량 ---------- */

.cap-chips { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) {
  .cap-chips { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-5); }
}
.cap-group h3 { margin-bottom: var(--sp-3); color: var(--muted); font-size: var(--fs-small); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.chip { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: var(--fs-small); line-height: 1.6; }

.cap-details { margin-top: var(--sp-7); column-gap: var(--sp-5); }
@media (min-width: 1024px) {
  .cap-details { columns: 2; }
}
.cap-block { break-inside: avoid; margin-bottom: var(--sp-5); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.cap-block h3 { margin-bottom: var(--sp-3); font-size: var(--fs-h3); }
.cap-block .prose { font-size: var(--fs-small); line-height: 1.7; }
.cap-block .prose > ul > li + li { margin-top: var(--sp-3); }

/* ---------- 연락 ---------- */

.contact-email { color: var(--ink); font-size: var(--fs-h2); font-weight: 700; text-decoration: none; }
.contact-email:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.contact-note { margin-top: var(--sp-4); font-size: var(--fs-small); }

.site-footer { padding: var(--sp-6) 0; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); }

/* ---------- 프로젝트 상세 ---------- */

.project-hero { padding: var(--sp-7) 0 var(--sp-6); }
.back { display: inline-block; margin-bottom: var(--sp-5); color: var(--muted); font-size: var(--fs-small); text-decoration: none; }
.back:hover { color: var(--accent); }
.project-hero h1 { margin-bottom: var(--sp-4); font-size: var(--fs-h1); line-height: 1.3; }
.project-hero .lead { margin-bottom: var(--sp-5); color: var(--text); }

.cover { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-img); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.contain img { object-fit: contain; padding: var(--sp-5); }

.summary-box { display: grid; gap: var(--sp-5); margin: var(--sp-6) 0 var(--sp-2); padding: var(--sp-5); background: var(--accent-soft); border-radius: var(--r-card); }
@media (min-width: 768px) {
  .summary-box { grid-template-columns: 1fr 1.3fr; gap: var(--sp-6); }
}
.facts { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-4); align-content: start; font-size: var(--fs-small); }
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); font-weight: 500; }
.summary-title { margin-bottom: var(--sp-2); color: var(--muted); font-size: var(--fs-small); }
.results { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.results li { position: relative; padding-left: var(--sp-4); color: var(--ink); font-weight: 600; line-height: 1.6; }
.results li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.article h2, .gallery-title { margin: var(--sp-7) 0 var(--sp-4); font-size: var(--fs-h2); line-height: 1.4; }

.ps { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) {
  .ps { grid-template-columns: 1fr 1fr; }
}
.ps-box { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.ps-box h3 { margin-bottom: var(--sp-2); color: var(--muted); font-size: var(--fs-small); font-weight: 600; }
.ps-box.solution { border-color: var(--accent); }
.ps-box.solution h3 { color: var(--accent); }

/* 갤러리는 원본 비율 유지: 세로·가로 사진이 섞여도 잘리지 않게 2단으로 쌓는다 */
.gallery { column-gap: var(--sp-4); }
@media (min-width: 768px) {
  .gallery { columns: 2; }
}
.gallery figure { break-inside: avoid; margin-bottom: var(--sp-5); }
.gallery img { width: 100%; border-radius: var(--r-img); }
.gallery figcaption, .reviews figcaption { margin-top: var(--sp-2); color: var(--muted); font-size: var(--fs-small); }

.reviews { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); align-items: start; }
@media (min-width: 768px) {
  .reviews { grid-template-columns: repeat(2, 1fr); }
}
.reviews img { width: 100%; padding: var(--sp-3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.reviews figure { break-inside: avoid; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin: var(--sp-8) 0; }
.pager a { display: grid; gap: var(--sp-1); padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink); font-size: var(--fs-small); font-weight: 600; text-decoration: none; transition: border-color .15s; }
.pager a:hover { border-color: var(--accent); }
.pager span { color: var(--muted); font-weight: 400; }
.pager-next { text-align: right; }

/* ---------- 한 장 요약 ---------- */

.doc { max-width: 820px; margin: 0 auto; padding: var(--sp-5) var(--gutter) var(--sp-8); font-size: 15px; line-height: 1.7; }
.doc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-6); font-size: var(--fs-small); }
.doc-bar a:not(.btn) { color: var(--muted); text-decoration: none; }
.doc-actions { display: flex; gap: var(--sp-2); }
.doc-head h1 { margin-bottom: var(--sp-2); font-size: 26px; line-height: 1.35; }
.doc-head p { margin-bottom: var(--sp-2); }
.doc-contact { color: var(--accent); font-weight: 600; }
.doc h2 { margin: var(--sp-6) 0 var(--sp-3); padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 17px; }
.doc h3 { font-size: 15px; }
.doc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-5); padding: var(--sp-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc-metrics dt { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.4; }
.doc-metrics dd { margin-top: var(--sp-1); color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.3; }
.doc-metrics dd span { color: var(--accent); }
.doc-strengths { margin: 0; padding-left: 1.2em; }
.doc-strengths li + li { margin-top: var(--sp-2); }
.doc-project { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.doc-project:last-child { border-bottom: 0; }
.doc-project p { margin-bottom: var(--sp-1); }
.doc-project ul { margin: var(--sp-1) 0 0; padding-left: 1.2em; }
.doc-meta { color: var(--muted); font-size: 13px; }
.doc-job { display: grid; grid-template-columns: 132px 1fr; gap: var(--sp-4); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.doc-job:last-child { border-bottom: 0; }
.doc-job h3 span { margin-left: var(--sp-2); color: var(--muted); font-size: 13px; font-weight: 400; }
.doc-job p { margin: 0; font-size: 14px; }
.doc-period { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.doc-caps { display: grid; grid-template-columns: 132px 1fr; gap: var(--sp-2) var(--sp-4); font-size: 14px; }
.doc-caps dt { color: var(--muted); }
@media (max-width: 600px) {
  .doc-metrics { grid-template-columns: 1fr; }
  .doc-job, .doc-caps { grid-template-columns: 1fr; gap: 0; }
  .doc-caps dd { margin-bottom: var(--sp-2); }
}

/* ---------- 사진 크게 보기 (site.js) ---------- */

a[data-lightbox] { cursor: zoom-in; }
html.lb-open { overflow: hidden; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(20, 19, 17, 0.94);
  color: #fff;
}
.lb[hidden], .lb [hidden] { display: none !important; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) var(--gutter); }
.lb-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  height: 40px;
  padding: 0 var(--sp-4) 0 var(--sp-2);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.lb-tools { display: flex; align-items: center; gap: var(--sp-3); }
.lb-count { color: rgba(255, 255, 255, 0.75); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.lb-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}
.lb-tool:hover { background: rgba(255, 255, 255, 0.24); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 var(--gutter); }
.lb-img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: var(--r-img); cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform .2s; }
/* 90°·270° 회전: 돌아간 뒤의 가로 = 원래 세로이므로 최대 크기를 맞바꾼다 */
.lb-img.sideways { max-width: calc(100vh - 150px); max-width: calc(100dvh - 150px); max-height: calc(100vw - 2 * var(--gutter)); }
.lb-btn {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .15s;
}
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
.lb-back:hover, .lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-caption { min-height: 1.6em; margin: 0; padding: var(--sp-3) var(--gutter) var(--sp-5); color: rgba(255, 255, 255, 0.85); font-size: var(--fs-small); text-align: center; }

/* ---------- 움직임 ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 인쇄 ---------- */

@page { size: A4; margin: 18mm; }

@media print {
  :root { --bg: #FFFFFF; --accent-soft: #FFFFFF; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.6; }
  .no-print, .site-header, .site-footer, .skip, .actions, .pager, .back, .contact-note, .lb { display: none !important; }
  .section, .hero { padding: 10mm 0; }
  .container, .narrow-page { max-width: none; padding: 0; }
  .doc { max-width: none; padding: 0; font-size: 10pt; }
  .doc h2 { margin-top: 7mm; }
  .stage-label { position: static; }
  .card, .cap-block, .ps-box, .strength, .job, .gallery figure, .doc-project, .doc-job, .summary-box { break-inside: avoid; }
  .summary-box { border: 1px solid var(--line); }
  h2, h3 { break-after: avoid; }
  a { color: var(--ink); text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; color: var(--muted); font-size: 0.85em; }
}
