body {
  margin: 0 auto;
  max-width: 700px;
  min-width: 0;
  padding: 0 10px 25px;
  font-family: "Helvetica", "Arial", sans-serif;
}
h2 {
  margin-top: 1em;
  padding-top: 1em;
}
nav a {
  margin-left: 20px;
}
body {
  color: #cfcfcf;
  background-color: #1a1a1a;
}
h1, h2, strong {
  color: #f0f0f0;
}
header {
  margin: 0px;
  font-size: 23px;
}
article {
  font-size: 16px;
}
nav {
  font-size: 18px;
  letter-spacing: 1px;
}
h1 {
  font-size: 26px;
}
h2 {
  font-size: 23px;
}
a {
  color: #ffa64d;
}
body {
  display: grid;
  row-gap: 5px;
  grid-template-columns: auto auto;
  grid-template-rows: 60px auto;
  grid-template-areas:
    "header nav"
    "ct ct";
}
header {
  grid-area: header;
  justify-self: left;
  align-self: end;
}
nav {
  grid-area: nav;
  justify-self: right;
  align-self: end;
}
nav a {
  text-align: right;
}
article {
  grid-area: ct;
  border-top: 2px solid #555;
}

@media screen and (max-width: 430px) {
  body {
    grid-template-columns: auto;
    grid-template-rows: minmax(40px, auto) minmax(30px, auto) auto;
    grid-template-areas:
      "header"
      "nav"
      "ct";
  }
  header, nav {
    text-align: center;
    justify-self: center;
  }
  nav a {
    margin: 0 10px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tables */
table {
  border-collapse: collapse;
}
th, td {
  border: 1px solid #555;
  padding: 6px 8px;
  text-align: center;
}
tbody td:first-child {
  text-align: left;
}

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.gallery a {
  display: block;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* Vertical photo stack */
.stack img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
}
