/* Google Sans Code, self-hosted. One variable file covers weights 300-800. */
@font-face {
  font-family: "Google Sans Code";
  src: url("fonts/GoogleSansCode.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

/* Follow the system light/dark setting. */
:root {
  color-scheme: light dark;
}

/* One centered, readable column. */
body {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: "Google Sans Code", monospace;
  line-height: 1.6;
}

/* Links use the text color; the underline marks them. */
a {
  color: inherit;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Pushes this link and everything after it to the right. */
nav .push {
  margin-left: auto;
}

/* Logos in the nav, drawn in the text color. */
.icon {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
}

/* The link for the page you're on. */
nav [aria-current] {
  font-weight: bold;
  text-decoration: none;
}

h1 {
  margin-bottom: 0;
}

h2 {
  margin-top: 2rem;
}

/* Photos scale down to fit the column. */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0 0 1.5rem;
}

/* Uses page: label/value list. The label column sizes to the
   longest label. */
dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1.5rem;
}

dt {
  opacity: 0.7;
  text-align: right;
}

dd {
  margin: 0;
}

/* Phone width: stack each label above its value. */
@media (max-width: 30rem) {
  dl {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  dt {
    text-align: left;
  }

  dd {
    margin-bottom: 0.75rem;
  }
}
