/* Typography and link colors adapted from https://github.com/jonbarron/jonbarron.github.io. */
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lato-regular.woff2") format("woff2");
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/lato-bold.woff2") format("woff2");
}

body {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 16px);
  margin: 8px;
  background: #fff;
  color: #000;
  font-family: Lato, Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

main {
  box-sizing: border-box;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  margin: 0;
  padding-top: 20px;
  font-size: 32px;
  font-weight: 400;
  text-align: center;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #f09228;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
}

h1 span[lang="zh-Hans"] {
  display: inline-block;
  margin-left: 8px;
}

footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 800px;
  margin: auto auto 0;
  padding: 20px;
  font-size: 12px;
  text-align: right;
}

.awards {
  margin-top: 24px;
}

.awards h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 400;
}

.awards ul {
  margin: 0;
  padding-left: 24px;
  list-style: disc;
}

.awards li {
  margin: 0;
  line-height: normal;
}

.corn-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 24px 0;
}

.corn-gallery figure {
  margin: 0;
}

.corn-gallery a {
  display: block;
}

.corn-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.corn-gallery figcaption {
  margin-top: 8px;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
}

.corn-harvest {
  grid-column: 1 / -1;
}

.corn-harvest img {
  aspect-ratio: auto;
}

@media (max-width: 600px) {
  .corn-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .corn-gallery {
    grid-template-columns: 1fr;
  }
}
