:root {
  color-scheme: light;
  --red: #e7192f;
  --red-dark: #9d0014;
  --ink: #151515;
  --muted: #606060;
  --cream: #fff8ec;
  --paper: #ffffff;
  --blue: #0b8ff0;
  --yellow: #ffd326;
  --green: #20a56b;
  --line: rgba(21, 21, 21, 0.14);
  --shadow: 0 22px 70px rgba(21, 21, 21, 0.16);
  --font-display: "Graduate", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(231, 25, 47, 0.14), transparent 22rem),
    linear-gradient(135deg, #fffdf7 0%, #fff8ec 52%, #ffffff 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(231, 25, 47, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(11, 143, 240, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 62%);
}

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

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 0.6rem 0.8rem;
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(21, 21, 21, 0.1);
  background: rgba(255, 253, 247, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--red);
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  box-shadow: 5px 5px 0 var(--ink);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.4rem);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(18rem, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 5rem);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
}

.hero::after,
.photos-section::before {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  background:
    linear-gradient(90deg, transparent 42%, var(--yellow) 42% 58%, transparent 58%),
    linear-gradient(transparent 42%, var(--blue) 42% 58%, transparent 58%);
  transform: rotate(12deg);
  opacity: 0.62;
}

.hero::after {
  right: 5vw;
  top: 7rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.45rem;
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 7.8vw, 7.1rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-subtitle {
  margin-bottom: 1.35rem;
  color: var(--red);
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  font-weight: 1000;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.hero-meta span {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 0.55rem 0.72rem;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.92);
}

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

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  padding: 0.78rem 1.05rem;
  color: var(--ink);
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
}

.button.primary {
  background: var(--red);
  color: white;
  box-shadow: 6px 6px 0 var(--ink);
}

.button.secondary {
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--blue);
}

.button.large {
  min-width: min(100%, 18rem);
  font-size: 1rem;
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: min(72vw, 44rem);
}

.photo-frame {
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.main-frame {
  position: absolute;
  inset: 2% 3% auto auto;
  z-index: 2;
  width: min(78%, 30rem);
  aspect-ratio: 0.8;
  transform: rotate(2.5deg);
  box-shadow: 14px 14px 0 var(--ink);
}

.main-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 42%;
}

.main-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(21, 21, 21, 0.42));
}

.side-frame {
  position: absolute;
  z-index: 1;
  width: min(44%, 15.5rem);
  aspect-ratio: 0.8;
  box-shadow: 9px 9px 0 rgba(21, 21, 21, 0.92);
}

.side-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-frame-one {
  left: 1%;
  top: 0;
  transform: rotate(-5deg);
}

.side-frame-one img {
  object-position: 52% 42%;
}

.side-frame-two {
  right: 0;
  bottom: 0;
  z-index: 3;
  width: min(38%, 13rem);
  aspect-ratio: 0.86;
  transform: rotate(5deg);
  box-shadow: 8px 8px 0 var(--blue);
}

.side-frame-two img {
  object-position: 50% 36%;
}

.photo-card {
  position: absolute;
  left: 2%;
  bottom: 13%;
  z-index: 4;
  display: grid;
  gap: 0.2rem;
  width: 12rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 1rem;
  box-shadow: 9px 9px 0 var(--red);
  transform: rotate(-4deg);
}

.photo-card span {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  line-height: 0.9;
}

.photo-card strong {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.countdown-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: white;
}

.countdown-strip div {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  border-right: 2px solid white;
  text-align: center;
}

.countdown-strip div:last-child {
  border-right: 0;
}

