@font-face {
  font-family: Pretendard;
  src: url("/pretendard.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #182842;
  --soft: #52627a;
  --blue: #244fa7;
  --line: #d8e2ef;
  --paper: #fff;
  --sky: #f2f6fb;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: 1.15rem; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--sky); color: var(--ink); font: 1rem/1.65 Pretendard, "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: #17346f; }
a:focus-visible, summary:focus-visible, pre:focus-visible { outline: 3px solid #d57432; outline-offset: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.34; letter-spacing: -.045em; }
h1 { font-size: clamp(2rem, 4.1vw, 3.35rem); }
h2 { font-size: 1.52rem; }
.wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: .4rem; left: .5rem; transform: translateY(-180%); background: white; padding: .45rem .85rem; z-index: 5; }
.skip:focus { transform: none; }
.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; gap: 1.1rem; min-height: 4.4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-size: 1.32rem; font-weight: 780; letter-spacing: -.065em; text-decoration: none; }
.brand img { border-radius: .48rem; }
.mast-library, .studio, .track-card h2 a, .trail a, .foot a { text-decoration: none; }
.mast-library { padding-left: 1.1rem; border-left: 1px solid var(--line); color: var(--soft); font-size: .95rem; font-weight: 600; }
.studio { margin-left: auto; border: 1px solid #c1d1ec; border-radius: .55rem; padding: .42rem .83rem; font-size: .9rem; font-weight: 680; }
.studio:hover, .unit-action:hover { background: #eaf1fb; }
.trail ol { display: flex; flex-wrap: wrap; align-items: baseline; list-style: none; padding: 0; gap: .25rem .55rem; color: var(--soft); font-size: .88rem; }
.trail { margin: 1.32rem 0 1.65rem; }
.trail li + li::before { content: "/"; color: #7789a0; margin-right: .55rem; }
.trail a:hover, .foot a:hover, .track-card h2 a:hover, .brand:hover, .mast-library:hover { text-decoration: underline; }
.intro { max-width: 55rem; margin: 2.1rem 0; }
.intro > p, .dek { margin-top: .75rem; color: var(--soft); font-size: 1.09rem; }
.intro > .numbers, .numbers { font-size: .91rem; font-weight: 640; color: var(--blue); }
.track-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.15rem; }
.track-card, .area, .reader, .contents, .related { background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; }
.track-card { padding: clamp(1.3rem, 3vw, 2.15rem); border-top: 4px solid #446fcd; }
.track-card.practical { border-top-color: #317d8a; }
.track-card h2 { font-size: 1.65rem; }
.track-card h2 a { color: var(--ink); }
.track-card > p { color: var(--soft); margin-top: .7rem; }
.track-card > .numbers { color: var(--blue); }
.topics { list-style: none; margin-top: 1.25rem; padding: 1rem 0 0; border-top: 1px solid var(--line); display: flex; gap: .45rem; flex-wrap: wrap; }
.topics a { display: block; background: #f0f5fc; border-radius: .4rem; text-decoration: none; color: #244776; padding: .32rem .65rem; font-size: .93rem; }
.topics a:hover { background: #e0ebfa; }
.catalog-grid { display: grid; grid-template-columns: 15rem minmax(0,1fr); align-items: start; gap: 1.4rem; }
.contents, .related { padding: 1.25rem; }
.catalog-grid > .contents { position: sticky; top: 1rem; }
.contents h2, .related h2, .references h2 { font-size: 1.04rem; }
.contents ul, .related ul { list-style: none; padding: 0; margin-top: .55rem; }
.contents a, .related a { display: block; line-height: 1.5; padding: .38rem 0; font-size: .94rem; text-decoration: none; }
.contents a:hover, .related a:hover { text-decoration: underline; }
.area { padding: 1.45rem 1.6rem; }
.area + .area { margin-top: 1.1rem; }
.area h2 { padding-bottom: .9rem; border-bottom: 2px solid #566f9c; }
.units { padding: 0; list-style: none; }
.unit { padding: .95rem 0; display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.unit + .unit { border-top: 1px solid var(--line); }
.unit:last-child { padding-bottom: .2rem; }
.unit h3 { font-size: 1.12rem; }
.unit h3 a { color: var(--ink); text-decoration: none; }
.unit h3 a:hover { color: var(--blue); text-decoration: underline; }
.unit p { color: var(--soft); margin-top: .2rem; font-size: .95rem; }
.unit-action { flex: none; padding: .36rem .6rem; border: 1px solid #c7d7ed; border-radius: .45rem; text-decoration: none; font-size: .9rem; font-weight: 640; }
.reader-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(13rem,16rem); gap: 1.45rem; align-items: start; }
.reader { padding: clamp(1.3rem, 3.4vw, 2.8rem); }
.reader h1 { font-size: clamp(1.95rem, 3.4vw, 2.8rem); }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 1.55rem; }
.eyebrow { color: var(--blue); font-size: .94rem; font-weight: 680; margin-bottom: .55rem; }
.eyebrow span { margin: 0 .12em; }
.byline { margin-top: .9rem; font-size: .9rem; color: var(--soft); }
.byline a { color: inherit; }
.prose { line-height: 1.78; }
.prose > section { margin-top: 2.15rem; }
.prose h2 { margin-bottom: .7rem; }
.prose p { white-space: pre-line; }
.prose li { white-space: pre-line; }
.prose ol { padding-left: 1.5rem; }
.prose :is(p,ol,pre,details) + :is(p,ol,pre,details) { margin-top: .8rem; }
.prose pre { max-width: 100%; overflow: auto; margin: 0; padding: 1rem 1.1rem; border-radius: .62rem; background: #172942; color: #edf5ff; line-height: 1.64; tab-size: 4; }
.prose pre code { font-family: "Cascadia Mono", Consolas, monospace; font-size: .92rem; }
.prose details { background: #f3f7fc; border: 1px solid var(--line); border-radius: .62rem; }
.prose summary { cursor: pointer; color: var(--blue); font-weight: 680; padding: .62rem .95rem; }
.solution { padding: .2rem .95rem 1rem; }
.references { border-top: 1px solid var(--line); margin-top: 1.7rem; padding-top: 1rem; }
.references ul { padding-left: 1.25rem; margin-top: .4rem; }
.study-link:not(:empty) { margin-top: 1.8rem; }
.study-button { display: inline-block; padding: .62rem 1rem; border-radius: .52rem; background: var(--blue); color: #fff; font-weight: 670; text-decoration: none; }
.study-button:hover { background: #183d86; color: white; }
.reader-side { display: grid; gap: 1rem; }
.foot { margin-top: auto; color: var(--soft); font-size: .92rem; }
.foot > div { margin-top: 2.8rem; padding-block: 1.3rem 1.9rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; align-items: center; }
.foot b { color: var(--ink); }
@media (max-width: 52rem) {
  .catalog-grid, .reader-grid { grid-template-columns: minmax(0,1fr); }
  .catalog-grid > .contents { position: static; }
  .catalog-grid > .contents ul { display: flex; flex-wrap: wrap; gap: .1rem 1rem; }
}
@media (max-width: 38rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .mast-inner { gap: .68rem; min-height: 3.9rem; }
  .mast-library { padding-left: .68rem; font-size: .88rem; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 27px; height: 27px; }
  .studio { padding: .35rem .54rem; font-size: .87rem; }
  .track-grid { grid-template-columns: 1fr; }
  .trail { margin: 1rem 0; }
  .intro { margin: 1.25rem 0; }
  .area, .reader { padding: 1.05rem; }
  .unit { flex-wrap: wrap; gap: .55rem; }
  .reader-grid { gap: .95rem; }
  .prose h2 { font-size: 1.28rem; }
}
