/* The Venue at 2021 — Version 1.0 (Coming Soon)
   Brand palette (do not add colors):
   teal #142B35 · champagne gold #CDBB92 · white #FFFFFF
   To update the copy, edit index.html (the footer has no year, on purpose). To tweak the look, edit the variables below. */

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

:root {
  --teal: #142B35;
  --gold: #CDBB92;
  --white: #FFFFFF;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--teal);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  color: var(--white);
  font-family: var(--serif);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1.5;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* soft gold glow + gentle vignette, built only from the brand colors */
  background-color: var(--teal);
  background-image:
    radial-gradient(ellipse 75% 55% at 50% 34%, rgb(205 187 146 / .11), transparent 70%),
    radial-gradient(ellipse 120% 70% at 50% 115%, rgb(0 0 0 / .28), transparent 65%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* thin champagne frame */
.frame {
  position: fixed;
  inset: clamp(10px, 2.2vw, 26px);
  border: 1px solid rgb(205 187 146 / .32);
  pointer-events: none;
  animation: fade 1.6s ease both;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) clamp(1.5rem, 6vw, 3rem) 1rem;
}

.logo { margin: 0; line-height: 0; }
.logo img {
  display: block;
  /* explicit width: capped by screen width, 700px, and ~62% of screen height so it never crowds short screens */
  width: min(96vw, 700px, 62vh);
  height: auto;
  animation: rise 1.2s var(--ease) .15s both;
}

/* small diamond ornament between the logo and the message */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: clamp(.4rem, 1.5vh, 1rem) 0 clamp(1.6rem, 3.5vh, 2.4rem);
  animation: fade 1s ease 1s both;
}
.ornament::before, .ornament::after {
  content: "";
  width: clamp(2.5rem, 8vw, 4.5rem);
  height: 1px;
  background: var(--gold);
  opacity: .75;
}
.ornament span {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.headline {
  margin: 0;
  max-width: 36ch;
  font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: .01em;
  text-wrap: balance;
  animation: rise 1s var(--ease) 1.1s both;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  line-height: 1.55;
  color: rgb(255 255 255 / .88);
  text-wrap: pretty;
  animation: rise 1s var(--ease) 1.3s both;
}

.soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  color: var(--gold);
  font-weight: 600;
  font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
  letter-spacing: .5em;
  text-transform: uppercase;
  animation: rise 1s var(--ease) 1.5s both;
}
.soon span { padding-left: .5em; } /* balances the trailing letter-spacing */
.soon::before, .soon::after {
  content: "";
  width: clamp(1.75rem, 7vw, 3.5rem);
  height: 1px;
  background: var(--gold);
  opacity: .75;
}

.address {
  margin: 1.4rem 0 0;
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  line-height: 1.6;
  letter-spacing: .06em;
  color: rgb(255 255 255 / .9);
  animation: rise 1s var(--ease) 1.7s both;
}

.footer {
  /* bottom padding clears the gold frame */
  padding: 1rem 1.5rem calc(clamp(10px, 2.2vw, 26px) + 1rem);
  animation: fade 1.2s ease 2s both;
}
.footer p {
  margin: 0;
  font-size: 1rem;
  letter-spacing: .04em;
  color: rgb(205 187 146 / .85);
}

/* footer: yearless rights line + Calico Pebbles credit (brand tokens only) */
.footer .rights,
.footer .credit {
  font-family: var(--serif);
  text-align: center;
  letter-spacing: .04em;
}
.footer .rights { font-size: .95rem; text-wrap: balance; }
.footer .credit {
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--gold);
  white-space: nowrap;
}
.footer .credit a {
  /* 44px-tall tap target (Apple HIG) without enlarging the text */
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 .3em;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
.footer .credit a:hover,
.footer .credit a:focus-visible { color: var(--white); }
.footer .credit a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

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

/* short landscape phones: tighten the vertical rhythm */
@media (max-height: 560px) and (orientation: landscape) {
  .logo img { width: min(60vw, 420px, 62vh); }
  .ornament { margin-bottom: 1rem; }
  .soon { margin-top: 1.25rem; }
}

/* shorter desktop/laptop windows: tighten spacing so everything fits without scrolling */
@media (max-height: 760px) and (min-width: 700px) {
  .stage { padding-top: 1.25rem; }
  .ornament { margin-bottom: 1.1rem; }
  .lede { margin-top: .9rem; }
  .soon { margin-top: 1.4rem; }
  .address { margin-top: 1rem; }
}

/* very small phones */
@media (max-width: 360px) {
  .soon { letter-spacing: .38em; }
}

/* honor "reduce motion": show everything immediately, no animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* link style (used on the 404 page; reusable site-wide later) */
.home {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgb(205 187 146 / .6);
  padding-bottom: 2px;
}
.home:hover { color: var(--white); border-bottom-color: var(--white); }
.home:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
