:root {
  --ink: #222;
  --muted: #555;
  --band: #f3f3f3;
  --rule: #cbcbcb;
  --grey: #6b6b6b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.5 Roboto, system-ui, sans-serif;
  letter-spacing: 0.01em;
}

a { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
p { margin: 0; }
main:focus { outline: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 8px; top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}
.skip:focus { top: 8px; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
li { text-wrap: pretty; }

.wrap { max-width: 1134px; margin: 0 auto; padding: 0 24px; }
.col { max-width: 730px; margin: 0 auto; }

/* Header */
header {
  background: var(--band);
  border-radius: 0 0 56px 56px;
  padding: 56px 0 64px;
}
header .col, #projects .col, #skills .col { margin-left: 0; }
h1 { font-size: 40px; line-height: 1.15; }
.role { margin-top: 6px; }
.about { margin-top: 24px; text-wrap: pretty; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 16px; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.button-outline { background: #fff; color: var(--ink); font-weight: 400; }
.button:hover { opacity: 0.8; }

h2 { font-size: 34px; line-height: 1.2; font-weight: 700; }

/* Work + education, with the timeline map */
#journey { padding: 72px 0; }
.journey { display: flex; flex-direction: column; gap: 48px; }

.mm { width: 100%; max-width: 360px; }
.map {
  position: relative;
  height: clamp(460px, calc(100vh - 130px), 592px);
  margin-right: 6px;
}
.plot { position: absolute; inset: 48px 0 20px; }

.tick { position: absolute; left: 0; right: 0; height: 1px; background: var(--rule); }
.tick-label { position: absolute; left: 0; font-size: 11px; color: var(--muted); }
.now { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); }
.now-label { position: absolute; left: 0; font-size: 11px; font-weight: 700; }

.lane-label {
  position: absolute;
  top: -30px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lane-label-study { left: 36px; }
.lane-label-work { left: calc(36px + (100% - 48px) / 3 + 6px); }
.lane-label-founder { right: 0; }

.lane-study { --bd: var(--ink); --bg: #fff; --fg: var(--ink); }
.lane-work { --bd: var(--ink); --bg: var(--ink); --fg: #fff; }
.lane-founder { --bd: var(--grey); --bg: var(--grey); --fg: #fff; }

.bar {
  position: absolute;
  width: calc((100% - 48px) / 3);
  padding: 7px 5px;
  border: 2px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  outline: 3px solid transparent;
  outline-offset: 3px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  overflow-wrap: break-word;
  z-index: 1;
  font-size: 11.5px;
  line-height: 1.25;
  letter-spacing: 0;
}
.bar b { font-size: 12px; line-height: 1.2; }
.bar-head { display: flex; align-items: flex-start; gap: 5px; }
.bar-head img {
  flex: none;
  height: 1.2em;
  width: auto;
  max-width: 28px;
  object-fit: contain;
  background: #fff;
  border-radius: 2px;
}
.lane-study.bar { left: 36px; }
.lane-work.bar { left: calc(36px + (100% - 48px) / 3 + 6px); }
.lane-founder.bar { right: 0; }
.bar[aria-current="true"] { outline-color: var(--ink); z-index: 2; }


.entries { min-width: 0; max-width: 730px; }
.entry-wrap { margin-top: 56px; }
.entry-wrap:first-child { margin-top: 0; }
.entry-wrap.gap-lg { margin-top: 88px; }
.entry-wrap > h2 { margin-bottom: 32px; }

.entry { display: flex; flex-wrap: wrap; gap: 16px 24px; scroll-margin-top: 24px; }
.logo {
  flex: none;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.entry-body { flex: 1 1 260px; min-width: 0; }
.entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
}
h3 { font-size: 24px; line-height: 1.25; font-weight: 500; }
.dates { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.swatch { flex: none; width: 10px; height: 10px; border: 2px solid var(--bd); background: var(--bg); }
.org { margin-top: 6px; }
.entry ul { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Skills + footer */
#projects { padding: 0 0 72px; }
.project { margin-top: 20px; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { text-decoration: underline; }
.project p { margin-top: 6px; }

#skills { padding: 64px 0 72px; background: var(--band); }
.skills { margin-top: 20px; border-top: 1px solid var(--rule); }
.skill-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 4px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.skill-row h3 { font-size: 16px; font-weight: 500; line-height: 1.5; }
.skill-row ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 10px; }
.skill-row li:not(:last-child)::after { content: "·" / ""; margin-left: 10px; color: var(--muted); }
@media (max-width: 599px) {
  .skill-row { grid-template-columns: 1fr; }
}

footer { padding: 28px 0; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }

@media (max-width: 1099px) {
  .logo { width: 64px; height: 64px; }
}
@media (min-width: 700px) {
  .journey { flex-direction: row; gap: 32px; align-items: flex-start; }
  .mm { position: sticky; top: 24px; flex: 0 0 250px; width: 250px; }
  .entries { flex: 1 1 0; padding-bottom: 72px; }
}
@media (min-width: 1100px) {
  .journey { gap: 56px; }
  .mm { flex-basis: 360px; width: 360px; }
}
