:root {
  --page: #ffffff;
  --ink: #2b3340;
  --muted: #6f7886;
  --rule: #e3e7ee;
  --link: #2c5aa0;
  --button: #2b3340;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 4rem 1.25rem 4rem;
}

header,
main,
footer {
  max-width: 40rem;
  margin-inline: auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 3rem 0 1.5rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.links {
  color: var(--muted);
}

.year {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.project {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

/* The demo breaks out of the text column so the board and controls sit side by side. */
.demo {
  width: min(58rem, calc(100vw - 2.5rem));
  margin: 1.5rem 0 1.5rem calc(50% - min(29rem, 50vw - 1.25rem));
}

.demo iframe {
  display: block;
  width: 100%;
  height: 40rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--page);
}

.demo-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.demo-fallback {
  display: none;
}

.button {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--button);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.results {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.results li {
  margin-bottom: 0.6rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
}

footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  body {
    padding: 2.5rem 1.25rem 3rem;
  }

  /* An iframe is awkward on a phone; send people to the full page instead. */
  .demo {
    width: auto;
    margin: 1rem 0 1.25rem;
  }

  .demo iframe,
  .demo-note {
    display: none;
  }

  .demo-fallback {
    display: block;
  }
}

.job {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.job h3 .year {
  display: block;
  margin: 0.15rem 0 0;
}

.education,
.skills {
  margin: 0;
}

.education > div {
  margin-bottom: 1.25rem;
}

.education dt {
  font-weight: 600;
}

.education dd,
.skills dd {
  margin: 0.15rem 0 0;
}

.skills > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.skills dt {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .skills > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
