:root {
  --text-primary: #222;
  --text-tertiary: #505070;
  --text-link: #7474a3;
  --text-link-visited: #505070;
  --breakpoint-md: 575px;
  --background-primary: #ffffff;
  --background-secondary: #50507038;
  --background-selection: rgba(220, 250, 1, 0.3);
}

@font-face {
  font-family: "Calisto Pro";
  src: url("/calistomtpro.otf") format("opentype");
}

*::selection {
  background: rgba(220, 250, 1, 0.3);
}

body {
  font-family: "Calisto Pro", serif;
  font-display: swap;
  font-size: 1.2em;
  color: var(--text-primary);
  scrollbar-gutter: stable;
}

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

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

body {
  display: flex;
  align-items: center;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: adelle-sans, Arial;
  /* font-size: 1.07em; */
  margin-block-end: 0.6rem;
}

:not(header) h2 {
  margin-block-start: 1.2em;
}

h1 ~ p,
h2 ~ p,
h3 ~ p,
h4 ~ p,
h5 ~ p,
h6 ~ p {
  margin-block-start: 0.6rem;
}

h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

header h1 {
  font-weight: 100;
}

main {
  max-width: var(--breakpoint-md);
}

header:has(nav) {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
}

header::after {
  content: "";
  width: 50px;
  height: 5px;
  background-color: var(--text-tertiary);
  display: block;
  position: relative;
  top: 0;
}

aside {
  background-color: var(--background-secondary);
  flex-grow: 1;
  padding: 1em;
  margin-bottom: 1em;
  max-width: var(--breakpoint-md);
  font-family: adelle-sans, Arial;
  font-size: 1rem;
}

details > summary {
  font-weight: 600;
}

details {
  margin-block: 1em;
}

footer {
  margin-top: 2em;
  font-family: adelle-sans, Arial;
  font-size: 0.8em;
}

#contact {
  text-decoration: underline;
  cursor: pointer;
  color: var(--text-primary);
}
