:root {
  --ink: #1d1d1b;
  --paper: #fff;
  --cream: #f3efe9;
  --cream-deep: #e8e0d6;
  --muted: #5d5954;
  --line: rgba(29, 29, 27, .15);
  --party: #f1dfc7;
  --care: #dfe8df;
  --atelier: #f4d3d2;
  --shell: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body.hupsa-family-site {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.family-shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 18px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  top: 16px;
}

.announcement {
  padding: 10px 24px;
  color: #49443f;
  background: var(--cream);
  font-family: "Figtree", sans-serif;
  font-size: .78rem;
  text-align: center;
  letter-spacing: .04em;
}

.family-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.family-logo img {
  display: block;
  width: 210px;
  height: auto;
}

.header-link {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 400;
  text-decoration: none;
}

.header-link span {
  margin-left: 7px;
}

.family-hero {
  background: var(--cream);
}

.hero-inner {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 90px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}

.eyebrow {
  display: block;
  margin-bottom: 20px;
  color: #4e4944;
  font-family: "Figtree", sans-serif;
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
}

h1 {
  max-width: 900px;
  font-size: 4.6rem;
}

h1 em {
  font-weight: 400;
}

h2 {
  font-size: clamp(2.45rem, 4vw, 4.2rem);
}

.hero-intro {
  max-width: 520px;
}

.hero-intro p {
  margin: 0 0 30px;
  color: #403c38;
  font-size: 1.12rem;
}

.family-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 27px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: .93rem;
  font-weight: 400;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.family-button:hover {
  color: var(--ink);
  background: transparent;
}

.brands-section {
  padding: 110px 0 120px;
}

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

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.brand-card {
  position: relative;
  min-height: 440px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  padding: 52px;
  color: var(--ink);
  background: var(--cream);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.brand-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(36, 31, 27, .12);
}

.brand-kindermode {
  background: #eee9e3;
}

.brand-party {
  background: var(--party);
}

.brand-care {
  background: var(--care);
}

.brand-atelier {
  background: var(--atelier);
}

.brand-card-logo {
  display: flex;
  min-height: 150px;
  align-items: center;
}

.brand-card-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 290px;
  max-height: 118px;
}

.brand-kindermode .brand-card-logo img {
  width: 275px;
}

.brand-card-copy {
  display: block;
  max-width: 520px;
}

.brand-name {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.brand-description {
  display: block;
  max-width: 480px;
  color: #403c38;
  font-family: "Figtree", sans-serif;
  font-size: 1.05rem;
}

.brand-cta {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: .92rem;
  font-weight: 500;
}

.brand-cta span {
  margin-left: 6px;
}

.family-note {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
  margin-top: 16px;
  padding: 72px 54px;
  background: #f7f4ef;
}

.family-note h2 {
  max-width: 650px;
  font-size: 3rem;
}

.family-note p {
  max-width: 650px;
  margin: 0;
  color: #403c38;
  font-size: 1.08rem;
}

.family-footer {
  padding: 48px 0;
  color: #d9d5d0;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-inner img {
  display: block;
  width: 140px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-inner p {
  margin: 0;
  font-family: "Figtree", sans-serif;
  font-size: .82rem;
}

.hupsa-family-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--cream);
  text-align: center;
}

.hupsa-family-404 main {
  max-width: 720px;
}

.hupsa-family-404 img {
  width: 240px;
  height: auto;
  margin-bottom: 54px;
}

.hupsa-family-404 h1 {
  font-size: 3.2rem;
}

.hupsa-family-404 p {
  margin: 22px 0 30px;
}

@media (max-width: 900px) {
  .family-shell {
    width: min(calc(100% - 40px), var(--shell));
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .hero-intro {
    max-width: 680px;
  }

  .brand-card {
    min-height: 400px;
    padding: 40px;
  }

  .family-note {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 680px) {
  .family-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .announcement {
    padding: 8px 14px;
    font-size: .7rem;
  }

  .header-inner {
    min-height: 78px;
  }

  .family-logo img {
    width: 142px;
  }

  .header-link {
    font-size: .76rem;
  }

  .hero-inner {
    gap: 26px;
    padding-top: 50px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-intro p {
    font-size: 1rem;
  }

  .brands-section {
    padding: 72px 0 80px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .brand-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand-card {
    min-height: 350px;
    padding: 30px 26px;
  }

  .brand-card-logo {
    min-height: 130px;
  }

  .brand-card-logo img {
    max-width: 245px;
    max-height: 94px;
  }

  .brand-kindermode .brand-card-logo img {
    width: 225px;
  }

  .brand-name {
    font-size: 1.7rem;
  }

  .brand-description {
    font-size: .98rem;
  }

  .family-note {
    margin-top: 12px;
    padding: 46px 26px;
  }

  .family-note h2 {
    font-size: 2.35rem;
  }

  .family-note p {
    font-size: 1rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .brand-card,
  .family-button {
    transition: none;
  }
}
