@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-300.ttf") format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-400.ttf") format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-500.ttf") format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-300-italic.ttf") format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-400-italic.ttf") format("truetype");
}

@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/mulish-400.ttf") format("truetype");
}

@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/mulish-500.ttf") format("truetype");
}

@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/mulish-600.ttf") format("truetype");
}

:root {
  --paper: #fffdfc;
  --soft: #f4f0ed;
  --ink: #4d504a;
  --muted: #8f918c;
  --gold: #a78556;
  --teal: #5dc1b9;
  --white: #ffffff;
  --header-height: 98px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(24px, 4vw, 64px);
  border-bottom: 1px solid rgba(77, 80, 74, 0.08);
  background: rgba(255, 253, 252, 0.96);
  transition:
    box-shadow 220ms ease,
    min-height 220ms ease;
}

.site-header.is-scrolled {
  min-height: 78px;
  box-shadow: 0 12px 36px rgba(31, 25, 18, 0.08);
}

.brand,
.footer-brand {
  display: block;
}

.brand img {
  width: clamp(190px, 18vw, 256px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 48px);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-slides,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  z-index: -3;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1200ms ease,
    transform 8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.11);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(24, 18, 11, 0.22), rgba(24, 18, 11, 0.46)),
    rgba(33, 21, 6, 0.22);
}

.hero-content {
  width: min(1120px, calc(100% - 48px));
  padding: clamp(100px, 13vh, 180px) 0;
  color: var(--white);
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--gold);
}