.countdown-strip span {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

.countdown-strip small {
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.details-section,
.photos-section,
.rsvp-section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.section-heading h2,
.rsvp-section h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
}

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

.detail-card {
  min-height: 16rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 1.2rem;
  box-shadow: 8px 8px 0 rgba(21, 21, 21, 0.9);
}

.detail-number {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  margin-bottom: 3rem;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-weight: 1000;
}

.detail-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.detail-card p {
  color: var(--muted);
  font-size: 1.03rem;
}

.photos-section {
  background: #101010;
  color: white;
}

.photos-section::before {
  right: 9vw;
  top: 4rem;
}

.photos-section .eyebrow {
  color: var(--yellow);
}

.photo-grid {
  column-count: 3;
  column-gap: clamp(0.85rem, 1.6vw, 1.2rem);
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(0.85rem, 1.6vw, 1.2rem);
  break-inside: avoid;
}

.gallery-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.gallery-trigger:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 5px;
}

.gallery-trigger:hover .gallery-photo img,
.gallery-trigger:focus-visible .gallery-photo img {
  transform: scale(1.018);
}

.photo-placeholder {
  display: block;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 2px solid white;
  background:
    linear-gradient(135deg, rgba(231, 25, 47, 0.86), rgba(11, 143, 240, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.2) 18px 20px);
  color: white;
}

.feature .photo-placeholder {
  min-height: 0;
}

.photo-placeholder span {
  border: 2px solid white;
  padding: 0.55rem 0.75rem;
  background: rgba(21, 21, 21, 0.58);
  font-weight: 1000;
  text-transform: uppercase;
}

.gallery-photo {
  background: #202020;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  transition: transform 180ms ease;
}

figcaption {
  min-height: 2.5rem;
  padding-top: 0.55rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.83rem;
}

.rsvp-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  background: var(--red);
  color: white;
}

.rsvp-section .eyebrow {
  color: white;
}

.rsvp-section p {
  max-width: 43rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.rsvp-section .button.primary {
  background: white;
  color: var(--ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.2rem clamp(1rem, 5vw, 5rem);
  background: var(--ink);
  color: white;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.rsvp-dialog {
  width: min(92vw, 31rem);
  border: 2px solid var(--ink);
  padding: 1.4rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 12px 12px 0 var(--red);
}

.rsvp-dialog::backdrop {
  background: rgba(21, 21, 21, 0.56);
}

.dialog-close {
  float: right;
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 1000;
  cursor: pointer;
}

.photo-lightbox {
  width: min(94vw, 78rem);
  max-height: 92vh;
  border: 2px solid var(--paper);
  padding: clamp(0.75rem, 1.8vw, 1.1rem);
  background: #080808;
  color: var(--paper);
  box-shadow: 0 0 0 8px var(--ink), 16px 16px 0 rgba(231, 25, 47, 0.72);
}

.photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.photo-lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 2px solid var(--paper);
  background: #141414;
}

.photo-lightbox p {
  margin: 0.8rem 3.4rem 0 0;
  color: rgba(255, 250, 235, 0.82);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--paper);
  background: var(--red);
  color: white;
  font-size: 1.05rem;
  font-weight: 1000;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-art {
    min-height: 32rem;
  }

  .main-frame {
    inset: 0 auto auto 6%;
    width: min(88vw, 30rem);
  }

  .side-frame-one {
    left: auto;
    right: 2%;
    top: 1rem;
  }

  .side-frame-two {
    bottom: 1rem;
  }

  .photo-card {
    left: auto;
    right: 4%;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid {
    column-count: 2;
  }

  .rsvp-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5.2rem);
  }

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

  .hero-art {
    min-height: 27rem;
  }

  .side-frame {
    display: none;
  }

  .main-frame {
    left: 0;
    width: min(88vw, 25rem);
  }

  .photo-card {
    width: 10rem;
  }

  .countdown-strip div {
    min-height: 6.4rem;
  }

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

  .photo-grid {
    column-count: 1;
  }

  .gallery-item,
  .gallery-item.feature,
  .gallery-item.wide:not(.feature),
  .gallery-item.portrait,
  .gallery-item.tall {
    width: 100%;
  }

  .photo-placeholder,
  .feature .photo-placeholder {
    height: auto;
    min-height: 0;
  }

  .site-footer {
    display: grid;
  }
}
