:root {
  --ground: #FAF7F2; --ink: #2C2418; --muted: #6B5E4B; --rule: #E2D8C3; --panel: #F5EDD4;
  --gold: #C49B2A; --gold-d: #8B6914; --rust: #9B4D4D;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ko: "Noto Serif KR", "Nanum Myeongjo", "Batang", "AppleMyungjo", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.18rem/1.62 var(--serif);
  padding-inline: 20px; }
[lang="ko"] { font-family: var(--ko); }
a { color: var(--gold-d); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rust); }

header.top { max-width: 40rem; margin: 0 auto; padding-block: 1.1rem; display: flex; flex-wrap: wrap;
  gap: .4rem 1rem; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--rule); font: 500 .8rem/1.3 var(--sans); letter-spacing: .02em; }
header.top .home { color: var(--ink); text-decoration: none; }
header.top .home span { font-size: .95rem; margin-right: .15rem; }
header.top .press { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }

main { max-width: 40rem; margin: 0 auto; padding-block: 2rem 3rem; }

/* index */
.index h1 { margin: 1.5rem 0 .6rem; font-weight: 400; line-height: 1.15; }
.ko-title { display: block; font-size: clamp(2.2rem, 7vw, 3.2rem); font-weight: 600; letter-spacing: .06em; }
.en-title { display: block; font-size: clamp(1.4rem, 4vw, 1.9rem); font-style: italic; margin-top: .4rem; }
.author { font: 500 .9rem/1.4 var(--sans); color: var(--muted); margin: 0 0 1.6rem; }
.standfirst { font-size: 1.32rem; line-height: 1.45; border-left: 3px solid var(--gold); padding-left: 1rem; }
.index h2 { font: 600 .78rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin: 2.6rem 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--rule); }
.index h3 { font-weight: 500; font-size: 1.1rem; margin: 1.2rem 0 .2rem; color: var(--gold-d); }
ol.toc { list-style: none; margin: 0; padding: 0; }
ol.toc li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem;
  padding: .35rem 0; border-bottom: 1px dotted var(--rule); }
ol.toc a { text-decoration: none; color: var(--ink); }
ol.toc a:hover .toc-en { color: var(--rust); }
.toc-ko { color: var(--muted); font-size: .92rem; margin-left: .4rem; }
.toc-pp { font: 400 .8rem/2 var(--sans); color: var(--muted); }
.later { color: var(--muted); font-style: italic; margin-top: 1rem; }
dl.key { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; margin: 0; }
dl.key dt { font: 500 .85rem/1.9 var(--sans); }
dl.key dd { margin: 0; }

/* chapter pages */
.meta { font: 500 .8rem/1.4 var(--sans); color: var(--muted); }
.meta span { font-size: .95rem; }
.views { display: inline-flex; margin: .9rem 0 1.4rem; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: #fff8; }
.views button { font: 500 .8rem/1 var(--sans); border: 0; background: none; color: var(--muted);
  padding: .5rem .95rem; border-radius: 999px; cursor: pointer; }
.views button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
body .ko { display: none; }
body[data-show="ko"] .ko { display: block; }
body[data-show="ko"] .en { display: none; }

.en p { margin: 0 0 1rem; hyphens: auto; }
.part-head { font: 600 .78rem/1.3 var(--sans) !important; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-d); margin: 0 0 .3rem !important; }
.chapter-head { font-size: 2rem; line-height: 1.2; margin: 0 0 1.6rem !important; }
.editorial { font-size: 1rem; color: var(--muted); font-style: italic; border-left: 2px solid var(--rule); padding-left: .8rem; }
.pgonly { margin: 0 0 .3rem !important; }
.lines { margin-left: 1.5rem !important; }
.pg { font: 500 .66rem/1 var(--sans); color: var(--gold-d); background: var(--panel); border-radius: 3px;
  padding: .12rem .32rem; margin: 0 .25rem; vertical-align: .18em; white-space: nowrap; letter-spacing: .02em; }
sup.fn { font: 600 .66rem/0 var(--sans); vertical-align: super; margin-left: .05rem; }
sup.fn a { text-decoration: none; padding: 0 .1rem; }
.cont { font-style: italic; color: var(--muted); text-align: center; border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule); padding: .9rem 0; margin-top: 2rem !important; }

.notes-sec { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: .6rem; }
.notes-sec h2 { font: 600 .78rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
ol.notes { padding-left: 2rem; font-size: 1rem; line-height: 1.55; }
ol.notes li { margin-bottom: .75rem; padding-left: .2rem; }
ol.notes li::marker { font: 600 .75rem var(--sans); color: var(--gold-d); }
ol.notes li:target { background: var(--panel); outline: 4px solid var(--panel); }
.back { text-decoration: none; font-size: .85rem; }

/* the 1939 text: vertical, one printed column per line */
.ko-intro { font: 400 .95rem/1.5 var(--serif); color: var(--muted); font-style: normal; }
figure.page { margin: 0 0 2rem; }
figure.page figcaption { font: 500 .75rem/1 var(--sans); color: var(--muted); margin-bottom: .5rem; text-align: right; }
.vert { writing-mode: vertical-rl; white-space: pre; font-size: 1rem; line-height: 1.85; letter-spacing: .02em;
  height: min(46em, 80vh); overflow-x: auto; overflow-y: hidden; padding: 1rem .8rem; width: 100%; max-width: 100%;
  background: #FFFDF8; border: 1px solid var(--rule); border-radius: 4px; }

nav.pn { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1rem;
  border-top: 1px solid var(--rule); font: 500 .85rem/1.4 var(--sans); }

footer { max-width: 40rem; margin: 0 auto; padding-block: 1.5rem 3rem; border-top: 1px solid var(--rule);
  font: 400 .78rem/1.55 var(--sans); color: var(--muted); }
footer a { color: var(--muted); }

@media (max-width: 34rem) {
  body { font-size: 1.08rem; }
  .chapter-head { font-size: 1.6rem; }
  dl.key { grid-template-columns: 1fr; gap: 0; }
  dl.key dd { margin-bottom: .6rem; }
}
