/* NanumSquare Neo by NAVER, unmodified files. Licence: /site/fonts/Nanum-OFL.txt */
@font-face { font-family: "NanumSquare Neo"; font-weight: 400; font-style: normal; font-display: swap; src: url(/site/fonts/NanumSquareNeo-Regular.woff2) format("woff2"); }
@font-face { font-family: "NanumSquare Neo"; font-weight: 800; font-style: normal; font-display: swap; src: url(/site/fonts/NanumSquareNeo-ExtraBold.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --paper: #eef1f4; --ink: #161b22; --ink-2: #4d5a69; --ink-3: #6a7684; --line: #c9d1db; --accent: #526b88; --mesh: 52, 66, 84; --spark: #cf6d34; --spark-rgb: 207, 109, 52;
  --font: "NanumSquare Neo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: max(5vw, 24px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --paper: #090b0f; --ink: #e6ebf2; --ink-2: #a5b0bf; --ink-3: #7f8b9b; --line: #262d38; --accent: #a9bed8; --mesh: 176, 194, 216; --spark: #f0a46a; --spark-rgb: 240, 164, 106; }
}
:root[data-theme="dark"] { color-scheme: dark; --paper: #090b0f; --ink: #e6ebf2; --ink-2: #a5b0bf; --ink-3: #7f8b9b; --line: #262d38; --accent: #a9bed8; --mesh: 176, 194, 216; --spark: #f0a46a; --spark-rgb: 240, 164, 106; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.85 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: rgba(var(--spark-rgb), .22); }
html[data-language="en"] .copy-ko, html[data-language="ko"] .copy-en { display: none; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }

.top { position: fixed; z-index: 10; inset: 0 0 auto; display: flex; justify-content: flex-end; padding: 22px var(--gutter); pointer-events: none; }
.top nav { pointer-events: auto; }
.top nav { display: flex; align-items: center; gap: 16px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink-2); transition: color 160ms ease; }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.language-toggle { min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 11px; letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; }
html[data-language="en"] .language-en, html[data-language="ko"] .language-ko { color: var(--ink); }

/* A faint Delaunay mesh behind everything (mesh.js). Only short edges show, so
   it reads as scattered constellations, not a net. It drifts at a steady third
   of the scroll while the text eases, so scrolling stays visible. Strongest on
   the empty right side, almost gone behind the text. */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.3) 38%, #000 72%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.3) 38%, #000 72%); }
.mesh { display: block; width: 100%; height: 100%; }
main { position: relative; z-index: 1; }

/* One screen per section. home.js changes how fast each section's content
   moves: slowly while it sits in the middle, quickly between sections. */
.chapter { position: relative; min-height: 100svh; }
.shell { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 104px var(--gutter) 96px; }
.sections-ready .shell { opacity: var(--chapter-opacity, 1); will-change: transform, opacity; }
.list { max-width: 920px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
html[data-language="ko"] .hero h1 { letter-spacing: -.02em; }
/* The one warm point on the page: the full stop after the name. */
.hero h1 .stop { color: var(--spark); margin-left: .02em; }
.lede { margin-top: 28px; color: var(--ink-2); font-size: 15px; }
.anchor { position: absolute; bottom: 0; }

.chapter h2 { margin-bottom: 26px; color: var(--accent); font-size: 10px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
html[data-language="ko"] .chapter h2 { font-size: 11px; letter-spacing: .06em; }

.row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 4.5rem; align-items: baseline; gap: 6px 28px; padding-block: 11px; }
.name { font-size: 16px; letter-spacing: -.01em; transition: color 160ms ease; }
.note { color: var(--ink-2); font-size: 13px; word-break: keep-all; overflow-wrap: anywhere; }
.nobr { white-space: nowrap; }
.note .sub { display: block; margin-top: 1px; color: var(--ink-3); }
.note .sub a, .note .sub em { color: var(--ink-2); }
.year { justify-self: end; color: var(--ink-3); font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
a.row:hover .name, a.name:hover { color: var(--spark); }
.name { justify-self: start; }
.ext { margin-left: 6px; font-size: .7em; color: var(--ink-3); transition: color 160ms ease; }
a.row:hover .ext, a.name:hover .ext, .links a:hover .ext { color: var(--spark); }
.note em { font-style: normal; color: var(--ink); }
.note a { color: var(--ink); border-bottom: 1px solid var(--line); transition: color 160ms ease, border-color 160ms ease; }
.note a:hover { color: var(--spark); border-color: var(--spark); }

.email { display: inline-block; align-self: flex-start; max-width: 100%; padding-bottom: 6px; border-bottom: 1px solid var(--ink-3); font-size: clamp(22px, 2.8vw, 34px); line-height: 1.4; letter-spacing: -.03em; overflow-wrap: anywhere; transition: color 160ms ease, border-color 160ms ease; }
.email:hover { color: var(--spark); border-color: var(--spark); }
.links { display: flex; align-self: flex-start; flex-wrap: wrap; gap: 4px 26px; margin-top: 28px; font-size: 12px; color: var(--ink-2); }
.links a { display: inline-flex; align-items: center; min-height: 40px; transition: color 160ms ease; }
.links a:hover { color: var(--ink); }

.bottom { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 10px; color: var(--ink-3); }

@media (max-width: 640px) {
  .backdrop { -webkit-mask-image: none; mask-image: none; opacity: .5; }
  .top { padding-block: 18px; }
  .shell { padding-block: 96px 88px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding-block: 12px; }
  .note { grid-column: 1 / -1; grid-row: 2; }
  .bottom { bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
