:root {
  --ink: #291b24;
  --cream: #fff8ed;
  --paper: #fffdf8;
  --berry: #9d3659;
  --berry-dark: #70213d;
  --rose: #f3b8c8;
  --gold: #f2c66d;
  --mint: #b9d9c3;
  --brown: #8d5c45;
  --brown-dark: #523326;
  --line: rgba(41, 27, 36, 0.15);
  --shadow: 0 22px 60px rgba(83, 40, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

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

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50% 50% 45% 45%;
  background: var(--berry);
  color: white;
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--berry);
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(42px, 8vw, 100px);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 70px 0 110px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.35rem, 7.5vw, 7.2rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.hero-intro {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(41, 27, 36, 0.74);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(41, 27, 36, 0.14);
}

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

.button-secondary {
  background: transparent;
}

.bear-card {
  position: relative;
  display: flex;
  min-height: 570px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 48% 48% 42% 42% / 38% 38% 20% 20%;
  background: var(--rose);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.bear-card::before {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(41, 27, 36, 0.25);
  border-radius: inherit;
  content: "";
}

.bear-card p {
  position: relative;
  z-index: 2;
  margin: 30px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.bear {
  position: relative;
  z-index: 2;
  width: 235px;
  height: 220px;
  border-radius: 48% 48% 44% 44%;
  background: var(--brown);
  box-shadow: inset 0 -16px 0 rgba(82, 51, 38, 0.12);
}

.ear {
  position: absolute;
  top: -35px;
  width: 82px;
  height: 82px;
  border: 17px solid var(--brown);
  border-radius: 50%;
  background: var(--rose);
}

.ear-left {
  left: 4px;
}

.ear-right {
  right: 4px;
}

.eye {
  position: absolute;
  top: 84px;
  width: 16px;
  height: 21px;
  border-radius: 50%;
  background: var(--ink);
}

.eye-left {
  left: 70px;
}

.eye-right {
  right: 70px;
}

.snout {
  position: absolute;
  right: 50%;
  bottom: 33px;
  width: 95px;
  height: 72px;
  border-radius: 50%;
  background: #dca789;
  transform: translateX(50%);
}

.snout::before {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 28px;
  height: 20px;
  border-radius: 50% 50% 55% 55%;
  background: var(--brown-dark);
  content: "";
  transform: translateX(-50%);
}

.snout i {
  position: absolute;
  bottom: 13px;
  left: 50%;
  width: 34px;
  height: 18px;
  border-bottom: 4px solid var(--brown-dark);
  border-radius: 50%;
  transform: translateX(-50%);
}

.spark {
  position: absolute;
  color: var(--berry-dark);
  font-size: 2.7rem;
}

.spark-one {
  top: 16%;
  right: 12%;
}

.spark-two {
  bottom: 20%;
  left: 12%;
  font-size: 1.8rem;
}

.intro-section {
  display: grid;
  grid-template-columns: 0.75fr 1.3fr;
  gap: 50px;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.intro-section .section-label {
  grid-column: 1 / -1;
  margin-bottom: -25px;
}

.intro-section p:last-child {
  max-width: 590px;
  color: rgba(41, 27, 36, 0.72);
  font-size: 1.15rem;
}

.cards-section {
  padding: 110px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

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

.feature-card {
  min-height: 345px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
}

.feature-card p {
  max-width: 28ch;
  color: rgba(41, 27, 36, 0.72);
}

.card-number {
  display: block;
  margin-bottom: 120px;
  font-size: 0.8rem;
  font-weight: 700;
}

.card-rose {
  background: var(--rose);
}

.card-gold {
  background: var(--gold);
}

.card-mint {
  background: var(--mint);
}

.contact-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 90px 0;
  padding: clamp(42px, 7vw, 82px);
  border-radius: 42px;
  background: var(--berry-dark);
  color: white;
}

.contact-section h2 {
  max-width: 730px;
  margin-bottom: 0;
}

.contact-section .section-label {
  color: var(--rose);
}

.button-light {
  flex: 0 0 auto;
  border-color: white;
  background: white;
  color: var(--berry-dark);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 0 56px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: rgba(41, 27, 36, 0.58);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    z-index: 5;
    display: none;
    width: min(240px, calc(100% - 40px));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 8px 10px;
  }

  .hero,
  .intro-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 50px;
  }

  .bear-card {
    min-height: 500px;
  }

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

  .feature-card {
    min-height: 270px;
  }

  .card-number {
    margin-bottom: 70px;
  }

  .contact-section,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-bottom: 80px;
  }

  h1 {
    font-size: 3.25rem;
  }

  .bear-card {
    min-height: 410px;
  }

  .bear {
    transform: scale(0.82);
  }

  .intro-section,
  .cards-section {
    padding: 80px 0;
  }

  .contact-section {
    margin: 55px 0;
    padding: 36px 26px;
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
