@charset "UTF-8";

@font-face {
  font-family: "Manwol Korean";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/manwol-korean.ttf") format("truetype");
  unicode-range: U+B9CC, U+C6D4;
}

:root {
  color-scheme: dark;
  --background: #141414;
  --text: #e6e6e6;
  --muted: #a4a4a4;
  --link: #70b8ff;
  --accent: #e2b38f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.9;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--text); background: var(--background); }
[lang="ko"] { font-family: "Manwol Korean", sans-serif; }
::selection { color: #141414; background: #e8c5a8; }
p, h1, h2 { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button[hidden] { display: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 8px 16px; color: #141414; background: var(--text); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.page { min-height: 100svh; display: flex; flex-direction: column; padding: 44px 48px 28px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; }
.header-identity { display: flex; flex-direction: column; }
.wordmark { text-transform: uppercase; letter-spacing: .015em; }
.brand-mark { display: inline-block; font-size: 13px; margin-left: 2px; animation: cursor-blink 1s steps(1, end) infinite; }
.copyright { line-height: 1.5; }
.main-layout { width: 100%; max-width: 1350px; display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 720px); gap: 80px; padding: 90px 0 48px; }
.content { align-self: start; padding-top: 43px; }
h1 { font-size: 18px; line-height: 1.55; font-weight: 400; letter-spacing: -.04em; margin-bottom: 27px; }
.intro p { margin-top: 22px; max-width: 480px; }
.korean { font-size: 14px; }
.meaning-divider { padding: 0 6px; color: var(--muted); }
.accent { color: var(--accent); }
.projects { margin-top: 49px; }
h2 { font-size: 12px; line-height: 1.8; font-weight: 600; text-transform: uppercase; }
h2 span { color: var(--muted); font-weight: 400; }
.project-list { padding: 0; margin: 20px 0 0; list-style: none; }
.project-list li { display: grid; grid-template-columns: 19ch auto; align-items: baseline; gap: 8px 20px; padding: 13px 0; }
.project-description { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.8; }
.project-link { color: var(--link); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #70b8ff70; }
.project-link:hover { color: #b5dbff; text-decoration-color: currentColor; }
.status { color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-live { color: #aac6a6; }
.status-progress { color: #d6b797; }
.moon-scene { width: 100%; align-self: start; }
.moon-stage { position: relative; width: 100%; max-width: 720px; aspect-ratio: 1; isolation: isolate; }
.orbit { position: absolute; inset: 0; overflow: clip; }
.orbit-type { width: 100%; height: 100%; fill: #aaa8a3; font-size: 9px; letter-spacing: 2px; animation: orbit-turn 140s linear infinite; }
.moon-float { position: absolute; inset: 11%; display: grid; align-items: center; animation: moon-drift 9s ease-in-out infinite; }
.moon-track { transform: translate(var(--moon-x, 0px), var(--moon-y, 0px)) rotate(var(--moon-r, -7deg)); transition: transform .8s cubic-bezier(.2,.65,.25,1); }
.moon { display: block; width: 100%; height: auto; user-select: none; filter: drop-shadow(0 0 1px #e8c5a866); }
.motion-paused .orbit-type, .motion-paused .moon-float { animation-play-state: paused; }
.motion-paused .moon-track { transform: rotate(-7deg); }
.motion-paused .brand-mark { animation: none; opacity: 1; }
.site-footer { margin-top: auto; display: flex; justify-content: flex-start; align-items: center; padding-top: 32px; font-size: 11px; color: var(--muted); }
.motion-toggle { border: 0; background: none; color: var(--muted); padding: 10px 12px 10px 0; cursor: pointer; font-size: 11px; }
.motion-toggle::before { content: "[ "; }
.motion-toggle::after { content: " ]"; }
.motion-toggle:hover { color: var(--text); }

@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes moon-drift { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes cursor-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (max-width: 1100px) {
  .page { padding: 34px 32px 24px; }
  .main-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; padding-top: 76px; }
  .content { padding-top: 22px; }
  .intro p { font-size: 12px; }
  .projects { margin-top: 34px; }
  .project-list li { gap: 5px 16px; }
}
@media (max-width: 720px) {
  .page { padding: 26px 24px 18px; }
  .site-header { font-size: 11px; gap: 14px; }
  .brand-mark { font-size: 11px; }
  .main-layout { display: flex; flex-direction: column; gap: 0; padding: 50px 0 26px; }
  .content { display: contents; }
  .intro { order: 0; }
  h1 { font-size: 18px; margin-bottom: 22px; }
  .intro p { margin-top: 18px; }
  .moon-scene { order: 1; width: 100%; max-width: 450px; align-self: center; margin-top: 30px; margin-bottom: 32px; }
  .projects { order: 2; margin-top: 0; }
  .project-list { margin-top: 15px; }
  .project-list li { padding: 12px 0; }
  .project-description { font-size: 11px; }
  .status { font-size: 10px; }
  .site-footer { font-size: 10px; padding-top: 28px; gap: 12px; }
  .motion-toggle { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-type, .moon-float, .brand-mark { animation: none; }
  .moon-track { transition: none; }
  .motion-enabled .orbit-type { animation: orbit-turn 140s linear infinite; }
  .motion-enabled .moon-float { animation: moon-drift 9s ease-in-out infinite; }
  .motion-enabled .brand-mark { animation: cursor-blink 1s steps(1, end) infinite; }
}