.hero h1 {
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero h1 em {
  display: inline-block;
  padding: 0 0.08em;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}

.ornament {
  width: 170px;
  height: auto;
  margin: 12px auto 18px;
  opacity: 0.52;
}

.ornament--light {
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto 34px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 30px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 32px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dots button::before {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  content: "";
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.hero-dots button.is-active::before {
  background: var(--white);
  transform: scaleY(3);
}

.section {
  padding: clamp(92px, 10vw, 150px) clamp(24px, 5vw, 72px);
}

.section-heading {
  margin: 0 auto clamp(44px, 6vw, 72px);
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-intro {
  max-width: 760px;
  margin: -22px auto clamp(48px, 6vw, 72px);
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 28px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  text-align: center;
}

.section--couple {
  background: var(--paper);
}

.couple-layout {
  display: grid;
  max-width: 1320px;
  align-items: center;
  margin: 0 auto;
  grid-template-columns: minmax(180px, 1fr) minmax(520px, 2.5fr) minmax(180px, 1fr);
}

.couple-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.couple-photos figure {
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
}

.couple-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ampersand {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 84px;
  height: 84px;
  border: 8px solid var(--white);
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  place-items: center;
  transform: translate(-50%, -50%);
}

.person {
  position: relative;
  z-index: 2;
  padding: 40px 32px;
  background: var(--paper);
}

.person--left {
  margin-right: -20px;
  text-align: right;
}

.person--right {
  margin-left: -20px;
}

.person-role {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.person h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.fine-rule {
  display: inline-block;
  width: 44px;
  height: 1px;
  margin-top: 24px;
  background: var(--gold);
}

.wedding {
  position: relative;
  overflow: hidden;
  background-color: var(--soft);
}

.wedding::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 260px;
  background: url("assets/leaves.png") bottom center / cover no-repeat;
  content: "";
  opacity: 0.62;
  pointer-events: none;
}

.wedding > * {
  position: relative;
  z-index: 1;
}

.event-cards {
  display: grid;
  max-width: 920px;
  margin: 0 auto;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-card {
  padding: clamp(34px, 5vw, 56px) 28px;
  border: 4px double rgba(167, 133, 86, 0.22);
  background: rgba(255, 255, 255, 0.28);
  text-align: center;
}

.event-time {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.event-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-card p:not(.event-time) {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
}

.event-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wedding-thanks {
  max-width: 640px;
  margin: 54px auto 50px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 31px);
  font-style: italic;
  text-align: center;
}

.gallery-section {
  background: var(--paper);
}

.gallery {
  display: grid;
  max-width: 1290px;
  margin: 0 auto;
  gap: clamp(10px, 1.8vw, 24px);
  grid-auto-flow: dense;
  grid-auto-rows: 230px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e8e3df;
  cursor: zoom-in;
  grid-column: span 1;
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--portrait {
  grid-row: span 3;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  display: grid;
  background: rgba(31, 25, 18, 0.18);
  color: var(--white);
  content: "+";
  font-family: var(--serif);
  font-size: 54px;
  opacity: 0;
  place-items: center;
  transition: opacity 280ms ease;
}

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

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.places {
  background: #faf8f6;
}

.place-grid {
  display: grid;
  max-width: 1050px;
  margin: 0 auto clamp(72px, 8vw, 110px);
  gap: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.place-card {
  display: grid;
  min-height: 270px;
  align-items: center;
  padding: clamp(34px, 4vw, 52px);
  border: 1px solid rgba(167, 133, 86, 0.2);
  background: var(--white);
  box-shadow: 0 16px 50px rgba(58, 45, 31, 0.05);
  gap: 30px;
  grid-template-columns: auto 1fr;
}

.place-card__number {
  align-self: start;
  color: rgba(167, 133, 86, 0.34);
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 300;
  line-height: 1;
}

.place-card .eyebrow {
  margin: 0 0 10px;
}

.place-card h3,
.granada-memory h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.05;
}

.place-card p:not(.eyebrow) {
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
}

.place-card a {
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-transform: uppercase;
}

.granada-memory {
  display: grid;
  max-width: 1140px;
  align-items: center;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 18px 65px rgba(58, 45, 31, 0.08);
  grid-template-columns: 1.3fr 0.9fr;
}

.granada-memory figure {
  min-height: 420px;
  margin: 0;
  overflow: hidden;
}

.granada-memory figure img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.granada-memory > div {
  padding: clamp(40px, 5vw, 72px);
}

.granada-memory .eyebrow {
  margin-bottom: 12px;
}

.granada-memory p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}

.site-footer {
  padding: 70px 24px 58px;
  background: var(--paper);
  text-align: center;
}

.footer-brand {
  width: 256px;
  margin: 0 auto 24px;
}

.site-footer p {
  margin: 6px 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer .copyright {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.back-to-top {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: rgba(77, 80, 74, 0.82);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal);
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(18, 14, 10, 0.94);
}

.lightbox-inner {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 58px clamp(56px, 8vw, 130px);
  place-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 116px);
  object-fit: contain;
}

.lightbox button {
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.lightbox-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 56px;
  height: 72px;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 300;
  transform: translateY(-50%);
}

.lightbox-arrow--previous {
  left: 14px;
}

.lightbox-arrow--next {
  right: 14px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  :root {
    --header-height: 82px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 12px 24px;
  }

  .brand img {
    width: 190px;
  }

  .main-nav {
    gap: 22px;
  }

  .couple-layout {
    grid-template-columns: 1fr 2.1fr 1fr;
  }

  .person {
    padding: 32px 20px;
  }

  .gallery {
    grid-auto-rows: 190px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 74px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 10px 18px;
  }

  .site-header.is-scrolled {
    min-height: 66px;
  }

  .brand img {
    width: 168px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 253, 252, 0.98);
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
  }

  .hero-content {
    width: min(100% - 36px, 620px);
    padding: 92px 0 110px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 68px);
    letter-spacing: 0.04em;
    line-height: 0.94;
  }

  .hero h1 em {
    display: block;
    margin: 0.15em 0;
  }

  .hero-copy {
    font-size: 23px;
  }

  .button {
    width: min(100%, 330px);
    padding-right: 18px;
    padding-left: 18px;
    letter-spacing: 0.2em;
  }

  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section-heading h2 {
    font-size: clamp(40px, 12vw, 52px);
    letter-spacing: 0.08em;
  }

  .couple-layout {
    display: flex;
    flex-direction: column;
  }

  .couple-photos {
    width: 100%;
    order: 1;
  }

  .person {
    width: calc(100% - 32px);
    margin: 0;
    padding: 32px 22px;
    text-align: center;
  }

  .person--left {
    margin-bottom: -12px;
    order: 0;
  }

  .person--right {
    margin-top: -12px;
    order: 2;
  }

  .ampersand {
    width: 66px;
    height: 66px;
    border-width: 6px;
    font-size: 38px;
  }

  .event-cards,
  .place-grid {
    grid-template-columns: 1fr;
  }

  .wedding::after {
    height: 180px;
    background-size: auto 180px;
  }

  .gallery {
    gap: 10px;
    grid-auto-rows: 145px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item {
    grid-row: span 2;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item--portrait {
    grid-row: span 3;
  }

  .place-card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .place-card__number {
    font-size: 42px;
  }

  .granada-memory {
    grid-template-columns: 1fr;
  }

  .granada-memory figure,
  .granada-memory figure img {
    min-height: 260px;
  }

  .lightbox-inner {
    padding: 64px 42px;
  }

  .lightbox-arrow {
    width: 42px;
  }

  .lightbox-arrow--previous {
    left: 0;
  }

  .lightbox-arrow--next {
    right: 0;
  }
}

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

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

  .hero-slide.is-active {
    transform: none;
  }
}
