@font-face {
  font-family: Nunito;
  src: url("Nunito.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --forest: #203a2b;
  --ink: #22372b;
  --muted: #4b5e51;
  --line: #d7ddcf;
  --lime: #e5eeae;
  --gutter: clamp(16px, 4vw, 56px);
  font-family: Nunito, ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  background: var(--paper);
  color: var(--ink);
  scrollbar-gutter: stable;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5b7d20; outline-offset: 4px; }

.frame {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  z-index: 3;
  inset: 12px auto auto 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: white;
  color: var(--ink);
}
.skip-link:focus { transform: none; }

.home-link {
  display: block;
  align-self: flex-end;
  inline-size: min(52%, 244px);
}
.home-link img { inline-size: 100%; block-size: auto; }

.intro-link, .more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 650;
}

.more-button:hover {
  background: var(--forest);
  color: #fff;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  margin-top: clamp(16px, 3vw, 42px);
  overflow: hidden;
  border-radius: 12px;
  background: var(--forest);
}

.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-inline-size: 0;
  padding: clamp(20px, 2.4vw, 34px) clamp(22px, 4vw, 58px);
  color: #f9f8ef;
}

h1, h2 {
  margin: 0;
  font-weight: 800;
}

h1 {
  margin-block-start: clamp(-44px, -3vw, -29px);
  font-size: clamp(2rem, 4.15vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.headline-first {
  display: block;
  font-size: 1.17em;
  line-height: .96;
}

.intro-text {
  margin: 18px 0 22px;
  font-size: clamp(.95rem, 1.5vw, 1.09rem);
}

.intro-link {
  padding-inline: 16px;
  border-color: var(--lime);
  background: var(--lime);
  color: #203322;
}
.intro-link:hover { background: #f2f6d5; border-color: #f2f6d5; }
.intro-copy :focus-visible { outline-color: #fff; }

.intro-photo {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 320px;
  background: #fff;
}
.carousel-track {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
}
.intro-photo img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.carousel-slide:not([hidden]) { animation: photo-appear 220ms ease-out; }
@keyframes photo-appear {
  from { opacity: .35; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-slide:not([hidden]) { animation: none; }
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 14px 14px;
}
.carousel-count {
  min-width: 3.2em;
  color: var(--muted);
  text-align: center;
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}
.carousel-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.15rem;
}
.carousel-button:hover { background: var(--lime); }

.collection {
  padding-block: clamp(32px, 5vw, 66px);
  scroll-margin-block-start: 16px;
}

.collection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 19px;
}
.collection-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.collection-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.photo-link {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: zoom-in;
}
.photo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-link:hover { border-color: #66775a; }

.gallery-actions:has(button:not([hidden])) {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}
.more-button { background: transparent; color: var(--forest); cursor: pointer; }

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-block: 20px 30px;
  color: var(--muted);
  font-size: .875rem;
}
.site-footer a:hover { color: var(--ink); }

.photo-dialog {
  width: min(94vw, 1050px);
  max-width: none;
  max-height: 91vh;
  max-height: 91dvh;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.photo-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 4px;
}
.photo-dialog::backdrop { background: rgb(17 30 22 / 78%); }
html:has(.photo-dialog[open]) { overflow: hidden; }

.dialog-header, .dialog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.photo-count { margin: 0 0 0 6px; font-size: .88rem; }
.dialog-controls { justify-content: center; }
.dialog-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}
.dialog-button:hover:not([aria-disabled="true"]) { background: var(--lime); }
.dialog-button[aria-disabled="true"] { opacity: .43; cursor: default; }
.photo-stage {
  display: grid;
  min-height: 0;
  height: min(65vh, 640px);
  height: min(65dvh, 640px);
  place-items: center;
}
.detail-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

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

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; }
  .intro-photo { min-height: 0; }
  .carousel-track { aspect-ratio: 2 / 1; }
  .intro-text { margin-block: 12px 16px; }
}

@media (max-width: 545px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-stage { height: min(61dvh, 480px); }
}
