/* Warm uncoated paper, graphite, and a small amount of umber. */
:root {
  --paper: #f8f6f1;
  --ink: #292822;
  --muted: #5e5a52;
  --stone: #71695d;
  --oak: #795a43;
  --rule: #c6c0b4;
  --fine: #ded9cf;
  --grain: .032;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #24231f; --ink: #eeeae1; --muted: #c2baad; --stone: #b8ac98;
    --oak: #d8b591; --rule: #59554d; --fine: #45423b; --grain: .04;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #24231f; --ink: #eeeae1; --muted: #c2baad; --stone: #b8ac98;
  --oak: #d8b591; --rule: #59554d; --fine: #45423b; --grain: .04;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.25rem; background: var(--paper); }
body {
  position: relative; isolation: isolate; margin: 0; color: var(--ink);
  font: 400 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='156' height='156' viewBox='0 0 156 156'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23888' filter='url(%23n)' d='M0 0h156v156H0z'/%3E%3C/svg%3E");
}
.sheet { max-width: 79rem; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4.5rem); }
p, figure, h1, h2, ul { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover, summary:hover { color: var(--oak); }
a:focus-visible, summary:focus-visible, canvas:focus-visible { outline: 2px solid var(--oak); outline-offset: 5px; }
.skip { position: absolute; top: 0; left: 1rem; transform: translateY(-150%); padding: .5rem; background: var(--paper); z-index: 1; }
.skip:focus { transform: none; }
.masthead, .foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.masthead { min-height: 4.75rem; border-bottom: 1px solid var(--rule); padding: .8rem 0; }
.wordmark { font: 400 1.34rem/1.2 var(--serif); letter-spacing: -.033em; text-decoration: none; }
.wordmark span { color: var(--stone); }
nav { display: flex; gap: clamp(.85rem, 2.4vw, 2.25rem); align-items: center; flex-wrap: wrap; }
nav a, .foot-cv { font-size: .875rem; text-decoration: none; }
nav a { padding: .4rem 0; }
nav a:hover, .foot a:hover, .emails a:hover { text-decoration: underline; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .94fr); align-items: center;
  column-gap: 2.5rem; padding: clamp(2.75rem, 5.3vw, 4.75rem) .65rem clamp(2.7rem, 4.2vw, 4rem);
}
.identity { min-width: 0; }
h1, h2, .interests, .entry-title, .flow i { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.25rem, 6.5vw, 5.65rem); letter-spacing: -.065em; line-height: 1.04; }
.korean { font-family: "MaruBuri", "AppleMyungjo", "Noto Serif CJK KR", "NanumMyeongjo", "Batang", serif;
  font-size: clamp(1.12rem, 2vw, 1.5rem); letter-spacing: .12em; margin-top: .65rem; }
.interests { font-size: clamp(1.32rem, 2.15vw, 1.7rem); line-height: 1.28; letter-spacing: -.026em;
  max-width: 25em; margin-top: 1.65rem; text-wrap: balance; }
