@font-face {
  font-family: "Great Vibes";
  src: url("/fonts/great-vibes.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  position: relative;
  margin: 0;
  background: #f3eee6;
  color: #221e1a;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow-x: clip;
}

main {
  text-align: center;
  width: min(100%, 52rem);
  margin: auto;
  padding: 1.5rem 1.25rem;
  animation: rise 900ms ease both;
}

h1 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.7rem, 10vw, 7.25rem);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
  margin: 0.85rem 0 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}

footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  padding: 0 1.25rem;
  text-align: center;
}

.contact summary {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  list-style: none;
}

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

.contact summary::marker {
  content: none;
}

.invite {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: 0;
  text-indent: 0;
  text-transform: none;
}

.dismiss {
  display: none;
}

.contact summary:hover .invite,
.contact button:hover {
  opacity: 0.72;
}

.contact summary:focus-visible {
  outline: 1px solid #221e1a;
  outline-offset: 6px;
}

.contact[open] {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.25rem 2rem;
  background: rgba(243, 238, 230, 0.94);
}

.contact[open] summary {
  position: absolute;
  top: 1.25rem;
  left: 0;
  right: 0;
  display: block;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-align: center;
}

.contact[open] summary:hover {
  opacity: 0.72;
}

.contact[open] .invite {
  display: none;
}

.contact[open] .dismiss {
  display: inline;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.sheet {
  width: min(100%, 24rem);
  max-height: calc(100vh - 6rem);
  overflow: auto;
  background: #fffdf9;
  border: 1px solid #e4dbd0;
  padding: 1.75rem 1.5rem 1.35rem;
  text-align: left;
}

.contact form {
  position: relative;
}

.contact label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #6d645c;
}

.contact form > label:first-of-type {
  margin-top: 0;
}

.contact input,
.contact textarea {
  width: 100%;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1rem;
  line-height: 1.4;
  color: #221e1a;
  background: #f7f3ed;
  border: 1px solid #e4dbd0;
  border-radius: 0;
  padding: 0.65rem 0.7rem;
}

.contact textarea {
  resize: vertical;
  min-height: 7rem;
}

.contact input[type="hidden"] {
  display: none;
}

.contact input:focus,
.contact textarea:focus {
  outline: 1px solid #221e1a;
  outline-offset: 2px;
  border-color: #221e1a;
}

.contact button {
  display: block;
  width: 100%;
  margin: 1.15rem auto 0;
  padding: 0.15rem 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: "Great Vibes", cursive;
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.contact button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.contact button:focus-visible {
  outline: 1px solid #221e1a;
  outline-offset: 4px;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  margin: 0.85rem 0 0;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.45;
  letter-spacing: 0;
  text-indent: 0;
  text-transform: none;
  text-align: center;
  color: #6d645c;
}

p.thanks {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-indent: 0;
  text-transform: none;
  text-align: center;
}

.sheet .thanks {
  font-size: 2.4rem;
}
