/* Base reset and setup */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0b;
  color: #fafafa;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 2rem;
  overflow: hidden;
}

/* Subtle gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(60, 60, 80, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(40, 40, 60, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  max-width: 52rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* Quote block */
.quote {
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out 0.2s forwards;
}

.quote-text {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 2rem 0;
  letter-spacing: -0.01em;
  color: #fafafa;
  text-wrap: balance;
}

.quote-text::before {
  content: '"';
  color: rgba(255, 255, 255, 0.2);
}

.quote-text::after {
  content: '"';
  color: rgba(255, 255, 255, 0.2);
}

/* Author */
.quote-author {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.8s forwards;
}

.quote-author::before {
  content: '— ';
  color: rgba(255, 255, 255, 0.3);
}

/* Date */
.date {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  opacity: 0;
  animation: fadeIn 0.6s ease-out 1.2s forwards;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  body {
    padding: 1.5rem;
  }

  .container {
    gap: 2rem;
  }

  .quote-text {
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .quote,
  .quote-author,
  .date {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Light mode support */
@media (prefers-color-scheme: light) {
  body {
    background: #fefefe;
    color: #1a1a1b;
  }

  body::before {
    background:
      radial-gradient(ellipse at 20% 20%, rgba(200, 200, 220, 0.3) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 80%, rgba(180, 180, 200, 0.2) 0%, transparent 50%);
  }

  .quote-text {
    color: #1a1a1b;
  }

  .quote-text::before,
  .quote-text::after {
    color: rgba(0, 0, 0, 0.15);
  }

  .quote-author {
    color: rgba(0, 0, 0, 0.5);
  }

  .quote-author::before {
    color: rgba(0, 0, 0, 0.3);
  }

  .date {
    color: rgba(0, 0, 0, 0.25);
  }
}
