html {
  font-family: serif;
  font-feature-settings: "palt";
  font-size: 1rem;
  scroll-padding-top: 200px;
  text-align: justify;
  -webkit-text-size-adjust: 100%;
}

@keyframes flash {
  from { background-color: #d0d0d0; }
  to { background-color: white; }
}

#nav {
  align-items: center;
  background-color: white;
  border-bottom: 1px solid #d0d0d0;
  color: black;
  display: flex;
  height: 70px;
  padding: 0 max(30px, calc(50% - 300px));
  position: fixed;
  top: -70px;
  transition: top 200ms ease-out;
  width: 100%;
  z-index: 1;
}
@media (min-height: 420px) {
  #nav.on {
    top: 0;
  }
}
#nav a:hover {
  opacity: 0.5;
}
#nav a.top {
  aspect-ratio: 1 / 1;
  height: 100%;
}
#nav a.year {
  color: inherit;
  padding: 20px 8px;
  text-decoration: none;
}

#unofficial {
  background-color: white;
  border-bottom: 1px solid #d0d0d0;
  color: black;
  padding: 9px max(30px, calc(50% - 300px)) 11px;
}
#unofficial a {
  color: inherit;
}

h1 {
  background-color: #619bb7;
  background-image: url("/news/hero.avif");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid #d0d0d0;
  color: white;
  font-size: 2rem;
  line-height: 1;
  padding: 300px 30px 30px;
  text-align: center;
  text-shadow: 0 0 4px black;
  width: 100%;
}

section {
  background-color: white;
  color: black;
  padding: 30px max(10px, calc(50% - 300px)) 30px;
}
section > :not(h2, :last-child) {
  margin-bottom: 1rem;
}
section h2 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1.3rem;
  text-align: center;
}

article {
  background-color: white;
  box-shadow: 0 0 0 1px #d0d0d0;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}
article:target {
  animation: 400ms linear 200ms "flash";
}
article > :not(:last-child) {
  margin-bottom: 1rem;
}
article h3 {
  font-size: 1rem;
  font-weight: bold;
}
article h3 time {
  color: #707070;
  font-weight: normal;
  margin-right: 8px;
}
article hr {
  border: 0;
  border-bottom: 1px dashed #d0d0d0;
  margin-inline: -20px;
  width: calc(100% + 40px);
}
article a {
  color: inherit;
  word-break: break-all;
}
article dl {
  display: grid;
  column-gap: 4px;
  grid-template-columns: 24px 1fr;
  row-gap: 4px;
}
article dt {
  grid-column: 1;
}
article dt img {
  height: 24px;
  padding: 2px;
  width: 24px;
}
article dd {
  grid-column: 2;
}
article dd .mmdd {
  color: #707070;
}
article dd ul {
  margin-bottom: 4px;
  padding-left: 0;
  list-style: none;
}
article dd li {
  margin-bottom: -4px;
}
article .tiles {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}
article .tile {
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  display: block;
  overflow: hidden;
}
article a.tile:hover {
  opacity: 0.7;
}
article .tile3x2 {
  aspect-ratio: 3 / 2;
  grid-column: span 3;
  grid-row: span 2;
}
article .tile2x2 {
  aspect-ratio: 2 / 2;
  grid-column: span 2;
  grid-row: span 2;
}
article .tile1x2 {
  aspect-ratio: 1 / 2;
  grid-column: span 1;
  grid-row: span 2;
}
article .tile2x1 {
  aspect-ratio: 2 / 1;
  grid-column: span 2;
  grid-row: span 1;
}
article .tile img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
