/* ===========================================
   THEON — Under Construction Page
   Greek Mythology Theme: Marble + Gold
   =========================================== */

/* ----- CSS Variables ----- */
:root {
  /* Colors */
  --color-bg-deep: #08080c;
  --color-bg-base: #0d0d14;
  --color-bg-elevated: #13131c;
  --color-gold: #c9a227;
  --color-gold-light: #dbc16a;
  --color-gold-dim: #8b7320;
  --color-text: #e8e6e1;
  --color-text-muted: #9a9890;
  --color-marble: rgba(255, 255, 255, 0.03);

  /* Typography */
  --font-display: 'Cinzel', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-body: 'Cinzel', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Transitions */
  --transition-base: 0.3s ease;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Multi-layer background */
  background:
    /* Subtle radial glow from center */
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(201, 162, 39, 0.06) 0%, transparent 60%),
    /* Deep vertical gradient */
    linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg-base) 50%, var(--color-bg-deep) 100%);

  /* Safe area for notch devices */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ----- Pattern Overlay (Greek Key) ----- */
.pattern-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 0h10v10H0V0zm10 10h10v10H10V10zm10-10h10v10H20V0zm10 10h10v10H30V10zM0 20h10v10H0V20zm20 0h10v10H20V20zM10 30h10v10H10V30zm20 0h10v10H30V30z' fill='%23c9a227' fill-opacity='1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  z-index: 1;
}

/* ----- Ambient Glow ----- */
.ambient-glow {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 40vh;
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: breathe 10s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ambient-glow {
    animation: none;
    opacity: 0.8;
  }
}

/* ----- Layout Container ----- */
.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  min-height: 100dvh;
  padding: var(--space-md);
  text-align: center;
  gap: var(--space-md);
}

/* ----- Temple Icon ----- */
.temple-icon {
  width: clamp(60px, 15vw, 100px);
  height: auto;
  color: var(--color-gold-dim);
  opacity: 0.4;
  margin-bottom: var(--space-xs);
}

/* ----- Hero Section ----- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow:
    0 0 40px rgba(201, 162, 39, 0.3),
    0 0 80px rgba(201, 162, 39, 0.15);
  margin-right: -0.3em; /* Compensate for letter-spacing */
}

/* ----- Subtitle ----- */
.subtitle {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--color-text-muted);
  max-width: 400px;
  line-height: 1.7;
}

/* ----- CTA Link ----- */
.cta-link {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dim);
  border-radius: 2px;
  background: transparent;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base);
}

.cta-link:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

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

.cta-link:focus:not(:focus-visible) {
  outline: none;
}

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

/* ----- Footer ----- */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-sm);
  padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
  text-align: center;
}

.footer small {
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* ----- Responsive Adjustments ----- */
@media (min-width: 768px) {
  .container {
    gap: var(--space-lg);
  }

  .subtitle {
    max-width: 500px;
  }
}

@media (min-width: 1200px) {
  .container {
    gap: var(--space-xl);
  }
}

/* ----- Very Small Screens ----- */
@media (max-height: 600px) {
  .container {
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .temple-icon {
    display: none;
  }

  .logo {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .subtitle br {
    display: none;
  }
}

/* ----- High Contrast Mode Support ----- */
@media (prefers-contrast: high) {
  .logo {
    text-shadow: none;
  }

  .cta-link {
    border-width: 2px;
  }
}
