/* ============================================================
   Numerarium — Coming Soon
   ============================================================ */

/* --- Reset & Base --- */

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

/* --- Custom Properties (Dark default) --- */

:root {
  --color-bg-start: #0a0a0f;
  --color-bg-mid: #0f0e1a;
  --color-bg-end: #0a0a0f;
  --color-title: #f0ecf8;
  --color-subtitle: rgba(196, 181, 253, 0.6);
  --color-footer: rgba(255, 255, 255, 0.2);
  --grain-opacity: 0.03;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg-start: #f8f7fc;
    --color-bg-mid: #ede9f7;
    --color-bg-end: #f8f7fc;
    --color-title: #0f0e1a;
    --color-subtitle: rgba(90, 60, 150, 0.5);
    --color-footer: rgba(0, 0, 0, 0.25);
    --grain-opacity: 0.018;
  }
}

/* --- Animated Gradient Background --- */

@keyframes drift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'SF Pro Display', 'SF Pro Text', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background: linear-gradient(
    135deg,
    var(--color-bg-start) 0%,
    var(--color-bg-mid) 50%,
    var(--color-bg-end) 100%
  );
  background-size: 400% 400%;
  animation: drift 20s ease infinite;
  color: var(--color-title);
  overflow: hidden;
}

/* Subtle film-grain overlay (pure CSS) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  z-index: 1;
}

/* --- Layout --- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 2;
}

/* --- Entrance Animations --- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Title --- */

.title {
  font-family: Georgia, 'Times New Roman', 'Palatino Linotype',
    Palatino, 'Book Antiqua', serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw + 1rem, 9rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--color-title);

  animation: fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- Subtitle --- */

.subtitle {
  margin-top: clamp(0.75rem, 1.5vw, 1.5rem);
  font-family: 'SF Pro Display', 'SF Pro Text', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(0.875rem, 1.2vw + 0.25rem, 1.25rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-subtitle);

  animation: fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

/* --- Footer --- */

footer {
  padding: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

footer p {
  font-size: clamp(0.7rem, 0.8vw + 0.2rem, 0.8125rem);
  letter-spacing: 0.06em;
  color: var(--color-footer);
  animation: fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  body {
    background-size: 100% 100%;
  }
}
