:root {
  --ink: #17211f;
  --muted: #5d6965;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --forest: #173f35;
  --teal: #0c776c;
  --gold: #c99738;
  --clay: #a6533a;
  --line: #d9ded7;
  --shadow: 0 24px 70px rgba(23, 33, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  text-decoration: none;
}

.logo-brand {
  display: block;
  width: min(54vw, 330px);
}

.logo-brand img {
  width: 100%;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a,
.profile-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.profile-links a:hover {
  border-color: var(--teal);
  color: var(--forest);
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(23, 63, 53, 0.96), rgba(12, 119, 108, 0.82)),
    url("https://images.unsplash.com/photo-1519682337058-a94d519337bc?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(2.6rem, 6vw, 6.6rem);
}

.lede {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-actions,
.buy-row,
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #17120b;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.button.secondary.dark {
  background: #ffffff;
  color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--line);
}

.chapter-actions {
  margin-top: 22px;
}

.hero-media {
  position: relative;
  min-height: 520px;
}

.author-photo {
  width: min(72vw, 440px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 10px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.book-float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(42vw, 280px);
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(4deg);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.book-section,
.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.book-list,
.upcoming-list {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
}

.story-section {
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  background: #edf3ef;
}

.section h2 {
  font-size: clamp(2rem, 4.3vw, 4.7rem);
}

.subtitle {
  color: var(--clay);
  font-weight: 900;
}

.subtitle.light {
  color: rgba(255, 255, 255, 0.78);
}

.marketplace-panel {
  margin-top: 28px;
  padding: 20px;
  background: #f2f5f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.marketplace-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

select {
  min-height: 46px;
  min-width: min(100%, 320px);
  border: 1px solid #b9c2bb;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.microcopy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.book-cover-card {
  margin: 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.book-cover-card img {
  border-radius: 4px;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.upcoming-section {
  background: var(--forest);
  color: #fff;
}

.upcoming-book h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.3vw, 4.7rem);
  line-height: 1.04;
}

.narrow {
  max-width: 960px;
}

.progress-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.progress-board > div,
.blog-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.progress-board > div {
  padding: 20px;
  color: var(--ink);
}

.progress-board span,
.blog-card time,
.chapter-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-board strong {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
}

.progress-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.progress-track {
  height: 10px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e9e3;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: #fff;
  border-block: 1px solid var(--line);
}

.newsletter-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.3vw, 4.7rem);
  line-height: 1.04;
}

.newsletter-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f5f1;
}

.newsletter-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.newsletter-row {
  display: flex;
  gap: 10px;
}

.newsletter-row input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  border: 1px solid #b9c2bb;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.videos-section {
  background: #f7f5ee;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111816;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-notice {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  background: rgba(17, 24, 22, 0.9);
  color: #fff;
  text-align: center;
}

.video-notice[hidden] {
  display: none;
}

.video-notice strong,
.video-notice span {
  max-width: 520px;
}

.video-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}

.story-section img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 28px;
}

.blog-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 0 18px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--teal) #e4e9e3;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 20px;
  scroll-snap-align: start;
}

.blog-card h3 {
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.14;
}

.blog-card p {
  color: var(--muted);
}

.status {
  width: fit-content;
  margin-top: auto;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e7f1ee;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.read-button {
  align-self: flex-start;
  margin-top: 16px;
  background: transparent;
  border: 1px solid var(--forest);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--forest);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.footer {
  padding: 28px clamp(18px, 5vw, 72px);
  background: #111816;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .hero,
  .book-section,
  .story-section,
  .newsletter-section,
  .video-layout {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 430px;
  }

  .progress-board {
    grid-template-columns: 1fr 1fr;
  }

  .story-section img {
    max-width: 420px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-media {
    min-height: 360px;
  }

  .author-photo {
    width: min(82vw, 330px);
  }

  .book-float {
    width: min(48vw, 210px);
  }

  .progress-board {
    grid-template-columns: 1fr;
  }

  .buy-row {
    align-items: stretch;
    flex-direction: column;
  }

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

  select,
  .buy-row .button,
  .newsletter-row .button {
    width: 100%;
  }
}
