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

@font-face {
  font-family: "Marcellus";
  src: url("/fonts/Marcellus.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --night: #0b1020;
  --parchment: #efe4cf;
  --parchment-dim: rgba(239, 228, 207, 0.78);
  --bronze-light: #f3c98b;
  --bronze: #cd8a45;
  --bronze-dark: #8a5426;
  --iron: #9aa3ad;

  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--body);
  text-align: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background art */

.backdrop,
.shade {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* On narrow screens, keep the campfire and the city gate in view. */
  object-position: 33% 50%;
  animation: settle 2.4s ease-out both;
}

.shade {
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(8, 11, 24, 0.62), transparent 80%),
    linear-gradient(to bottom, rgba(8, 11, 24, 0.35) 0%, transparent 40%, transparent 65%, rgba(8, 11, 24, 0.75) 100%);
}

/* Studio name */

.studio {
  padding: clamp(1.25rem, 4vh, 2.5rem) 1rem 0;
  animation: rise 1.2s ease-out 0.2s both;
}

.studio-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--iron);
}

.studio-name .amp {
  color: var(--bronze);
}

/* Title block */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(2rem, 8vh, 6rem) 1.25rem 2rem;
  max-width: 52rem;
}

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--bronze-light) 0%, var(--bronze) 55%, var(--bronze-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.65));
  animation: rise 1.4s ease-out 0.4s both;
}

.subtitle {
  margin: 0.6rem 0 0;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.06em;
  color: var(--parchment);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
  animation: rise 1.4s ease-out 0.6s both;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: clamp(1.4rem, 4vh, 2.2rem) 0 clamp(1rem, 3vh, 1.6rem);
  animation: rise 1.4s ease-out 0.8s both;
}

.ornament .line {
  width: clamp(3rem, 12vw, 7rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze));
}

.ornament .line:last-child {
  background: linear-gradient(90deg, var(--bronze), transparent);
}

.ornament .diamond {
  width: 0.5rem;
  height: 0.5rem;
  transform: rotate(45deg);
  background: var(--bronze);
  box-shadow: 0 0 10px rgba(243, 201, 139, 0.6);
}

.coming {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: 0.4em;
  /* Balance the trailing letter-spacing so the text stays centred. */
  padding-left: 0.4em;
  text-transform: uppercase;
  color: var(--bronze-light);
  text-shadow: 0 0 22px rgba(205, 138, 69, 0.45), 0 1px 10px rgba(0, 0, 0, 0.8);
  animation: rise 1.4s ease-out 1s both;
}

.pitch {
  margin: clamp(1.2rem, 3.5vh, 2rem) 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--parchment-dim);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
  text-wrap: balance;
  animation: rise 1.4s ease-out 1.2s both;
}

/* Contact */

.contact {
  padding: 1.5rem 1rem clamp(1.25rem, 4vh, 2.25rem);
  animation: rise 1.4s ease-out 1.4s both;
}

.contact a {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--parchment-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(205, 138, 69, 0.5);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--bronze-light);
  border-color: var(--bronze-light);
}

.contact a:focus-visible {
  outline: 2px solid var(--bronze-light);
  outline-offset: 4px;
  border-radius: 2px;
}

/* 404 page */

.lost .hero {
  justify-content: center;
  padding-top: 2rem;
}

.lost .title {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
}

.home-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-light);
  text-decoration: none;
  border: 1px solid rgba(205, 138, 69, 0.6);
  padding: 0.7rem 1.4rem;
  background: rgba(8, 11, 24, 0.45);
  transition: background 0.2s, border-color 0.2s;
}

.home-link:hover,
.home-link:focus-visible {
  background: rgba(205, 138, 69, 0.18);
  border-color: var(--bronze-light);
}

/* Motion */

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

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
