:root {
  --font-family: "DM Sans", sans-serif;

  --bg: #fcfcf9;
  --text: #1f2933;
  --heading: #5d775f;
  --link: #5d775f;
  --link-hover: #49624b;
  --muted: #52606d;
  --selection: rgba(93, 119, 95, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --text: #e7ece8;
    --heading: #8cab8e;
    --link: #8cab8e;
    --link-hover: #a6c3a7;
    --muted: #b7c0b8;
    --selection: rgba(140, 171, 142, 0.22);
  }
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.75;
  margin: 0;
}

main.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 6rem;
}

section + section {
  margin-top: 4.5rem;
}

h1,
h2 {
  color: var(--heading);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.role {
  margin-bottom: 2.25rem;
  color: var(--text);
  font-size: 1.05rem;
}

p,
li {
  color: var(--text);
  font-size: 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

.contact {
  padding-top: 0.25rem;
}

.contact h2 {
  margin-bottom: 1.1rem;
}

.contact a {
  font-weight: 500;
}

.contact .note {
  margin-top: 1.25rem;
  color: var(--muted);
}

::selection {
  background: var(--selection);
}

@media (max-width: 600px) {
  main.container {
    padding: 3.5rem 1.25rem 4rem;
  }

  section + section {
    margin-top: 3.25rem;
  }
}
