/* ═══════════════════════════════════════════
   Peter Nielsen — Author Website
   Dark Cinematic WWII Theme
   ═══════════════════════════════════════════ */

:root {
  --bg-deep: #0a0e14;
  --bg-primary: #0d1219;
  --bg-elevated: #131a24;
  --bg-card: #161e2a;
  --bg-warm: #1a1510;
  --gold: #c8a96e;
  --gold-light: #dcc590;
  --gold-dim: #8a7549;
  --cream: #e8dcc8;
  --cream-soft: #c4b8a4;
  --text-primary: #ddd5c8;
  --text-secondary: #9a9080;
  --text-dim: #665e52;
  --navy: #1b3a5c;
  --navy-light: #2a5580;
  --accent-red: #8b3a3a;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'EB Garamond', 'Georgia', serif;
  --font-ui: 'Lato', 'Helvetica Neue', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Grain Overlay ── */
.grain-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Container ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navigation ── */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s ease;
}

.main-nav.scrolled {
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  border: 1px solid var(--gold-dim);
  color: var(--gold) !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-deep) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s ease;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(27, 58, 92, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(139, 58, 58, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(200, 169, 110, 0.05) 0%, transparent 70%),
    var(--bg-deep);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-deep) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.hero-author {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-author strong {
  color: var(--cream);
  font-weight: 400;
}

.hero-btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  padding: 0.9rem 2.5rem;
  transition: all 0.4s ease;
}

.hero-btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ── Sections ── */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 2rem;
}

/* ── Series Section ── */
.section-series {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(27, 58, 92, 0.15) 0%, transparent 50%),
    var(--bg-primary);
}

.series-intro {
  max-width: 720px;
  margin-bottom: 4rem;
}

.series-intro p {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.series-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.pillar {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(200, 169, 110, 0.1);
  background: rgba(200, 169, 110, 0.02);
  transition: all 0.4s ease;
}

.pillar:hover {
  border-color: rgba(200, 169, 110, 0.25);
  background: rgba(200, 169, 110, 0.04);
}

.pillar-icon {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.3em;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Books Section ── */
.section-books {
  background: var(--bg-deep);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid rgba(200, 169, 110, 0.08);
  transition: all 0.4s ease;
  overflow: hidden;
}

.book-card:hover {
  border-color: rgba(200, 169, 110, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.book-cover-placeholder {
  aspect-ratio: 2/3;
  max-height: 260px;
  background:
    linear-gradient(135deg, var(--bg-elevated) 0%, rgba(27, 58, 92, 0.3) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(200, 169, 110, 0.08);
  position: relative;
}

.book-number {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.book-coming {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 169, 110, 0.1);
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(200, 169, 110, 0.2);
}

.book-info {
  padding: 1.5rem;
}

.book-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.book-period {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.book-setting {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.book-desc {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.book-tagline {
  font-size: 0.8rem;
  color: var(--gold-dim);
  line-height: 1.5;
  margin-top: 0.75rem;
}

/* ── Author Section ── */
.section-author {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(139, 58, 58, 0.08) 0%, transparent 50%),
    var(--bg-primary);
}

.author-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.author-photo-placeholder {
  aspect-ratio: 3/4;
  background:
    linear-gradient(135deg, var(--bg-elevated) 0%, rgba(27, 58, 92, 0.2) 100%);
  border: 1px solid rgba(200, 169, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.author-photo-placeholder span {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 2;
}

/* When real photo is added, use this: */
.author-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.author-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold-light) !important;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 2px solid var(--gold-dim);
  margin: 2rem 0 !important;
}

.author-mission {
  color: var(--cream) !important;
  font-weight: 500;
}

/* ── Endorsement Section ── */
.section-endorsement {
  background: var(--bg-warm);
  padding: 6rem 0;
}

.endorsement-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
}

.endorsement-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.5;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
}

.endorsement-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 2rem;
}

.endorsement-attribution strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.endorsement-attribution span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Newsletter Section ── */
.section-newsletter {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(200, 169, 110, 0.06) 0%, transparent 60%),
    var(--bg-deep);
  padding: 7rem 0;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-desc {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.newsletter-form {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid rgba(200, 169, 110, 0.15);
  color: var(--cream);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-row input::placeholder {
  color: var(--text-dim);
}

.form-row input:focus {
  border-color: var(--gold);
}

.form-btn {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-btn:hover {
  background: var(--gold-light);
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

.form-success {
  padding: 2rem;
}

.success-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--text-secondary);
}

/* ── Press Section ── */
.section-press {
  background: var(--bg-primary);
  padding: 5rem 0;
  border-top: 1px solid rgba(200, 169, 110, 0.08);
}

.press-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.press-col h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1rem;
}

.press-col p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.press-email {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.press-email:hover {
  border-color: var(--gold);
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.social-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--gold);
}

/* ── Footer ── */
.site-footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(200, 169, 110, 0.06);
}

.site-footer p {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem !important;
  color: var(--gold-dim) !important;
  margin-top: 0.5rem;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 14, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(200, 169, 110, 0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 1rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .series-pillars {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .author-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .author-photo-placeholder {
    max-width: 300px;
  }

  .press-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-row {
    flex-direction: column;
  }

  .section {
    padding: 5rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .book-cover-placeholder {
    max-height: 200px;
  }
}