:root {
  color-scheme: light dark;
  --bg: #f6f5f1;
  --card: #fffefb;
  --ink: #1c1b19;
  --muted: #65625a;
  --line: #dcd9d0;
  --en: #1b5bb8;
  --ko: #bf3f0b;
  --en-soft: #dfe9f8;
  --ko-soft: #fae4d9;
  --sans: "IBM Plex Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "D2Coding", "Apple SD Gothic Neo", "Malgun Gothic", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --card: #1d1c19;
    --ink: #eceae4;
    --muted: #a5a197;
    --line: #35332e;
    --en: #86b4ff;
    --ko: #ff9d70;
    --en-soft: #1f2d45;
    --ko-soft: #47281a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--en); }
code, kbd { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--en); outline-offset: 2px; }

.wrap { width: min(100% - 32px, 760px); margin-inline: auto; }

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