:root {
  color-scheme: light;
  --paper: #faf7f0;
  --white: #fffdf9;
  --ink: #212719;
  --muted: #565d50;
  --primary: #34462c;
  --primary-dark: #222f1e;
  --berry: #963546;
  --line: #dddcd1;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}
body > footer { margin-top: auto; }
img { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: .19em; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-block: 0; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 4px; }

.shell {
  width: min(76rem, calc(100% - 4rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  transform: translateY(-200%);
  background: var(--white);
  padding: .6rem 1rem;
}
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner, .site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem 2rem;
  min-height: 5rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem clamp(.8rem, 3vw, 2.25rem);
}
.site-footer nav a {
  padding-block: .45rem;
  color: inherit;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { text-decoration: underline; }
.site-name {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: inherit;
  font: bold clamp(1.08rem, 2.4vw, 1.45rem)/1.14 var(--serif);
  text-decoration: none;
}
.gift-mark {
  position: relative;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  background: var(--berry);
  color: #fff;
}
.gift-mark::before {
  content: "";
  position: absolute;
  inset: .76rem .43rem .38rem;
  border: 1.5px solid currentColor;
  border-radius: .1rem;
  background: linear-gradient(90deg, transparent 43%, currentColor 43% 57%, transparent 57%);
}
.gift-mark::after {
  content: "";
  position: absolute;
  top: .36rem;
  left: .7rem;
  width: .6rem;
  height: .42rem;
  border: 1.5px solid currentColor;
  border-radius: 60% 60% 25% 25%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 2.95rem;
  padding: .65rem 1.15rem;
  border-radius: .5rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--primary-dark); }

.home-page {
  --paper: #fff4f5;
  --white: #fff;
  --berry: #9b344a;
  --accent-red: #ff7888;
  --action-red: #b82943;
  --action-red-hover: #9f2339;
  --line: #ead8dc;
}
.home-page .site-name {
  font-family: var(--sans);
  font-weight: 850;
  letter-spacing: -.035em;
}
.home-page .gift-mark {
  transform: rotate(-7deg);
  box-shadow: 2px 3px 0 #f0a0ad;
}

.hero {
  overflow: hidden;
  background-color: var(--primary);
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .075) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .075) 1px, transparent 1px);
  background-size: 2.8rem 2.8rem;
  color: #fff;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(1.2rem, 3.2vw, 3rem);
  padding-block: clamp(1.65rem, 2.85vw, 2.85rem);
}
.hero h1 {
  font-size: clamp(1.65rem, 4.05vw, 3.25rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.072em;
}
.hero h1 > span { display: block; }
.hero__accent {
  color: var(--action-red);
  -webkit-text-stroke: clamp(1px, .16vw, 2px) #ffdfe5;
  paint-order: stroke fill;
}
.hero__word { white-space: nowrap; }
.hero__hat-letter, .hero__snow { position: relative; display: inline-block; }
.hero__snow::after {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 88% 42%, 78% 38%, 66% 44%, 52% 42%, 44% 49%, 35% 42%, 20% 45%, 10% 40%, 0 43%);
  color: #fff;
  -webkit-text-stroke: .025em #fff;
  text-shadow: 0 -.035em #fff;
  content: attr(data-letter) / "";
  pointer-events: none;
}
.hero__snow:nth-child(even)::after {
  clip-path: polygon(0 0, 100% 0, 100% 43%, 88% 41%, 77% 45%, 67% 40%, 57% 42%, 43% 41%, 29% 47%, 22% 42%, 11% 44%, 0 39%);
}
.hero__hat {
  position: absolute;
  z-index: 1;
  top: -.42em;
  left: -.085em;
  width: .91em;
  height: .55em;
  transform: rotate(-13deg);
  pointer-events: none;
}
.hero__hat::before {
  position: absolute;
  inset: 0 .065em .075em .045em;
  clip-path: polygon(0 100%, 12% 63%, 29% 25%, 46% 6%, 61% 5%, 79% 25%, 100% 65%, 86% 75%, 66% 48%, 78% 100%);
  background: linear-gradient(135deg, #e66a77 4%, var(--action-red) 64%, #891d33);
  content: "";
}
.hero__hat::after, .hero__pom {
  position: absolute;
  background: linear-gradient(#fff 54%, #e9eff4);
}
.hero__hat::after {
  right: .18em;
  bottom: 0;
  left: 0;
  height: .145em;
  border-radius: .09em;
  content: "";
}
.hero__pom {
  top: .235em;
  right: 0;
  width: .19em;
  height: .19em;
  border-radius: 50%;
}
.hero .hero__button {
  min-height: 3.3rem;
  margin-top: clamp(.9rem, 1.9vw, 1.45rem);
  padding-inline: 1.25rem;
  border: 2px solid var(--primary-dark);
  border-radius: .78rem;
  background: var(--action-red);
  box-shadow: 3px 4px 0 var(--primary-dark);
  color: #fff;
  font-weight: 850;
}
.hero .hero__button:hover { background: var(--action-red-hover); }
.hero .button:focus-visible, .site-footer a:focus-visible { outline-color: #fff; }

.hero__art {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 27rem);
  aspect-ratio: 1.43;
}
.hero__art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% 12% 5% 15%;
  transform: rotate(-19deg);
  border: 1px dashed rgb(255 137 151 / .38);
  border-radius: 50%;
}
.hero__spark {
  position: absolute;
  color: var(--accent-red);
  font-size: clamp(.9rem, 1.9vw, 1.55rem);
  line-height: 1;
}
.hero__spark--top { top: 11%; left: 14%; }
.hero__spark--bottom { right: 7%; bottom: 8%; }

.gift-note {
  position: absolute;
  top: 7%;
  right: 4%;
  width: 57%;
  padding: 6.5% 6% 5% 8.6%;
  transform: rotate(7deg);
  border-left: .42rem solid var(--accent-red);
  border-radius: .98rem;
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 1.75rem, #efe2e5 1.75rem, #efe2e5 calc(1.75rem + 1px));
  box-shadow: 7px 9px 0 rgb(12 23 9 / .42);
  color: var(--ink);
}
.gift-note__label {
  display: block;
  font-size: clamp(.58rem, .83vw, .72rem);
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gift-note strong {
  display: block;
  margin-block: .58em .48em;
  font-size: clamp(1.1rem, 2.15vw, 1.72rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.05em;
}
.gift-note ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(.63rem, .86vw, .77rem);
  line-height: 1.7;
}
.gift-note li::before {
  content: "✓";
  margin-right: .48em;
  color: var(--primary);
  font-weight: 850;
}

.gift-card {
  position: absolute;
  z-index: 1;
  bottom: 6%;
  left: 3%;
  width: 43%;
  padding: 4.5% 5% 5%;
  transform: rotate(-9deg);
  border: 1px solid var(--line);
  border-radius: .98rem;
  background: #fff;
  box-shadow: 6px 9px 0 rgb(12 23 9 / .5);
  color: var(--ink);
}
.gift-card strong {
  display: block;
  font-size: clamp(.75rem, 1.22vw, 1.07rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -.03em;
}
.gift-stack {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.14;
  margin-bottom: 8%;
}
.gift-stack::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6% -3% 0;
  border-radius: 50%;
  background: #fae9ed;
}
.parcel, .gift-bow { position: absolute; }
.parcel {
  border: 1px solid rgb(36 29 24 / .24);
  border-radius: .22rem;
  box-shadow: inset 0 -.3rem 0 rgb(55 29 24 / .13), 2px 3px 0 rgb(52 35 25 / .10);
}
.parcel::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 43%;
  width: 15%;
  background: linear-gradient(90deg, #a92943, #f6808e 42%, #b53550);
}
.parcel--moss {
  bottom: 10%;
  left: 8%;
  width: 79%;
  height: 28%;
  transform: rotate(5deg);
  background: repeating-linear-gradient(48deg, #506c38 0, #506c38 .45rem, #65824a .45rem, #65824a .53rem);
}
.parcel--rose {
  bottom: 35%;
  left: 21%;
  width: 67%;
  height: 27%;
  transform: rotate(-4deg);
  background: #f5aeb9 radial-gradient(#b65163 1px, transparent 1.5px) 0 0 / .65rem .65rem;
}
.parcel--berry {
  bottom: 60%;
  left: 18%;
  width: 56%;
  height: 22%;
  transform: rotate(5deg);
  background: linear-gradient(10deg, #a44151, #c65561);
}
.parcel--berry::after { background: linear-gradient(90deg, #e7a6b0, #fff0f3 42%, #e7a6b0); }
.gift-bow {
  bottom: 80%;
  left: 31%;
  width: 28%;
  height: 12%;
  transform: rotate(5deg);
}
.gift-bow::before, .gift-bow::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 54%;
  height: 100%;
  border: clamp(2px, .36vw, 5px) solid #af4b55;
}
.gift-bow::before { left: 0; transform: rotate(17deg); border-radius: 75% 60% 20% 75%; }
.gift-bow::after { right: 0; transform: rotate(-17deg); border-radius: 60% 75% 75% 20%; }

.catalog {
  scroll-margin-top: 1.25rem;
  padding-block: clamp(2.8rem, 6.7vw, 5.25rem) clamp(3rem, 8vw, 6rem);
}
.catalog__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.35rem;
}
.catalog h2 {
  color: var(--ink);
  font-size: clamp(1.88rem, 3.7vw, 3.2rem);
  font-weight: 850;
  line-height: 1.11;
  letter-spacing: -.055em;
}
.catalog__heading p { margin-top: .55rem; color: var(--muted); }
.catalog__search { width: 20rem; max-width: 100%; }
.catalog__search label {
  display: block;
  margin-bottom: .3rem;
  font-size: .84rem;
  font-weight: 750;
}
.catalog__search input {
  width: 100%;
  min-height: 2.9rem;
  padding: .53rem .8rem;
  border: 1px solid #a8ae9e;
  border-radius: .56rem;
  background: var(--white);
  color: var(--ink);
}
.catalog__search input::placeholder { color: var(--muted); }

.catalog__controls { margin-bottom: 1.35rem; }
.filters { display: flex; flex-wrap: wrap; gap: .46rem; }
.filters button {
  min-height: 2.55rem;
  padding: .44rem .72rem;
  border: 1px solid #d9ddd1;
  border-radius: .65rem;
  background: var(--white);
  color: var(--primary);
  font-size: .83rem;
  font-weight: 750;
}
.filters button:hover { border-color: var(--primary); }
.filters button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--white); }
.catalog__count { margin-top: .76rem; color: var(--muted); font-size: .85rem; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand-card { display: flex; min-width: 0; --brand-background: #e4e8f6; }
.brand-card[data-category="tech"] { --brand-background: #e3edf8; }
.brand-card[data-category="style"] { --brand-background: #fae4da; }
.brand-card[data-category="beauty"] { --brand-background: #f6e2e9; }
.brand-card[data-category="home"] { --brand-background: #def0e6; }
.brand-card[data-category="kids"] { --brand-background: #ebe2f9; }
.brand-card[data-category="sport"] { --brand-background: #fbe0de; }

.brand-card__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.18rem;
  background: var(--white);
  box-shadow: 0 3px 0 rgb(37 42 32 / .05);
  color: var(--ink);
  text-decoration: none;
}
.brand-card__body:hover { border-color: #9ba68f; }
.brand-card__body:focus-visible { outline-offset: 2px; }
.brand-card__media {
  display: grid;
  min-height: clamp(7.4rem, 13.5vw, 10.7rem);
  padding: .78rem;
  place-items: center;
  background: var(--brand-background);
}
.brand-card__logo {
  display: grid;
  width: min(77%, 13rem);
  aspect-ratio: 1.84;
  padding: .76rem 1.04rem;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}
.brand-card__logo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.brand-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.14rem 1.2rem .9rem;
}
.brand-card h3 {
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.brand-card p {
  margin-block: .48rem .86rem;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.46;
}
.brand-card__cta {
  margin-top: auto;
  padding-top: .69rem;
  border-top: 1px solid var(--line);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 850;
}
.brand-card__body:hover .brand-card__cta { text-decoration: underline; }
.empty-state {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--white);
  color: var(--muted);
}

.prose { width: min(46rem, calc(100% - 4rem)); margin: clamp(2.8rem, 8vw, 6rem) auto; }
.prose h1 {
  color: var(--primary);
  font-family: var(--serif);
  font-size: clamp(2.45rem, 6.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.prose h2 { margin-top: 1.7rem; color: var(--primary); font-size: 1.24rem; line-height: 1.35; }
.prose p { margin-top: .9rem; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.prose .button { max-width: 100%; margin-top: 1rem; overflow-wrap: anywhere; }
.site-footer { padding-block: 1.15rem; background: var(--primary-dark); color: #fff; }
.site-footer nav { column-gap: clamp(.8rem, 2vw, 1.75rem); }

@media (max-width: 58rem) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  .shell, .prose { width: calc(100% - 2rem); }
  .site-header__inner, .site-footer__inner {
    flex-wrap: wrap;
    gap: .5rem 1.1rem;
    min-height: 0;
    padding-block: .85rem;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding-block: 1.55rem .95rem;
  }
  .hero h1 { font-size: clamp(1.1rem, 7.55vw, 2.95rem); }
  .hero__art {
    width: min(100%, 20rem);
    aspect-ratio: 1.5;
  }
  .gift-note { top: 6%; }
  .gift-card { left: 4%; width: 42%; }
  .gift-stack { aspect-ratio: 1.28; }
  .catalog__heading { align-items: start; }
  .catalog__search { width: 100%; }
  .brand-card__body { border-radius: .88rem; }
  .brand-card__logo { width: min(90%, 12rem); padding: .56rem .69rem; }
  .brand-card__content { padding: .8rem .73rem .65rem; }
  .brand-card p { margin-block: .4rem .64rem; font-size: .82rem; }
  .brand-card__cta { padding-top: .56rem; font-size: .78rem; }
}

@media (max-width: 22rem) {
  .brand-grid { grid-template-columns: 1fr; }
  .brand-card__logo { width: min(67%, 12rem); }
}

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