:root {
  color-scheme: only light;
  --bg: #ffffff;
  --ink: #14213d;
  --muted: #5b6478;
  --accent: #1f4fa8;
  --rule: #e3e7ef;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem / 1.6 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: clamp(min(100%, 40rem), 76%, 100rem);
  margin-inline: auto;
  padding: 6rem clamp(1.25rem, 3vw, 3rem) 4rem;
}

h1, h2, p, ul { margin: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.intro h1 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.intro p {
  max-width: 68ch;
  margin-top: 1rem;
  color: var(--muted);
}

.links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

section {
  margin-top: 3.5rem;
}

h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.list {
  list-style: none;
  padding: 0;
}

.list li {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.what { color: var(--ink); }
a.what { color: var(--accent); }

.where {
  color: var(--muted);
  font-size: 0.9375rem;
}

.where b { font-weight: 600; color: var(--ink); }

@media (min-width: 70rem) {
  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: clamp(2rem, 4vw, 4.5rem);
  }

  .intro { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .page { padding-top: 3.5rem; }
  .intro h1 { font-size: 1.9rem; }
}

/* CV viewer */
.cv-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.cv-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1rem 3rem;
}

.cv-page {
  position: relative;
  width: min(100%, 850px);
  background: #fff;
  box-shadow: 0 1px 3px rgb(20 33 61 / 0.12), 0 0 0 1px var(--rule);
}

.cv-page canvas {
  display: block;
  width: 100%;
  height: auto;
}

.cv-link {
  position: absolute;
}
.cv-link:hover { background: rgb(31 79 168 / 0.08); }

.cv-fallback {
  max-width: 40rem;
  margin: 3rem auto;
  color: var(--muted);
}
