:root {
  /* Colours */
  --light-grey: #e2dfdf;
  --mid-grey: #8f8f8f;
  --dark-grey: #474747;
  --white: #f0f0f0;
  --deselected-grey: #7d7d7d;

  /* Fonts */
  --serif-font: Cinzel, "Times New Roman", serif;
  --curly-font: "Homemade Apple", Arial, sans-serif;
  --jp-font: "Kiwi Maru", Arial, sans-serif;

  /* Text */
  --line-height-mid: 1.8rem;
  --line-height-sm: 1.3rem;
}

* {
  margin: 0;
  padding: 0;
  font-family: var(--serif-font, serif);
  color: var(--dark-grey, #474747);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05rem;
  text-align: center;
  box-sizing: border-box;
  font-weight: 400;
}

a:hover {
  color: orangered !important;
  text-decoration: underline !important;
}

.japanese-ver * {
  font-family: var(--jp-font, sans-serif) !important;
  text-transform: none !important;
}

.languages {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.languages a {
  text-decoration: none;
  color: var(--deselected-grey, #7d7d7d);
}

.languages .active {
  font-weight: 500;
  text-decoration: underline;
}

body {
  background-color: var(--grey, #f0f0f0);
}

header {
  margin-top: 3rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-weight: 700;
}

h1 {
  font-family: var(--curly-font, sans-serif);
  font-size: 2.5rem;
  letter-spacing: 0.2rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

footer * {
  line-height: var(--line-height-sm, 1.8rem);
  text-transform: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.5rem;
  margin-bottom: 2rem;
}

.japanese-ver footer * {
  font-size: 0.8rem !important;
}

.floating {
  position: absolute;
  padding: 0 1rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.name-tag {
  position: absolute;
  font-family: var(--curly-font, sans-serif);
  font-size: 1.3rem;
}

.name-tag.katie {
  right: 10%;
  top: 50%;
}

.name-tag.chris {
  left: 10%;
  top: 30%;
}

.invitation-tiny {
  display: none;
}

.invitation {
  background-image: url("./public/white-canvas-bg.jpg");
  background-position: center;
  background-size: contain;
  background-repeat: repeat;
  margin: 2rem;
  padding: 3rem;
  max-width: 55rem;
  width: 100%;
  overflow: hidden;
  background-color: var(--light-grey, #f1f1f1);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
  border-radius: 5px;
}

.invitation .container {
  position: relative;
  padding: 2rem;
}

.border-r,
.border-l {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  border: solid 1.5px var(--mid-grey, #8f8f8f);
}

.invitation .border-r {
  right: 0;
  border-left: none;
  border-radius: 0px 3px 3px 0px;
}
.invitation .border-l {
  left: 0;
  border-right: none;
  border-radius: 3px 0px 0px 3px;
}

.invitation .header {
  min-width: 27rem;
  top: -2.2rem;
}

.invitation .footer {
  text-transform: uppercase;
  font-size: 1.5rem;
  bottom: -0.8rem;
}

.invitation .info {
  text-transform: uppercase;
  line-height: var(--line-height-mid, 1.8rem);
  display: grid;
  gap: 1rem;
}

.invitation .info .date {
  font-family: var(--curly-font, sans-serif);
  font-size: 2rem;
  letter-spacing: 0.8rem;
  margin-right: -0.8rem;
}

.invitation .info .date-with-hearts {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

img.sketch {
  width: 100%;
  object-fit: contain;
}

@media only screen and (max-device-width: 1000px) {
  * {
    font-size: 14px;
  }

  .invitation .border-l,
  .invitation .border-r {
    width: 20vw;
  }

  .invitation .info .date-with-hearts {
    gap: 0.3rem;
  }

  .date-with-hearts img {
    object-fit: contain;
    height: 30px;
    width: 30px;
  }

  img.sketch {
    height: 500px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .invitation .info .date {
    font-size: 1.5rem;
    margin-right: -0.5rem; /* to offset the tailing heart with the font spacing */
  }

  footer * {
    font-size: 0.6rem;
  }

  .japanese-ver footer * {
    font-size: 0.8rem !important;
  }

  .invitation {
    max-width: 90vw;
  }

  .invitation .container {
    padding: 1rem;
  }

  .invitation .header {
    min-width: 18rem;
    top: -1.8rem;
  }

  .invitation .footer {
    min-width: 18rem;
    bottom: -1rem;
  }
}

@media only screen and (max-device-width: 855px) {
  .name-tag {
    font-size: 1.2rem;
  }
  .name-tag.katie {
    right: 8%;
  }
}

@media only screen and (max-device-width: 650px) {
  * {
    font-size: 11px;
  }

  .name-tag.katie {
    right: 5%;
  }

  .name-tag.chris {
    left: 5%;
  }

  .invitation .border-l,
  .invitation .border-r {
    width: 5vw;
  }

  img.sketch {
    height: 200px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .invitation .info .date {
    font-size: 1.3rem;
  }

  .invitation .info .date-with-hearts {
    gap: 1rem;
  }

  .date-with-hearts img {
    object-fit: contain;
    height: 20px;
    width: 20px;
  }

  .invitation {
    padding: 2rem;
  }

  .invitation .header {
    min-width: 27rem;
    top: -1rem;
  }

  .invitation .footer {
    text-transform: uppercase;
    font-size: 1rem;
    bottom: -0.6rem;
  }
}
@media only screen and (max-device-width: 335px) {
  .invitation {
    display: none; /* can't deal with screens this small bro sorry */
  }

  .invitation-tiny {
    display: block;
  }
}
