@font-face {
  font-family: "Beautifully Delicious";
  src:
    url("site-assets/fonts/BDScript-Regular.woff2") format("woff2"),
    url("site-assets/fonts/BDScript-Regular.woff") format("woff"),
    url("site-assets/fonts/BDScript-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe3;
  --ink: #090807;
  --muted: #5f574c;
  --note: #f6ecd6;
  --line: rgba(9, 8, 7, .16);
  --shadow: 0 22px 60px rgba(24, 18, 12, .18);
  --mono: "Courier Prime", "Courier New", monospace;
  --script: "Beautifully Delicious", "Segoe Script", cursive;
  --sans: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper) url("site-assets/images/paper.webp") center top / 720px auto repeat;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.55;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items: center;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
body > header,
body > main,
body > footer {
  width: 100%;
  max-width: 1800px;
}
section { width: 100%; }
p, h2, h3, a, label, input, textarea, button { overflow-wrap: break-word; }

.mb-2 {margin-bottom:2rem !important;}
.mb-5 {margin-bottom:5rem !important;}

.topbar {
  position: fixed;
  inset: 24px max(28px, calc((100vw - 1800px) / 2 + 28px)) auto auto;
  z-index: 20;
  display: flex;
  gap: 18px;
  padding: 10px 14px;
  background: rgba(244, 239, 227, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  font: 600 12px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topbar a { text-decoration: none; }

.hero {
  min-height: 768px;
  display: grid;
  place-items: center;
  padding: 0 22px;
}
.hero__portrait {
  position: relative;
  width: min(340px, 78vw);
  margin-left: 0;
}
.hero__portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
h1 {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: 0;
  font: 400 clamp(58px, 5vw, 72px)/.9 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}
.hero-name,
.hero-amp {
  position: absolute;
  display: block;
}
.hero-name {
  left: 50%;
  width: 112%;
  text-align: center;
  transform: translateX(-50%);
}
.hero-name--top {
  top: -.58em;
}
.hero-name--bottom {
  bottom: -.67em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .22em;
}
.hero-amp {
  position: relative;
  left: auto;
  bottom: auto;
  font-size: .66em;
  line-height: 1;
  transform: translateY(.06em);
}

.invite {
  position: relative;
  min-height: 768px;
  overflow: hidden;
  background: #050505;
}
.invite__sky {
  position: absolute;
  inset: 0;
  background: url("site-assets/images/moon.webp") center / cover no-repeat;
  filter: grayscale(1) contrast(1.12) brightness(.92);
}
.invite__scene {
  position: relative;
  width: min(900px, 94vw);
  height: 768px;
  margin: 0 auto;
}
.invite__envelope {
  position: absolute;
  z-index: 1;
  width: 470px;
  left: 16%;
  bottom: 72px;
  transform: rotate(-2deg);
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.24));
}
.polaroid {
  position: absolute;
  z-index: 2;
  left: 10%;
  top: 150px;
  width: 400px;
  margin: 0;
  padding: 24px 24px 52px;
  background: #f8f8f4;
  transform: rotate(-11deg);
  box-shadow: 0 16px 34px rgba(0,0,0,.26);
}
.polaroid img { aspect-ratio: 4 / 3; object-fit: cover; }
.invite-card {
  position: absolute;
  z-index: 3;
  right: 110px;
  top: 142px;
  width: 300px;
  min-height: 490px;
  padding: 76px 42px 42px;
  background: var(--note);
  transform: rotate(8deg);
  box-shadow: 0 18px 36px rgba(0,0,0,.2);
  text-align: center;
}
.date, .signature { font-size: 19px; line-height: 1.08; }
.script {
  margin: 70px 0 66px;
  font: 64px/.84 var(--script);
}

.location {
  padding: 100px 0 100px;
  overflow: hidden;
}
.section-title {
  position: relative;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto 10px;
  font: 130px / .68 var(--script);
  transform: rotate(-4deg);
  z-index: 1;
}
.section-title span {
  display: inline-block;
  position: relative;
  padding: 0 16px 2px;
}
.title-underline {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.title-underline--location {
  width: 2em;
  left: 1.5em;
  top: .5em;
  transform: rotate(8deg);
}
.title-underline--info {
  width: 2em;
  left: 2.2em;
  top: .7em;
  transform: rotate(3deg);
}
.title-mark {
  display: block;
  width: 250px;
  height: 28px;
  color: var(--ink);
  pointer-events: none;
  overflow: visible;
}
.title-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.brush-fill {
  fill: currentColor;
  stroke: none;
}
.brush-dry {
  fill: none;
  stroke: rgba(9, 8, 7, .58);
  stroke-width: 4;
  stroke-linecap: round;
}
.section-title .title-mark {
  width: 540px;
  height: 112px;
  margin: -70px 0 0 -6px;
  transform: rotate(-8deg);
}
.script-fallback {
  display: inline-block;
  font-family: var(--mono);
  font-size: .28em;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-.18em) rotate(2deg);
  margin: 0 .02em;
}
.location__grid {
  width: min(840px, 88vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  gap: 44px;
  align-items: center;
}
.location__main {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}
.location__grid > * { min-width: 0; }
.location__copy p {
  margin: 0 0 28px;
  font-size: 16px;
}
.text-link {
  font-weight: 700;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.wedding-note {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  grid-template-columns: minmax(0, 340px) minmax(0, 640px);
  gap: clamp(64px, 7vw, 120px);
  align-items: end;
  justify-content: center;
  padding: 100px 0;
  margin: 0 auto;
  overflow: hidden;
}
.mural {
  width: min(300px, 80vw);
  height: 500px;
  object-fit: cover;
  justify-self: center;
  margin-bottom: 120px;
  filter: saturate(.75) contrast(.92);
}
.venue-card-wrap {
  position: relative;
  width: min(640px, 100%);
  min-height: 720px;
}
.venue-card-wrap > img {
  width: 600px;
  height: 720px;
  object-fit: cover;
  filter: grayscale(1);
}
.paper-note {
  position: absolute;
  top: 80px;
  left: 100px;
  width: 380px;
  min-height: 520px;
  padding: 82px 54px;
  background: var(--note);
  transform: rotate(-2deg);
  box-shadow: var(--shadow);
}
.paper-note h2,
.info h3 {
  margin: 0 0 16px;
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
  font-weight:400;
}
.paper-note p { font-size: 16px; }
.paper-note strong {
  display: block;
  margin-top: 30px;
  font-size: 20px;
  line-height: 1.25;
  text-transform: uppercase;
}

.info {
  padding: 100px clamp(24px, 5vw, 96px) 54px;
  border-top: 1px solid rgba(255,255,255,.55);
}
.script-title {
  position: relative;
  margin: 0 auto 92px;
  width: min(980px, 100%);
  max-width: 100%;
  text-align: left;
  font: 142px/.66 var(--script);
  transform: rotate(-2deg);
  white-space: nowrap;
}
.script-title .title-mark {
  width: 270px;
  margin: -16px 0 0 138px;
  transform: rotate(-2deg);
}
.info__grid {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 62px 100px;
}
.info p { margin: 0; color: #201b17; font-size:16px;}
.info__grid > * { min-width: 0; }

.rsvp {
  width: min(980px, calc(100% - 48px));
  margin: 90px auto 130px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  padding: 54px;
  border: 1px solid var(--line);
  background: rgba(246, 236, 214, .48);
}
.eyebrow {
  margin: 0 0 18px;
  font: 700 14px/1 var(--sans);
  letter-spacing: .12em;
}
.rsvp h2 {
  margin: 0 0 18px;
  font: 92px/.8 var(--script);
}
.rsvp h2 .script-fallback {
  font-size: .34em;
  transform: translateY(-.12em) rotate(2deg);
}
.rsvp-form {
  display: grid;
  gap: 18px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  text-transform: uppercase;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.48);
  color: var(--ink);
  padding: 13px 14px;
  font: 16px/1.3 var(--mono);
}
button {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  font: 700 13px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.form-status {
  min-height: 1.4em;
  margin: 2px 0 0;
  font-size: 14px;
}
.form-status[data-type="success"] { color: #315c38; }
.form-status[data-type="error"] { color: #8b2b24; }
.form-status[data-type="pending"] { color: var(--muted); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
footer a { text-decoration: none; }

.gift {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  grid-template-columns: minmax(0, 640px) minmax(0, 340px);
  gap: clamp(64px, 7vw, 120px);
  align-items: end;
  justify-content: center;
  padding: 100px 0;
  margin: 0 auto;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.55);
}
.gift-card-wrap {
  position: relative;
  width: min(640px, 100%);
  min-height: 720px;
  justify-self: start;
}
.gift-card-wrap > img {
  width: 600px;
  height: 720px;
  object-fit: cover;
  filter: grayscale(1);
}
.gift-paper-note {
  position: absolute;
  z-index: 1;
  top: 80px;
  left: 100px;
  width: 380px;
  min-height: 520px;
  padding: 82px 54px;
  background: var(--note);
  transform: rotate(-2deg);
  box-shadow: var(--shadow);
  text-align: center;
}
.paperclip-right {
  position: absolute;
  width: 70px;
  top: -35px;
  right: 28px;
}
.paperclip-left {
  position: absolute;
  width: 70px;
  top: -35px;
  left: 28px;
}
.gift-paper-note h2 {
  margin: 0 0 54px;
  text-align: center;
  font: 400 78px/.74 var(--script);
  text-transform: none;
  font-weight: 400;
}
.gift-paper-note h2 span {
  position: relative;
  display: inline-block;
}
.title-underline--gift {
  width: 2em;
  left: .5em;
  top: .6em;
  transform: rotate(7deg);
}
.gift-claim {
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: center;
}
.gift-paper-note p { font-size: 16px; }
.gift-paper-note p:not(.gift-claim) {
  font-style: italic;
  line-height: 1.35;
}
.gift-paper-note dl {
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}
.gift-paper-note div { display: grid; gap: 2px; }
.gift-paper-note dt {
  font-weight: 700;
  text-transform: uppercase;
}
.gift-paper-note dd { margin: 0; color: var(--muted); }
.gift-postcard {
  width: min(300px, 80vw);
  height: 500px;
  object-fit: cover;
  justify-self: center;
  margin-bottom: 120px;
  filter: saturate(.75) contrast(.92);
}

@media (max-width: 575px) {
  body {
    width: 100vw;
    font-size: 16px;
  }
  .topbar {
    inset: 12px 12px auto 12px;
    justify-content: center;
    gap: 14px;
    padding: 10px 12px;
  }
  .hero {
    min-height: 680px;
    padding: 108px 18px 94px;
    place-items: center;
  }
  .hero__portrait {
    width: min(318px, 73vw);
    margin-left: 0;
  }
  h1 {
    inset: 0;
    font-size: clamp(46px, 13.2vw, 58px);
  }
  .hero-name { width: 112%; }
  .hero-name--top { top: -.56em; }
  .hero-name--bottom { bottom: -.65em; }
  .hero-amp {
    font-size: .64em;
    transform: translateY(.06em);
  }

  .invite { min-height: 690px; }
  .invite__scene { height: 690px; }
  .invite__sky { background-position: 42% center; }
  .invite__envelope {
    width: 360px;
    left: 18px;
    bottom: 120px;
    transform: rotate(-2deg);
  }
  .polaroid {
    width: min(330px, 82vw);
    left: 50%;
    top: 130px;
    transform: translateX(-56%) rotate(-9deg);
  }
  .invite-card {
    width: 214px;
    min-height: 360px;
    right: 30px;
    top: 326px;
    padding: 44px 22px 24px;
    transform: rotate(5deg);
  }
  .date, .signature { font-size: 16px; }
  .script { margin: 42px 0 38px; font-size: 46px; }

  .location { padding: 100px 0 80px; }
  .section-title {
    font-size: 82px;
    line-height: 0.5em;
    margin-bottom: 22px;
    transform: rotate(0deg);
    text-align: center;
    margin: 0 auto 3rem;
  }
  .section-title .title-mark {
    width: 170px;
    height: 24px;
    margin: -10px 0 0 64px;
  }
  .location__grid {
    width: calc(100vw - 44px);
    max-width: calc(100vw - 44px);
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 28px;
    transform: none;
  }
  .location__copy {
    width: min(310px, calc(100vw - 56px));
    max-width: min(310px, calc(100vw - 56px));
  }

  .wedding-note {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 44px;
    overflow: visible;
  }
  .mural {
    margin: 0;
    width: min(340px, 100%);
  }
  .venue-card-wrap {
    min-height: 620px;
    display: grid;
    justify-items: center;
  }
  .venue-card-wrap > img {
    width: 100%;
    height: 620px;
    object-fit: cover;
  }
  .paper-note {
    position: relative;
    top: auto;
    left: auto;
    width: min(340px, calc(100% - 44px));
    min-height: 0;
    margin-top: -550px;
    padding: 48px 32px;
  }
  .info {
    width: 100vw;
    padding: 50px 22px;
  }
  .script-title {
    width: max-content;
    max-width: calc(100vw - 44px);
    margin-left: 0;
    margin-right: auto;
    font-size: clamp(44px, 13vw, 58px);
    margin-bottom: 62px;
    white-space: nowrap;
  }
  .info article,
  .rsvp > *,
  .gift-paper-note { min-width: 0; }
  .script-title .title-mark {
    width: 170px;
    height: 24px;
    margin: -12px 0 0 86px;
  }
  .title-underline--location {
    top: .4em;
  }
  .info__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .info p,
  .location__copy p,
  .rsvp p {
    width: 100%;
    max-width: 100%;
  }

  .rsvp {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 22px;
    margin-top: 72px;
    margin-bottom: 88px;
  }
  .rsvp > div,
  .rsvp-form {
    width: min(310px, calc(100vw - 76px));
    max-width: min(310px, calc(100vw - 76px));
  }
  .gift {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 0 0 96px;
    overflow: visible;
  }
  .gift-card-wrap {
    width: 100%;
    min-height: 620px;
    display: grid;
    justify-items: center;
  }
  .gift-card-wrap > img {
    width: 100%;
    height: 620px;
    object-fit: cover;
  }
  .gift-paper-note {
    position: relative;
    top: auto;
    left: auto;
    width: min(340px, calc(100% - 44px));
    min-height: 0;
    margin-top: -550px;
    padding: 48px 32px;
  }
  .gift-paper-note h2 {
    font-size: 66px;
  }
  .gift-postcard {
    margin: 0;
    width: min(340px, 100%);
    height: 560px;
    object-fit: cover;
    justify-self: center;
  }
  footer {
    padding: 24px 18px 80px;
    flex-direction: column;
  }
}

@media (min-width: 576px) and (max-width: 992px) {
  .hero__portrait {
    width: min(360px, 58vw);
  }

  .invite { min-height: 690px; }
  .invite__scene { height: 690px; }
  .invite__sky { background-position: 42% center; }
  .invite__envelope {
    width: 360px;
    left: 18px;
    bottom: 120px;
    transform: rotate(-2deg);
  }
  .polaroid {
    width: min(330px, 82vw);
    left: 50%;
    top: 130px;
    transform: translateX(-56%) rotate(-9deg);
  }
  .invite-card {
    width: 214px;
    min-height: 360px;
    right: 30px;
    top: 326px;
    padding: 44px 22px 24px;
    transform: rotate(5deg);
  }
  .date, .signature { font-size: 16px; }
  .script { margin: 42px 0 38px; font-size: 46px; }

  .section-title {
    width: min(760px, calc(100% - 48px));
    margin: 0 auto 64px;
    text-align: left;
    font-size: clamp(92px, 12vw, 118px);
    line-height: .62;
    transform: rotate(-4deg);
  }

  .location__grid {
    width: min(760px, calc(100% - 48px));
    max-width: min(760px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1.2fr) minmax(210px, .8fr);
    gap: 36px;
  }

  .location__copy {
    width: auto;
    max-width: none;
  }

  .wedding-note,
  .gift {
    width: min(680px, calc(100% - 48px));
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 70px 0 96px;
    overflow: visible;
  }

  .mural,
  .gift-postcard {
    width: min(300px, 100%);
    height: 500px;
    margin: 0 auto;
    justify-self: center;
  }

  .venue-card-wrap,
  .gift-card-wrap {
    width: 100%;
    min-height: 700px;
    display: grid;
    justify-items: center;
  }

  .venue-card-wrap > img,
  .gift-card-wrap > img {
    width: 100%;
    height: 700px;
    object-fit: cover;
  }

  .paper-note,
  .gift-paper-note {
    position: relative;
    top: auto;
    left: auto;
    width: min(420px, calc(100% - 72px));
    min-height: 0;
    margin-top: -610px;
    padding: 58px 44px;
  }

  .info {
    width: 100%;
    padding: 80px 24px 60px;
  }

  .script-title {
    width: min(760px, 100%);
    max-width: 100%;
    margin: 0 auto 76px;
    font-size: clamp(74px, 10vw, 112px);
    text-align: left;
  }

  .info__grid {
    width: min(760px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 56px;
  }

  .rsvp {
    width: min(760px, calc(100% - 48px));
    max-width: min(760px, calc(100% - 48px));
  }
}

@media (max-width: 771px) {
  .invite { min-height: 760px; }
  .invite__scene { height: 760px; }
  .invite-card { top: 356px; }

  .rsvp {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 22px;
    margin-top: 72px;
    margin-bottom: 88px;
  }

  .rsvp > div,
  .rsvp-form,
  .rsvp-form label,
  .rsvp-form input,
  .rsvp-form textarea,
  .actions {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 771px) and (max-width: 992px) {
  .invite__envelope {
    left: 72px;
  }

  .polaroid {
    left: 42%;
  }

  .invite-card {
    right: 82px;
    top: 286px;
  }
}

@media (max-width: 483px) {
  .title-underline--info {
    left: 50%;
    top: 1.1em;
    transform: translateX(-50%) rotate(3deg);
  }
}

@media (max-width: 420px) {
  .polaroid { top: 112px; }
  .invite-card { top: 360px; right: 8px; }
  .paper-note,
  .gift-paper-note { width: 96%; }
}
