/* Design settings: colours and fonts used throughout the site. */
:root {
  --ink:#243a32;
  --paper:#f5f1e9;
  --rose:#d97b6a;
  --lavender:#e92d67;
  --mist:#dde5df;
  --sand:#e9e1d1;
  --serif:"Playfair Display",Georgia,serif;
  --sans:"DM Sans",Arial,sans-serif;
  --mono:"DM Mono",monospace
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px
}
/* Header and desktop navigation */
.site-header {
  position:absolute;
  z-index:5;
  top:0;
  left:0;
  width:100%;
  padding:29px clamp(24px,5vw,72px);
  display:flex;
  align-items:center;
  justify-content:space-between
}
.monogram {
  font-family:var(--serif);
  color:var(--ink);
  font-size:25px;
  font-style:italic;
  text-decoration:none
}
.site-header nav {
  display:flex;
  gap:35px;
  margin-left:80px
}
.site-header nav a,.header-rsvp {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.13em;
  text-decoration:none;
  color:var(--ink);
  font-weight:600
}
.site-header nav em {
  font:9px var(--mono);
  text-transform:lowercase;
  vertical-align:super;
  margin-left:5px;
  color:#809087
}
.header-rsvp {
  border-bottom:1px solid var(--ink);
  padding-bottom:5px
}
.menu-button {
  display:none;
  background:none;
  border:0
}
/* Opening invitation section */
.hero {
  min-height:100svh;
  padding:154px 24px 58px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  position:relative;
  overflow:hidden;
  background:radial-gradient(circle at 50% 38%,#faf8f2 0, #f5f1e9 55%,#e6e1d4 120%)
}
.eyebrow,.section-kicker {
  margin:0 0 20px;
  font:500 10px var(--mono);
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#65766e
}
.hero h1 {
  font:500 clamp(68px,11vw,156px)/.84 var(--serif);
  letter-spacing:-.075em;
  margin:0;
  color:var(--ink)
}
.hero h1 span {
  display:block
}
.hero h1 i {
  font-weight:400;
  color:var(--lavender);
  font-size:.6em;
  display:block;
  margin:.12em 0;
  font-style:italic
}
.invitation {
  font:400 17px/1.65 var(--serif);
  max-width:395px;
  margin:32px auto 31px;
  white-space:pre-line;
}
.event-line {
  display:flex;
  align-items:center;
  gap:14px;
  font:500 10px var(--mono);
  text-transform:uppercase;
  letter-spacing:.1em;
  margin-bottom:34px
}
.event-line b {
  display:block;
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--rose)
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:142px;
  padding:15px 22px;
  text-decoration:none;
  background:var(--ink);
  color:#fff;
  font-size:10px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:600;
  transition:.2s transform,.2s background
}
.button:hover {
  transform:translateY(-3px);
  background:#375449
}
.deadline {
  font:500 9px var(--mono);
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#718179;
  margin:15px 0
}
.scroll-cue {
  position:absolute;
  bottom:31px;
  color:var(--ink);
  text-decoration:none;
  font:10px var(--mono);
  letter-spacing:.06em
}
.scroll-cue span {
  display:block;
  color:var(--rose);
  font-size:18px;
  margin-top:5px
}
.leaf {
  position:absolute;
  color:var(--lavender);
  font-size:33px;
  opacity:.7
}
.leaf-one {
  top:26%;
  left:13%;
  transform:rotate(16deg)
}
.leaf-two {
  bottom:20%;
  right:13%;
  transform:rotate(-18deg);
  font-size:42px
}
/*
   Opening photo: it is initially full-screen, then the invitation rises over it
   as the visitor scrolls. The image also drifts very slightly in the background.
*/
.photo-stage {
  height:155svh;
  margin-bottom:-55svh
}
.photo-frame {
  --photo-scale:1.12;
  --photo-offset:0px;
  position:sticky;
  top:0;
  height:100svh;
  overflow:hidden;
  background:var(--paper);
}
.photo-frame img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 36%;
  transform:translateY(var(--photo-offset)) scale(var(--photo-scale));
  transition:transform .08s linear
}
.photo-caption {
  position:absolute;
  right:clamp(24px, 6vw, 90px);
  bottom:clamp(32px, 7vw, 90px);
  color:#fff;
  text-align:right;
  text-shadow:0 2px 18px #0008
}
.photo-caption span {
  display:block;
  margin-bottom:10px;
  font:italic 29px var(--serif)
}
.photo-caption p {
  margin:0;
  font:500 clamp(27px, 3vw, 45px)/1.05 var(--serif);
  letter-spacing:-.055em
}
.photo-caption p:not(.photo-save-the-date) {
  font-size:clamp(23px, 2.5vw, 38px)
}
.photo-caption .photo-save-the-date {
  display:inline-block;
  margin:0 0 18px;
  padding:15px 20px;
  background:#fff9;
  color:var(--ink);
  font:600 18px var(--sans);
  letter-spacing:.05em;
  text-shadow:none;
  text-transform:uppercase
}
/* On wider screens, preserve the portrait rather than cropping it to landscape. */
@media (min-width:701px) {
  .photo-frame {
    display:grid;
    grid-template-columns:1fr clamp(450px, 68svh, 720px) 1fr;
    background:var(--paper);
  }
  .photo-frame img {
    grid-column:2;
    object-fit:cover;
    object-position:50% 36%;
  }
  .photo-caption {
    right:auto;
    left:clamp(40px, 7vw, 130px);
    bottom:clamp(42px, 9vw, 120px);
    max-width:250px;
    color:var(--ink);
    text-align:left;
    text-shadow:none;
  }
}
.hero {
  z-index:1;
  box-shadow:0 -22px 42px #243a3215
}
/* "Our day" section */
.day-section {
  padding:130px clamp(24px,10vw,170px);
  background:var(--mist)
}
.section-kicker {
  border-bottom:1px solid #b7c5bd;
  padding-bottom:17px
}
.day-layout {
  display:grid;
  grid-template-columns:.7fr 1.3fr 1fr;
  align-items:end;
  gap:40px;
  padding-top:73px
}
.floral-mark {
  color:var(--rose);
  font:120px var(--serif);
  line-height:.5
}
.section-number {
  font:10px var(--mono);
  letter-spacing:.16em;
  color:#718179;
  margin:0 0 18px
}
.day-section h2,.details-section h2,.rsvp-section h2 {
  margin:0;
  font:500 clamp(40px,5.4vw,78px)/.98 var(--serif);
  letter-spacing:-.06em
}
.day-copy {
  font:400 18px/1.65 var(--serif);
  max-width:315px;
  margin:0 0 8px
}
/* Wedding details cards */
.details-section {
  padding:125px clamp(24px,10vw,170px) 132px
}
.details-section h2 {
  margin-bottom:58px
}
.detail-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid #c8c2b6
}
.detail-grid article {
  padding:26px 28px 5px 0;
  border-right:1px solid #c8c2b6;
  min-height:150px
}
.detail-grid article+article {
  padding-left:28px
}
.detail-grid article:last-child {
  border:0
}
.detail-grid span {
  font:10px var(--mono);
  letter-spacing:.13em;
  text-transform:uppercase;
  color:#718179;
  display:block;
  margin-bottom:30px
}
.detail-grid strong {
  display:block;
  font:500 19px var(--serif)
}
.detail-grid p {
  font-size:13px;
  line-height:1.5;
  margin:6px 0;
  color:#64736b
}
/* RSVP call-to-action and page footer */
.rsvp-section {
  padding:135px 24px;
  text-align:center;
  background:var(--rose);
  color:#fff
}
.rsvp-section .eyebrow {
  color:#f9e8e2
}
.rsvp-section h2 {
  margin-bottom:24px
}
.rsvp-section>p:not(.eyebrow):not(.rsvp-helper) {
  font:10px var(--mono);
  letter-spacing:.1em;
  text-transform:uppercase;
  margin:0 0 27px
}
.button-light {
  background:#fff;
  color:var(--ink)
}
.button-light:hover {
  background:#f5f1e9
}
.rsvp-helper {
  font:11px/1.5 var(--sans);
  margin:23px auto 0;
  color:#ffe8e2;
  opacity:.8
}
.rsvp-helper code {
  font-family:var(--mono)
}
footer {
  display:flex;
  justify-content:space-between;
  padding:25px clamp(24px,5vw,72px);
  font:10px var(--mono);
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#7c827e
}
/* Mobile layout */
@media(max-width:700px) {
  .site-header {
    padding:23px 24px
  }
  .site-header nav {
    display:none
  }
  .header-rsvp {
    display:none
  }
  .menu-button {
    display:flex;
    flex-direction:column;
    gap:5px;
    padding:8px
  }
  .menu-button span {
    display:block;
    width:23px;
    height:1px;
    background:var(--ink)
  }
  .menu-open #site-nav {
    display:flex;
    position:absolute;
    top:70px;
    left:24px;
    right:24px;
    margin:0;
    padding:25px;
    background:#faf8f2;
    flex-direction:column;
    gap:18px;
    box-shadow:0 10px 30px #243a3215
  }
  .hero {
    padding-top:134px
  }
  .event-line {
    flex-direction:column;
    gap:7px
  }
  .event-line b {
    display:none
  }
  .leaf-one {
    left:5%;
    top:21%
  }
  .leaf-two {
    right:4%;
    bottom:25%
  }
  .photo-stage {
    height:145svh;
    margin-bottom:-45svh
  }
  .photo-caption {
    right:24px;
    bottom:32px
  }
  .photo-caption span {
    font-size:24px
  }
  .day-section {
    padding-block:90px
  }
  .day-layout {
    grid-template-columns:1fr;
    gap:30px;
    padding-top:47px
  }
  .floral-mark {
    font-size:90px
  }
  .day-copy {
    margin:0
  }
  .detail-grid {
    grid-template-columns:1fr
  }
  .detail-grid article,.detail-grid article+article {
    padding:25px 0;
    border-right:0;
    border-bottom:1px solid #c8c2b6;
    min-height:auto
  }
  .detail-grid article:last-child {
    border-bottom:0
  }
  .details-section {
    padding-block:90px
  }
  .details-section h2 {
    margin-bottom:42px
  }
  .rsvp-section {
    padding-block:100px
  }
  footer {
    font-size:8px
  }
}
