@font-face {
    font-family: 'Reader';
    src: url('./Reader-Bold.otf') format('opentype');
    font-weight: 800;
}
@font-face {
    font-family: 'Reader';
    src: url('./Reader-Medium.otf') format('opentype');
    font-weight: 600;
}
@font-face {
    font-family: 'Reader';
    src: url('./Reader.ttf') format('truetype');
    font-weight: 400;
}

:root {
  color-scheme: light dark;
  --background: #f7f2fa;
  --text: #000;
  --headline: #332a3d;
  --accent: #6b73c9;
  --accent-hover: #4540b2;
  --muted: #7a738b;
  --role-dates: #7a738b;
  --border: #dddaf2;
  --icon: #6b73c9;
  --icon-hover: #4540b2;
  font-family: 'Reader', system-ui, sans-serif;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #332a3d;
    --text: #fff;
    --headline: #fff;
    --accent: #f5bb86;
    --accent-hover: #ffedd7;
    --muted: #a29db5;
    --border: #4a4256;
    --icon: #dddaf2;
    --icon-hover: #dc9a6d;
  }
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

h1, h2 {
  font-family: 'Reader', sans-serif;
}

h1 {
  padding: 1rem 0 1.5rem;
  color: var(--headline);
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 400;
}

h1 span, .project-title, a {
  color: var(--accent);
}

a {
  text-decoration: none;
}

a:hover, .projects li > a:hover .project-title {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.intro {
  padding-bottom: 3rem;
  margin-bottom: 1.5rem;
}

.intro a, .project-title {
  font-weight: 600;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
}

.role-dates {
  color: var(--role-dates);
}

.projects dd, footer {
  color: var(--muted);
}

.projects {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.projects li {
  padding: 1rem 0;
}

.projects dd {
  font-size: 0.875rem;
  line-height: 1.5rem;
}

section + section {
  margin-top: 3rem;
  padding-bottom: 3rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--icon);
}

.social-links a:hover {
  color: var(--icon-hover);
}

.social-links svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 48rem) {
  body {
    padding-inline: 0.25rem;
  }

  h1 {
    padding: 2rem 0 2.5rem;
    font-size: 3.75rem;
    line-height: 1;
  }

  .projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

@media (min-width: 64rem) {
  h1 {
    font-size: 4.5rem;
  }
}

@media (min-width: 80rem) {
  body {
    max-width: none;
    padding-inline: 3.5rem;
  }

  .intro {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 2rem;
    padding-bottom: 6rem;
    margin-bottom: 3rem;
  }

  .intro > * {
    grid-column: 1 / 6;
  }

  h1 {
    padding: 8rem 0 2rem;
  }

  .projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 96rem) {
  .intro > * {
    grid-column-end: 5;
  }

  h1 {
    font-size: 5rem;
  }
}
