@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/cinzel-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

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

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

:root {
  --color-bg: #11100f;
  --color-champagne: #e5c58f;
  --font-display: "Cormorant Garamond", serif;
  --font-label: "Cinzel", serif;
  --font-body: "Manrope", sans-serif;
  --text-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --tracking-caps: 0.18em;
  color-scheme: dark;
}

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

html {
  min-height: 100%;
  background: var(--color-bg);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  color: var(--color-champagne);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      color-mix(in srgb, var(--color-bg) 82%, transparent),
      color-mix(in srgb, var(--color-bg) 92%, transparent)
    ),
    url("assets/background.webp") center / cover no-repeat;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}

footer a {
  color: var(--color-champagne);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

footer a:hover {
  opacity: 0.8;
}

footer a:focus-visible {
  outline: 2px solid var(--color-champagne);
  outline-offset: 4px;
}

.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 28rem;
}

.text p {
  margin: 0;
}

h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  /* With the .text gap, the clear space below the wordmark equals the gap above. */
  margin: 0 0 1.5rem;
  line-height: 0;
}

h1 [data-monogram] {
  height: 10rem;
  width: auto;
}

h1 [data-wordmark] {
  width: 12.5rem;
  height: auto;
}

/* The monogram is written like the home hero: round-capped pen strokes in an
   alpha mask reveal the glyph one after another. A pen stays hidden until its
   own animation starts, so its round cap never shows as a dot; fill mode is
   forwards for the same reason. */
[data-pen] {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  visibility: hidden;
  animation: pen-write 0.26s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.3s
    forwards;
}

[data-pen="1"] {
  animation-duration: 0.23s;
  animation-delay: 0.56s;
}

[data-pen="2"] {
  animation-duration: 0.26s;
  animation-delay: 0.79s;
}

[data-pen="3"] {
  animation-duration: 0.2s;
  animation-delay: 1.05s;
}

[data-pen="4"] {
  animation-duration: 0.2s;
  animation-delay: 1.25s;
}

[data-pen="5"] {
  animation-duration: 0.33s;
  animation-delay: 1.45s;
}

@keyframes pen-write {
  from {
    visibility: visible;
    stroke-dashoffset: 1000;
  }

  to {
    visibility: visible;
    stroke-dashoffset: 0;
  }
}

.soon {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
}

.lead {
  font-size: var(--text-body);
}

.address {
  font-family: var(--font-label);
  font-size: var(--text-small);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.address span {
  white-space: nowrap;
}

.teaser {
  width: min(86vw, 25rem);
  margin: 0;
  aspect-ratio: 9 / 16;
  border: 1px solid color-mix(in srgb, var(--color-champagne) 60%, transparent);
  background: var(--color-bg);
}

.teaser video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  color: color-mix(in srgb, var(--color-champagne) 70%, transparent);
  font-size: var(--text-small);
  text-align: center;
}

@media (min-width: 900px) and (min-height: 600px) {
  main {
    flex-direction: row;
    gap: clamp(2.5rem, 6vw, 6rem);
    padding: 3rem 4rem;
    text-align: left;
  }

  .text {
    align-items: flex-start;
  }

  h1 {
    align-items: flex-start;
    gap: 3.5rem;
    margin-bottom: 2.25rem;
  }

  h1 [data-monogram] {
    height: min(16rem, calc(100svh - 33rem));
  }

  h1 [data-wordmark] {
    width: 16rem;
  }

  .teaser {
    width: auto;
    /* viewport minus main padding (6rem) and footer (about 4.3rem) */
    height: min(calc(100svh - 10.5rem), 45rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-pen] {
    animation: none;
    visibility: visible;
    stroke-dasharray: none;
  }
}
