@font-face {
  font-family:Karton;
  src:url('assets/fonts/Karton.woff2') format('woff2');
  font-weight:400;
  font-display:swap;
}

@font-face {
  font-family:InterTight;
  src:url('assets/fonts/InterTight-Light.woff2') format('woff2');
  font-weight:300;
  font-display:swap;
}

@font-face {
  font-family:InterTight;
  src:url('assets/fonts/InterTight-Regular.woff2') format('woff2');
  font-weight:400;
  font-display:swap;
}

@font-face {
  font-family:InterTight;
  src:url('assets/fonts/InterTight-SemiBold.woff2') format('woff2');
  font-weight:600;
  font-display:swap;
}

:root {
  --bg:#f7f0f1;
  --ink:#201315;
  --text:#655b5d;
  --accent:#ef2f49;
  --white:#fff;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:InterTight,Arial,sans-serif;
  font-size:18px;
  font-weight:300;
  line-height:1.5;
}

main {
  overflow:hidden;
}

h1,h2,p,figure {
  margin:0;
}

p+p {
  margin-top:16px;
}

h1,h2,.handwriting {
  font-family:Karton,sans-serif;
  font-weight:400;
  text-transform:uppercase;
  color:var(--ink);
  line-height:1.13;
}

h2 {
  font-size:60px;
  overflow-wrap:anywhere;
}

a {
  color:inherit;
  text-underline-offset:4px;
}

button {
  font:inherit;
}

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

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

button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:6px;
}

[hidden] {
  display:none!important;
}

.container {
  width:100%;
  max-width:1288px;
  padding-inline:20px;
  margin-inline:auto;
}

.centered {
  text-align:center;
}

