@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

*,*::before,*::after{box-sizing:border-box}

:root{
  --paper:#fdfbf7;
  --soft:#f5f5f5;
  --ink:#1a1a1a;
  --line:#e3dfd6;
  --line2:#c9c4b9;
  --muted:#5c5850;
  --shadow:0 1px 0 rgba(26,26,26,.05),0 16px 32px -24px rgba(26,26,26,.6);
}

html{
  background:var(--paper);
  scroll-behavior:smooth;
  scroll-padding-bottom:124px;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  padding:0 0 140px;
  overflow-x:hidden;
  background:var(--paper);
  color:var(--ink);
  font-family:'Noto Sans KR','PingFang SC','Hiragino Sans GB','Microsoft YaHei',Arial,sans-serif;
  font-size:17px;
  line-height:1.78;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:3;
  pointer-events:none;
  opacity:.15;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img{max-width:100%;height:auto;display:block}
a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line2)}
a:hover{border-bottom-color:var(--ink)}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

.wrap{max-width:1080px;margin:0 auto;padding:0 22px}

.sitehead{
  max-width:1080px;
  margin:0 auto;
  padding:14px 22px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--line);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:4px 0;
  font-size:19px;
  font-weight:700;
  letter-spacing:.02em;
  border:0;
}
.brand .mark{width:26px;height:26px}

.find{
  display:flex;
  align-items:center;
  border:1.5px solid var(--ink);
  border-radius:999px;
  overflow:hidden;
  background:var(--paper);
  flex:0 1 auto;
}
.find input{
  border:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:16px;
  padding:8px 13px;
  width:118px;
  min-width:0;
  outline:none;
}
.find button{
  border:0;
  border-left:1.5px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  font:inherit;
  font-size:16px;
  padding:8px 13px;
  min-height:42px;
  cursor:pointer;
  transition:none;
}
.find button:hover{background:#000}

.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:14px;
  z-index:6;
  display:flex;
  justify-content:center;
  padding:0 14px;
  pointer-events:none;
}
.dock > p{
  pointer-events:auto;
  margin:0;
  padding:6px;
  display:flex;
  align-items:center;
  gap:2px;
  max-width:100%;
  overflow-x:auto;
  scrollbar-width:none;
  background:var(--paper);
  border:1.5px solid var(--ink);
  border-radius:14px;
  box-shadow:var(--shadow);
}
.dock > p::-webkit-scrollbar{display:none}
.dock a{
  display:block;
  padding:11px 12px;
  border:0;
  border-radius:9px;
  font-size:16px;
  line-height:1.45;
  white-space:nowrap;
}
.dock a:hover{background:var(--ink);color:var(--paper)}

.grp{position:relative}
.grp > summary{
  list-style:none;
  display:block;
  padding:11px 12px;
  border-radius:9px;
  font-size:16px;
  line-height:1.45;
  white-space:nowrap;
  cursor:pointer;
}
.grp > summary::-webkit-details-marker{display:none}
.grp[open] > summary{background:var(--ink);color:var(--paper)}
.grp > p{
  position:absolute;
  bottom:calc(100% + 12px);
  left:0;
  margin:0;
  padding:6px;
  display:flex;
  flex-direction:column;
  gap:2px;
  background:var(--paper);
  border:1.5px solid var(--ink);
  border-radius:12px;
  box-shadow:var(--shadow);
}

.hero{
  position:relative;
  overflow:hidden;
  min-height:62vh;
  display:flex;
  align-items:flex-end;
  margin:0 0 34px;
  padding:44px 0 32px;
  border-bottom:1px solid var(--line);
}
.hero::before{
  content:"";
  position:absolute;
  inset:-10% -10% -20%;
  background-image:radial-gradient(var(--ink) 1px,transparent 1px);
  background-size:22px 22px;
  opacity:.16;
  transform:translate3d(0,var(--py,0px),0);
  will-change:transform;
}
.hero h1{
  position:relative;
  z-index:1;
  margin:0;
  font-size:clamp(38px,8.2vw,84px);
  line-height:1.1;
  letter-spacing:-.03em;
  font-weight:700;
  max-width:16em;
}

