:root {
  color-scheme: dark;
  background: #17281c url("../evergreen.jpg");
  color: #f8f1d4;
  font: 100%/1.5 Georgia, "Times New Roman", serif;
  --panel: #3f572a;
  --link: #ffd680;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  max-width: 60rem;
  margin: 0 auto;
  padding: .75rem clamp(.75rem, 3vw, 1.5rem) 1.5rem;
}

a { color: var(--link); text-underline-offset: .17em; }
a:hover { color: #fff6ce; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff6ce; outline-offset: 3px; }

.site-header {
  position: relative;
  padding: .85rem 6.25rem .85rem .85rem;
  border-block-end: 1px solid #82915b;
  background: var(--panel);
}

.language {
  position: absolute;
  inset: .4rem .5rem auto auto;
  padding: .25rem .5rem;
  background: #314821;
  color: #fff;
  font-size: .9rem;
}

.site-header ul, .site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header li { flex: 1 1 6.25rem; }

.site-header nav a {
  display: grid;
  place-items: center;
  align-content: start;
  gap: .35rem;
  min-height: 100%;
  text-align: center;
}

.site-header img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #82915b;
}

.album-link {
  margin: 1rem 0 .65rem;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  font-weight: 700;
  text-shadow: 0 2px 5px #000;
}

.introduction {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(.85rem, 3vw, 1.5rem);
}

.gallery {
  position: relative;
  aspect-ratio: 1;
  overflow: clip;
  background: var(--panel);
  box-shadow: 0 3px 14px #0008;
}

.gallery img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Crop the white scan edge from this frame at every display size. */
.gallery img[src="gallery/img3.jpg"] {
  left: -.2%;
  width: 100.4%;
  height: 100.4%;
}

.gallery button {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  padding: .3rem .65rem;
  border: 1px solid #b0b787;
  border-radius: .2rem;
  background: var(--panel);
  color: inherit;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--panel);
  padding: clamp(1rem, 3vw, 1.5rem);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  line-height: 1.2;
}

.intro-copy p { margin: .85em 0 0; }

.travel-entry { margin: 1.5rem 0; text-align: center; }
.travel-entry a { display: inline-block; max-width: 100%; }
.travel-entry img {
  display: block;
  width: 345px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 3px 14px #0008;
}

.site-footer {
  padding: .65rem 1rem;
  border-block-start: 1px solid #82915b;
  background: var(--panel);
  text-align: center;
}

.site-footer p { margin: .45rem 0; }
.site-footer img { display: block; }

.site-license {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid #82915b;
}

.license-badge { display: inline-block; }

@media (max-width: 44rem) {
  .site-header { padding: 2.65rem .75rem .75rem; }
  .site-header ul { gap: .7rem .6rem; }
  .site-header li { flex: 0 1 min(6.25rem, calc((100% - 1.25rem) / 3)); }
  .introduction { grid-template-columns: 1fr; }
  .gallery { max-width: 31.25rem; width: 100%; margin-inline: auto; }
}
