:root {
  color-scheme: dark;
  --paper: #111512;
  --ink: #e6eae6;
  --muted: #9da69f;
  --line: #303832;
  --accent: #79c9a3;
  --accent-dark: #9bd9bb;
  --shell: 58rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 18rem;
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  padding-block: 1.45rem;
}

.site-name {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.site-name:hover {
  color: var(--accent);
}

.home {
  display: flex;
  min-height: clamp(34rem, 78svh, 44rem);
  padding-block: 2.5rem 4rem;
  flex-direction: column;
  justify-content: center;
}

.intro {
  max-width: 46rem;
  padding-block: 0 2.5rem;
}

.intro h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.intro-copy {
  max-width: 42rem;
  margin: 1.15rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.8;
}

.places {
  max-width: 46rem;
  padding-bottom: 0;
}

.places h2,
.photos-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.place-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.place-name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 600;
  text-decoration-color: #4d8169;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.place-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  object-fit: contain;
}

.place-name:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.photos {
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5rem);
  border-top: 1px dashed var(--line);
}

.photos-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.photos-heading h2 {
  font-size: 1rem;
}

.photo-controls {
  display: flex;
  flex: none;
  gap: 0.55rem;
}

.photo-button {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  place-items: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.photo-button:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.photo-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.photo-strip {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1.25rem;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) var(--line);
  scrollbar-width: thin;
}

.photo-strip::-webkit-scrollbar {
  height: 0.3rem;
}

.photo-strip::-webkit-scrollbar-track {
  background: var(--line);
}

.photo-strip::-webkit-scrollbar-thumb {
  background: var(--accent);
}

.photo {
  flex: 0 0 auto;
  height: clamp(19rem, 31vw, 24rem);
  margin: 0;
  scroll-snap-align: start;
}

.photo--portrait {
  aspect-ratio: 3 / 4;
}

.photo--landscape {
  aspect-ratio: 8 / 5;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.25rem;
  object-fit: cover;
  transition: filter 180ms ease;
}

.photo:hover img {
  filter: brightness(0.96);
}

.photo figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  padding-block: 1.8rem 2.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.photo-strip:focus-visible {
  outline-offset: 0.5rem;
}

@media (max-width: 42rem) {
  .shell {
    width: min(calc(100% - 2rem), var(--shell));
  }

  .site-header {
    padding-block: 1.3rem;
  }

  .intro {
    padding-block: 0 2.25rem;
  }

  .intro h1 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .intro-copy {
    margin-top: 1rem;
  }

  .home {
    min-height: clamp(32rem, 78svh, 38rem);
    padding-block: 2rem 3rem;
  }

  .photo {
    width: 72%;
    height: auto;
  }

  .photo--landscape {
    width: 88%;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
