/* ==========================================================================
   LearningnRunning — portfolio & blog
   ========================================================================== */

:root {
  --bg: #f7f5f0;
  --bg-alt: #efebe3;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-2: #353944;
  --muted: #646a78;
  --line: #e2ddd2;
  --line-strong: #cfc8ba;
  --accent: #d4532a;
  --accent-ink: #ffffff;
  --food: #d4532a;
  --travel: #1b8674;
  --people: #6a4bd6;
  --beauty: #c03f78;
  --production: #3565c9;
  --platform: #7d6a4f;
  --llm: #2f7d3b;
  --product: #b07a12;
  --code-bg: #f0ece4;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 8px 24px -12px rgba(22, 24, 29, .12);
  --radius: 14px;
  --maxw: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --bg-alt: #15181d; --surface: #1a1d23; --ink: #eceef2; --ink-2: #c9ccd4;
    --muted: #9ba1ad; --line: #292d35; --line-strong: #3a3f49; --accent: #f07a50; --accent-ink: #111317;
    --food: #f07a50; --travel: #3cc2aa; --people: #9b85f0; --beauty: #ea79a9; --production: #6f97ec; --platform: #c2a77e; --llm: #6cc17a; --product: #e0b04a;
    --code-bg: #1f232a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111317; --bg-alt: #15181d; --surface: #1a1d23; --ink: #eceef2; --ink-2: #c9ccd4;
  --muted: #9ba1ad; --line: #292d35; --line-strong: #3a3f49; --accent: #f07a50; --accent-ink: #111317;
  --food: #f07a50; --travel: #3cc2aa; --people: #9b85f0; --beauty: #ea79a9; --production: #6f97ec; --platform: #c2a77e; --llm: #6cc17a; --product: #e0b04a;
  --code-bg: #1f232a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.75; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none;
  font-weight: 600; font-size: 15px; border: 1px solid var(--ink); transition: transform .15s ease, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--bg); font-size: 12px; letter-spacing: .02em;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--bg-alt); }
.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; margin-left: 4px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 10px; cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }

/* Hero ------------------------------------------------------------------ */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.18; margin-bottom: 22px; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--accent); }
.hero .lead { max-width: 520px; }
.cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

.flow {
  margin: 0; position: relative; display: grid; grid-template-columns: 1fr 18px 1fr 18px 1fr; gap: 8px;
  padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.flow-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.flow-h { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: 2px; }
.node {
  font-size: 12.5px; line-height: 1.45; padding: 8px 10px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
}
.node.mono { font-family: var(--mono); font-size: 11.5px; }
.node.d-food, .node.d-travel, .node.d-people { border-left: 3px solid var(--c); }
.node.out { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--ink); font-weight: 600; }
.flow-arrow { position: relative; }
.flow-arrow::before {
  content: ""; position: absolute; top: 50%; left: 2px; right: 2px; height: 2px; background: var(--line-strong);
}
.flow-arrow::after {
  content: ""; position: absolute; top: calc(50% - 4px); right: 0; border: 5px solid transparent; border-left-color: var(--line-strong); border-right: 0;
}
.flow figcaption { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: 6px; }

