@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ivory: #fffaf4;
  --coral: #fc625b;
  --coral-type: #f25852;
  --lavender: #e4d2ee;
  --purple: #796295;
  --teal: #279d92;
  --pink: #eeb0c8;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--purple);
  background: var(--ivory);
}

* { box-sizing: border-box; }

html { min-width: 280px; }

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  border-top: 10px solid var(--coral);
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  isolation: isolate;
}

.corner {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  background: var(--lavender);
  width: clamp(190px, 28vw, 460px);
  height: clamp(160px, 24vw, 370px);
}

.corner-top {
  top: 0;
  right: 0;
  width: clamp(170px, 24vw, 380px);
  height: clamp(120px, 16vw, 245px);
  border-radius: 0 0 0 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 86% 94%, 73% 80%, 61% 56%, 45% 39%, 27% 34%, 15% 25%);
}

.corner-bottom {
  bottom: 0;
  left: 0;
  height: clamp(140px, 17vw, 260px);
  clip-path: polygon(0 0, 15% 8%, 29% 27%, 42% 45%, 58% 50%, 76% 64%, 100% 100%, 0 100%);
  border-radius: 0 100% 0 0;
}

main {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 16px 24px 44px;
}

.coming-soon {
  width: 100%;
  text-align: center;
}

.brand {
  display: block;
  width: clamp(307px, 46.5vh, 518px);
  width: clamp(307px, 46.5svh, 518px);
  height: auto;
  max-width: 90vw;
  margin: 0 auto 7px;
  filter: drop-shadow(0 12px 18px rgb(121 98 149 / 10%));
  animation: bloom-float 7s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(60px, 8.1vw, 116px);
  font-weight: 500;
  line-height: .87;
  letter-spacing: -.052em;
  color: var(--coral-type);
}

.intro {
  margin: 26px 0 0;
  font-size: clamp(16px, 1.65vw, 23px);
  line-height: 1.5;
  letter-spacing: -.028em;
}

.loading { margin-top: 29px; }

.tiles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  height: 58px;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 53px;
  border: 1.5px solid color-mix(in srgb, currentColor 40%, var(--ivory));
  border-radius: 7px;
  background: var(--ivory);
  box-shadow: 3px 3px 0 color-mix(in srgb, currentColor 45%, #eee6d7);
  animation: next-tile 2.7s ease-in-out infinite;
}

.tile svg { width: 27px; height: 27px; }
.tile-pink { color: var(--pink); }
.tile-teal { color: var(--teal); font: 32px Georgia, "Songti SC", serif; animation-delay: .18s; }
.tile-coral { color: var(--coral); animation-delay: .36s; }

.loading-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin: 17px 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .22em;
}

.separator { font-size: 17px; line-height: 1; }

footer {
  width: calc(100% - 80px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 14px 29px;
  border-top: 1px solid #bda4cf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
}

.footer-brand { letter-spacing: .035em; }

@keyframes bloom-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes next-tile {
  0%, 45%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-5px) rotate(-3deg); }
}

@media (max-width: 600px) {
  body { border-top-width: 7px; }
  main { padding: 24px 20px 38px; }
  .brand { width: min(90vw, 382px); margin-bottom: 14px; }
  h1 { font-size: clamp(43px, 10.2vw, 62px); line-height: .96; letter-spacing: -.05em; }
  .intro { max-width: 290px; margin: 21px auto 0; font-size: 16px; }
  .loading { margin-top: 27px; }
  .tiles { gap: 13px; height: 48px; }
  .tile { width: 35px; height: 44px; border-radius: 6px; }
  .tile svg { width: 22px; height: 22px; }
  .tile-teal { font-size: 27px; }
  .loading-label { gap: 12px; margin-top: 16px; font-size: 10px; letter-spacing: .2em; }
  footer { width: calc(100% - 40px); flex-direction: column; padding: 17px 0 23px; gap: 3px; font-size: 16px; text-align: center; }
  .corner-top { width: 135px; height: 130px; }
  .corner-bottom { width: 200px; height: 150px; }
}

@media (max-height: 740px) and (min-width: 601px) {
  main { padding-top: 5px; padding-bottom: 24px; }
  .brand { width: 302px; margin-bottom: 0; }
  h1 { font-size: 80px; }
  .intro { margin-top: 17px; font-size: 18px; }
  .loading { margin-top: 18px; }
  footer { padding-top: 12px; padding-bottom: 17px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand, .tile { animation: none; }
}
