@font-face {
  font-family: Pretendard;
  src: url("/fonts/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  color-scheme: light;
  --white: #fff;
  --grey-100: #f2f4f6;
  --grey-200: #e5e8eb;
  --grey-700: #4e5968;
  --grey-800: #333d4b;
  --grey-900: #191f28;
  --blue-50: #e8f3ff;
  --blue-100: #c9e2ff;
  --blue-500: #3182f6;
  --blue-700: #1b64da;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background: var(--white);
  color: var(--grey-900);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
[lang="ko"] { word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 4px; }
::selection { color: var(--grey-900); background: var(--blue-100); }
.wrap { width: min(100%, 76rem); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed;
  inset: .5rem auto auto 1rem;
  z-index: 4;
  padding: .85rem;
  border-radius: .75rem;
  background: var(--white);
  transform: translateY(-150%);
}

.skip:focus { transform: none; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--grey-200);
  background: var(--white);
}

.masthead .wrap {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .75rem;
  flex-wrap: wrap;
  padding-block: .5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--grey-900);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -.025em;
}

.brand::before {
  content: "";
  flex: 0 0 .55rem;
  height: .55rem;
  border-radius: .2rem;
  background: var(--blue-500);
}

.language {
  display: flex;
  gap: .125rem;
  padding: .1875rem;
  border-radius: .875rem;
  background: var(--grey-100);
}

.language a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  min-width: 3.9rem;
  padding-inline: .625rem;
  border-radius: .6875rem;
  color: var(--grey-700);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}

.language a:hover { color: var(--blue-700); }
.language a[aria-current] { background: var(--white); color: var(--blue-700); }

.hero { padding-top: clamp(1.25rem, 4vw, 3rem); }
.hero-panel {
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--blue-50);
}

h1 {
  max-width: 17ch;
  font-size: clamp(2.125rem, 5vw, 4.75rem);
  font-weight: 810;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
}

[lang="ko"] h1 { max-width: 20ch; line-height: 1.19; }
h1 span { color: var(--blue-700); }

.subtitle {
  max-width: 37rem;
  margin-top: clamp(1rem, 3vw, 1.75rem);
  color: var(--grey-700);
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  font-weight: 550;
  line-height: 1.55;
  text-wrap: pretty;
}

.summary {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: 1.125rem;
  background: var(--grey-100);
  color: var(--grey-800);
}

.summary h2 {
  margin-bottom: .6rem;
  font-size: 1.1875rem;
}

.summary ul {
  margin: 0;
  padding-inline-start: 1.15em;
  line-height: 1.6;
}

.summary li + li { margin-top: .4rem; }
.summary li::marker { color: var(--blue-700); }
.summary strong { color: var(--grey-900); }

.reader {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(2rem, 5vw, 4.25rem) clamp(3rem, 7vw, 5.5rem);
}

.toc { position: sticky; top: 6rem; }
.toc-title {
  margin: 0 .75rem .6rem;
  color: var(--grey-900);
  font-size: 1.0625rem;
  font-weight: 760;
}

.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: .375rem;
  align-items: baseline;
  min-height: 2.75rem;
  padding: .65rem .75rem;
  border-radius: .625rem;
  color: var(--grey-700);
  font-size: .9375rem;
  font-weight: 580;
  line-height: 1.45;
  text-decoration: none;
}

.toc a span { color: var(--blue-700); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--grey-100); color: var(--grey-900); }
.toc a[aria-current] { background: var(--blue-50); color: var(--blue-700); }
article {
  max-width: 46rem;
  color: var(--grey-800);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.78;
  scroll-margin-top: 6.5rem;
}

article p + p, article li + li, article ul + p { margin-top: 1.1em; }
article b, article strong { color: var(--grey-900); font-weight: 730; }
.intro {
  color: var(--grey-800);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.65;
}

article section {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--grey-200);
  scroll-margin-top: 6rem;
}

h2 {
  margin-bottom: .9rem;
  color: var(--grey-900);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 780;
  line-height: 1.28;
  letter-spacing: -.032em;
  text-wrap: pretty;
}

#proposal p > :is(b, strong):first-child { display: block; margin-bottom: .2rem; }
article ul { padding-inline-start: 1.25em; }
article li::marker { color: var(--blue-500); }

footer { background: var(--grey-100); color: var(--grey-700); }
footer .wrap {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-block: 1.4rem;
  font-size: .9375rem;
}

footer a { display: inline-grid; align-items: center; min-height: 2.75rem; }

@media (max-width: 51rem) {
  .reader { grid-template-columns: 1fr; gap: 1.8rem; }
  .toc { position: static; padding: .9rem; border-radius: 1rem; background: var(--grey-100); }
  .toc-title { margin-bottom: .3rem; }
  .toc a:hover { background: var(--white); }
}

@media (max-width: 26rem) {
  .masthead .wrap { column-gap: .5rem; }
  .brand { gap: .4rem; font-size: .9rem; }
  .language a { min-width: 3.4rem; padding-inline: .45rem; }
  .hero-panel { padding: 1.875rem 1.25rem; }
  h1 { font-size: clamp(1.875rem, 8.2vw, 2.125rem); }
}

@media print {
  .masthead, .toc, .skip { display: none; }
  .hero { padding: 0; }
  .hero-panel { background: white; color: black; padding: 1rem 0; }
  .summary { padding-inline: 0; background: white; break-inside: avoid; }
  h1, [lang="ko"] h1 { max-width: none; font-size: 2rem; }
  .reader { display: block; padding-block: 1rem; }
  article { max-width: none; font-size: 11pt; }
  h2 { break-after: avoid; }
}
