:root {
  color-scheme: light;
  --ink: #243755;
  --ink-soft: #586b84;
  --paper: #f5f8fa;
  --white: #fff;
  --mint: #e4eef4;
  --coral: #e7c55d;
  --line: #d5e0e8;
  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  min-height: 68px;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--paper);
}

.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark-seal {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font: 19px var(--display);
}
.wordmark-copy { display: grid; gap: 2px; }
.wordmark-copy strong { font-size: 12px; letter-spacing: 1.5px; }
.wordmark-copy small { color: var(--ink-soft); font-size: 8px; letter-spacing: 1.4px; }
.header-note { margin: 0; color: var(--ink-soft); font: 500 13px var(--display); }

.hero {
  position: relative;
  min-height: 450px;
  height: 57vh;
  max-height: 650px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #49627b;
  color: var(--white);
}
.hero-photo, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: center 47%; }
.hero-shade { background: linear-gradient(90deg, rgba(21, 39, 65, .55), rgba(21, 39, 65, .04) 85%); }
.hero-content { position: relative; z-index: 1; width: min(720px, 78%); padding: 0 0 68px 11%; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 23px; color: var(--coral); font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.eyebrow span { width: 23px; height: 1px; background: currentColor; }
.eyebrow-light { color: #f3d875; }
.hero h1 { margin: 0; font: 600 94px/.98 var(--display); letter-spacing: 0; }
.hero-period { color: #f3d875; }
.hero-intro { max-width: 390px; margin: 15px 0 22px; color: rgba(255,255,255,.94); font-size: 14px; line-height: 1.65; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 0 20px; border: 0; font-size: 11px; font-weight: 700; transition: transform 180ms ease, background 180ms ease; }
.button:not(:disabled):hover { transform: translateY(-2px); }
.button-light { background: #f5f8fa; color: var(--ink); }
.button-light span { color: var(--coral); font-size: 15px; }
.photo-note { position: absolute; z-index: 1; bottom: 18px; left: 8%; color: rgba(255,255,255,.84); font-size: 9px; }

.invitation-section { padding: 44px 10% 48px; background: var(--paper); }
.event-line { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 28px; padding: 0 0 32px; border-bottom: 1px solid var(--line); }
.event-item h2, .gifts-block h2, .pix-block h2 { margin: 0 0 7px; font: 500 25px/1.2 var(--display); }
.event-item p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.map-link { margin: 0; color: #8492a1; font-size: 10px; }
.gift-pix-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8%; padding-top: 32px; }
.section-kicker { margin: 0 0 12px; color: #80691f; font-size: 11px; font-weight: 600; }
.gifts-block h2, .pix-block h2 { margin-bottom: 14px; }
.gift-list { border-top: 1px solid var(--line); }
.gift-row { min-height: 60px; display: grid; grid-template-columns: 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.gift-row h3 { margin: 0 0 3px; font: 500 16px var(--display); }
.gift-row p { margin: 0; color: var(--ink-soft); font-size: 9px; }
.template-note { margin: 10px 0 12px; color: #74849a; font-size: 9px; line-height: 1.5; }
.button-dark { min-height: 40px; background: var(--ink); color: var(--white); cursor: not-allowed; opacity: .82; }
.button-dark span { color: #f3d875; }
.pix-block { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; padding-left: 8%; border-left: 1px solid var(--line); }
.pix-note { max-width: 180px; margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.qr-frame { display: grid; justify-items: center; gap: 8px; }
.qr-paper { position: relative; width: 132px; height: 132px; padding: 9px; background: var(--white); }
.qr-grid { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(25, 1fr); grid-template-rows: repeat(25, 1fr); }
.qr-cell { background: transparent; }
.qr-cell.is-dark { background: #243755; }
.qr-stamp { position: absolute; right: -10px; bottom: 7px; padding: 5px 6px; background: #e7c55d; color: var(--ink); font-size: 7px; font-weight: 700; letter-spacing: .5px; transform: rotate(-5deg); }
.qr-warning { margin: 0; color: var(--ink); text-align: center; font-size: 8px; font-weight: 700; line-height: 1.55; }
.qr-warning span { color: var(--ink-soft); font-size: 8px; font-weight: 400; }

.site-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 8%; background: #e9f0f4; }
.footer-wordmark { font: 600 18px var(--display); letter-spacing: 1px; }
.footer-wordmark span { color: #aa8728; }
.site-footer p { margin: 0; color: var(--ink-soft); font: 500 16px var(--display); }
.back-top { color: var(--ink-soft); font-size: 8px; font-weight: 600; }
a:focus-visible, button:focus-visible { outline: 2px solid #aa8728; outline-offset: 3px; }

@media (max-width: 760px) {
  .site-header { min-height: 62px; padding: 0 20px; }
  .header-note { max-width: 130px; text-align: right; font-size: 11px; line-height: 1.3; }
  .hero { min-height: 470px; height: 62vh; max-height: 590px; }
  .hero-photo { object-position: 57% center; }
  .hero-photo { object-position: 57% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(21,39,65,.62), rgba(21,39,65,.04) 88%); }
  .hero-content { width: 100%; padding: 0 25px 62px; }
  .hero h1 { font-size: 74px; }
  .hero-intro { max-width: 320px; font-size: 13px; }
  .photo-note { left: 20px; max-width: 80%; font-size: 7px; line-height: 1.5; }
  .invitation-section { padding: 28px 22px 34px; }
  .event-line { grid-template-columns: 1fr 1fr; gap: 20px 12px; padding-bottom: 24px; }
  .event-item h2, .gifts-block h2, .pix-block h2 { font-size: 22px; }
  .event-item p { font-size: 10px; line-height: 1.5; }
  .map-link { grid-column: 1 / -1; }
  .gift-pix-row { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
  .pix-block { grid-template-columns: 1fr auto; gap: 10px; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .qr-paper { width: 112px; height: 112px; }
  .site-footer { min-height: 60px; padding: 14px 20px; }
  .site-footer p { display: none; }
  .back-top { max-width: 145px; text-align: right; font-size: 7px; }
}

@media (min-width: 761px) and (max-height: 760px) {
  .hero { height: 54vh; min-height: 390px; }
}

@media (max-width: 380px) {
  .pix-block { grid-template-columns: 1fr; }
  .qr-frame { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}