/* Root one-pager at jaeyongjung.me. Plain static HTML so it can sit beside the
   /portfolio deck without touching its basePath. Colors follow the deck cover. */
@font-face { font-family:Pretendard; src:url('/portfolio/fonts/PretendardVariable.woff2') format('woff2'); font-weight:100 900; font-display:swap; }

:root {
  --paper:#1a1a1a; --ink:#eeeeee; --muted:#8f8f8f; --line:#4a4a4a;
  --sans:'Helvetica Neue', Helvetica, Pretendard, sans-serif;
  /* Meslo is a Menlo fork; the 2.5 MB file is not worth it for four labels. */
  --mono:MesloLGS, Menlo, ui-monospace, monospace;
  }
* { box-sizing:border-box; }
html { background:var(--paper); color-scheme:dark; }
body { margin:0; color:var(--ink); font:400 16px/1.85 var(--sans); -webkit-font-smoothing:antialiased; word-break:keep-all; }
::selection { background:#eee; color:#1a1a1a; }

main { max-width:732px; margin:0 auto; padding:clamp(96px, 16vh, 160px) 24px 128px; }
p { margin:0 0 1.4em; }
em { font-style:normal; color:#fff; }
h2 { margin:0 0 20px; font:400 12px/1.6 var(--mono); color:var(--muted); letter-spacing:.02em; }

a { color:inherit; text-decoration:underline; text-decoration-color:var(--line); text-decoration-thickness:1px; text-underline-offset:4px; transition:text-decoration-color 120ms ease-out, color 120ms ease-out; }
a:hover { text-decoration-color:var(--ink); color:#fff; }
a:focus-visible { outline:2px solid var(--ink); outline-offset:3px; border-radius:2px; }

/* The name is Playwrite US Trad Guides itself, revealed by a mask of pen strokes in
   writing order (scripts/name/build.py), on the page's own guide lines. */
.masthead { display:flex; align-items:center; gap:24px; margin:0 0 56px; }
.name { margin:0; line-height:0; }
.name-svg { display:block; height:44px; width:auto; overflow:visible; }
.name-guides line { stroke:var(--ink); stroke-opacity:.3; stroke-width:1; vector-effect:non-scaling-stroke; }
.name-guides .base { stroke-opacity:.55; }
.name-ink { fill:var(--ink); }
.note-ink path { fill:none; stroke:var(--ink); stroke-linecap:round; stroke-linejoin:round; }
.role { margin:0; padding-left:24px; border-left:1px solid var(--line); line-height:1.5; }
.role span { color:var(--muted); }

.portfolio { margin-top:80px; }
/* Building → Design → Notes read top to bottom: the order is the point. */
.columns { display:grid; gap:104px; margin:104px 0; }
ul { list-style:none; margin:0; padding:0; display:grid; gap:24px; }
.columns ul { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:32px 40px; }
li { display:grid; }
.title { color:var(--ink); }
.desc { color:var(--muted); }
.live { justify-self:start; margin-top:2px; color:var(--muted); font-size:14px; text-decoration-color:transparent; }
.live:hover { text-decoration-color:var(--muted); }
.soon { margin-left:4px; padding:1px 6px; border:1px solid var(--line); border-radius:4px; font:400 11px/1 var(--mono); vertical-align:2px; }

.contact p { color:var(--ink); }

@media (max-width:640px) {
  .columns { gap:80px; margin:80px 0; }
  .columns ul { grid-template-columns:1fr; gap:24px; }
  .name-svg { height:36px; }
  .masthead { flex-direction:column; align-items:flex-start; gap:20px; }
  .role { padding-left:0; border-left:0; }
}

/* Intro: home.js writes the name, then fades the rest in. The class is set before
   first paint (and never under reduced motion) so nothing flashes in early. */
html.intro .name-guides line { transform:scaleX(0); }
html.intro .name-ink { visibility:hidden; }
html.intro [data-reveal] { opacity:0; }
@keyframes page-in { from { opacity:0; } }
html.return body { animation:page-in 180ms ease-out backwards; }

/* "이 포트폴리오": a hand-drawn note that circles the window you are reading it in. */
.annotation { position:fixed; inset:0; z-index:10; width:100%; height:100%; pointer-events:none; overflow:visible; }
.annotation path { fill:none; stroke:var(--ink); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.annotation-note { position:fixed; z-index:10; height:30px; width:auto; overflow:visible; pointer-events:none; }
.annotation-note .note-ink path { stroke-width:1.6px; vector-effect:non-scaling-stroke; }
.link-button { padding:0; border:0; background:none; color:inherit; font:inherit; cursor:pointer; text-decoration:underline; text-decoration-color:var(--line); text-decoration-thickness:1px; text-underline-offset:4px; transition:text-decoration-color 120ms ease-out, color 120ms ease-out; }
.link-button:hover { text-decoration-color:var(--ink); color:#fff; }
.link-button:focus-visible { outline:2px solid var(--ink); outline-offset:3px; border-radius:2px; }


/* Pointer light: a small disc under the mouse that turns what it covers into a negative,
   so the dark paper reads as --ink and the light text as near black. invert() alone gives
   #e5e5e5 for the paper; brightness(1.04) lifts it to #eeeeee. The page-in fades must not stay filled: an
   animated body becomes the backdrop root and the disc would no longer see the paper. */
.pointer { position:fixed; z-index:100; left:0; top:0; width:32px; height:32px; margin:-16px 0 0 -16px; border-radius:50%; pointer-events:none; opacity:0; scale:.4; transition:opacity 160ms ease-out, scale 160ms ease-out; -webkit-backdrop-filter:invert(1) brightness(1.04); backdrop-filter:invert(1) brightness(1.04); }
.pointer.is-on { opacity:1; scale:1; }
.pointer.is-on.is-down { scale:.7; transition:opacity 160ms ease-out, scale 90ms ease-out; }
.pointer.is-on:not(.is-down) { transition:opacity 160ms ease-out, scale 320ms cubic-bezier(.3,1.6,.5,1); }
@media (prefers-reduced-motion: reduce) { .pointer, .pointer.is-on.is-down, .pointer.is-on:not(.is-down) { transition:none; } }

/* Equal, quiet document entries. Icons identify the document without boxed tiles. */
.document-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; margin-top:40px; }
.document-link { display:flex; align-items:flex-start; gap:14px; padding:10px 0; border:0; background:none; color:inherit; text-align:left; font:inherit; text-decoration:none; cursor:pointer; }
.document-link > svg { width:24px; height:24px; flex:none; margin-top:3px; fill:none; stroke:currentColor; stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; color:var(--muted); }
.document-link > span { display:grid; }
.document-title { text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:4px; }
.document-link .desc { font-size:14px; }
.document-link:hover .document-title { text-decoration-color:var(--ink); }
.document-link:focus-visible { outline:2px solid var(--ink); outline-offset:5px; }
/* Small inset icon tiles, matching the project reference. */
.document-link { align-items:center; }
.document-icon { display:grid; place-items:center; flex:none; width:48px; height:56px; padding:3px; border:1px solid #303030; border-radius:9px; position:relative; }
.document-icon::before { content:''; position:absolute; inset:3px; border:1px solid #262626; border-radius:6px; }
.document-icon svg { width:23px; height:23px; fill:none; stroke:var(--muted); stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; }

/* Balance short copy; keep longer prose flowing naturally with a fuller last line. */
.title, .desc, .document-title { text-wrap:balance; overflow-wrap:anywhere; }
main.site > p, main > p[data-reveal] { text-wrap:pretty; overflow-wrap:anywhere; }

/* List rows grow with their content; text always starts at the top. */
.columns ul { align-items:start; }
.columns li { align-content:start; }
.document-link { align-items:flex-start; }
.document-icon { margin-top:3px; }
