/* A few rules cribbed from https://www.joshwcomeau.com/css/custom-css-reset/ */

:root {
  --accent-color: #ff69b4;
}

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

* {
  margin: 0;
  line-height: calc(1em + 0.5rem);
}

html {
  font-family: sans-serif;
  font-size: 1rem;
}

@media (min-width: 48rem) {
  html {
    font-size: 1.2rem;
  }
}

p {
  font-size: inherit;
  margin: 0.5rem 0;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  overflow-wrap: break-word;
}

h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
  content: "λ ";
  color: var(--accent-color);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  margin: 1vh 0 0;
  padding: 0 5vw;
  width: 100%;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

header {
  font-size: 1.5rem;
  text-wrap: balance;
  margin: 1.1rem 0;
}

body > header {
  max-width: 30rem;
  width: 100%;
  font-size: 1.75rem;
  margin: 3rem 0 0.5rem 0;
}

nav {
  max-width: 30rem;
  width: 100%;

  ol {
    display: flex;
    font-size: 1.25rem;
    gap: 1rem;
    list-style: none;
    padding-left: 0;
    max-width: 30rem;
    margin: 1rem 0;
  }
}

main {
  max-width: 30rem;
  width: 100%;
}

li {
  &.email-address::marker {
    content: url("/assets/email.svg") / "Email address";
    width: 10px;
  }
  &.github-username::marker {
    content: url("/assets/github.svg") / "GitHub username";
  }
  &.orcid-id::marker {
    content: url("/assets/orcid.svg") / "ORCID ID";
  }
}

a {
  color: #000;
}

a:visited {
  color: #000;
}

article ol li {
  margin: 0.5rem 0;
}

.about {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.5rem 0;
}

.about p {
  margin: 0;
}

.about img {
  max-width: min(50vw, 12rem);
  border-radius: 0.25rem;
  box-shadow: 0.25rem -0.25rem var(--accent-color);
}

@media (min-width: 48rem) {
  .about {
    flex-direction: row;
    justify-content: space-between;
  }
}
