:root {
  color-scheme: dark;
  --navy: #08162f;
  --text: #edf2fc;
  --muted: #b7c7e2;
  --accent: #a5c5ff;
  --line: #30486e;
  --sans: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(100%, 70rem);
  min-height: 100svh;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

a {
  color: var(--accent);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.wordmark {
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.5rem;
  text-decoration: none;
}

h2 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

p {
  color: var(--muted);
}

.details {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
  padding-top: 2rem;
}

.details p {
  margin: 0 0 1rem;
}

.email {
  display: inline-block;
  padding-block: 0.4rem;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

@media (max-width: 40rem) {
  .details {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
  }
}
