:root {
  color-scheme: light dark;
  --paper: #f7f6f2;
  --ink: #1d1c19;
  --muted: #6d6a62;
  --rule: #dfdcd3;
  --accent: #1f5d4c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161513;
    --ink: #eceae4;
    --muted: #9b978d;
    --rule: #2e2c28;
    --accent: #7fc4ae;
  }
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 9vw, 96px) 24px 96px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease-out, color 160ms ease-out;
}

@media (hover: hover) {
  a:hover { color: var(--accent); text-decoration-color: currentColor; }
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: clamp(56px, 10vw, 88px);
}

h1 {
  font-size: clamp(34px, 6vw, 44px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.role { margin-top: 6px; color: var(--muted); font-size: 17px; }

.lead { margin-top: 24px; max-width: 34em; font-size: 17px; line-height: 1.65; }

.links { display: flex; gap: 20px; margin-top: 24px; }

.photo {
  flex: none;
  width: 104px;
  height: auto;
  border-radius: 4px;
}

section {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0 24px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}

h2 { font-size: 14px; font-weight: 600; line-height: 1.7; color: var(--muted); }

h3 { font-size: 15px; font-weight: 600; }
h3 span { margin-left: 6px; font-weight: 400; color: var(--muted); }
h4 { font-size: 15px; font-weight: 600; }

.org { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

article { margin-top: 24px; }

ul { margin-top: 6px; padding: 0; list-style: none; }
li { position: relative; padding-left: 14px; color: var(--ink); }
li + li { margin-top: 4px; }
li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 5px;
  height: 1px;
  background: var(--muted);
}

.date {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rows { display: grid; gap: 14px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.row p:not(.date) { margin-top: 2px; }

.skills {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px 16px;
}
dt { color: var(--muted); }

@media (max-width: 640px) {
  section { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .photo { width: 84px; }
  .row, .org { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}

@media print {
  :root { --paper: #fff; --ink: #000; --muted: #555; --rule: #ccc; --accent: #000; }
  .page { padding: 0; max-width: none; }
  section { break-inside: avoid; padding: 16px 0; }
  .intro { margin-bottom: 24px; }
  a { text-decoration: none; }
}
