@font-face {
  font-family: InvitationSerif;
  src: url("assets/serif.otf") format("opentype");
  font-display: swap;
}
@font-face {
	font-family: 'Katherine Plus';
	src: url('assets/katherine_plus.eot'); /* IE 9 Compatibility Mode */
	src: url('assets/katherine_plus.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('assets/katherine_plus.woff2') format('woff2'), /* Super Modern Browsers */
		url('assets/katherine_plus.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('assets/katherine_plus.ttf') format('truetype'), /* Safari, Android, iOS */
		url('assets/katherine_plus.svg#katherine_plus') format('svg'); /* Chrome < 4, Legacy iOS */
}
@font-face {
	font-family: 'beer money';
	src: url('assets/beer_money.eot'); /* IE 9 Compatibility Mode */
	src: url('assets/beer_money.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('assets/beer_money.woff2') format('woff2'), /* Super Modern Browsers */
		url('assets/beer_money.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('assets/beer_money.ttf') format('truetype'), /* Safari, Android, iOS */
		url('assets/beer_money.svg#beer_money') format('svg'); /* Chrome < 4, Legacy iOS */
}
@font-face {
	font-family: 'Forum';
	src: url('assets/forum.eot'); /* IE 9 Compatibility Mode */
	src: url('assets/forum.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('assets/forum.woff2') format('woff2'), /* Super Modern Browsers */
		url('assets/forum.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('assets/forum.ttf') format('truetype'), /* Safari, Android, iOS */
		url('assets/forum.svg#forum') format('svg'); /* Chrome < 4, Legacy iOS */
}
@font-face {
	font-family: 'Bezpredmetizm';
	src: url('assets/bezpredmetizm.eot'); /* IE 9 Compatibility Mode */
	src: url('assets/bezpredmetizm.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('assets/bezpredmetizm.woff2') format('woff2'), /* Super Modern Browsers */
		url('assets/bezpredmetizm.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('assets/bezpredmetizm.ttf') format('truetype'), /* Safari, Android, iOS */
		url('assets/bezpredmetizm.svg#bezpredmetizm') format('svg'); /* Chrome < 4, Legacy iOS */
}
@font-face {
  font-family: InvitationItalic;
  src: url("assets/italic.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: InvitationScript;
  src: url("assets/mono.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: InvitationScript;
  src: url("assets/script.otf") format("opentype");
  font-display: swap;
}
:root {
  --paper: #f2ede6;
  --ink: #312d29;
  --red: #b32930;
  --line: #b56464;
  --note: #faf7f2;
  --serif: InvitationSerif, "Times New Roman", serif;
  --mono: InvitationSerif, "Courier New", monospace;
  --script: InvitationScript, InvitationItalic, "Times New Roman", cursive;
  --max-width: 1080px;
  --gutter: clamp(20px, 4vw, 64px);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  color: var(--ink);
}
body {
  margin: 0;
  font-family: 'Bezpredmetizm';
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.25;
}
main {
  max-width: var(--max-width);
  margin: auto;
}
p,
h1,
h2 {
  margin: 0;
  font-weight: 400;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
svg {
  display: block;
}
.section {
  position: relative;
}
h1,
.dreams,
.signature {
  font-family: 'Forum';
  text-transform: uppercase;
}
.handwriting {
  font-family: 'Katherine Plus';
  font-weight: 400;
  font-style: italic;
}
.opening {
  padding-top: clamp(48px, 6vw, 92px);
}
h1 {
  text-align: left;
  font-size: clamp(25px, 3vw, 40px);
  padding: 0 28px;
}
.photo-stage {
  position: relative;
  height: 365px;
  margin-top: 25px;
  overflow: hidden;
}
.repeat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  color: var(--red);
  font-size: 58px;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(5deg);
  pointer-events: none;
}
.embrace {
  position: relative;
  width: 59%;
  max-width: 258px;
  margin: 67px auto 0;
  transform: rotate(6deg);
}
.dreams {
  text-align: right;
  padding: 24px 28px 0;
  font-size: clamp(20px, 2vw, 26px);
}
.invitation-panel {
  padding: 68px 22px 55px;
}
.envelope {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 310px;
  margin: auto;
  transform: rotate(-10deg);
  filter: drop-shadow(0 9px 7px #372b281b);
}
.envelope-back {
  position: absolute;
  inset: 0;
  background: #b32930;
  clip-path: polygon(0 38%, 44% 1%, 51% 0, 100% 38%, 100% 100%, 0 100%);
}
.letter {
  position: absolute;
  top: 60px;
  left: 8%;
  width: 84%;
  height: 205px;
  background: var(--note);
  padding: 26px 21px;
  font-size: 12px;
  text-align: center;
  line-height: 1.3;
  transform: rotate(-4deg);
}
.letter p + p {
  margin-top: 24px;
}
.envelope-front {
  position: absolute;
  inset: 115px 0 0;
  background: linear-gradient(30deg, #b32930, #ae232c);
  clip-path: polygon(0 0, 50% 45%, 100% 0, 100% 100%, 0 100%);
}
.envelope-front:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ba2c33;
  clip-path: polygon(0 100%, 50% 43%, 100% 100%);
}
.names {
  position: absolute;
  bottom: 21px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'Katherine Plus';
  font-size: 26px;
  color: var(--paper);
}
.date-section {
  padding: 16px 0 32px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #9a8f84;
  border-bottom: 1px solid #9a8f84;
}
.day {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  position: relative;
}
.day + .day {
  border-left: 1px solid #9a8f84;
}
.weekday {
  font-family: 'Forum';
  text-transform: uppercase;
  font-size: clamp(12px, 3.35vw, 17px);
  text-align: center;
  line-height: 1.1;
  width: 100%;
  padding: 8px 1px;
  border-bottom: 1px solid #9a8f84;
}
.month {
  font-family: 'Forum';
  font-size: 16px;
  margin-top: 8px;
}
.number {
  font-family: Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(76px, 20vw, 108px);
  line-height: 1;
}
.date-circle {
  position: absolute;
  width: 114%;
  height: 130%;
  left: -7%;
  top: -15%;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.4;
  opacity: 0.9;
  pointer-events: none;
}
.save-date {
  text-align: center;
  font-size: 34px;
  margin: 45px 0 10px;
}
.year {
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
}
.venue-copy {
  text-align: center;
  padding: 16px 24px 48px;
  max-width: 430px;
  margin: auto;
}
.venue-copy p {
  max-width: 350px;
  margin: auto;
}
.venue-copy .time {
  margin: 19px auto 12px;
  font-size: 14px;
}
.venue-copy h2 {
font-family: 'Katherine Plus';
  font-size: 32px;
  margin: 0 0 12px;
}
.dance-frame {
  position: relative;
  padding: 15px 0 50px;
}
.dance-frame img {
  width: 64%;
  max-width: 335px;
  margin: auto;
}
.thread {
  position: absolute;
  width: 100%;
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  pointer-events: none;
}
.thread-top {
  top: -58px;
  height: 110px;
}
.thread-bottom {
  bottom: 25px;
  height: 95px;
}
.wishes-section {
  padding: 55px 25px 55px;
}
.script-title {
  font-family: 'Katherine Plus';
  font-style: italic;
  color: var(--red);
  font-size: clamp(35px, 4vw, 48px);
  text-align: center;
}
.wishes {
  padding: 25px 0 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 27px;
}
.wishes li {
  position: relative;
  max-width: 310px;
  width: 88%;
  padding: 50px 25px 25px;
  text-align: center;
  border: 1.4px solid var(--line);
  border-radius: 29% 17% 33% 20% / 42% 21% 38% 27%;
  transform: rotate(-3deg);
  font-size: 13px;
  min-height: 125px;
}
.wishes li:nth-child(even) {
  align-self: flex-end;
  border-radius: 18% 25% 22% 34% / 30% 47% 21% 23%;
  transform: rotate(3deg);
}
.wishes li p {
  transform: rotate(3deg);
}
.wishes li:nth-child(even) p {
  transform: rotate(-3deg);
}
.wish-number {
  position: absolute;
  top: 8px;
  left: 50%;
  font-family: 'Katherine Plus';
  font-weight: bold;
  font-size: 42px;
  color: var(--red);
}
.wishes li:nth-child(even) .wish-number {
  left: auto;
  right: 50%;
}
.contacts-section {
  padding: 25px 32px 60px;
}
.contact-note {
  position: relative;
  max-width: 400px;
  background: var(--note);
  padding: 20px 22px 26px;
  margin: auto;
  text-align: center;
}
.contact-note h2 {
  font-size: 36px;
}
.contact-note p {
  font-size: 13px;
  margin-top: 15px;
}
.contact-placeholder {
  line-height: 1.7;
}
.paperclip {
  position: absolute;
  top: -16px;
  left: 14px;
  width: 30px;
  height: 66px;
  fill: none;
  stroke: #a7a39a;
  stroke-width: 1.5;
}
 .dress-code{
    padding:30px 0px 10px 0px;
   display:grid;
   grid-template-columns: repeat(4, 4fr);

    }
 .red{
    width: 50px; 
height: 50px;
background: #671c1e;;
border-radius: 50%;
justify-self: center;
border: 1px solid #3d1112;
 }
.blue{
    width: 50px; 
height: 50px;
background: #b9e0ff;
    border-radius: 50%;
    justify-self: center;
    border: 1px solid #b0d9f9;
}
.poop{
    width: 50px; 
height: 50px;
background: #35170c;
border-radius: 50%;  
justify-self: center;
border: 1px solid #040201;
}
.cream{
    width: 50px; 
height: 50px;
background: #FFFFF0;
border-radius: 50%;  
justify-self: center;
border: 1px solid #efefe3;
}
.closing-section {
  padding-top: 20px;
}
.cheers-panel {
  position: relative;
  overflow: hidden;
  padding: 60px 0 65px;
}
.cheers-repeat {
  font-size: 64px;
  inset: 0 0 20px;
}
.cheers-panel img {
  position: relative;
  width: 57%;
  max-width: 255px;
  margin: auto;
  transform: rotate(6deg);
}
.closing-photo {
  position: relative;
  padding-top: 55px;
  padding-bottom: 30px;
}
.closing-photo > img {
  width: 57%;
  max-width: 285px;
}
.with-love {
  position: absolute;
      right: 14%;
    bottom: 0px;
  font-family: 'Katherine Plus';
  font-size: 69px;
  line-height: 0.8;
}
.with-love .handwriting {
  display: block;
  font-family: 'beer money';
  color: var(--red);
  font-size: 63px;
  margin-top: -24px;
  transform: rotate(-12deg);
}
.signature {
  font-family: 'Forum';
  text-align: center;
  font-size: clamp(20px, 2vw, 26px);
  margin-top: 40px;
  margin-bottom: 40px;
}
.with-love .with{
    font-family: 'Forum';
    font-size: 80px;
}
.opening,
.date-section,
.venue-section,
.wishes-section,
.contacts-section,
.closing-section {
  max-width: 470px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 700px) {
  .opening,
  .venue-section,
  .closing-section {
    max-width: 720px;
    display: grid;
    align-items: center;
    gap: clamp(30px, 5vw, 90px);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .photo-stage {
    height: 400px;
  }
  .embrace {
    margin:auto;
    width: 100%;
    max-width: 300px;
    margin-top:40px;
  }
  .invitation-panel {
    padding: 15px 0 15px;
  }
  .envelope {
    height: 340px;
  }
  .letter {
    height: 220px;
    padding-top: 32px;
  }
  .date-section {
    max-width: 560px;
    padding-top: 115px;
    padding-bottom: 90px;
  }
  .weekday {
    font-size: 18px;
  }
  .number {
    font-size: 120px;
  }
  .venue-section {
    padding-bottom: 55px;
  }
  .venue-copy {
    padding: 0;
  }
  .dance-frame {
    padding: 15px 0 40px;
  }
  .dance-frame img {
    width: 78%;
    max-width: 320px;
  }
  .thread-top {
    top: -35px;
  }
  .wishes-section {
    max-width: 900px;
    padding: 65px var(--gutter) 25px;
  }
  .wishes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 60px;
    row-gap: 35px;
    padding-top: 45px;
  }
  .wishes li {
    width: 100%;
    max-width: none;
    font-size: 15px;
    min-height: 145px;
    padding-top: 48px;
  }
  .contacts-section {
    padding-top: 50px;
    padding-bottom: 75px;
    max-width: 530px;
  }
  .contact-note {
    max-width: 440px;
    padding: 25px 32px 30px;
  }
  .contact-note p {
    font-size: 15px;
  }
  .closing-section {
    align-items: start;
    padding-bottom: 50px;
  }
  .cheers-panel {
    margin-top: 35px;
    padding: 65px 0;
  }
  .cheers-panel img {
    width: 64%;
  }
  .closing-photo {
    padding-top: 15px;
  }
  .closing-photo > img {
    width: 65%;
  }
  .with-love {
right: 52px;
        bottom: -48px;
        font-size: 63px;
  }
  .with-love .handwriting {
    font-size: 65px;
  }
  .signature {
    font-size: 21px;
    margin-top: 55px;
  }
}
@media (min-width: 1100px) {
  .opening {
    padding-top: 100px;
  }
  .photo-stage {
  height: 600px;
  }
  .repeat {
    font-size: 72px;
  }
  .dreams {
    padding-top: 0px;
  }
  .envelope {
    max-width: 390px;
    height: 365px;
  }
  .letter {
    font-size: 14px;
    height: 240px;
  }
  .names {
    font-size: 31px;
  }
  .venue-section {
    padding-top: 30px;
  }
  .wishes-section {
    padding-top: 85px;
  }
}
/* Keep the complete invitation readable above the envelope folds. */
.invitation-panel {
  padding-left: 32px;
  padding-right: 32px;
}
.envelope {
  height: 350px;
}
.letter {
  top: 80px;
  height: 240px;
  padding: 25px 18px;
}
.envelope-front {
  top: 195px;
}
.letter p + p {
  margin-top: 16px;
}
@media (min-width: 700px) {
  .invitation-panel {
    padding-left: 0;
    padding-right: 0;
  }
  .envelope {
    height: 370px;
  }
  .letter {
    padding-top: 25px;
  }
  .envelope-front {
    top: 215px;
  }
  .handwriting {
 text-align:center;
}
.repeat span:nth-child(2) {
    transform: translateX(-11px);
}
    .cheers-panel {
        padding: 82px 0;
    }
        .photo-stage {
        height: 455px;
    }
    .closing-photo > img {
        margin-left: auto;
        margin-right: auto;
    }
.closing-photo > img {
    max-width: 320px;
}
}
@media (min-width: 1100px) {
  .envelope {
    height: 390px;
  }
  .envelope-front {
    top: 225px;
  }
  .letter {
    height: 260px;
  }
}
