:root {
  color-scheme: light;
  --ink: #2f382f;
  --muted: #58675d;
  --paper: #faf8f0;
  --ground: #e8eee3;
  --line: #d6dfd2;
  --accent: #42664b;
  --accent-soft: #e0e9dd;
  --receipt: #f7edda;
  --receipt-ink: #493b30;
  --max: 1080px;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

@font-face { font-family: Pretendard; src: url('assets/pretendard.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Special Elite'; src: url('assets/special-elite.ttf') format('truetype'); font-display: swap; }

* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font-size: 16px;
  line-height: 1.75;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid #a9422b; outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 5;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 5px;
}
.skip-link:focus { top: 16px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 240, .92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}
.brand {
  color: var(--ink);
  font-family: "Special Elite", serif;
  font-size: 20px;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand small {
  display: block;
  margin-top: -5px;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .04em;
}
.site-nav { display: flex; gap: 18px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.page-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 72px 0 96px; }
.page-intro { max-width: 760px; margin-bottom: 56px; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -.035em; }
h1 { max-width: 680px; margin: 0 0 20px; font-size: clamp(34px, 5vw, 58px); font-weight: 650; }
h2 { margin: 56px 0 15px; font-size: 26px; font-weight: 650; }
h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 650; }
p { margin: 0 0 16px; }
.lede { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.updated { margin-top: 20px; color: var(--muted); font-size: 13px; }
.language-links { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; }
.language-links span { color: var(--muted); }
.language-links a { font-weight: 650; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 72px;
  align-items: start;
}
.article { max-width: 720px; }
.article ul, .article ol { margin: 10px 0 22px; padding-left: 24px; }
.article li { padding-left: 5px; margin: 5px 0; }
.article strong { color: var(--ink); }
.side-note {
  position: sticky;
  top: 24px;
  padding: 20px 0 20px 20px;
  border-left: 1px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
}
.side-note strong { display: block; margin-bottom: 8px; color: var(--ink); }
.side-note a { display: block; margin-top: 6px; }

.receipt-strip {
  position: relative;
  width: min(100%, 720px);
  margin: 0 0 42px;
  padding: 17px 20px 15px;
  color: var(--receipt-ink);
  background: var(--receipt);
  border-top: 1px solid #e6ddce;
  border-bottom: 1px dashed var(--line);
  font-family: "Special Elite", serif;
  font-size: 12px;
  letter-spacing: .04em;
}
.receipt-strip::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -1px;
  width: 86px;
  border-bottom: 3px dotted var(--ground);
}
.receipt-strip span { display: inline-block; margin-right: 22px; }

.support-list { margin: 30px 0 0; border-top: 1px solid var(--line); }
.support-row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.support-row h3 { margin-top: 0; }
.support-row p:last-child { margin-bottom: 0; }
.contact-line { margin-top: 28px; padding: 20px; background: var(--accent-soft); }
.contact-line p:last-child { margin: 0; }
.contact-email { font-size: 19px; font-weight: 650; }

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.footer-inner p { margin: 0; }

@media (max-width: 760px) {
  .header-inner, .page-shell, .footer-inner { width: min(100% - 32px, var(--max)); }
  .header-inner { min-height: 68px; }
  .site-nav { gap: 12px; font-size: 13px; }
  .page-shell { padding: 48px 0 72px; }
  .page-intro { margin-bottom: 40px; }
  h1 { font-size: clamp(34px, 11vw, 48px); }
  .lede { font-size: 17px; }
  .content-grid { display: block; }
  .side-note { position: static; margin-top: 48px; padding: 18px 0 0; border-top: 1px solid var(--accent); border-left: 0; }
  .receipt-strip { margin-bottom: 32px; }
  .footer-inner { display: block; }
  .footer-inner p + p { margin-top: 6px; }
}

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