:root {
  color-scheme: light;
  --bg: #f8f4ed;
  --surface: #ffffff;
  --surface-soft: #fff6ec;
  --text: #1f1c18;
  --muted: #6b6359;
  --accent: #c54b2f;
  --accent-soft: #f8ddd5;
  --border: rgba(31, 28, 24, 0.09);
  --shadow: 0 35px 90px rgba(18, 16, 12, 0.08);
  --radius-lg: 32px;
  --radius-md: 28px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background: radial-gradient(
    circle at top left,
    #fff9f1 0%,
    #f4e6d8 30%,
    #f0e2cf 100%
  );
}

/* Page frame */
.page-shell {
  position: relative;
  overflow: hidden;
}

.content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 132px 120px 24px;
}

.hero-section,
.book-section,
.contact-section {
  position: relative;
}

.book-section,
.contact-section {
  padding: 10px 0;
}

/* Fixed right ornament */
.page-ornament {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(56px, 8vw, 104px);
  pointer-events: none;
  background-image: url("ornament.png");
  background-repeat: repeat-y;
  background-position: right top;
  background-size: 100% auto;
}

/* Shared cards */
.hero-author-card,
.book-description,
.contact-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-author-card,
.book-description {
  border: 1px solid var(--border);
}

/* Hero */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 0 0 60px;
}

.hero-copy {
  margin-top: 200px;
}

.eyebrow,
.author-label,
.section-label {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  margin: 10px 0 18px;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.hero-section h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #231f1a;
}

.hero-description {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-author-card {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 24px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.9);
}

.author-photo {
  overflow: hidden;
  min-height: 300px;
  border-radius: var(--radius-md);
}

.author-photo img,
.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: grid;
  gap: 16px;
}

.author-label {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.author-info h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.05;
}

.author-info p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

/* Book section */
.book-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.book-gallery {
  display: grid;
  gap: 24px;
  margin-top: -1000px;
}

.gallery-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.gallery-card img {
  aspect-ratio: 4 / 5;
}

.book-description {
  padding: 10px 40px 42px;
  background: var(--surface);
}

.book-description h2,
.contact-card h2 {
  font-family: "Playfair Display", serif;
}

.book-description h2 {
  margin-top: 0;
  font-size: 2.4rem;
  line-height: 1.05;
}

.book-description p {
  margin: 18px 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

.book-description ul {
  margin: 24px 0 0;
  padding-left: 1.2rem;
  line-height: 1.9;
  color: var(--text);
}

.book-description li {
  margin-bottom: 12px;
}

/* Contact */
.contact-section {
  display: flex;
  justify-content: center;
}

.contact-card {
  width: min(760px, 100%);
  padding: 46px;
  text-align: center;
  background: linear-gradient(135deg, #fff4eb 0%, #fdf1ea 100%);
  border: 1px solid rgba(197, 75, 47, 0.14);
}

.section-label {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}

.contact-card h2 {
  margin: 18px 0 0;
  font-size: 2.2rem;
}

.contact-card p {
  max-width: 600px;
  margin: 24px auto 0;
  line-height: 1.8;
  color: var(--muted);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(197, 75, 47, 0.18);
}

/* Responsive */
@media (max-width: 920px) {
  .hero-copy {
    margin-top: 40px;
  }

  .hero-section,
  .book-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 28px;
  }

  .book-section {
    gap: 28px;
  }

  .book-gallery {
    margin-top: 0;
    order: 2;
  }

  .book-description {
    order: 1;
  }
}

@media (max-width: 720px) {
  .content {
    padding: 24px 84px 90px 18px;
  }

  .hero-section {
    gap: 24px;
    padding-bottom: 36px;
  }

  .hero-author-card {
    position: static;
    top: auto;
    gap: 20px;
    padding: 24px;
  }

  .author-photo {
    min-height: 240px;
  }

  .hero-section h1 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.7;
  }

  .book-description,
  .contact-card {
    padding: 30px;
  }

  .book-section {
    gap: 24px;
  }

  .book-gallery {
    gap: 18px;
  }

  .book-description h2,
  .contact-card h2 {
    font-size: 2rem;
  }

  .book-description p,
  .author-info p,
  .contact-card p {
    line-height: 1.7;
  }

  .contact-button {
    width: 100%;
    padding: 15px 24px;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 20px 68px 72px 14px;
  }

  .page-ornament {
    width: clamp(42px, 12vw, 64px);
  }

  .eyebrow,
  .section-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .hero-author-card,
  .book-description,
  .contact-card {
    border-radius: 24px;
  }

  .hero-author-card,
  .book-description,
  .contact-card {
    padding: 22px;
  }

  .author-photo,
  .gallery-card {
    border-radius: 20px;
  }

  .author-photo {
    min-height: 200px;
  }

  .author-info h2 {
    font-size: 1.55rem;
  }

  .book-description h2,
  .contact-card h2 {
    font-size: 1.75rem;
  }

  .book-description p,
  .author-info p,
  .contact-card p,
  .hero-description {
    font-size: 0.98rem;
  }

  .contact-button {
    margin-top: 28px;
    font-size: 0.96rem;
  }
}
