:root {
  --paper:      #FAF9F6;
  --ink:        #1F1E1B;
  --ink-soft:   #6E6A62;
  --rule:       #E4E0D7;
  --seal:       #A83A29;

  --measure:    33rem;
  --step:       1.55rem;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text:    "Newsreader", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:    #1A1917;
    --ink:      #E9E5DC;
    --ink-soft: #948F85;
    --rule:     #302E2A;
    --seal:     #DF7059;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-optical-sizing: auto;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.75rem, 17vw, 6.5rem);
  font-weight: 700;
  font-stretch: 105%;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.roles {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.0625rem, 4vw, 1.25rem);
  font-weight: 500;
  font-stretch: 95%;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
}

.back {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
  font-stretch: 95%;
  color: var(--ink-soft);
}

h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  font-stretch: 95%;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

h2 .aside {
  font-weight: 400;
}

section {
  margin-top: 3.25rem;
}

header + section {
  margin-top: 6rem;
}

section p {
  margin: 0.5rem 0 0;
  text-wrap: pretty;
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}

.facts li {
  margin: 0 0 var(--step);
  text-wrap: pretty;
}

.facts li:last-child { margin-bottom: 0; }

.people {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.people li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--seal);
  padding-bottom: 0.06em;
}

a:hover {
  color: var(--seal);
}

a:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
  border-radius: 2px;
}

.contact a {
  font-size: 1.125rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  body { font-size: 19px; }
  main { padding: 7rem 2rem 6rem; }
}
