:root {
  color-scheme: dark;
  --background: #101c17;
  --ink: #f7f3e7;
  --muted: #bec9bf;
  --line: #ffffff30;
  --display: Georgia, "Times New Roman", serif;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; }

a:focus-visible {
  outline: 2px solid #ffe4a3;
  outline-offset: 5px;
}

.wrap {
  width: min(100% - clamp(2.5rem, 9vw, 9rem), 75rem);
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 36rem;
  min-height: clamp(36rem, 86svh, 52rem);
  background: #273a35;
}

.hero-photo, .hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo { z-index: -2; }

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.hero::after {
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, #081410d9, #08141038 75%),
    linear-gradient(180deg, #08141080, transparent 26%, transparent 65%, #101c17dd);
}

.topbar, .footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
}

.topbar {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}

.topbar a, .footer a { text-underline-offset: .3em; }

.wordmark {
  font-weight: 650;
  text-decoration: none;
}

.hero-content {
  align-self: center;
  padding-block: 3rem;
}

h1, h2, figcaption {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(3rem, 8.3vw, 7.5rem);
  line-height: .96;
}

h1 em { color: #e4e6cc; }

.hero-content p {
  max-width: 29rem;
  margin-block: 1.7rem 1.85rem;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: .65rem 1.2rem;
  border-radius: 2rem;
  background: var(--ink);
  color: #14251b;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
}

.button:hover { background: #e4e6cc; }

.hero-note {
  padding-bottom: 1.55rem;
  color: #f1eee0;
  font-size: .875rem;
  text-align: right;
}

.gallery { padding-block: clamp(3.2rem, 7vw, 6.25rem); }

h2 {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2.5vw, 2rem);
}

.gallery figure { min-width: 0; }

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  background: #273a35;
}

figcaption {
  margin-top: .9rem;
  font-size: clamp(1.32rem, 2.35vw, 2rem);
  line-height: 1.2;
}

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

@media (max-width: 720px) {
  .hero::after {
    background: linear-gradient(180deg, #08141096, #0814107d 25%, #081410b0 75%, #101c17e8);
  }

  .wide-only { display: none; }
  .hero-note { text-align: left; }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery img { aspect-ratio: 5 / 4; }
}
