:root {
  --ink: #000;
  --muted: #555;
  --paper: #fff;
  --font: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

a:hover {
  opacity: 0.55;
}

.page {
  max-width: 36rem;
  padding: 2.5rem 2rem 4rem;
}

.photo {
  display: block;
  width: min(100%, 140px);
  height: auto;
}

.about {
  margin-top: 1.25rem;
  max-width: 36rem;
  letter-spacing: -0.01em;
  line-height: 1.55;
}

.projects {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.projects a {
  letter-spacing: -0.015em;
}

.links {
  margin-top: 2rem;
  letter-spacing: -0.01em;
}

.sep {
  margin: 0 0.3rem;
}

.back {
  margin-bottom: 1rem;
}

.script-list {
  list-style: disc;
  padding-left: 1.15rem;
  letter-spacing: -0.01em;
  max-width: 36rem;
}

.script-list li + li {
  margin-top: 0;
}

.resume-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  letter-spacing: -0.01em;
  max-width: 36rem;
}

.resume-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.resume-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

.resume-company,
.resume-location {
  font-weight: 700;
}

.resume-row-meta .resume-role,
.resume-row-meta .resume-year {
  font-style: italic;
  font-weight: 400;
}

.resume-company,
.resume-role {
  min-width: 0;
}

.resume-location,
.resume-year {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .page {
    padding: 1.75rem 1.25rem 3rem;
  }
}

html[data-theme="dark"] body {
  background: #111;
  color: #eee;
}

html[data-theme="dark"] a {
  color: #eee;
}
