body {
  margin: 0;
  font-family: Georgia, serif;
  background: #f6f1ea;
  color: #1f1b16;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

.hero {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-bottom: 44px;
}

.headshot {
  width: 185px;
  height: 185px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #1f1b16;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 14px;
}

h2 {
  font-size: 30px;
  margin-top: 0;
}

h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

p {
  font-size: 18px;
  line-height: 1.45;
}

.tagline {
  font-size: 22px;
  font-style: italic;
  margin-bottom: 18px;
}

.intro-card,
.book-card {
  background: #fffaf2;
  border: 1px solid #d8c8b2;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
}

.book-card {
  max-width: 820px;
}

.book-card p {
  max-width: 680px;
}

a {
  color: #6b2f1a;
}

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  background: #1f1b16;
  color: #fffaf2;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
}

.button:hover {
  background: #3a3027;
}

@media (max-width: 700px) {
  main {
    padding: 32px 20px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  h1 {
    font-size: 38px;
  }
}

.breadcrumb {
  margin-bottom: 28px;
  font-size: 16px;
}

.book-page {
  max-width: 1040px;
}

.book-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 40px;
}

.book-hero-text h1 {
  font-size: 56px;
  line-height: 1.02;
  margin: 0 0 14px;
}

.book-subtitle {
  font-size: 24px;
  font-style: italic;
  margin: 0 0 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: bold;
  color: #7b5538;
  margin-bottom: 8px;
}

.book-hero-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  background: #fffaf2;
}

.book-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button.secondary {
  background: #fffaf2;
  color: #1f1b16;
  border: 1px solid #1f1b16;
}

.book-section {
  margin-top: 44px;
}

.section-heading {
  margin-bottom: 18px;
}

.portal-card,
.notice-card,
.spoiler-card,
.hint-card {
  background: #fffaf2;
  border: 1px solid #d8c8b2;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
}

.solution-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  max-width: 520px;
}

.solution-form label {
  display: grid;
  gap: 6px;
  font-size: 17px;
  font-weight: bold;
}

.solution-form input {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid #b89f83;
  border-radius: 8px;
  background: #fff;
}

.solution-form button {
  width: fit-content;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  background: #1f1b16;
  color: #fffaf2;
  font: inherit;
  cursor: pointer;
}

.solution-form button:hover {
  background: #3a3027;
}

.optional,
.small-note {
  font-size: 14px;
  font-weight: normal;
  color: #7a6a5a;
}

.hint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hint-card h3 {
  margin-top: 0;
}

.spoiler-card details {
  margin-top: 18px;
}

.spoiler-card summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #6b2f1a;
}

.solution-reveal {
  margin-top: 18px;
  padding: 18px;
  border-radius: 10px;
  background: #f6f1ea;
  border: 1px solid #d8c8b2;
}

@media (max-width: 800px) {
  .book-hero {
    grid-template-columns: 1fr;
  }

  .book-hero-text h1 {
    font-size: 42px;
  }

  .hint-grid {
    grid-template-columns: 1fr;
  }
}