.d-food { --c: var(--food); } .d-travel { --c: var(--travel); } .d-people { --c: var(--people); }
.d-beauty { --c: var(--beauty); } .d-production { --c: var(--production); } .d-platform { --c: var(--platform); }
.d-llm { --c: var(--llm); } .d-product { --c: var(--product); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 56px 0 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats > div { padding: 22px 20px 22px 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dd { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.stats.compact { margin-top: 32px; }
.stats.compact dd { font-size: 22px; }

/* Sections -------------------------------------------------------------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.sec-lead { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.sec-lead strong { color: var(--ink); }

/* Domains */
.domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.domain {
  position: relative; padding: 28px 26px 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.domain::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.domain-label { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--c); }
.domain-signal { font-size: 14px; color: var(--ink); font-weight: 600; }
.domain-signal span {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--c); border: 1px solid currentColor;
  border-radius: 6px; padding: 0 6px; margin-right: 8px; vertical-align: 2px;
}
.domain-built { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.domain-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.domain-links a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.domain-links a:hover { border-color: var(--c); color: var(--c); }

/* Project cards */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pgrid-small { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.pcard {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--surface); min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pcard:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.pcard-lg { grid-column: 1 / -1; }
.pcard-lg h3 { font-size: 28px; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard-period { font-size: 13px; color: var(--muted); text-align: right; }
.pcard h3 { font-size: 21px; font-weight: 800; }
.pcard-sub { color: var(--ink-2); font-size: 15px; }
.pcard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 4px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pcard-metrics div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.pcard-metrics dd { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pcard-metrics dt { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pcard-lg .pcard-metrics dd { font-size: 24px; }
.pcard-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }

.dtags { display: flex; flex-wrap: wrap; gap: 6px; }
.dtag {
  font-size: 12px; font-weight: 700; color: var(--c); padding: 2px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
}

.mini {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius);
  border: 1px dashed var(--line-strong); text-decoration: none; color: inherit; transition: border-color .15s;
}
a.mini:hover { border-style: solid; border-color: var(--ink-2); }
.mini-tag { font-size: 12px; font-weight: 700; color: var(--muted); }
.mini h3 { font-size: 17px; font-weight: 800; }
.mini p { font-size: 14px; color: var(--ink-2); }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; counter-reset: s; }
.process li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 26px 0; border-top: 1px solid var(--line); }
.process .step { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); padding-top: 4px; }
.process h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.process p { color: var(--ink-2); font-size: 15px; }
.ref { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.ref:hover { color: var(--accent); border-color: var(--accent); }
.ref + .ref { margin-left: 16px; }

/* Career */
.career { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.job { padding: 24px 0; border-top: 1px solid var(--line-strong); }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.job-head h3 { font-size: 20px; font-weight: 800; }
.job-head span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.job-role { font-weight: 600; color: var(--accent); font-size: 15px; margin: 2px 0 8px; }
.job .muted { font-size: 15px; }
.job ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.job li + li { margin-top: 6px; }
.career-side { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.side-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-block h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.plain li:first-child { border-top: 0; padding-top: 0; }
.plain span { color: var(--muted); font-size: 13px; }
.plain em { font-style: normal; color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }

/* Talks & writing */
.talks { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.talk-list, .write-list { list-style: none; margin: 0; padding: 0; }
.talk-list li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.talk-meta { font-size: 13px; color: var(--muted); }
.talk-list strong { font-size: 16px; }
.talk-links { display: flex; gap: 12px; }
.talk-links a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.write-list li { border-top: 1px solid var(--line); }
.write-list a { display: flex; gap: 12px; align-items: baseline; padding: 14px 0; text-decoration: none; font-weight: 600; font-size: 15.5px; }
.write-list a:hover { color: var(--accent); }
.tag {
  flex: none; font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line-strong);
  padding: 1px 7px; border-radius: 6px; white-space: nowrap;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; }
.footer-links a:hover { border-color: var(--ink); }
.copy { margin-top: 36px; font-size: 13px; color: var(--muted); }

/* Project page ----------------------------------------------------------- */
.project-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.project-head .dtags { margin-bottom: 14px; }
.project-head h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.project-head .lead { margin-top: 12px; max-width: 760px; font-size: 19px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 28px 0 0; }
.meta div { display: flex; gap: 10px; font-size: 14.5px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 600; }
.project-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 72px; }
.project-aside { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 26px; font-size: 14px; }
.aside-h { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.signal-box { padding: 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.signal-box .aside-h { color: var(--accent); }
.signal-box p:last-child { color: var(--ink); line-height: 1.6; }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { font-size: 12.5px; padding: 3px 9px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li + li { margin-top: 6px; }
.aside-links a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.aside-links a:hover { color: var(--accent); border-color: var(--accent); }
.project-nav, .post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 80px; }
.project-nav a, .post-nav a {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-weight: 700; background: var(--surface);
}
.project-nav a:hover, .post-nav a:hover { border-color: var(--line-strong); }
.project-nav span, .post-nav span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.project-nav .next, .post-nav .next { text-align: right; grid-column: 2; }

/* Screenshots */
.project-main { min-width: 0; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 36px; scroll-snap-type: x mandatory; border-bottom: 1px solid var(--line); }
.shot { margin: 0; flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.shot img { display: block; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); object-fit: cover; object-position: top; }
.shot-mobile img { width: 200px; height: 433px; }
.shot-desktop img { width: 480px; height: 300px; }
.shot figcaption { font-size: 13px; color: var(--muted); max-width: 100%; }
.shot-mobile figcaption { width: 200px; }
.shot-desktop figcaption { width: 480px; }
@media (max-width: 640px) { .shot-desktop img, .shot-desktop figcaption { width: 300px; } .shot-desktop img { height: 188px; } .shot-mobile img, .shot-mobile figcaption { width: 160px; } .shot-mobile img { height: 346px; } }

/* Prose ------------------------------------------------------------------ */
.prose { font-size: 16.5px; line-height: 1.85; color: var(--ink-2); min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); }
.prose h1 { font-size: 28px; margin-top: 1.8em; }
.prose h2 { font-size: 23px; font-weight: 800; margin-top: 2.2em; padding-top: 4px; }
.prose h3 { font-size: 19px; font-weight: 700; margin-top: 1.8em; }
.prose h4 { font-size: 17px; margin-top: 1.6em; }
.prose > h2:first-child, .prose > h1:first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose blockquote > * + * { margin-top: .6em; }
.prose img { display: block; margin-left: auto; margin-right: auto; border-radius: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--code-bg); padding: .12em .38em; border-radius: 5px; color: var(--ink); }
.prose pre { background: var(--code-bg); padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.6; border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; border-bottom: 1.5px solid var(--line-strong); white-space: nowrap; }
.prose td:not(:first-child) { font-variant-numeric: tabular-nums; }
.prose iframe { max-width: 100%; }

/* Post & blog ------------------------------------------------------------ */
.page-head, .post-head { padding: 56px 0 32px; }
.page-head h1, .post-head h1 { font-size: clamp(30px, 4.2vw, 42px); font-weight: 800; letter-spacing: -0.03em; }
.page-head .lead, .post-head .lead { margin-top: 12px; }
.post .prose { padding-bottom: 48px; }
.post-foot { border-top: 1px solid var(--line); padding-top: 28px; }
.post-nav { padding-bottom: 28px; }
.author-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-alt); margin-bottom: 80px; font-size: 15px; }
.author-card a { font-weight: 700; color: var(--accent); text-decoration: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { font-size: 14px; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.chip span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.is-on span { color: inherit; opacity: .7; }
.post-list { padding-bottom: 96px; }
.year-group { display: grid; grid-template-columns: 120px 1fr; gap: 24px; border-top: 1px solid var(--line-strong); padding: 24px 0; }
.year { font-size: 22px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.year-group ul { list-style: none; margin: 0; padding: 0; }
.year-group li { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.year-group li:first-child { border-top: 0; padding-top: 2px; }
.year-group li a { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.pl-title { font-weight: 700; font-size: 16.5px; }
.pl-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.year-group li a:hover .pl-title { color: var(--accent); }
.pl-meta { display: flex; gap: 10px; align-items: center; flex: none; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.notfound { padding: 120px 24px; }
.notfound h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.notfound .btn { margin-top: 24px; margin-right: 8px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .domains { grid-template-columns: 1fr; }
  .pgrid-small { grid-template-columns: repeat(2, 1fr); }
  .career, .talks { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr; }
  .project-body { grid-template-columns: 1fr; gap: 32px; }
  .project-aside { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 28px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a:not([aria-current]):not(:nth-child(1)):not(:nth-child(4)) { display: none; }
  .hero { padding: 40px 0 24px; }
  .flow { grid-template-columns: 1fr; padding: 16px; }
  .flow-arrow { height: 16px; }
  .flow-arrow::before { top: 0; bottom: 0; left: 50%; right: auto; width: 2px; height: auto; }
  .flow-arrow::after { top: auto; bottom: -2px; right: auto; left: calc(50% - 4px); border: 5px solid transparent; border-top-color: var(--line-strong); border-bottom: 0; }
  .flow-col { display: grid; grid-template-columns: 1fr 1fr; }
  .flow-h { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 16px 12px 16px 0; }
  .stats > div + div { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats dd { font-size: 21px; }
  .section { padding: 64px 0; }
  .pgrid, .pgrid-small { grid-template-columns: minmax(0, 1fr); }
  .pcard { padding: 20px; }
  .pcard-lg h3 { font-size: 24px; }
  .pcard-metrics { grid-template-columns: 1fr 1fr; }
  .pcard-metrics div:nth-child(3) { display: none; }
  .year-group { grid-template-columns: 1fr; gap: 8px; }
  .year-group li { flex-direction: column; gap: 6px; }
  .project-nav, .post-nav { grid-template-columns: 1fr; }
  .project-nav .next, .post-nav .next { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pcard, .btn { transition: none; } }

/* 회사 프로젝트 — 공개 범위 안내 & 상세 자료 요청 */
.confidential { margin-top: 22px; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.confidential strong { color: var(--ink); }
.confidential a { color: var(--accent); font-weight: 700; }
.request-box { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.request-box p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.request-box a { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 700; }
