:root {
  color-scheme: light;
  --paper: #f4efdf;
  --ink: #536044;
  --olive: #87946d;
  --rose: #a6657f;
  --muted: #858875;
  --green-frame: url("frames/green.svg");
  --green-frame-color: #8d9b76;
  --serif: 'Cormorant Garamond Variable', 'Times New Roman', serif;
  --hand: 'Caveat Variable', 'Segoe Print', cursive;
  --sans: 'Golos Text Variable', Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::after { content: ''; position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23877857' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--rose); outline-offset: 5px; }
svg { display: block; }
::selection { background: #e5c5cd; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.save-date { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; position: relative; isolation: isolate; padding: 26px 48px 25px; }
.paper-frame {
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border: 18px solid transparent;
  border-image: var(--green-frame) 24 round;
}
.page-header { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 25px; z-index: 2; }
.brand { font-family: var(--hand); font-size: 35px; line-height: 1; transform: rotate(-3deg); white-space: nowrap; }
.brand span { color: var(--rose); margin-left: 5px; }
.header-caption { font-size: 10px; letter-spacing: 1.7px; color: var(--muted); }
.announcement { align-self: center; display: flex; flex-direction: column; align-items: center; width: 100%; padding-top: 10px; }
.message { position: relative; z-index: 1; text-align: center; max-width: 100%; }
.eyebrow { font-size: 11px; font-weight: 400; letter-spacing: 3.3px; line-height: 1.5; margin: 0 0 4px; }
h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(46px, 7svh, 72px); line-height: 1; margin: 0 0 6px; color: var(--rose); transform: rotate(-4deg); }
.event-date { display: block; white-space: nowrap; font-family: var(--serif); font-size: clamp(100px, min(16vw, 22svh), 230px); font-weight: 400; font-variant-numeric: lining-nums; line-height: .84; letter-spacing: -.05em; margin: 0 0 10px; padding-right: .05em; }
.event-place { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--serif); font-size: clamp(36px, 5.6svh, 54px); font-weight: 500; line-height: 1.1; margin-bottom: 10px; position: relative; }
.event-place svg { width: 21px; height: 26px; fill: none; stroke: var(--rose); stroke-width: 1.5; }
.place-line { width: 39px; height: 1px; background: #b3b99b; margin: 0 5px; }
.intro { color: #727962; font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.invitation-greeting {
  max-width: 36rem;
  margin: 12px auto 5px;
  padding-inline: 8px;
  color: #91475b;
  font-family: var(--hand);
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-wrap: balance;
  white-space: pre-line;
}
.invitation-text {
  max-width: 31rem;
  margin: 0 auto 12px;
  padding-inline: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.16;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  white-space: pre-line;
}
.invitation-text::after {
  content: "";
  display: block;
  width: 2.75rem;
  margin: 7px auto 0;
  border-top: 1px solid var(--rose);
  transform: rotate(-2deg);
}
.invitation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.invitation-actions .intro { flex-basis: 100%; margin: 0; }
.attendance-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid #7d8d66;
  border-radius: 3px;
  padding: 11px 20px;
  background: var(--green-frame-color);
  color: #fff;
  text-shadow: 0 0 1px #20281a, 0 1px 2px #20281a99;
  font-size: clamp(1rem, .94rem + .3vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  transition: background .2s, transform .2s;
}
.attendance-button:hover { background: #9eaa89; transform: translateY(-2px); }
.attendance-button svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.invitation-information {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(100%, 38rem);
  margin: clamp(18px, 4vw, 30px) auto 8px;
}
.invitation-information-block {
  --block-tint: var(--block-background-rgb, 251 246 232);
  --block-opacity: var(--block-background-opacity, 100%);
  --block-edge: clamp(16px, 3vw, 22px);
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: clamp(20px, 4vw, 30px);
  overflow-wrap: anywhere;
}
.invitation-information-block::after {
  --block-surface-mask:
    linear-gradient(to right, transparent, #000 var(--block-edge), #000 calc(100% - var(--block-edge)), transparent),
    linear-gradient(to bottom, transparent, #000 var(--block-edge), #000 calc(100% - var(--block-edge)), transparent);
  position: absolute;
  inset: 4px;
  z-index: -1;
  pointer-events: none;
  content: '';
  border-radius: 14px;
  background-color: rgb(var(--block-tint) / var(--block-opacity));
  -webkit-mask-image: var(--block-surface-mask);
  -webkit-mask-composite: source-in, source-over;
  mask-image: var(--block-surface-mask);
  mask-composite: intersect;
}
.invitation-information-block--background-transparent::after { content: none; }
.invitation-information-block--background-glass::after {
  background-color: rgb(var(--block-tint) / calc(var(--block-opacity) * .6));
  background-image: linear-gradient(145deg, #ffffff52, #ffffff10 56%, #ffffff26);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
}
.invitation-information-block::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: '';
  border: var(--block-edge) solid transparent;
  border-image: var(--green-frame) 24 round;
}
.invitation-information-block--pink::before { border-image: url("frames/pink.svg") 30 round; }
.invitation-information-block--blue::before { border-image: url("frames/blue.svg") 26 round; }
.invitation-information-block--honey::before { border-image: url("frames/honey.svg") 26 round; }
.invitation-information-block h2 {
  margin: 0;
  font: 400 var(--block-title-size, clamp(26px, 4vw, 34px))/1.18 'Neucha', var(--sans);
  letter-spacing: .015em;
  color: #91475b;
}
.invitation-information-block h2 + .invitation-information-body { margin-top: 8px; }
.invitation-information-body { font-size: var(--block-body-size, 15px); line-height: 1.6; }
.invitation-information-body > :first-child { margin-top: 0; }
.invitation-information-body > :last-child { margin-bottom: 0; }
.invitation-information-body a { color: #91475b; text-decoration: underline; text-underline-offset: .16em; }
.invitation-information-body iframe {
  display: block;
  width: 100%;
  height: clamp(16rem, 55vw, 23rem);
  margin-block: 12px;
  border: 0;
  border-radius: 3px;
}
.invitation-information-body iframe:not([src]) { display: none; }
.decorations { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.doodle { position: absolute; }
.doodle-disco { width: 94px; top: 11%; right: 12%; transform: rotate(9deg); }
.doodle-tulip { width: 148px; left: 7%; top: 33%; transform: rotate(-13deg); }
.doodle-glasses { width: 124px; right: 7%; top: 36%; transform: rotate(10deg); }
.doodle-sprig { width: 90px; left: 17%; top: 10%; transform: rotate(-35deg); }
.doodle-daisy { width: 72px; right: 30%; bottom: 15%; transform: rotate(17deg); }
.doodle-spark { width: 37px; left: 20%; top: 34%; color: #bb9d58; transform: rotate(-9deg); }
.flight-scene {
  --flight-scene-height: clamp(185px, 31svh, 320px);
  position: relative;
  overflow: hidden;
  width: calc(100% + 96px);
  height: calc(var(--flight-scene-height) + 12px);
  margin-top: 5px;
}
.flight-decoration { display: none; }
.flight { position: absolute; left: 0; top: -8px; width: clamp(330px, 48svh, 510px); animation: fly 24s linear infinite; animation-delay: -8s; will-change: transform; }
.airplane { width: 100%; height: auto; overflow: visible; animation: bob 4s ease-in-out infinite; }
.propeller { transform-origin: 533px 199px; animation: propeller .16s linear infinite; }
.cloud { position: absolute; fill: #f9f5e9; stroke: #d2d8bd; stroke-width: 1.3; }
.cloud-one { width: 100px; left: 22%; top: 61px; transform: rotate(-6deg); }
.cloud-two { width: 73px; right: 23%; top: 21px; }
.flight-note {
  --flight-note-size: 28px;
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 2rem);
  transform: translateX(-50%) rotate(-3deg);
  font-family: var(--hand);
  font-size: calc(var(--flight-note-size) * 1.24);
  line-height: 1.15;
  color: #818c6d;
  text-align: center;
  text-wrap: balance;
}
.page-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 30px; padding-top: 7px; z-index: 1; }
.quiet-button { background: none; border: 0; padding: 8px 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
.quiet-button:hover { color: var(--rose); }
.pause-button { display: flex; align-items: center; gap: 8px; justify-self: start; }
.pause-button > span:first-child { display: grid; place-items: center; border: 1px solid #b5bd9d; border-radius: 50%; width: 22px; height: 22px; font-size: 8px; }
.signature { font-family: var(--hand); font-size: 28px; line-height: 1.1; transform: rotate(-3deg); color: var(--rose); }
.paused .flight, .paused .airplane, .paused .propeller { animation-play-state: paused; }
@keyframes fly { from { transform: translateX(-105%); } to { transform: translateX(calc(100vw + 5%)); } }
@keyframes bob { 0%, 100% { transform: translateY(3px) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes propeller { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.18); } }
@media (min-width: 1800px) { .doodle-tulip { left: 15%; } .doodle-glasses { right: 17%; } .doodle-disco { right: 20%; } .doodle-sprig { left: 22%; } }
@media (max-width: 1000px) {
  .save-date { padding: 24px 30px 22px; }
  .flight-scene { width: calc(100% + 60px); }
  .doodle-tulip { left: 2%; width: 108px; }
  .doodle-glasses { right: 3%; width: 99px; }
  .doodle-disco { right: 10%; width: 65px; top: 15%; }
  .doodle-sprig { left: 10%; width: 60px; }
  .doodle-daisy { right: 15%; width: 49px; }
  .doodle-spark { left: 16%; width: 25px; }
}
@media (max-width: 600px) {
  .save-date { padding: 24px 22px 20px; }
  .paper-frame { border-width: 14px; }
  .page-header { min-height: 29px; gap: 15px; }
  .brand { font-size: 30px; }
  .header-caption { font-size: 8px; letter-spacing: 1px; max-width: 110px; text-align: right; line-height: 1.7; }
  .announcement { padding-top: 7px; }
  .eyebrow { font-size: 9px; letter-spacing: 2.3px; margin-bottom: 5px; }
  h1 { font-size: clamp(42px, 6.2svh, 54px); margin-bottom: 8px; }
  .event-date { font-size: clamp(68px, 22.8vw, 125px); letter-spacing: -.05em; margin-bottom: 10px; }
  .event-place { font-size: 39px; gap: 9px; margin-bottom: 10px; }
  .event-place svg { width: 18px; height: 22px; }
  .place-line { width: 25px; }
  .intro { font-size: 12px; line-height: 1.6; margin-bottom: 12px; }
  .invitation-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 18rem); margin-inline: auto; }
  .attendance-button { padding-inline: 16px; gap: 8px; }
  .flight-scene { --flight-scene-height: clamp(194px, 30svh, 255px); width: calc(100% + 44px); margin-top: 3px; }
  .flight { width: clamp(320px, 47svh, 390px); top: -6px; animation-duration: 20s; animation-delay: -7s; }
  .flight-note { --flight-note-size: 24px; }
  .cloud-one { left: 7%; width: 67px; top: 70px; }
  .cloud-two { right: 6%; width: 54px; top: 35px; }
  .page-footer { grid-template-columns: 23px 1fr 23px; gap: 11px; padding-top: 4px; }
  .pause-label { display: none; }
  .signature { font-size: 22px; text-align: center; }
  .quiet-button { font-size: 10px; }
}
@media (max-height: 800px) and (min-width: 601px) {
  .save-date { padding-top: 20px; padding-bottom: 18px; }
  .page-header { min-height: 29px; }
  .brand { font-size: 30px; }
  .eyebrow { margin-bottom: 4px; font-size: 10px; }
  h1 { font-size: 46px; margin-bottom: 6px; }
  .event-date { font-size: min(15vw, 20svh); margin-bottom: 8px; }
  .event-place { font-size: 38px; margin-bottom: 8px; }
  .intro { margin-bottom: 10px; font-size: 13px; }
  .attendance-button { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  .flight-scene { --flight-scene-height: 210px; }
  .flight { width: 350px; }
  .flight-note { --flight-note-size: 25px; }
  .signature { font-size: 25px; }
}
@media (max-height: 650px) and (max-width: 600px) {
  .save-date { padding-top: 17px; padding-bottom: 14px; }
  .announcement { padding-top: 0; }
  h1 { font-size: 38px; margin-bottom: 2px; }
  .event-date { margin-bottom: 7px; }
  .event-place { font-size: 34px; margin-bottom: 8px; }
  .intro { margin-bottom: 4px; font-size: 11px; }
  .flight-scene { --flight-scene-height: 190px; }
  .flight { width: 300px; top: -7px; }
  .flight-note { --flight-note-size: 22px; }
  .signature { font-size: 20px; }
}
@media (max-height: 480px) and (min-width: 601px) {
  .save-date { padding: 17px 30px 15px; }
  .announcement { display: grid; grid-template-columns: 1fr .6fr; gap: 12px; padding-top: 0; }
  .message { padding-top: 8px; }
  h1 { font-size: 36px; margin-bottom: 5px; }
  .event-date { font-size: min(12.5vw, 23svh); margin-bottom: 7px; }
  .event-place { font-size: 30px; margin-bottom: 7px; }
  .intro { font-size: 11px; line-height: 1.5; margin-bottom: 8px; }
  .attendance-button { padding-inline: 13px; }
  .invitation-information { grid-column: 1 / -1; }
  .flight-scene { width: calc(100% + 30px); }
  .flight { width: 330px; animation-name: fly-small; }
  .flight-note { --flight-note-size: 19px; }
  .cloud-one { left: 2%; width: 60px; }
  .cloud-two { right: 1%; width: 44px; }
  .doodle-tulip, .doodle-glasses, .doodle-sprig, .doodle-spark, .doodle-daisy { display: none; }
  .doodle-disco { width: 40px; top: 12%; right: 14%; }
  .page-footer { padding-top: 0; }
}
@keyframes fly-small { from { transform: translateX(-105%); } to { transform: translateX(440px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .flight { animation: none; left: 50%; transform: translateX(-50%); }
  .airplane, .propeller { animation: none; }
  .motion-enabled .flight { left: 0; animation: fly 24s linear infinite; animation-delay: -8s; }
  .motion-enabled .airplane { animation: bob 4s ease-in-out infinite; }
  .motion-enabled .propeller { animation: propeller .16s linear infinite; }
}


/* Little drawings in the margins of our announcement. */
.doodle-bells { width: 90px; left: 3%; top: 12%; transform: rotate(-15deg); }
.doodle-lemon { width: 95px; right: 3%; top: 24%; transform: rotate(12deg); }
.doodle-martini { width: 85px; right: 20%; bottom: 11%; transform: rotate(11deg); }
.doodle-envelope { width: 94px; left: 12%; bottom: 10%; transform: rotate(-12deg); }
.doodle-bow { width: 78px; right: 4%; bottom: 9%; transform: rotate(12deg); }
.doodle-hearts { width: 70px; left: 25%; top: 9%; transform: rotate(-13deg); }
.doodle-little-flowers { width: 74px; right: 3%; top: 60%; transform: rotate(-17deg); }
@media (min-width: 1800px) {
  .doodle-bells { left: 8%; }
  .doodle-lemon { right: 10%; }
  .doodle-envelope { left: 19%; }
  .doodle-hearts { left: 30%; }
  .doodle-little-flowers { right: 12%; }
}
@media (max-width: 1000px) {
  .doodle-bells { width: 68px; left: 3%; top: 11%; }
  .doodle-lemon { width: 70px; right: 2%; top: 29%; }
  .doodle-martini { width: 65px; right: 12%; bottom: 10%; }
  .doodle-envelope { width: 70px; left: 6%; bottom: 10%; }
  .doodle-bow { width: 56px; right: 4%; bottom: 19%; }
  .doodle-hearts { width: 52px; left: 23%; top: 8%; }
  .doodle-little-flowers { width: 53px; right: 3%; top: 61%; }
}
@media (max-height: 480px) and (min-width: 601px) {
  .doodle-bells { width: 40px; top: 12%; left: 3%; }
  .doodle-lemon, .doodle-envelope, .doodle-martini, .doodle-hearts, .doodle-little-flowers { display: none; }
  .doodle-bow { width: 42px; right: 3%; bottom: 12%; }
}

@media (max-width: 760px), (max-width: 1000px) and (max-height: 480px) {
  .decorations {
    position: relative;
    inset: auto;
    z-index: 0;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 32rem);
    min-height: clamp(53px, 13vw, 76px);
    margin: 0 auto 9px;
    padding-block: 4px;
    padding-inline: clamp(10px, 4vw, 30px);
  }
  .decorations .doodle { display: none; }
  .decorations :is(.doodle-bells, .doodle-lemon, .doodle-disco, .doodle-hearts, .doodle-glasses) {
    position: static;
    display: block;
  }
  .decorations .doodle-bells { order: 1; width: clamp(25px, 8vw, 42px); }
  .decorations .doodle-lemon { order: 2; width: clamp(32px, 9vw, 54px); transform: translateY(4px) rotate(13deg); }
  .decorations .doodle-disco { order: 3; width: clamp(40px, 11vw, 55px); }
  .decorations .doodle-hearts { order: 4; width: clamp(32px, 8vw, 46px); transform: translateY(-3px) rotate(-13deg); }
  .decorations .doodle-glasses { order: 5; width: clamp(32px, 10vw, 52px); transform: translateY(3px) rotate(10deg); }
  .flight-decoration { position: absolute; display: block; pointer-events: none; }
  .flight-decoration--sprig { top: 13px; left: 7%; width: clamp(28px, 9vw, 38px); transform: rotate(-24deg); }
  .flight-decoration--tulip { top: 41px; left: 17%; width: clamp(29px, 8vw, 39px); transform: rotate(-12deg); }
  .flight-decoration--bow { top: 12px; right: 9%; width: 43px; transform: rotate(9deg); }
  .flight-decoration--envelope { top: 62px; right: 14%; width: clamp(38px, 11vw, 50px); transform: rotate(12deg); }
}

/* A little printed announcement above the handwritten title. */
.page-footer::after { content: ''; }
.wedding-announcement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  max-width: 100%;
  font-family: var(--serif);
  font-size: clamp(25px, 3.3svh, 34px);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.1;
  margin: 0 0 7px;
}
.wedding-announcement > span:nth-child(2) {
  background: linear-gradient(transparent 62%, #dfb9c56b 62%, #dfb9c56b 92%, transparent 92%);
}
.wedding-announcement > span:first-child,
.wedding-announcement > span:last-child { color: var(--rose); font-size: 15px; }
@media (max-width: 600px) {
  .wedding-announcement { font-size: 21px; letter-spacing: .065em; gap: 8px; margin-bottom: 6px; }
  .wedding-announcement > span:first-child,
  .wedding-announcement > span:last-child { font-size: 11px; }
}
@media (max-height: 650px) and (max-width: 600px) {
  .wedding-announcement { font-size: 18px; gap: 7px; margin-bottom: 5px; }
}
@media (max-height: 480px) and (min-width: 601px) {
  .wedding-announcement { font-size: 20px; gap: 8px; margin-bottom: 5px; }
}
