:root {
  --background: hsl(120, 10%, 4%);
  --foreground: hsl(45, 40%, 86%);
  --border: hsl(120, 10%, 12%);
  --primary: hsl(36, 62%, 55%);
  --primary-foreground: hsl(120, 10%, 4%);
  --secondary: hsl(130, 20%, 15%);
  --secondary-foreground: hsl(45, 40%, 86%);
  --muted-foreground: hsl(45, 20%, 60%);
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'Cinzel', serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Hero Section */
.hero {
  position: relative;
  height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 7, 0.4), rgba(10, 10, 7, 0.6), rgba(10, 10, 7, 1));
  z-index: 10;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 20;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 56rem;
  margin-top: 5rem;
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 10vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, var(--foreground), rgba(217, 119, 6, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 20px 25px rgba(0,0,0,0.5));
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(217, 170, 121, 0.8);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.5;
  animation: fadeIn 1s ease-out 0.6s both;
}

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

.hero-subtitle em {
  font-style: italic;
  color: var(--primary);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.scroll-indicator svg {
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(217, 170, 121, 0.6);
}

/* Sections */
section {
  position: relative;
  z-index: 20;
  padding: 8rem 1.5rem;
}

.book-section {
  background: rgba(10, 10, 7, 0.95);
  backdrop-filter: blur(4px);
}

.about-section {
  background: rgba(6, 20, 10, 0.1);
  border-top: 1px solid rgba(217, 170, 121, 0.2);
  border-bottom: 1px solid rgba(217, 170, 121, 0.2);
}

.footer {
  background: var(--background);
  overflow: hidden;
}

/* Grid layouts */
.container {
  max-width: 80rem;
  margin: 0 auto;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .book-grid {
    grid-template-columns: 1fr 1fr;
  }

  .book-content {
    order: 1;
  }

  .book-image {
    order: 2;
  }
}

/* Typography */
h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  margin-bottom: 2rem;
}

.subheading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.divider {
  width: 3rem;
  height: 1px;
  background: rgba(217, 170, 121, 0.5);
}

.label {
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
}

.text-large {
  font-size: 1.125rem;
}

.text-muted {
  color: rgba(217, 170, 121, 0.8);
  font-weight: 300;
}

/* Book section */
.book-description {
  display: space-y;
  gap: 1.5rem;
  font-size: 1.125rem;
  color: rgba(217, 170, 121, 0.7);
  font-weight: 300;
  line-height: 1.75;
}

.book-description p {
  margin-bottom: 1.5rem;
}

.book-image-container {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

.book-image-border {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 170, 121, 0.2);
  transform: translate(1rem, 1rem);
  z-index: 0;
}

.book-image-container img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 20px 25px rgba(0,0,0,0.5);
  z-index: 10;
}

.book-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background), transparent);
  z-index: 10;
}

/* Button */
.btn {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 1.5rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 3rem;
}

.btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* About section */
.about-container {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.about-container h2 {
  margin-bottom: 2rem;
}

.about-quote {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: rgba(217, 170, 121, 0.8);
  font-style: italic;
  margin-bottom: 2rem;
}

.about-text {
  font-size: 1.125rem;
  color: rgba(217, 170, 121, 0.7);
  font-weight: 300;
  line-height: 1.75;
}

/* Footer */
.footer-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.footer-section h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-text {
  color: rgba(217, 170, 121, 0.6);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-link {
  color: rgba(217, 170, 121, 0.6);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-link-text {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  text-align: center;
  color: rgba(217, 170, 121, 0.4);
  font-size: 0.875rem;
  font-weight: 300;
  margin-top: 6rem;
  padding-top: 6rem;
  border-top: 1px solid rgba(217, 170, 121, 0.2);
}

/* Newsletter signup (posts to Google Forms behind the scenes) */
.form-container {
  margin-top: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid rgba(217, 170, 121, 0.3);
  border-radius: 0;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.875rem 1rem;
}

.newsletter-input::placeholder {
  color: rgba(217, 170, 121, 0.5);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-submit {
  margin-top: 0;
  padding: 0.875rem 1.5rem;
  white-space: nowrap;
}

.newsletter-success {
  color: var(--primary);
  font-weight: 300;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }

  .footer-content {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .divider {
    display: none;
  }
}
