:root {
  --paper: #faf9f6;
  --ink: #202723;
  --soft-ink: #48564e;
  --muted: #58665e;
  --line: #d8dcd5;
  --link: #1d5a4e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.54 "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #cfdfd5; color: var(--ink); }
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: #9ebdb0;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.page { width: min(calc(100% - 64px), 900px); margin: 0 auto; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--paper); padding: 8px 12px; z-index: 2; }
.skip:focus { top: 8px; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 48px;
  padding: 60px 0 43px;
}
.intro-copy { max-width: 70ch; }
h1, h2 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(42px, 5vw, 56px); line-height: 1.08; margin: 0 0 24px; }
.nickname { display: block; margin-top: 7px; color: var(--muted); font: 400 15px/1.4 "Source Sans 3", sans-serif; letter-spacing: 0; }
.intro p { margin: 0 0 14px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 11px; padding-top: 5px; font-size: 15px; }
.contact-line span { color: var(--muted); }
.portrait { width: 148px; height: 148px; margin-top: 8px; object-fit: cover; border-radius: 2px; }

section { border-top: 1px solid var(--line); padding: 33px 0 38px; }
.section-heading { margin-bottom: 18px; }
h2 { font-size: 28px; line-height: 1.2; margin: 0; }
h3 { font-size: 17px; line-height: 1.32; font-weight: 650; margin: 0; }
section > p { max-width: 72ch; margin: 0 0 8px; }
.section-note { color: var(--soft-ink); font-size: 14.5px; margin: -4px 0 20px; }

.feature {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 17px;
  padding: 13px 0;
  border-top: 1px solid #e6e9e2;
}
.feature:first-child { border-top: 0; padding-top: 0; }
.feature-year { color: var(--muted); font-size: 13px; padding-top: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.feature h3 { font-size: 18px; }
.feature h3 a, .plain-list strong a, .award h3 a, .company-head h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover, .plain-list strong a:hover, .award h3 a:hover, .company-head h3 a:hover { color: var(--link); text-decoration: underline; }
.feature p { max-width: 72ch; margin: 4px 0 0; color: var(--soft-ink); font-size: 15.5px; line-height: 1.5; }

.career-company {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid #e6e9e2;
}
.career-company:first-child { border-top: 0; padding-top: 0; }
.company-head h3 { font-size: 16px; margin-bottom: 2px; }
.company-head time { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.career-role { padding-bottom: 12px; }
.career-role:last-child { padding-bottom: 0; }
.career-role + .career-role { border-top: 1px solid #e6e9e2; padding-top: 11px; }
.career-role h4 { margin: 0 0 4px; font-size: 15px; line-height: 1.35; font-weight: 650; }
.career-role h4 span { margin-left: 8px; color: var(--muted); font-size: 12.5px; font-weight: 400; white-space: nowrap; }
.career-role p { max-width: 72ch; margin: 0; color: var(--soft-ink); font-size: 15px; line-height: 1.5; }

.plain-list, .archive { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid #e6e9e2;
  font-size: 15px;
  line-height: 1.46;
}
.plain-list li:first-child { border-top: 0; padding-top: 0; }
.plain-list strong { font-weight: 650; }
.plain-list span { color: var(--soft-ink); }
.plain-list time { color: var(--muted); font-variant-numeric: tabular-nums; }

.year-group {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 17px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.year-group h3 { color: var(--ink); font: 600 17px/1.4 "Source Serif 4", Georgia, serif; }
.entry { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 5px 0; line-height: 1.38; }
.entry time { color: var(--muted); font-size: 12.5px; padding-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry span { font-size: 15px; }
.entry a { color: var(--link); }
.entry small { margin-left: 8px; color: var(--muted); font: 400 12px/1.3 "Source Sans 3", sans-serif; white-space: nowrap; }

.award {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 17px;
  padding: 12px 0;
  border-top: 1px solid #e6e9e2;
}
.award:first-child { border-top: 0; padding-top: 0; }
.award > time, .award-date { color: var(--muted); font-size: 13px; padding-top: 3px; white-space: nowrap; }
.award h3 { font-size: 16px; }
.award p { color: var(--soft-ink); font-size: 14.5px; line-height: 1.46; margin: 3px 0 0; }
.award .award-meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 21px 0 46px; }
footer p { margin: 0; }

@media (max-width: 700px) {
  .page { width: calc(100% - 36px); }
  .intro { grid-template-columns: 1fr; gap: 22px; padding: 36px 0 30px; }
  .portrait { grid-row: 1; width: 112px; height: 112px; margin: 0; }
  h1 { font-size: 44px; }
  section { padding: 29px 0 35px; }
  .feature, .year-group, .award { grid-template-columns: 1fr; gap: 4px; }
  .feature-year, .award > time, .award-date { padding: 0; }
  .career-company { grid-template-columns: 1fr; gap: 8px; }
  .company-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .company-head time { text-align: right; }
  .career-role h4 span { display: block; margin: 2px 0 0; }
  .plain-list li { grid-template-columns: 1fr; gap: 3px; }
  .year-group { gap: 8px; }
  .entry { grid-template-columns: 57px minmax(0, 1fr); gap: 9px; }
  .entry small { display: block; margin: 2px 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
