:root {
  --green: #344b2f;
  --green-dark: #263b25;
  --moss: #5b6a2d;
  --ink: #161613;
  --muted: #6d675d;
  --cream: #fbf8f3;
  --sand: #f2ece3;
  --line: #e3dbd0;
  --accent: #e79457;
  --star: #f59a18;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
svg {
  display: block;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.container {
  width: min(1344px, calc(100% - 108px));
  margin-inline: auto;
}

.top-strip {
  border-bottom: 1px solid var(--line);
  background: #f6f0e8;
  font-size: 14px;
}

.top-strip__inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.heart {
  color: var(--accent);
  font-size: 18px;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.top-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.top-actions svg,
.promises svg,
.steps svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cart-button {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  line-height: 1;
}

.site-header {
  background: var(--cream);
  border-bottom: 1px solid #e8e1d7;
}

.header-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--green);
}

.brand-mark svg {
  width: 54px;
  height: 54px;
  fill: currentColor;
}

.brand strong {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
}

.brand strong span {
  color: #9b8b70;
  font-weight: 500;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: #777066;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 61px;
  margin-right: 84px;
  font-size: 15px;
  white-space: nowrap;
}

.main-nav a {
  padding-block: 12px;
}

.chevron {
  margin-left: 7px;
  color: var(--green);
  font-size: 16px;
}

.hero {
  position: relative;
  min-height: 506px;
  overflow: hidden;
  background: #e7d6c1;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 248, 243, 0.93) 0%, rgba(251, 248, 243, 0.65) 26%, rgba(251, 248, 243, 0.08) 58%, rgba(251, 248, 243, 0) 100%);
}

.hero__content {
  position: relative;
  min-height: 506px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 0 43px 97px;
}

.hero h1,
.tribute h2,
.products h2,
.testimonials h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 480px;
  font-size: 58px;
  line-height: 1.13;
}

.script {
  margin: 6px 0 27px;
  color: var(--green);
  font-family: "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 62px;
  line-height: 0.96;
}

.script span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  vertical-align: 9px;
}