.read{
  display:grid;
  grid-template-columns:196px minmax(0,1fr);
  gap:34px;
  align-items:start;
}

.toc{
  position:sticky;
  top:18px;
  padding:16px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  box-shadow:var(--shadow);
}
.toc h2{
  margin:0 0 8px;
  font-size:16px;
  font-weight:500;
  letter-spacing:.18em;
}
.toc hr{
  margin:0 0 12px;
  border:0;
  border-top:1px solid var(--line2);
}
.toc ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.toc a{
  display:block;
  padding:9px 7px;
  border:0;
  border-radius:7px;
  font-size:16px;
  line-height:1.5;
}
.toc a:hover{background:var(--soft)}

.body{min-width:0}
.body > div{
  padding:26px 24px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  box-shadow:var(--shadow);
  scroll-margin-top:24px;
}
.body > div + div{margin-top:26px}
.body h2{
  margin:0 0 10px;
  font-size:clamp(23px,3vw,30px);
  line-height:1.35;
  letter-spacing:-.01em;
  font-weight:700;
}
.body h3{margin:1.5em 0 .45em;font-size:20px;line-height:1.4}
.body p{margin:0 0 1em}
.body ul,.body ol{margin:0 0 1em;padding-left:1.3em}
.body li{margin:.32em 0}
.body strong{font-weight:700}
.body hr{border:0;border-top:1px solid var(--line);margin:12px 0 18px}
.body blockquote{
  margin:0 0 1em;
  padding:2px 0 2px 16px;
  border-left:3px solid var(--ink);
  color:var(--muted);
}
.body img{border:1px solid var(--line);border-radius:8px;margin:0 0 1em}
.body table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 1em}
.body th,.body td{border:1px solid var(--line);padding:8px 10px;text-align:left}
.body code{font-size:16px;background:var(--soft);padding:1px 4px;border-radius:4px}

.sitefoot{
  margin-top:52px;
  border-top:1.5px solid var(--ink);
  background:var(--soft);
}
.fcols{
  max-width:1080px;
  margin:0 auto;
  padding:30px 22px 12px;
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr 1.6fr;
  gap:24px;
}
.fcol address{font-style:normal;font-weight:700;font-size:17px}
.fcol ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.fcol a{
  display:block;
  padding:8px 0;
  min-height:40px;
  line-height:1.5;
  border:0;
}
.fcol a:hover{color:#000;text-decoration:underline;text-underline-offset:3px}

.sub{
  display:flex;
  border:1.5px solid var(--ink);
  border-radius:999px;
  overflow:hidden;
  background:var(--paper);
}
.sub input{
  border:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:16px;
  padding:9px 13px;
  width:100%;
  min-width:0;
  outline:none;
}
.sub button{
  border:0;
  border-left:1.5px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  font:inherit;
  font-size:16px;
  padding:9px 14px;
  min-height:42px;
  white-space:nowrap;
  cursor:pointer;
}

.cr{
  max-width:1080px;
  margin:0 auto;
  padding:14px 22px 8px;
  border-top:1px solid var(--line2);
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

@media (max-width:900px){
  .fcols{grid-template-columns:1fr 1fr;gap:20px}
}

@media (max-width:820px){
  .read{grid-template-columns:1fr;gap:24px}
  .toc{position:static}
  .toc ul{flex-direction:row;flex-wrap:wrap;gap:4px}
  .toc a{padding:9px 9px}
}

@media (max-width:620px){
  body{font-size:16px}
  .find input{width:86px;padding:8px 11px}
  .find button{padding:8px 11px}
  .hero{min-height:54vh;padding:30px 0 26px}
  .body > div{padding:20px 16px}
  .fcols{grid-template-columns:1fr;gap:14px;padding:24px 18px 10px}
  .wrap{padding:0 18px}
  .sitehead{padding:12px 18px 10px}
  .cr{padding:12px 18px 6px}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .hero::before{transform:none;will-change:auto}
}

button[aria-expanded]{min-width:44px;min-height:44px}