.accent {
  color:var(--accent);
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.skip-link {
  position:fixed;
  top:12px;
  left:12px;
  z-index:20;
  background:#fff;
  padding:12px;
  transform:translateY(-200%);
}

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

.hero {
  padding-top:32px;
  text-align:center;
}

.music-button {
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:#fff;
  display:grid;
  place-items:center;
  margin-left:auto;
  color:var(--accent);
  cursor:pointer;
}

.music-button svg {
  width:22px;
  height:22px;
  stroke:currentColor;
  stroke-width:1.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.music-button .sound-wave {
  display:none;
}

.music-button[aria-pressed=true] .sound-wave {
  display:block;
}

.music-button[aria-pressed=true] .sound-off {
  display:none;
}

.hero-collage {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 25px;
  margin-top:90px;
  min-height:450px;
}

.hero-photo {
  position:relative;
  width:28%;
  max-width:352px;
  flex-shrink:0;
}

.first-photo {
  margin-top:-40px;
}

.second-photo {
  margin-top:60px;
}

.polaroid {
  position:relative;
  background:#fff;
  padding:16px 16px 60px;
  box-shadow:0 3px 12px #655b5d06;
  transform:rotate(7deg);
}

.polaroid>img {
  width:100%;
  aspect-ratio:304/304;
  object-fit:cover;
}

.second-photo .polaroid {
  transform:rotate(-8deg);
}

.hero-doodle {
  position:absolute;
  object-fit:contain;
  z-index:0;
  height:auto;
}

.first-doodle {
  width:280px;
  max-width:none;
  right:-15%;
  top:-43%;
}

.second-doodle {
  width:365px;
  max-width:none;
  right:0;
  top:-39%;
}

.heart {
  position:absolute;
  z-index:2;
}

.first-heart {
  width:135px;
  top:-7%;
  right:-30%;
}

.second-heart {
  width:68px;
  bottom:25%;
  left:-12%;
}

.hero h1 {
  font-size:140px;
  white-space:nowrap;
  position:relative;
  z-index:3;
}

.hero h2 {
  margin-top:34px;
}

.hero-subtitle {
  font-size:60px;
  transform:rotate(2deg);
  margin-top:-5px;
  line-height:1.25;
}

.hero-text {
  max-width:825px;
  margin:28px auto 0;
  white-space:pre-line;
  letter-spacing:.02em;
}

.scribble {
  width:245px;
  height:35px;
  margin:30px auto 0;
  background:linear-gradient(175deg,transparent 30%,#e2d5d5 31% 35%,transparent 37% 49%,#e2d5d5 51% 55%,transparent 57%);
  transform:rotate(5deg);
}

.split {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:110px;
}

.invitation {
  padding:90px 125px 0;
}

.invitation-copy {
  width:460px;
  flex-shrink:1;
}

.invitation-copy>p,.personal-message {
  margin-top:24px;
}

.invitation-copy h2 {
  font-size:56px;
}

.personal-message p {
  font-size:21px;
}

.personal-message .signature {
  font-family:Karton;
  font-size:30px;
  color:var(--accent);
}

.invitation-photo {
  width:389px;
  flex-shrink:0;
  position:relative;
}

.story-doodle {
  position:absolute;
  right:65%;
  top:38%;
  width:320px;
  max-width:none;
}

.story-polaroid {
  transform:rotate(-2deg);
  padding:13px 13px 0;
}

.story-polaroid>img {
  aspect-ratio:361/496;
}

.story-polaroid figcaption {
  padding:16px 13px;
  font-family:Karton;
  font-size:22px;
  text-transform:uppercase;
  line-height:1.12;
  text-align:center;
  color:var(--ink);
}

.calendar-section {
  padding-top:100px;
}

.calendar-section h2 {
  max-width:960px;
  margin:auto;
}

.calendar-month {
  font-size:92px;
  margin-top:24px;
}

.calendar {
  width:426px;
  max-width:100%;
  margin:24px auto 0;
  border-spacing:13px 0;
  table-layout:fixed;
}

.calendar th {
  font-weight:400;
  font-size:18px;
  color:var(--ink);
  height:34px;
}

.calendar td {
  height:42px;
  position:relative;
}

.calendar .selected {
  color:var(--accent);
  isolation:isolate;
  font-weight:600;
}

.calendar .selected::before {
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:var(--accent);
  mask:url('assets/images/date-bg.svg') center/100% 100% no-repeat;
}

.calendar-section>p:last-of-type {
  margin-top:20px;
}

#wedding-date {
  display:block;
  margin-top:6px;
  font-size:14px;
}

.white-panel {
  border-radius:60px;
  background:#fff;
  margin-top:60px;
  padding-bottom:80px;
}

.place {
  padding-top:100px;
  position:relative;
  display:grid;
  grid-template-columns:58% 36%;
  gap:20px 6%;
}

.place h2 {
  max-width:720px;
}

.place-copy>p {
  margin-top:16px;
}

.place-details {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:24px;
  margin-top:24px;
}

.place-details>div:first-child {
  max-width:70%;
}

.place-details p+p {
  margin-top:2px;
}

.place-value {
  font-size:32px;
}

.place-doodle {
  width:100%;
  align-self:center;
}

.place iframe {
  grid-column:1/-1;
  border:0;
  width:100%;
  height:280px;
  margin-top:10px;
  border-radius:8px;
  background:var(--bg);
}

.map-link {
  grid-column:1/-1;
  font-size:15px;
  justify-self:start;
}

.program {
  padding-top:100px;
}

.program>p {
  margin-top:12px;
}

.program-list {
  max-width:825px;
  margin:24px auto 0;
  text-align:left;
}

.program details {
  border-bottom:1px solid #efe7e9;
}

.program summary {
  padding:22px 20px;
  display:flex;
  align-items:center;
  gap:16px;
  list-style:none;
  cursor:pointer;
  color:var(--ink);
  font-size:25px;
  font-weight:400;
}

.program summary::-webkit-details-marker {
  display:none;
}

.program summary time {
  font-size:32px;
  font-weight:600;
}

.program summary::after {
  content:'+';
  font-family:Karton;
  color:var(--accent);
  font-size:30px;
  margin-left:auto;
}

.program details[open] summary::after {
  content:'−';
}

.program details>p {
  padding:0 20px 24px 124px;
}

.dress-code {
  padding-top:100px;
  position:relative;
}

.dress-subtitle {
  font-size:46px;
  margin-top:8px;
}

.dress-text {
  max-width:580px;
  margin:18px auto 0;
  white-space:pre-line;
  line-height:1.35;
}

.dress-doodle {
  position:absolute;
  top:120px;
  width:22%;
}

.dress-left {
  left:60px;
}

.dress-right {
  right:85px;
  width:16%;
}

.swatches {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:30px auto 0;
  max-width:635px;
}

.swatch {
  flex:1;
  aspect-ratio:1/1;
  background:var(--swatch);
  mask:var(--mask) center/contain no-repeat;
}

.swatch:nth-child(2) {
  transform:rotate(-12deg) translateY(16px);
}

.swatch:nth-child(4) {
  transform:rotate(8deg) translateY(20px);
}

.timer {
  padding-top:100px;
  position:relative;
}

.timer>p {
  margin-top:12px;
}

.timer-doodle {
  position:absolute;
  right:12%;
  top:110px;
  width:105px;
}

.countdown {
  display:flex;
  justify-content:center;
  gap:45px;
  margin-top:32px;
}

.countdown>div {
  display:grid;
  gap:4px;
  min-width:85px;
}

.countdown span:first-child {
  font-family:Karton;
  color:var(--accent);
  font-size:70px;
  line-height:1.15;
}

.countdown span:last-child {
  font-size:18px;
}

.wishes {
  display:flex;
  align-items:center;
  gap:6%;
  padding-top:110px;
}

.wishes-copy {
  width:57%;
}

.wishes-copy>p {
  margin-top:16px;
}

.wishes-doodle {
  width:37%;
}

.wish-list {
  margin-top:30px;
  display:grid;
  gap:24px;
}

.wish-list>p {
  position:relative;
  padding-left:45px;
  margin:0;
}

.wish-list>p::before {
  content:'';
  position:absolute;
  top:5px;
  left:0;
  width:28px;
  height:28px;
  background:url('assets/images/block-info-decor.svg') center/contain no-repeat;
}

.wishes-sign {
  font-size:28px;
  margin-top:30px!important;
}

.questions {
  padding-top:100px;
  position:relative;
  min-height:310px;
}

.questions-doodle {
  position:absolute;
  width:205px;
  right:60px;
  top:70px;
}

.rsvp-closed,.rsvp-link {
  display:inline-block;
  margin-top:36px;
  padding:16px 28px;
  border:0;
  border-radius:30px;
  background:#ebdfe2;
  color:#8a7379;
  font-weight:400;
  text-decoration:none;
}

.rsvp-closed {
  cursor:default;
}

.rsvp-link {
  background:var(--accent);
  color:#fff;
}

.contacts {
  padding-top:80px;
  position:relative;
}

.contacts>p {
  margin-top:12px;
}

.contacts-doodle {
  position:absolute;
  width:170px;
  left:25px;
  top:180px;
}

.contacts-list {
  display:flex;
  justify-content:center;
  gap:65px;
  margin-top:45px;
}

.contact {
  width:220px;
  position:relative;
}

.contact>img {
  width:154px;
  height:154px;
  border-radius:50%;
  object-fit:cover;
  margin:auto;
}

.contact h3 {
  font-family:Karton;
  color:var(--ink);
  font-size:36px;
  font-weight:400;
  text-transform:uppercase;
  margin:16px 0 0;
}

.contact p {
  font-size:16px;
  margin:0 0 8px;
}

.contact>a {
  display:block;
  font-weight:400;
  font-size:18px;
  margin-top:8px;
}

.contact .social {
  font-size:14px;
  color:var(--accent);
}

.final {
  padding-top:120px;
  padding-bottom:80px;
}

.final>p {
  margin-top:20px;
}

.final-collage {
  max-width:910px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
  margin:65px auto 0;
  padding:0 25px;
}

.final-collage>.polaroid {
  width:38%;
  z-index:1;
  transform:rotate(-8deg);
}

.final-collage>.polaroid:nth-of-type(2) {
  transform:rotate(8deg);
  margin-top:45px;
}

.final-collage .polaroid>img {
  aspect-ratio:1/1.1;
}

.final-doodle {
  position:absolute;
  width:320px;
  left:50%;
  top:30%;
  transform:translateX(-50%);
}

.final-heart {
  position:absolute;
  width:85px;
  right:5%;
  top:-10px;
  z-index:2;
}

.final-names {
  font-size:65px!important;
  margin-top:60px!important;
}

.noscript {
  text-align:center;
  max-width:600px;
  margin:20px auto;
  padding:20px;
}

@media(max-width:1000px) {
  h2 {
    font-size:48px;
  }
  .hero h1 {
    font-size:105px;
  }
  .hero-collage {
    padding-inline:20px;
    min-height:360px;
    margin-top:80px;
  }
  .hero-photo {
    width:29%;
  }
  .hero h2 {
    margin-top:25px;
  }
  .hero-subtitle {
    font-size:52px;
  }
  .polaroid {
    padding:12px 12px 40px;
  }
  .first-doodle {
    width:220px;
  }
  .second-doodle {
    width:275px;
  }
  .first-heart {
    width:100px;
  }
  .invitation {
    padding:90px 50px 0;
    gap:65px;
  }
  .invitation-photo {
    width:36%;
  }
  .invitation-copy {
    width:54%;
  }
  .invitation-copy h2 {
    font-size:45px;
  }
  .story-polaroid {
    padding-bottom:0;
  }
  .place {
    grid-template-columns:64% 30%;
  }
  .dress-left {
    left:20px;
    width:20%;
  }
  .dress-right {
    right:30px;
    width:14%;
  }
  .dress-text {
    max-width:52%;
  }
  .questions-doodle {
    right:15px;
    width:160px;
  }
  .contacts-doodle {
    width:130px;
    left:10px;
  }
  .contacts-list {
    gap:30px;
  }
}

@media(max-width:640px) {
  body {
    font-size:16px;
    line-height:1.5;
  }
  .container {
    padding-inline:20px;
  }
  h2 {
    font-size:36px;
  }
  .hero {
    padding-top:20px;
  }
  .music-button {
    width:38px;
    height:38px;
  }
  .hero-collage {
    padding:0 4px;
    margin-top:74px;
    min-height:235px;
    gap:4px;
  }
  .hero h1 {
    font-size:60px;
  }
  .hero-photo {
    width:34%;
  }
  .first-photo {
    margin-top:-30px;
  }
  .second-photo {
    margin-top:40px;
  }
  .polaroid {
    padding:7px 7px 30px;
  }
  .first-doodle {
    width:145px;
    top:-48%;
    right:-15%;
  }
  .second-doodle {
    width:175px;
    top:-43%;
    right:-10%;
  }
  .first-heart {
    width:62px;
    right:-23%;
    top:-6%;
  }
  .second-heart {
    width:42px;
    left:-15%;
  }
  .hero h2 {
    font-size:34px;
    margin-top:25px;
  }
  .hero-subtitle {
    font-size:38px;
    margin-top:2px;
  }
  .hero-text {
    margin-top:20px;
  }
  .scribble {
    width:170px;
    margin-top:22px;
  }
  .invitation {
    padding-top:62px;
    display:flex;
    flex-direction:column;
    gap:35px;
  }
  .invitation-copy {
    width:100%;
    text-align:center;
  }
  .invitation-copy h2 {
    font-size:37px;
  }
  .personal-message p {
    font-size:17px;
  }
  .invitation-photo {
    width:75%;
    max-width:325px;
    margin-left:40px;
  }
  .story-doodle {
    width:185px;
    right:70%;
    top:45%;
  }
  .story-polaroid {
    padding:10px 10px 0;
  }
  .story-polaroid figcaption {
    font-size:20px;
    padding:16px 8px;
  }
  .calendar-section {
    padding-top:70px;
  }
  .calendar-section h2 {
    font-size:34px;
  }
  .calendar-month {
    font-size:57px;
    margin-top:18px;
  }
  .calendar {
    width:320px;
    border-spacing:5px 0;
  }
  .calendar td {
    height:38px;
  }
  .calendar th {
    font-size:16px;
  }
  .calendar-section>p:last-of-type {
    margin-top:16px;
  }
  .white-panel {
    margin-top:50px;
    border-radius:35px;
    padding-bottom:60px;
  }
  .place {
    padding-top:60px;
    display:flex;
    flex-direction:column;
    gap:20px;
    position:relative;
  }
  .place h2 {
    padding-right:0;
    font-size:35px;
  }
  .place-doodle {
    width:47%;
    position:static;
    margin-left:auto;
    margin-top:-8px;
    margin-bottom:-15px;
  }
  .place-details {
    gap:20px;
  }
  .place-details>div:first-child {
    max-width:72%;
  }
  .place-value {
    font-size:27px;
  }
  .place-details p {
    font-size:14px;
  }
  .place-details .place-value {
    font-size:26px;
  }
  .place iframe {
    height:235px;
    margin-top:0;
  }
  .map-link {
    align-self:start;
  }
  .program {
    padding-top:60px;
  }
  .program-list {
    margin-top:20px;
  }
  .program summary {
    font-size:20px;
    padding:19px 3px;
    gap:12px;
  }
  .program summary time {
    font-size:25px;
  }
  .program details>p {
    padding:0 5px 20px 79px;
  }
  .dress-code {
    padding-top:60px;
  }
  .dress-subtitle {
    font-size:34px;
  }
  .dress-text {
    max-width:100%;
    padding-top:100px;
    margin-top:15px;
    font-size:16px;
  }
  .dress-doodle {
    top:143px;
    width:28%;
  }
  .dress-left {
    left:20px;
  }
  .dress-right {
    right:35px;
    width:20%;
    top:135px;
  }
  .swatches {
    gap:4px;
    max-width:360px;
    margin-top:25px;
  }
  .swatch:nth-child(2) {
    transform:rotate(-12deg) translateY(8px);
  }
  .swatch:nth-child(4) {
    transform:rotate(8deg) translateY(12px);
  }
  .timer {
    padding-top:65px;
  }
  .timer-doodle {
    width:70px;
    right:6px;
    top:56px;
    transform:rotate(12deg);
  }
  .timer h2 {
    padding-right:35px;
    font-size:36px;
  }
  .countdown {
    gap:15px;
    margin-top:25px;
  }
  .countdown>div {
    min-width:55px;
  }
  .countdown span:first-child {
    font-size:52px;
  }
  .countdown span:last-child {
    font-size:14px;
  }
  .wishes {
    padding-top:70px;
    flex-direction:column;
    gap:20px;
  }
  .wishes-copy {
    width:100%;
  }
  .wishes h2 {
    text-align:center;
  }
  .wishes-copy>p:first-of-type {
    text-align:center;
  }
  .wish-list {
    gap:24px;
  }
  .wish-list>p {
    padding-left:35px;
  }
  .wish-list>p::before {
    width:25px;
  }
  .wishes-sign {
    font-size:26px;
    text-align:center;
  }
  .wishes-doodle {
    width:75%;
    max-width:310px;
  }
  .questions {
    padding-top:55px;
    min-height:325px;
  }
  .questions h2 {
    font-size:33px;
  }
  .questions-doodle {
    position:static;
    width:145px;
    margin:22px auto -20px;
  }
  .rsvp-closed,.rsvp-link {
    margin-top:30px;
    font-size:16px;
  }
  .contacts {
    padding-top:65px;
  }
  .contacts h2 {
    font-size:35px;
  }
  .contacts-doodle {
    position:static;
    width:110px;
    margin:22px auto 0;
  }
  .contacts-list {
    flex-wrap:wrap;
    gap:35px 20px;
    margin-top:10px;
  }
  .contact {
    width:calc(50% - 10px);
  }
  .contact>img {
    width:115px;
    height:115px;
  }
  .contact h3 {
    font-size:32px;
  }
  .contact>a {
    font-size:15px;
  }
  .final {
    padding-top:70px;
    padding-bottom:45px;
  }
  .final-collage {
    margin-top:45px;
    padding:0 5px;
    min-height:215px;
  }
  .final-collage>.polaroid {
    width:43%;
    padding-bottom:28px;
  }
  .final-doodle {
    width:160px;
  }
  .final-heart {
    width:55px;
    top:5px;
    right:0;
  }
  .final-names {
    font-size:42px!important;
    margin-top:38px!important;
  }
}

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

.rsvp-embed {
  max-width:850px;
  margin:35px auto 0;
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  position:relative;
  z-index:1;
}

.rsvp-embed iframe {
  display:block;
  border:0;
  width:100%;
}

.questions:has(.rsvp-embed:not([hidden])) .questions-doodle {
  display:none;
}
