/* Pennhollow — 1940s film noir landing page
   Color and type tokens only. Atmosphere, not kitsch. */

:root {
  --color-void: #0a0e14;
  --color-night: #111923;
  --color-slate: #1a2433;
  --color-rain: #2a3f5f;
  --color-fog: #6b8aad;
  --color-breath: #a8c4d8;
  --color-neon-amber: #e8a63a;
  --color-neon-warm: #d4782f;
  --color-neon-hot: #f0c060;
  --color-white: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-breath);
  background: var(--color-void);
  -webkit-font-smoothing: antialiased;
}

/* Typography — display */
.site-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--color-neon-amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow:
    0 0 7px rgba(232, 166, 58, 0.5),
    0 0 20px rgba(232, 166, 58, 0.3),
    0 0 40px rgba(232, 166, 58, 0.15);
  animation: neon-breathe 5s ease-in-out infinite;
  margin: 0;
}

@keyframes neon-breathe {
  0%, 100% {
    text-shadow:
      0 0 7px rgba(232, 166, 58, 0.5),
      0 0 20px rgba(232, 166, 58, 0.3),
      0 0 40px rgba(232, 166, 58, 0.15);
  }
  50% {
    text-shadow:
      0 0 10px rgba(232, 166, 58, 0.7),
      0 0 30px rgba(232, 166, 58, 0.4),
      0 0 60px rgba(232, 166, 58, 0.2);
  }
}

.hero-tagline {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--color-fog);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1rem;
  margin-bottom: 0;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--color-breath);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin-top: 0;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--color-void);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/Pennhollow wp bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55) saturate(0.65);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 20, 0.85) 0%,
    rgba(10, 14, 20, 0.5) 40%,
    rgba(10, 14, 20, 0.9) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem;
}

/* Rain (optional — enable via ENABLE_RAIN in main.js) */
.rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
}

.rain-line {
  position: absolute;
  width: 1px;
  height: 80px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(226, 232, 240, 0.08),
    transparent
  );
  animation: rain-fall linear infinite;
}

@keyframes rain-fall {
  to {
    transform: translateY(100vh);
  }
}

/* Author */
.author {
  padding: 2.5rem 1.5rem;
  background: var(--color-night);
  text-align: center;
}

.author-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--color-fog);
  margin: 0 0 0.25rem;
}

.author a {
  color: var(--color-fog);
  text-decoration: none;
  transition: color 0.3s ease;
}

.author a:hover {
  color: var(--color-neon-amber);
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--color-rain);
  text-align: center;
}

.footer small {
  font-size: 0.75rem;
  color: var(--color-rain);
}
