:root {
  --ink: #282923;
  --link: #325a51;
  --muted: #66665d;
  --rule: #d6d8ce;
  font: 100%/1.65 "Apple SD Gothic Neo","Malgun Gothic","Noto Sans CJK KR","Noto Sans KR",system-ui,sans-serif;
  background: #fcfcf9; color: var(--ink);
}
* { box-sizing: border-box; }
body { max-width: 1010px; margin: auto; padding: 0 clamp(18px,4vw,54px); word-break: keep-all; }
h1,h2,p,figure,dl,dd { margin: 0; }
a { color: var(--link); text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.skip,.sr { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.skip:focus { clip-path: none; width: auto; height: auto; padding: 6px; background: white; }
.mast { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 30px 0 0; padding-bottom: 15px; border-bottom: 2px solid var(--ink); }
.name { font-size: clamp(2rem,4vw,3.15rem); font-weight: 700; line-height: 1.25; letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 20px; font-size: .95rem; }
nav a { text-decoration: none; color: var(--muted); }
nav [aria-current] { color: var(--ink); text-decoration: underline; font-weight: 650; }
main { min-height: 62vh; } main:focus { outline: 0; }
.layout { display: grid; grid-template-columns: minmax(0,650px) minmax(135px,1fr); gap: clamp(36px,6vw,85px); }
.feed article { padding: 32px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.meta { display: flex; gap: 12px; align-items: baseline; }
.meta,time,.related,.subtle,figcaption { font-size: .83rem; color: var(--muted); }
.meta span { color: var(--link); }
.feed h2,.narrow h1,.doc h2 { line-height: 1.35; letter-spacing: -.025em; }
.feed h2 { margin: 7px 0 16px; font-size: clamp(1.65rem,3.1vw,2.4rem); }
h2 a { color: inherit; text-decoration: none; }
.feed p { font-size: 1.125rem; line-height: 1.8; margin-top: .8em; }
.related { margin-top: 14px; }
img { display: block; width: 100%; height: auto; }
figure { margin: 14px 0; } figure img { aspect-ratio: 2.5; object-fit: cover; } figcaption { margin-top: 4px; }
aside { margin-top: 38px; }
aside h2 { font-size: .92rem; } aside ul { list-style: none; margin: 8px 0 12px; padding: 0; }
aside li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: .93rem; line-height: 1.45; }
aside li a { color: var(--ink); text-decoration: none; }
.narrow { max-width: 690px; padding: 32px 0; }
.narrow h1 { font-size: 2.5rem; margin-bottom: 25px; }
.doc,.year { margin-bottom: 30px; scroll-margin-top: 16px; }
.doc h2,.year h2 { font-size: 1.45rem; margin-bottom: 8px; }
dl div,.year li { display: grid; grid-template-columns: 125px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
dt { color: var(--muted); } .year ol { list-style: none; padding: 0; margin: 0; } .year li { grid-template-columns: 65px 1fr; }
footer { margin: 35px 0 25px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 1rem; }
footer span { margin-left: 12px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
@media(max-width:700px) {
 .layout { display: block; } aside { display: none; } .mast { margin-top: 18px; } nav { gap: 14px; }
 .feed article { padding: 25px 0; } .feed p { font-size: 1.0625rem; } dl div { grid-template-columns: 95px 1fr; }
}
.categories { padding: 12px 0; border-bottom: 1px solid var(--rule); gap: 18px; flex-wrap: wrap; }
.meta small { font-size: .77rem; }
footer a { margin-left: 18px; font-size: .875rem; }
.single article > h1 { font-size: clamp(1.7rem,3.1vw,2.4rem); margin: 8px 0 16px; }
.single { padding-top: 0; }
.single > a { display: inline-block; margin-top: 20px; }
.markdown { overflow-wrap: anywhere; }
.markdown blockquote { margin-inline: 0; padding-left: 16px; border-left: 3px solid var(--rule); color: var(--muted); }
.markdown pre { padding: 12px; background: #eeefe9; overflow-x: auto; font-size: .92rem; }
.markdown :is(h1,h2,h3) { margin: 1em 0 .4em; font-size: 1.35em; line-height: 1.4; }
.markdown table { display: block; overflow-x: auto; border-collapse: collapse; }
.markdown :is(th,td) { padding: 5px 12px; border: 1px solid var(--rule); }
.markdown img { max-width: 100%; width: auto; }
.feed { min-width: 0; }
.author p { line-height: 1.7; }
.author label { display: block; margin: 18px 0 5px; font-weight: 650; }
.author input { width: 100%; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid #a7aaa0; background: #fff; color: var(--ink); }
.author input[type=file] { border-style: dashed; }
.author .hint { color: var(--muted); font-size: .88rem; margin: 8px 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.author h2 { font-size: 1.2rem; margin: 25px 0 8px; }
.preview { background: #fff; border: 1px solid var(--rule); padding: 0 20px; margin: 12px 0; }
.preview article { border: 0; padding: 18px 0; }
.preview h3 { margin: 0; font-size: 1.5rem; }
.author button { font: inherit; background: var(--link); color: #fff; border: 0; padding: 8px 16px; cursor: pointer; }
.author :disabled { opacity: .55; cursor: default; }
.export-panel { margin-top: 28px; border-top: 1px solid var(--rule); }
.export-panel button { margin-top: 10px; }
#status { color: var(--link); margin-top: 12px; }
@media(max-width:480px) { .fields { grid-template-columns: 1fr; gap: 0; } }
.publication { margin-top: 22px; }
.publication #status:focus { outline: 2px solid var(--link); outline-offset: 4px; }
.author :is(input,button):focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
@media(max-width:700px) {
  .mast nav a,.categories a { display: inline-flex; min-height: 44px; align-items: center; }
  .mast nav { flex-wrap: wrap; column-gap: 14px; row-gap: 0; }
}

.feed .empty { padding-top: 1em; color: var(--muted); }
