:root {
  --mist: #EDF0F2; --paper: #F7F8F9; --ink: #16213A; --gold: #A97C2A; --gold-light: #C9A24A;
  --pine: #2F5D50; --stone: #5E6573; --line: #CDD3D9;
  --serif: "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR", Georgia, serif;
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--mist); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.7;
  word-break: keep-all; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
html[lang="ko"] [data-l="en"], html[lang="en"] [data-l="ko"] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 28px; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 18px; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--stone); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.lang { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.lang:hover { background: var(--ink); color: var(--mist); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding: 64px 0 80px; border-bottom: 1px solid var(--line); }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 7vw, 76px); line-height: 1.1; letter-spacing: -0.01em; }
.hero .sub { font-family: var(--serif); font-size: 22px; color: var(--stone); margin-top: 10px; }
.hero .lead { font-size: 20px; max-width: 30em; margin-top: 32px; }
.hero .stamp { margin-top: 20px; font-size: 14px; color: var(--stone); }
.seal { display: flex; flex-direction: column; align-items: center; gap: 0.08em; font-family: var(--serif); font-weight: 700;
  font-size: clamp(88px, 13vw, 150px); line-height: 1; color: var(--gold); border: 3px solid var(--gold); border-radius: 10px;
  padding: 22px 16px; animation: settle 1.2s ease-out both; }
.seal span { display: block; }
@keyframes settle { from { opacity: 0; transform: rotate(-4deg) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .seal { animation: none; } }

section { padding: 72px 0; border-bottom: 1px solid var(--line); }
h2 { font-family: var(--serif); font-weight: 700; font-size: 30px; margin-bottom: 8px; }
.section-note { color: var(--stone); font-size: 15px; margin-bottom: 28px; max-width: 40em; }
.story p { max-width: 36em; }
.story p + p { margin-top: 16px; }

/* Projects with stage track */
.projects { list-style: none; }
.project { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.3; }
.project .note { display: block; margin-top: 6px; font-size: 14px; color: var(--pine); font-weight: 500; }
.project p { max-width: 34em; }
.track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 16px; max-width: 34em; }
.track li { font-size: 12.5px; color: var(--stone); padding-top: 8px; border-top: 4px solid var(--line); }
.track li.done { border-top-color: var(--pine); color: var(--ink); }
.track li.now { border-top-color: var(--gold); color: var(--ink); font-weight: 600; }
.shots { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin: 4px 0 28px 244px; align-items: start; }
.shots img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 8px; background: #F8F9F5; }
.shots figcaption { grid-column: 1 / -1; font-size: 14px; color: var(--stone); }

/* Log list */
.loglist { list-style: none; }
.loglist li { border-top: 1px solid var(--line); }
.loglist li:last-child { border-bottom: 1px solid var(--line); }
.loglist a { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; text-decoration: none; }
.loglist time { font-size: 14px; color: var(--stone); padding-top: 4px; }
.loglist strong { font-family: var(--serif); font-size: 21px; line-height: 1.4; display: block; }
.loglist span.desc { display: block; color: var(--stone); font-size: 15px; margin-top: 4px; }
.loglist a:hover strong { color: var(--gold); }
.more { display: inline-block; margin-top: 20px; font-weight: 600; }

/* Timeline */
.timeline { list-style: none; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--mist); border: 2px solid var(--pine); }
.timeline li:first-child::before { background: var(--gold); border-color: var(--gold); }
.timeline time { font-size: 14px; color: var(--stone); display: block; }
.timeline p { max-width: 36em; }

.contact p { max-width: 34em; }
.mail { display: inline-block; margin-top: 20px; font-family: var(--serif); font-size: 24px; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--gold-light); padding-bottom: 2px; word-break: break-all; }
.mail:hover { color: var(--gold); }

footer.site { padding: 44px 0 56px; font-size: 14px; color: var(--stone); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
footer.site h4 { font-size: 14px; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
footer.site ul { list-style: none; }
footer.site li + li { margin-top: 4px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 48px 0 72px; }
.article .meta { color: var(--stone); font-size: 14px; }
.article h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 40px); line-height: 1.3; margin: 10px 0 28px; }
.article h2 { font-size: 22px; margin: 40px 0 12px; }
.article p { margin-top: 14px; }
.article ul, .article ol { margin-top: 14px; padding-left: 1.3em; }
.article li + li { margin-top: 6px; }
.article figure { margin: 24px 0; }
.article figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; display: block; }
.article figcaption { font-size: 14px; color: var(--stone); margin-top: 8px; }
.article .back { display: inline-block; margin-top: 48px; font-weight: 600; }

@media (max-width: 720px) {
  .nav { gap: 14px; }
  .nav .hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; padding: 40px 0 56px; gap: 36px; }
  .seal { justify-self: start; font-size: 80px; padding: 16px 12px; }
  .project { grid-template-columns: 1fr; gap: 10px; }
  .shots { grid-template-columns: 1fr; margin-left: 0; }
  .loglist a { grid-template-columns: 1fr; gap: 4px; }
  section { padding: 56px 0; }
  .mail { font-size: 20px; }
  footer.site { grid-template-columns: 1fr 1fr; }
  footer.site > div:first-child { grid-column: 1 / -1; }
}

/* Article extras */
.article .lede { font-size: 19px; margin-top: 0; }
.article .notice { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; background: var(--paper); font-size: 15px; }
.article .table-wrap { overflow-x: auto; margin-top: 16px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.article th, .article td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 8px; }
.article th { font-weight: 600; white-space: nowrap; }
.article blockquote { margin-top: 20px; padding-left: 18px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 20px; line-height: 1.6; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 18px; padding: 0 !important; counter-reset: f; }
.flow li { margin: 0 !important; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--pine); border-radius: 6px; padding: 10px 10px 12px; font-size: 14px; line-height: 1.45; }
.flow li strong { display: block; font-size: 15px; margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.facts dt { font-size: 13px; color: var(--stone); }
.facts dd { font-family: var(--serif); font-weight: 700; font-size: 19px; margin-top: 2px; }
@media (max-width: 720px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
}
