:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #1d2735;
  --muted: #667080;
  --accent: #d8644b;
  --line: #e4e2dc;
}

* { box-sizing: border-box; }

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: -0.012em;
  word-break: keep-all;
}

header,
main,
footer {
  width: min(100% - 40px, 680px);
  margin-inline: auto;
}

header {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--line);
}

main { padding: 8px 0 56px; }

footer {
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.04em;
}

h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

p,
ul { margin: 0 0 11px; }

ul { padding-left: 1.2rem; }

.meta {
  color: var(--muted);
  font-size: .82rem;
}

.summary,
section,
nav {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.summary {
  color: var(--muted);
  font-size: .94rem;
}

.notice { border-left: 2px solid var(--accent); padding-left: 16px; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li + li { border-top: 1px solid var(--line); }

nav a {
  display: flex;
  align-items: center;
  min-height: 50px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

nav a::after {
  content: "›";
  margin-left: auto;
  color: var(--muted);
  font-size: 1.2rem;
}

@media (max-width: 520px) {
  html { font-size: 14px; }
  header, main, footer { width: min(100% - 32px, 680px); }
  header { padding-top: 36px; }
  .summary, section, nav { padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
