:root {
  --font-playfair: 'Playfair Display', Georgia, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;

  --color-sage-50: #f7f7f5;
  --color-sage-100: #e8ebe5;
  --color-sage-200: #d1d8cd;
  --color-sage-300: #b3bcaf;
  --color-sage-400: #919888;
  --color-sage-500: #757a6a;
  --color-sage-600: #5d6156;
  --color-sage-700: #4b4f46;
  --color-sage-800: #3d413a;
  --color-sage-900: #323631;

  --color-cream-50: #fdfcfb;
  --color-cream-100: #faf8f3;
  --color-cream-200: #f3efe3;
  --color-cream-300: #e8e2d0;
  --color-cream-400: #d9cfb5;

  --color-sky-pastel-50: #eef6fc;
  --color-sky-pastel-100: #d9ebf7;
  --color-sky-pastel-200: #bfd9ef;

  --color-salmon-pastel-50: #fff5f3;
  --color-salmon-pastel-100: #ffe8e4;
  --color-salmon-pastel-200: #ffd4cc;

  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream-50);
  color: var(--color-gray-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-playfair);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-sage-700);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

.section {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 2rem;
  }
}

.section--bg-white {
  background-color: white;
}

.section--bg-cream {
  background-color: var(--color-cream-100);
}

.section--bg-salmon {
  background-color: var(--color-salmon-pastel-100);
}

.section--bg-sage {
  background-color: var(--color-sage-700);
  color: white;
}

.section__container {
  max-width: 72rem;
  margin: 0 auto;
}

.section__title {
  font-size: 1.875rem;
  color: var(--color-gray-900);
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section__title {
    font-size: 2.25rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1.125rem;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn:focus {
  outline: 2px solid var(--color-sage-400);
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--color-sage-600);
  color: white;
}

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

.btn--primary:active {
  transform: scale(0.98);
}

.btn--amazon {
  background: linear-gradient(180deg, #fe9900 0%, #ffc300 100%);
  color: #121921;
}

.btn--amazon:hover {
  background: linear-gradient(180deg, #e68a00 0%, #ffc300 100%);
}


.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to bottom,
    var(--color-sky-pastel-50),
    var(--color-sky-pastel-100),
    var(--color-sky-pastel-200)
  );
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero__content {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}

.hero__book {
  order: 2;
}

@media (min-width: 768px) {
  .hero__book {
    order: 1;
  }
}

.hero__book-cover {
  position: relative;
  width: 16rem;
  height: 20rem;
}

@media (min-width: 768px) {
  .hero__book-cover {
    width: 18rem;
    height: 24rem;
  }
}

.hero__book-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 4px solid white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero__book-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 6rem;
  height: 6rem;
  background-color: var(--color-sage-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero__book-badge span {
  color: white;
  font-family: var(--font-playfair);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}

.hero__text {
  text-align: center;
}

@media (min-width: 768px) {
  .hero__text {
    text-align: left;
    order: 2;
  }
}

.hero__label {
  display: inline-block;
  background-color: var(--color-sage-100);
  color: var(--color-sage-700);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: 3rem;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 4.5rem;
  }
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-sage-600);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: 1.5rem;
  }
}

.hero__description {
  color: var(--color-gray-600);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  line-height: 1.75;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #121921;
}

.hero__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.about-book__text {
  color: var(--color-gray-600);
  max-width: 56rem;
  margin: 0 auto 3rem;
}

.about-book__text p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-book__text strong {
  color: var(--color-gray-900);
}

.about-foreword__attribution {
  font-style: italic;
  color: var(--color-gray-600);
}

.about-foreword__attribution em:last-child {
  font-style: normal;
  color: var(--color-sage-600);
  font-weight: 500;
  display: block;
  margin-top: 1rem;
  text-align: right;
}

.about-book__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-book__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background-color: var(--color-cream-50);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-sage-100);
  transition: box-shadow 0.3s;
}

.benefit-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.benefit-card__icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--color-sage-100);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage-600);
  margin-bottom: 1rem;
}

.benefit-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.benefit-card__title {
  font-size: 1.25rem;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.benefit-card__description {
  color: var(--color-gray-600);
  line-height: 1.625;
}

.author__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .author__content {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    align-items: flex-start;
  }
}

.author__image {
  width: 12rem;
  height: 12rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .author__image {
    width: 14rem;
    height: 14rem;
  }
}

.author__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.author__info {
  text-align: center;
}

@media (min-width: 768px) {
  .author__info {
    text-align: left;
  }
}

.author__name {
  font-size: 1.5rem;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.author__role {
  color: var(--color-sage-600);
  font-weight: 500;
  margin-bottom: 1rem;
}

.author__bio p {
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

.author__bio strong {
  color: var(--color-gray-900);
}

.testimonials__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-sage-100);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-sage-300);
  margin-bottom: 1rem;
}

.testimonial-card__quote {
  color: var(--color-gray-600);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.625;
}

.testimonial-card__author {
  border-top: 1px solid var(--color-sage-100);
  padding-top: 1rem;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--color-gray-900);
}

.testimonial-card__role {
  font-size: 0.875rem;
  color: var(--color-sage-600);
}

.cta__content {
  text-align: center;
}

.cta__title {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta__title {
    font-size: 2.25rem;
  }
}

.cta__text {
  font-size: 1.25rem;
  color: var(--color-sage-100);
  margin-bottom: 2rem;
  line-height: 1.625;
}

.site-footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: 2rem 1rem;
}

.site-footer__content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.site-footer__copyright p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.site-footer__copyright small {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}
