:root {
  --paper: #fff;
  --ink: #575757;
  --heading: #404040;
  --muted: #999;
  --line: #ddd;
  --accent: #96cc33;
  --accent-dark: #6b991c;
  --max: 1200px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
}

.site-shell {
  width: min(100%, calc(var(--max) + 150px));
  margin: 0 auto;
  padding: 75px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 28px;
}

.site-title {
  max-width: 440px;
  color: var(--heading);
  font-family: Futura, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.site-title:hover,
.site-title:focus-visible {
  color: var(--heading);
}

.site-nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--accent);
  font-family: Futura, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.6;
  text-transform: uppercase;
}

.site-nav > a,
.site-nav summary {
  color: color-mix(in srgb, var(--accent), transparent 20%);
  cursor: pointer;
}

.site-nav > a.active,
.site-nav .active,
.site-nav .nav-group.active > summary,
.site-nav > a:hover,
.site-nav summary:hover {
  color: var(--accent);
}

.nav-group {
  position: relative;
}

.nav-group summary {
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.subnav {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 10;
  display: grid;
  gap: 8px;
  min-width: 230px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgb(0 0 0 / 8%);
}

.nav-group:not([open]) .subnav {
  display: none;
}

.subnav a {
  color: color-mix(in srgb, var(--accent), transparent 20%);
  white-space: nowrap;
}

.subnav a.active,
.subnav a:hover,
.subnav a:focus-visible {
  color: var(--accent);
}

.page-divider,
.home-entry hr,
.download-row {
  border: 0;
  border-top: 1px solid var(--line);
}

.page {
  max-width: var(--max);
  margin: 0 auto;
}

.page-heading {
  margin: 34px 0 28px;
}

.page-heading h1 {
  margin: 0;
  color: var(--heading);
  font-family: Futura, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: .06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.wedding-date {
  display: grid;
  place-items: center;
  min-height: 260px;
  text-align: center;
}

.wedding-date p {
  margin: 0;
  color: var(--heading);
  font-family: Futura, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.24;
  text-transform: uppercase;
}

.home-list {
  display: grid;
}

.home-entry {
  padding: 0 0 18px;
}

.home-entry hr {
  margin: 0 0 22px;
}

.home-entry h2 {
  margin: 0 0 22px;
  color: var(--heading);
  font-family: Futura, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.entry-grid {
  display: grid;
  grid-template-columns: minmax(240px, 5fr) minmax(280px, 7fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.entry-image {
  display: block;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 3 / 2;
}

.entry-image img,
.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-copy p,
.download-meta p,
.contact-details p {
  margin-top: 0;
}

.gallery {
  display: grid;
  gap: 22px;
}

.gallery-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 58vw, 640px);
  margin: 0;
  background: #f6f6f6;
  overflow: hidden;
}

.gallery-main-image {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
}

.gallery-stage figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgb(0 0 0 / 42%));
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 22%);
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: rgb(0 0 0 / 40%);
}

.gallery-arrow.prev {
  left: 18px;
}

.gallery-arrow.next {
  right: 18px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 10px;
}

.gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  opacity: .62;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.gallery-thumb.active,
.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: var(--accent);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-list {
  display: grid;
}

.download-row {
  display: grid;
  grid-template-columns: minmax(180px, 3fr) minmax(240px, 7fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}

.download-row h2 {
  margin: 0;
  color: var(--heading);
  font-family: Futura, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible {
  color: #fff;
  background: var(--accent-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 7fr) minmax(240px, 4fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  margin-top: 34px;
}

.contact-image {
  aspect-ratio: 3 / 2;
}

.contact-details {
  font-style: normal;
}

.site-footer {
  min-height: 60px;
}

@media (width <= 820px) {
  .site-shell {
    padding: 20px;
  }

  .site-header {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 22px;
  }

  .site-nav {
    justify-content: center;
    gap: 14px 20px;
    width: 100%;
  }

  .subnav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .entry-grid,
  .contact-grid,
  .download-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wedding-date {
    min-height: 220px;
  }

  .gallery-stage {
    min-height: 260px;
  }
}

@media (width <= 520px) {
  .site-nav {
    display: grid;
    gap: 8px;
  }

  .nav-group {
    display: grid;
    justify-items: center;
  }

  .subnav {
    position: static;
    min-width: 0;
    padding: 8px 0 2px;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  }
}
