:root {
  --peach: #f2a25c;
  --ink: #261410;
  --blush: #d9beb8;
  --rose: #d90b0b;
  --rose-light: #f26b6b;
  --bg: #f5ebe8;
  --card-bg: #fffaf8;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Great Vibes", cursive;
  --shadow: 0 8px 24px rgb(38 20 16 / 12%);
  --radius: 12px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--blush) 45%, var(--bg) 100%);
  min-height: 100vh;
}

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

.container {
  width: min(100% - 1.5rem, var(--max-width));
  margin-inline: auto;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose);
  margin: 0 0 1.25rem;
}

/* Hero */
.hero {
  padding: 2rem 0 2.5rem;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hero__cover {
  margin: 0;
  max-width: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--peach);
}

.hero__author {
  margin: 0 0 0.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: var(--ink);
  opacity: 0.85;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--rose);
}

.hero__pitch {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.hero__content {
  text-align: center;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 4px 14px rgb(217 11 11 / 35%);
}

.btn--primary:hover {
  background: var(--rose-light);
}

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

.btn--outline {
  background: var(--card-bg);
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

/* Social */
.social {
  padding: 2rem 0;
  background: rgb(255 250 248 / 60%);
  border-block: 1px solid rgb(38 20 16 / 8%);
}

.social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--ink);
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.social__link:hover {
  background: var(--ink);
  color: #fff;
}

.social__link:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

.social__link:active {
  transform: scale(0.96);
}

.social__icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Reviews */
.reviews {
  padding: 2.5rem 0;
}

.reviews__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--peach);
}

.review-card__text {
  margin: 0.75rem 0 0.5rem;
  font-style: italic;
}

.review-card__name {
  margin: 0;
}

.review-card__person {
  font-weight: 700;
  color: var(--rose);
}

.review-card__role {
  font-weight: 500;
  font-size: 0.95em;
  color: var(--ink);
  opacity: 0.72;
}

/* Stars */
.stars {
  --star-size: 1.25rem;
  position: relative;
  display: inline-block;
  width: calc(var(--star-size) * 5);
  height: var(--star-size);
  font-size: var(--star-size);
  line-height: 1;
  letter-spacing: 0.05em;
}

.stars::before {
  content: "★★★★★";
  color: var(--blush);
}

.stars__fill {
  position: absolute;
  inset: 0;
  width: calc((var(--rating) / 5) * 100%);
  overflow: hidden;
  white-space: nowrap;
}

.stars__fill::before {
  content: "★★★★★";
  color: var(--peach);
}

/* Author */
.author {
  padding: 2.5rem 0 3rem;
}

.author__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.author__photo {
  margin: 0;
  flex-shrink: 0;
}

.author__photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--rose);
  box-shadow: var(--shadow);
}

.author__name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.author__bio p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* FAB */
.fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  padding: 0.9rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--rose);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgb(217 11 11 / 45%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
}

.fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab:hover {
  background: var(--rose-light);
}

.fab:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

/* Desktop */
@media (min-width: 768px) {
  .hero {
    padding: 3rem 0 3.5rem;
  }

  .hero__grid {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
  }

  .hero__content {
    text-align: left;
    flex: 1;
    max-width: 32rem;
  }

  .hero__cover {
    flex-shrink: 0;
  }

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

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

  .review-card {
    flex: 1;
  }

  .author__grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .author__photo img {
    width: 260px;
    height: 260px;
  }
}
