:root {
  color-scheme: light;
  --ink: #1f2522;
  --muted: #626c66;
  --paper: #fbfaf6;
  --shell: #f3ebe1;
  --mist: #e6efed;
  --foam: #f6fbf9;
  --forest: #183d35;
  --mangrove: #456f55;
  --sea: #6f9ca0;
  --clay: #a65f4e;
  --sand: #d9c6ad;
  --line: rgba(31, 37, 34, 0.14);
  --shadow: 0 18px 48px rgba(25, 31, 28, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  color: #fff;
}

.brand,
.nav-links a,
.button {
  text-decoration: none;
}

.brand {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(17, 32, 29, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.2vw, 1.45rem);
  min-width: 0;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(17, 32, 29, 0.28);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  min-height: 90svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.hero-image {
  object-fit: cover;
  object-position: 48% center;
  height: 100%;
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 20, 18, 0.72), rgba(8, 20, 18, 0.28) 53%, rgba(8, 20, 18, 0.1)),
    linear-gradient(0deg, rgba(8, 20, 18, 0.62), rgba(8, 20, 18, 0.03) 48%);
}

.hero-content {
  width: min(760px, 100%);
  max-width: 100%;
  padding: 8.5rem clamp(1.15rem, 6vw, 4.5rem) 5rem;
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4d7c8;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: min(11ch, 100%);
  font-size: clamp(3.4rem, 11vw, 8.6rem);
}

h2 {
  font-size: clamp(2.2rem, 5.4vw, 4.8rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.hero-copy {
  max-width: 35rem;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.82rem 1.12rem;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.1;
  max-width: 100%;
  text-align: center;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--clay);
  color: #fff;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.56);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(20rem, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.story-copy p:last-child,
.feature-copy p,
.detail-card p,
.registry-copy p,
.rsvp-copy p {
  color: var(--muted);
}

.story-copy p:last-child,
.feature-copy p,
.registry-copy p {
  max-width: 45rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.story-photos {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 0.85rem;
  align-items: end;
}

.story-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.story-photos img:first-child {
  aspect-ratio: 4 / 5;
}

.story-photos img:last-child {
  aspect-ratio: 3 / 4;
  transform: translateY(2.4rem);
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(3.2rem, 7vw, 6.5rem) max(1rem, calc((100vw - 1180px) / 2));
  background: var(--mist);
}

.feature-section img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 50% 58%;
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-heading,
.gallery-heading {
  display: grid;
  gap: 0.2rem;
  max-width: 760px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.detail-card {
  min-height: 15rem;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-label {
  display: inline-flex;
  margin-bottom: 1.7rem;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.gallery-section {
  width: 100%;
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - 1240px) / 2));
  background: var(--forest);
  color: #fff;
}

.gallery-section .eyebrow {
  color: #f4d7c8;
}

.gallery-heading {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(0.65rem, 1.2vw, 0.95rem);
}

.gallery-item {
  grid-column: span 3;
  min-height: 13rem;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 5;
}

.gallery-item.wide {
  grid-column: span 6;
  aspect-ratio: 16 / 10;
}

.gallery-item.feature {
  grid-column: span 6;
  grid-row: span 2;
  aspect-ratio: 4 / 5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.registry-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.62fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.registry-copy {
  display: grid;
  justify-items: start;
}

.registry-card {
  position: relative;
  display: grid;
  min-height: clamp(28rem, 58vw, 42rem);
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background: var(--forest);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.registry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(8, 20, 18, 0.7), rgba(8, 20, 18, 0.06) 58%),
    linear-gradient(90deg, rgba(8, 20, 18, 0.42), rgba(8, 20, 18, 0.08));
}

.registry-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  transition: transform 420ms ease;
}

.registry-card:hover img,
.registry-card:focus-visible img {
  transform: scale(1.025);
}

.registry-card-content {
  display: grid;
  align-self: end;
  gap: 0.55rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.registry-card-label {
  color: #f4d7c8;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.registry-card-title {
  max-width: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.registry-card-action {
  display: inline-flex;
  width: fit-content;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.6rem;
  border-radius: 999px;
  padding: 0.82rem 1.12rem;
  background: var(--clay);
  color: #fff;
  font-weight: 850;
  line-height: 1.1;
}

.rsvp-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.68fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.rsvp-section img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
}

.rsvp-copy {
  display: grid;
  justify-items: start;
}

.rsvp-copy p {
  max-width: 34rem;
}

.site-footer {
  padding: 2rem 1rem 2.5rem;
  background: var(--forest);
  color: #fff;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    max-width: calc(100vw - 5.4rem);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(8, 20, 18, 0.78), rgba(8, 20, 18, 0.3)),
      linear-gradient(0deg, rgba(8, 20, 18, 0.6), rgba(8, 20, 18, 0.04) 52%);
  }

  .story-section,
  .feature-section,
  .registry-section,
  .rsvp-section {
    grid-template-columns: 1fr;
  }

  .story-photos {
    max-width: 40rem;
  }

  .story-photos img:last-child {
    transform: translateY(1.2rem);
  }

  .feature-copy {
    max-width: 42rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: auto;
  }

  .gallery-item {
    grid-column: span 6;
  }

  .gallery-item.wide,
  .gallery-item.feature {
    grid-column: span 12;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .brand {
    width: 2.6rem;
    flex: 0 0 auto;
    height: 2.6rem;
    font-size: 0.84rem;
  }

  .nav-links {
    flex: 1 1 auto;
    max-width: calc(100vw - 4.85rem);
    flex-wrap: nowrap;
    gap: clamp(0.42rem, 2vw, 0.62rem);
    padding: 0.66rem 0.62rem;
    font-size: clamp(0.64rem, 2.55vw, 0.72rem);
    white-space: nowrap;
    overflow-x: auto;
  }

  .hero-image {
    object-position: 51% center;
  }

  .hero-content {
    width: min(100%, 24rem);
    padding: 5rem 1.15rem 10.75rem;
  }

  h1 {
    max-width: 8ch;
    margin-bottom: 3.125rem;
    font-size: clamp(3.15rem, 17vw, 5rem);
  }

  .hero-copy,
  .hero-actions {
    max-width: 21rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .story-section,
  .section,
  .registry-section,
  .rsvp-section {
    width: min(100% - 1.5rem, 1120px);
  }

  .registry-card {
    min-height: 28rem;
  }

  .registry-card-action {
    width: 100%;
  }

  .story-photos {
    grid-template-columns: 1fr;
  }

  .story-photos img:last-child {
    transform: none;
  }

  .feature-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

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

  .gallery-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .gallery-item,
  .gallery-item.wide,
  .gallery-item.feature {
    grid-column: span 12;
    min-height: 0;
  }
}
