/* Pado 기반 레이어: 리셋 · 지면 · 타이포 */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.62;
  letter-spacing: var(--tr-flat);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: keep-all;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; text-align: inherit; }
table { border-collapse: collapse; }

a { color: inherit; text-decoration: none; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--sig);
  outline-offset: 2px;
  border-radius: var(--r1);
}

h1, h2, h3, h4 {
  line-height: 1.16;
  letter-spacing: var(--tr-tight);
  font-weight: 700;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: var(--sig); color: var(--on-sig); }

/* 데이터는 mono, 문장은 sans. 이 구분이 화면의 리듬을 만든다. */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'zero' 1;
  letter-spacing: var(--tr-data);
}
.num { font-variant-numeric: tabular-nums; }

.label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -6rem; left: var(--s4); z-index: var(--z-toast);
  background: var(--ink); color: var(--paper);
  padding: var(--s2) var(--s4); border-radius: var(--r2);
  transition: top var(--d1) var(--ease);
}
.skip-link:focus { top: var(--s3); }

.shell { width: min(100% - (var(--pad-x) * 2), var(--shell)); margin-inline: auto; }
.shell-wide { width: min(100% - (var(--pad-x) * 2), var(--shell-wide)); margin-inline: auto; }

.row { display: flex; align-items: center; gap: var(--s3); }
.row-wrap { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.push { margin-inline-start: auto; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }
.sig { color: var(--sig); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prose-width { max-width: 68ch; }
