/* ============================================================
   hw-oh.dev — personal site (hub + CV)
   Self-contained; used by / (index.html) and /cv.html
   ============================================================ */

:root {
  --bg: #ffffff;
  --panel: #fafaf9;
  --ink: #18181b;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --accent: #e0a400;
  --accent-strong: #b47f00;
  --accent-soft: #fff8e6;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11;
    --panel: #17171a;
    --ink: #f4f4f5;
    --ink-soft: #d4d4d8;
    --muted: #a1a1aa;
    --line: #27272a;
    --line-strong: #3f3f46;
    --accent: #f5b301;
    --accent-strong: #f5b301;
    --accent-soft: #2a2205;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* ---------- hub (index) ---------- */
.hub {
  padding: 96px 0 64px;
  background: radial-gradient(900px 320px at 50% -60px, var(--accent-soft), transparent 70%);
}
.hub { text-align: center; }
.hub .name { font-size: clamp(30px, 6vw, 42px); font-weight: 800; }
.hub .role { margin-top: 10px; font-weight: 700; color: var(--accent-strong); font-size: 15px; }
.hub .bio { margin-top: 16px; color: var(--ink-soft); font-size: 16.5px; }

.links { display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }
.link-row { display: grid; gap: 12px; }
.link-row.row-3 { grid-template-columns: repeat(3, 1fr); }
.link-row.row-2 { grid-template-columns: repeat(2, 1fr); }
.link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.link-ic {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}
.link-ic svg { width: 21px; height: 21px; }
.link-ic.emoji { font-size: 24px; line-height: 1; }
.link-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-title { font-weight: 700; font-size: 15.5px; }
.link-sub { color: var(--muted); font-size: 13px; }

@media (max-width: 520px) {
  .link-row.row-3, .link-row.row-2 { grid-template-columns: 1fr; }
  .link { flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 14px 16px; }
  .link-body { flex: 1; }
}

.site-foot { color: var(--muted); font-size: 13.5px; padding: 40px 0 60px; }
.site-foot a { color: var(--accent-strong); font-weight: 600; }

/* ---------- CV ---------- */
.cv { padding: 56px 0 80px; max-width: 760px; }
.cv-top .back { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.cv-top .back:hover { color: var(--ink); }
.cv-head { margin-top: 22px; }
.cv-head h1 { font-size: clamp(28px, 5vw, 38px); font-weight: 800; }
.cv-head .role { margin-top: 8px; font-weight: 700; color: var(--accent-strong); }
.cv-contact { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.cv-contact a { color: var(--ink-soft); font-weight: 600; }
.cv-contact a:hover { color: var(--accent-strong); }

.cv section { margin-top: 34px; }
.cv h2 {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.job { margin-bottom: 22px; }
.job:last-child { margin-bottom: 0; }
.job .jt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.job .org { font-weight: 800; font-size: 16px; }
.job .when { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.job .pos { color: var(--accent-strong); font-weight: 700; font-size: 14.5px; margin-top: 2px; }
.job .meta { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.job ul { margin: 10px 0 0; padding: 0; list-style: none; }
.job li { position: relative; padding-left: 18px; margin: 7px 0; color: var(--ink-soft); font-size: 14.5px; }
.job li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.job li strong { color: var(--ink); }
.job ul ul { margin: 5px 0 2px; padding: 0; list-style: none; }
.job ul ul li { padding-left: 16px; margin: 4px 0; font-size: 13.5px; color: var(--muted); }
.job ul ul li::before { top: 9px; left: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.job li a, .cv p a, .cv li a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

.rows { display: grid; grid-template-columns: 1fr; gap: 14px; }
.row .k { font-weight: 700; }
.row .v { color: var(--ink-soft); font-size: 14.5px; }
.cv ol.pubs { margin: 0; padding-left: 20px; }
.cv ol.pubs li { margin: 8px 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.tag { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.cv-p { color: var(--ink-soft); font-size: 14.5px; margin: 8px 0 0; }
.cv ul.plain { margin: 10px 0 0; padding: 0; list-style: none; }
.cv ul.plain li { position: relative; padding-left: 18px; margin: 7px 0; color: var(--ink-soft); font-size: 14.5px; }
.cv ul.plain li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }

@media (max-width: 480px) {
  .hub { padding: 64px 0 40px; }
  .cv { padding: 40px 0 60px; }
}
