@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #46433f;
  --quiet: #77736d;
  --pink: #cba9a5;
  --cream: #d8ccb1;
  --sage: #a7b59d;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-width: 240px; }

body {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection { background: #f1ece4; }

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 76px 24px 104px;
}

.coming-soon {
  width: min(100%, 480px);
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  animation: arrive 1.6s ease-out both;
}

.town {
  width: min(100%, 380px);
  height: auto;
  display: block;
}

h1 {
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(36px, 5.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 20px 0 0;
}

.dots {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 20px;
  margin-top: 27px;
}

.dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  animation: drift 2.4s ease-in-out infinite;
}

.dot:nth-child(2) {
  background: var(--cream);
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  background: var(--sage);
  animation-delay: 0.4s;
}

.signature {
  position: absolute;
  bottom: max(36px, env(safe-area-inset-bottom));
  left: 24px;
  right: 24px;
  color: var(--quiet);
  font-family: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-align: center;
  animation: arrive 2s ease-out both;
}

@keyframes drift {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(-5px); opacity: 1; }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .page { padding-inline: 32px; }
  .town { width: min(100%, 320px); }
  h1 { margin-top: 16px; }
}

@media (max-height: 440px) and (min-width: 481px) {
  .page { padding-top: 26px; padding-bottom: 62px; }
  .town { width: 240px; }
  h1 { margin-top: 8px; font-size: 32px; }
  .dots { margin-top: 14px; }
  .signature { bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon, .signature, .dot { animation: none; }
  .dot { opacity: 0.85; }
}