.hero__copy {
  margin: 0 0 27px;
  font-size: 20px;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 61px;
  padding: 0 34px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.button--primary {
  background: var(--green);
  color: var(--white);
}

.button--ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.hero__actions {
  display: flex;
  gap: 14px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 38px;
  padding: 41px 0 44px;
  text-align: center;
}

.categories article {
  min-width: 0;
}

.category-image {
  width: 142px;
  height: 142px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 50%;
  background: #eadfce;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-image--icon {
  display: grid;
  place-items: center;
  color: var(--green);
  background: #efe7dc;
}

.category-image--icon svg {
  width: 82px;
  height: 82px;
  fill: #fdfcf9;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.categories h2 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 800;
}

.categories p {
  margin: 0;
  color: #3e3c37;
  font-size: 14px;
}

.tribute {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.25fr;
  min-height: 572px;
  overflow: hidden;
  border-radius: 18px;
  background: #f1eadf;
}

.tribute__text {
  padding: 45px 48px 34px;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: #2f302c;
  font-size: 13px;
  text-transform: uppercase;
}

.tribute h2 {
  color: var(--green);
  max-width: 420px;
  font-size: 39px;
  line-height: 1.06;
}

.tribute__copy {
  max-width: 382px;
  margin: 27px 0 24px;
  font-size: 16px;
  line-height: 1.8;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0 0 41px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 13px;
}

.steps svg {
  flex: 0 0 auto;
  color: var(--green);
}

.tribute__cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.tribute__cta .button {
  min-height: 59px;
  padding-inline: 28px;
}

.loved {
  display: flex;
  align-items: center;
}

.loved span {
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  margin-left: -8px;
  border: 3px solid #f1eadf;
  border-radius: 50%;
}

.loved span:first-child {
  margin-left: 0;
}

.loved img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loved p {
  margin: 0 0 0 11px;
  color: #4e493f;
  font-size: 12px;
  white-space: nowrap;
}

.tribute__visual {
  position: relative;
  min-height: 572px;
}

.tribute__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-card {
  position: absolute;
  top: 62px;
  left: -76px;
  width: 194px;
  min-height: 253px;
  padding: 13px 13px 17px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 13px 32px rgba(52, 39, 24, 0.14);
  text-align: center;
}

.before-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.before-card strong {
  display: block;
  margin-top: 13px;
  font-size: 17px;
}

.arrow {
  position: absolute;
  top: 320px;
  left: -44px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  transform: rotate(20deg);
}

.after-label {
  position: absolute;
  right: 27px;
  bottom: 21px;
  padding: 6px 13px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  font-weight: 800;
}

.products {
  padding: 47px 0 57px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.products h2,
.testimonials h2 {
  font-size: 32px;
  line-height: 1.1;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.section-head span {
  font-size: 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-card > img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  background: #d7c7b3;
}

.product-card__body {
  padding: 18px 18px 20px;
}

.product-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  min-height: 40px;
}

.rating {
  margin: 0;
  color: var(--star);
  font-size: 14px;
  letter-spacing: 0;
}

.rating span {
  color: #1b1b17;
  font-size: 12px;
}

.product-card strong {
  display: block;
  margin-top: 12px;
  font-size: 17px;
}

.testimonials {
  padding: 0 0 51px;
}

.testimonials > h2 {
  margin-bottom: 27px;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.testimonial-card {
  position: relative;
  min-height: 232px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 27px 30px 30px;
}

.testimonial-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card strong {
  display: block;
  font-size: 12px;
}

.testimonial-card__top .rating {
  font-size: 13px;
}

.testimonial-card__top .rating span {
  color: #d7c8b7;
}

.doodle {
  margin-left: auto;
  color: var(--accent);
  font-family: "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 54px;
  line-height: 1;
}

.doodle--green {
  color: var(--moss);
}

.testimonial-card > p {
  max-width: 230px;
  margin: 25px 0 0 47px;
  font-size: 13px;
  line-height: 2;
}

.quote {
  position: absolute;
  left: 22px;
  bottom: 13px;
  color: #d6cab8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  line-height: 1;
}

.pet {
  position: absolute;
  right: -18px;
  bottom: -10px;
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: 70% 68%;
  mix-blend-mode: multiply;
}

.pet--cat {
  width: 160px;
  height: 160px;
  right: 0;
}

.pet--dog-large {
  width: 168px;
  height: 168px;
  right: -18px;
}

.promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 50px;
}

.promises article {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 105px;
  border-radius: 8px;
  background: #f5efe7;
  padding: 25px 31px;
}

.promises svg {
  width: 38px;
  height: 38px;
  color: var(--ink);
}

.promises strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.promises p {
  margin: 0;
  color: #2d2d28;
  font-size: 14px;
}

.footer {
  background: var(--green-dark);
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr 0.72fr 0.82fr 1.18fr;
  gap: 60px;
  padding: 58px 0 48px;
}

.brand--footer {
  color: var(--white);
  min-width: 0;
}

.brand--footer .brand-mark,
.brand--footer strong,
.brand--footer small {
  color: var(--white);
}

.brand--footer strong {
  font-size: 34px;
}

.brand--footer small {
  font-size: 13px;
}

.footer__brand > p,
.newsletter p {
  margin: 27px 0 0;
  max-width: 292px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.75;
}

.socials {
  display: flex;
  gap: 25px;
  margin-top: 28px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: var(--white);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.footer nav,
.newsletter {
  display: flex;
  flex-direction: column;
}

.footer h2 {
  margin: 0 0 25px;
  font-size: 17px;
}

.footer nav a {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.newsletter p {
  margin: 0 0 28px;
}

.newsletter form {
  display: grid;
  gap: 14px;
}

.newsletter input,
.newsletter button {
  width: 100%;
  min-height: 64px;
  border-radius: 8px;
  font-size: 15px;
}

.newsletter input {
  border: 0;
  background: var(--white);
  padding: 0 22px;
  color: var(--ink);
}

.newsletter button {
  background: var(--moss);
  color: var(--white);
  font-weight: 700;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom div {
  display: flex;
  gap: 44px;
}

.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;
}

@media (max-width: 1180px) {
  .container {
    width: min(100% - 48px, 1080px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
    gap: 18px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 24px;
    margin-right: 0;
  }

  .hero__content {
    padding-left: 32px;
  }

  .categories,
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .tribute__visual {
    min-height: 480px;
  }

  .before-card {
    left: 32px;
  }

  .arrow {
    left: 224px;
  }

  .testimonial-grid,
  .promises,
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 680px);
  }

  .top-strip__inner {
    min-height: 46px;
  }

  .top-actions {
    display: none;
  }

  .brand strong {
    font-size: 32px;
  }

  .brand-mark,
  .brand-mark svg {
    width: 43px;
    height: 43px;
  }

  .main-nav {
    gap: 14px 22px;
    font-size: 13px;
  }

  .hero {
    min-height: 590px;
  }

  .hero > img {
    object-position: 68% center;
  }

  .hero__veil {
    background: linear-gradient(180deg, rgba(251, 248, 243, 0.92) 0%, rgba(251, 248, 243, 0.67) 45%, rgba(251, 248, 243, 0.2) 100%);
  }

  .hero__content {
    min-height: 590px;
    justify-content: flex-start;
    padding: 46px 0 0;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 50px);
  }

  .script {
    font-size: clamp(42px, 12vw, 56px);
  }

  .hero__copy {
    font-size: 17px;
  }

  .hero__actions,
  .tribute__cta,
  .footer__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .categories,
  .product-grid,
  .testimonial-grid,
  .promises,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .categories {
    gap: 28px;
  }

  .tribute__text {
    padding: 34px 24px;
  }

  .tribute h2,
  .products h2,
  .testimonials h2 {
    font-size: 32px;
  }

  .tribute__visual {
    min-height: 420px;
  }

  .before-card {
    top: 26px;
    left: 18px;
    width: 150px;
    min-height: 195px;
  }

  .arrow {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .testimonial-card > p {
    max-width: 68%;
    margin-left: 0;
  }

  .pet {
    width: 140px;
    height: 140px;
  }

  .footer__bottom div {
    gap: 20px;
  }
}
