@font-face { font-family: "Instrument Serif"; src: url("/profile/instrument-serif.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Gaegu"; src: url("/profile/gaegu.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/profile/instrument-serif-italic.ttf") format("truetype"); font-style: italic; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #000;
  --muted: #595959;
  --rule: #d4d4d4;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --korean-serif: "Batang", "바탕", "AppleMyungjo", "Noto Serif CJK KR", serif;
}
* { box-sizing: border-box; }
::selection { background: var(--ink); color: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, "Malgun Gothic", sans-serif; }
.wrap { width: min(71rem, calc(100% - 6rem)); margin-inline: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -8rem; padding: .5rem 1rem; background: var(--ink); color: white; }
.skip:focus { top: 1rem; z-index: 1; }
.masthead, .footer, .masthead nav, .footer nav { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; }
.masthead { min-height: 5rem; border-bottom: 2px solid var(--ink); }
.brand, .footer b { font: 2.2rem/1 var(--serif); letter-spacing: -.035em; }
.masthead a, .footer a, .contents li a, .tools li a { text-decoration: none; }
nav a:hover, .tools li a:hover h3 { text-decoration: underline; }
.masthead nav, .footer nav { font-size: .89rem; }
.lang { border-left: 1px solid var(--rule); padding-left: 1.6rem; }
.opening { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(13rem, 1fr); align-items: end; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 6vw, 5.6rem) 0; }
.byline { font-weight: 650; }
.byline span, .section-head p, .tools-head p, .footer span { color: var(--muted); font-weight: 400; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.09; text-wrap: balance; }
h1 { font-size: clamp(4rem, 7.3vw, 6.8rem); letter-spacing: -.035em; margin: 1rem 0 1.5rem; }
h1 em { display: block; }
.lede { font-size: clamp(1rem, 1.4vw, 1.17rem); line-height: 1.78; max-width: 38rem; }
.contents { border-top: 1px solid var(--ink); padding-top: .85rem; font-size: .93rem; }
.contents strong { display: block; margin-bottom: .6rem; }
.contents li { border-bottom: 1px solid var(--rule); }
.contents li a { display: block; padding: .57rem 0; }
.edition { display: inline-block; margin-top: .8rem; color: var(--muted); font-size: .85rem; }
.essay { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr); gap: 4rem; border-top: 1px solid var(--ink); padding: 3rem 0 4.2rem; }
h2 { font-size: clamp(2rem, 3.2vw, 3.3rem); }
.section-head p, .tools-head p { margin-top: .85rem; font-size: .93rem; }
.essay-body { max-width: 42rem; }
.essay-body section + section { margin-top: 2.1rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
h3 { font-size: clamp(1.65rem, 2.5vw, 2.35rem); }
.essay-body p { margin: .85rem 0 0; line-height: 1.87; }
.text-link { display: inline-block; margin-top: .7rem; }
.tools .wrap { padding: 2.5rem 0 3.8rem; border-top: 2px solid var(--ink); }
.tools ul { margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.tools li { border-top: 1px solid var(--rule); }
.tools li a { display: block; padding: 1.35rem 0; }
.tools li h3 { font-size: 1.65rem; }
.tools li p { margin-top: .4rem; color: var(--muted); font-size: .94rem; }
.footer { padding: 1.7rem 0 2.2rem; border-top: 1px solid var(--ink); }
.footer span { margin-left: .8rem; font-size: .85rem; }
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
html[lang="ko"] :is(h1,h2,h3) { font-family: var(--korean-serif); }
html[lang="ko"] h1 { font-size: clamp(2.65rem, 5.3vw, 5rem); letter-spacing: -.07em; line-height: 1.21; }
html[lang="ko"] h1 em { font-style: normal; }
html[lang="ko"] h2 { font-size: clamp(1.7rem, 2.65vw, 2.7rem); line-height: 1.35; }
html[lang="ko"] h3 { font-size: clamp(1.35rem, 1.8vw, 1.85rem); line-height: 1.4; }
html[lang="ko"] .tools h3 { font-size: 1.23rem; }
@media(max-width: 52rem) {
  .wrap { width: calc(100% - 3rem); }
  .opening { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .contents { max-width: 38rem; }
  .essay { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .footer { flex-wrap: wrap; }
}
@media(max-width: 36rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .masthead { min-height: 4.2rem; gap: .6rem; }
  .brand { font-size: 1.8rem; }
  .masthead nav { gap: .75rem; font-size: .8rem; }
  .lang { padding-left: .7rem; }
  .opening { padding: 2.5rem 0; }
  h1 { font-size: clamp(3.4rem, 13vw, 4.5rem); }
  .tools ul { grid-template-columns: 1fr; }
  .footer nav { flex-wrap: wrap; gap: 1rem; }
}

:root { --hand: "Gaegu", "Segoe Print", "Malgun Gothic", cursive; }
body { font: 1.37rem/1.52 var(--hand); }
.brand, .footer b, h1, h2, h3, html[lang="ko"] :is(h1,h2,h3) { font-family: var(--hand); }
.brand,.footer b { font-weight: 600; letter-spacing: -.055em; }
.masthead nav, .footer nav, .contents, .edition, .section-head p, .tools-head p, .tools li p, .footer span { font-size: 1.13rem; }
.opening {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: clamp(24rem, 37vw, 31rem); padding: 2.5rem 0;
}
.opening::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 29%;
  background: white url("/profile/journal-window.webp") right center / contain no-repeat;
}
.opening > div { max-width: 48%; }
.byline { font-size: 1.45rem; font-weight: 400; }
h1, html[lang="ko"] h1 { font-size: clamp(3.4rem, 5.5vw, 5.6rem); line-height: .99; letter-spacing: -.063em; margin: 1rem 0; }
h1 em { font-style: normal; }
.lede { font-size: clamp(1.32rem, 1.8vw, 1.65rem); line-height: 1.42; max-width: 28rem; }
.read-essays { display: inline-block; margin-top: 1rem; font-size: 1.22rem; }
.library .wrap { border-top: 2px solid var(--ink); padding: 2rem 0 2.5rem; }
.library ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 1.2rem; }
.library a { display: block; text-decoration: none; border-top: 1px solid var(--rule); padding-top: 1rem; }
.library a:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.library p { color: var(--muted); font-size: 1.22rem; line-height: 1.45; margin-top: .4rem; }
.contents { margin-top: 1.5rem; }
.essay-body p { line-height: 1.65; }
.reader { max-width: 44rem; margin: 0 auto; padding: 3.5rem 1.4rem; }
.reader article > .meta { font-size: 1.12rem; color: var(--muted); }
.reader article h1 { margin: 1rem 0 1.5rem; font-size: clamp(2.7rem, 5vw, 4rem); line-height: 1.1; }
.reader article h2 { margin: 2.35rem 0 .8rem; font-size: clamp(1.8rem, 3.4vw, 2.45rem); line-height: 1.2; }
.reader p { margin-bottom: 1rem; line-height: 1.7; }
.reader figure { margin: 1.4rem 0; border-block: 1px solid var(--rule); padding: 1rem .4rem; }
.reader pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
@media(max-width: 44rem) {
  .opening { padding: 2.2rem 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .opening > div { max-width: none; }
  .opening::before { position: static; display: block; order: 2; width: 100%; height: clamp(11rem, 42vw, 16rem); margin-top: .3rem; background-size: auto 100%; }
  .masthead nav { font-size: 1.05rem; }
  .library ul { grid-template-columns: 1fr; gap: 1rem; }
  .reader { padding-top: 2.3rem; }
}
