@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f3ead8;
  --cream-dim: #cbbfa8;
  --cream-mute: #9d8f78;
  --rule: rgba(243, 234, 216, 0.32);
  --bg: #0c0a07;
  --focus: #e8d7b0;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 42%, rgba(12, 10, 7, 0.15) 0%, rgba(12, 10, 7, 0.45) 62%, rgba(12, 10, 7, 0.78) 100%),
    linear-gradient(to bottom, rgba(12, 10, 7, 0.35) 0%, transparent 22%, transparent 72%, rgba(12, 10, 7, 0.62) 100%);
}

main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: max(4.5rem, env(safe-area-inset-top)) 1.5rem 2.5rem;
}

.logo {
  width: min(272px, 62vw);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.62));
}

.soon {
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  letter-spacing: 0.46em;
  text-transform: uppercase;
  margin: 1.85rem 0 0 0.46em; /* optical center against tracking */
  color: var(--cream);
}

.rule {
  width: 3.75rem;
  height: 1px;
  margin: 1.25rem auto;
  background: var(--rule);
  border: 0;
}

.tagline {
  font-family: "EB Garamond", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.35;
  color: var(--cream-dim);
  max-width: 22em;
  margin: 0;
}

.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.35rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(243, 234, 216, 0.38);
  border-radius: 1px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cta:hover {
  background: rgba(243, 234, 216, 0.1);
  border-color: var(--cream);
}

.cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

footer {
  position: relative;
  z-index: 2;
  padding: 0 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--cream-mute);
}

footer p { margin: 0 0 0.35rem; }
footer p:last-child { margin-bottom: 0; }

footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer .fine {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.66rem;
  line-height: 1.45;
  opacity: 0.9;
}

.credits {
  margin: 0.55rem auto 0;
  max-width: 42rem;
  font-size: 0.66rem;
  text-align: left;
}

.credits summary {
  cursor: pointer;
  text-align: center;
  list-style: none;
}

.credits summary::-webkit-details-marker { display: none; }

.credits ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.credits li { margin: 0.25rem 0; }

/* Enter gently; skip if the visitor prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .logo, .soon, .rule, .tagline, .cta {
    animation: rise 0.9s ease-out both;
  }
  .soon { animation-delay: 0.12s; }
  .rule { animation-delay: 0.2s; }
  .tagline { animation-delay: 0.28s; }
  .cta { animation-delay: 0.4s; }
}

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

@media (max-width: 640px) {
  .soon {
    letter-spacing: 0.32em;
    margin-right: 0;
    margin-left: 0.32em;
  }
  .cta { letter-spacing: 0.12em; }
}