.affiliation { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.affiliation::before { content: ""; display: block; width: 2.2rem; height: 1px; margin: 1.5rem 0 1rem; background: var(--stone); }
.emails { display: flex; flex-wrap: wrap; column-gap: 1rem; margin-top: .45rem; }
.emails a { text-decoration: none; }
.flow { width: min(100%, 23.5rem); justify-self: center; text-align: center; }
.flow canvas { display: block; width: 100%; aspect-ratio: 1; height: auto; cursor: pointer; touch-action: manipulation; }
.flow figcaption { display: flex; flex-direction: column; align-items: center; gap: .06rem; margin-top: -.4rem; }
.flow i { font-size: 1rem; color: var(--muted); }
.flow figcaption span { font-size: .78rem; color: var(--stone); }
.section { display: grid; grid-template-columns: minmax(0, 23%) minmax(0, 1fr); gap: 0 clamp(1.6rem, 3.5vw, 3.2rem);
  border-top: 1px solid var(--rule); padding: 1.95rem 0 2.05rem; }
h2 { font-size: clamp(1.65rem, 2.7vw, 2.2rem); line-height: 1.1; letter-spacing: -.045em; }
.section-content { min-width: 0; }
.entries { list-style: none; padding: 0; }
.entries li { padding: .82rem 0; border-bottom: 1px solid var(--fine); }
.entries li:first-child { padding-top: 0; }
.entries li:last-child { padding-bottom: 0; border-bottom: none; }
.entry-title { font-size: clamp(1.12rem, 1.55vw, 1.34rem); line-height: 1.28; letter-spacing: -.018em;
  text-decoration: none; overflow-wrap: anywhere; }
a.entry-title:hover { text-decoration: underline; }
.meta, .annotation, .sources { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.meta, .annotation { margin-top: .24rem; }
.meta:empty { display: none; }
.meta span + span::before { content: " · "; white-space: pre; color: var(--stone); }
.meta i { font-style: italic; }
.citation { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .08rem 1rem; }
.sources { margin-top: .24rem; display: flex; gap: .75rem; font-size: .8125rem; }
.sources a { color: var(--oak); text-decoration-color: var(--rule); }
.sources a:hover { text-decoration-color: currentColor; }
.annotation { max-width: 68ch; }
.m { white-space: nowrap; } sup, sub { font-size: .7em; line-height: 0; }
.more { margin-top: 1.05rem; }
summary { cursor: pointer; list-style: none; display: inline-flex; align-items: baseline; gap: .5rem;
  color: var(--oak); font-size: .875rem; padding: .32rem .1rem .32rem 0; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font-size: 1.05rem; line-height: 1; }
.more[open] > summary::before { content: "−"; }
.when-open, .more[open] > summary .when-closed { display: none; }
.more[open] > summary .when-open { display: inline; }
.more[open] > .entries { margin-top: .8rem; }
.assistant { margin-top: .5rem; }
.foot { border-top: 1px solid var(--rule); padding: 1.65rem 0 2.6rem; align-items: flex-start; }
.foot div { flex: 1; max-width: 44rem; color: var(--muted); font-size: .81rem; }
.foot p + p { margin-top: .25rem; }
.foot-cv { white-space: nowrap; color: var(--muted); }

@media (max-width: 48rem) {
  .hero { gap: 1rem; padding-inline: 0; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); }
  .section { grid-template-columns: minmax(0, 25%) minmax(0, 1fr); gap: 1.25rem; }
  .foot { flex-wrap: wrap; }
}
@media (max-width: 38rem) {
  /* Mobile: no wordmark (the name is right below), menu on the right. */
  .masthead { justify-content: flex-end; min-height: 0; padding: 1rem 0 .85rem; }
  .masthead > .wordmark { display: none; }
  nav { gap: .35rem 1.2rem; }
  .hero { position: relative; grid-template-columns: 1fr; padding: 2.4rem 0 2rem; }
  h1 { font-size: clamp(2.9rem, 11vw, 4rem); }
  .interests { font-size: 1.2rem; line-height: 1.34; letter-spacing: -.018em; margin-top: 1.45rem; max-width: 19em; }
  .affiliation { font-size: .875rem; }
  .affiliation::before { margin: 1.15rem 0 .8rem; }
  .emails { display: grid; gap: .1rem; margin-top: .6rem; }
  /* The curve becomes a seal (낙관) at the end of the intro: bottom-right, level with the last email line.
     bottom = .hero padding-bottom. translate = optical nudge only; it moves nothing else. */
  :root { --flow-traces: 7; }
  .flow { position: absolute; right: 0; bottom: 2rem; width: 46px; transform: translate(1px, 9px); }
  .flow figcaption { display: none; }
  .section { grid-template-columns: 1fr; gap: 1.15rem; padding: 1.5rem 0 1.65rem; }
  .foot { display: grid; gap: .7rem; padding: 1.4rem 0 2rem; }
}
@media print {
  :root, :root[data-theme] { --paper: white; --ink: black; --muted: #333; --grain: 0; }
  .masthead, .skip, summary, .flow figcaption span, .foot-cv { display: none; }
  .sheet { max-width: none; padding: 0; }
  .hero { padding: 1rem 0; }
  .section { display: block; padding: 1rem 0; }
  h2 { margin-bottom: .65rem; break-after: avoid; }
  .entries li { break-inside: avoid; }
  details::details-content { display: contents; content-visibility: visible; }
}
