@font-face {
  font-family: "Happy Time Footer";
  src: url("art/nunito.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
}

.ht-footer {
  position: relative;
  background: #f4eee3;
  color: #5e2a40;
  font: 500 14px/1.45 "Happy Time Footer", "Arial Rounded MT Bold", system-ui, sans-serif;
  text-align: left;
  padding: 26px 0 calc(28px + env(safe-area-inset-bottom));
}

.ht-footer__inner {
  --footer-brand-size: clamp(25.5px, 3.1vw, 39.95px);
  --footer-side: max(132px, calc(var(--footer-brand-size) * 5.6));
  --footer-gap: clamp(12px, 3.7vw, 24px);
  width: min(calc(100% - 32px), 1080px);
  margin-inline: auto;
}

.ht-footer__identity, .ht-footer__links {
  display: grid;
  grid-template-columns: var(--footer-side) minmax(0, 1fr);
  column-gap: var(--footer-gap);
}

.ht-footer__identity {
  align-items: baseline;
  row-gap: 2px;
}

.ht-footer a {
  color: inherit;
  text-decoration: none;
}

.ht-footer .ht-footer__brand {
  grid-column: 1 / -1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: .2em;
  min-height: 34px;
  white-space: nowrap;
  color: #321527;
  font-size: var(--footer-brand-size);
  font-weight: 1000;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-shadow: 0 .025em 0 #200d1a22, 0 .045em .04em #381e3128;
}

.ht-footer__brand span:first-child { transform: rotate(-1.8deg) translateY(-.025em); }
.ht-footer__brand span:last-child { transform: rotate(1.6deg) translateY(.025em); }

.ht-footer__phone {
  justify-self: start;
  min-height: 36px;
  padding-block: 8px;
  white-space: nowrap;
  font-weight: 800;
}

.ht-footer__company {
  margin: 0;
  font-size: clamp(11.5px, calc(3.125vw + 1.5px), 14px);
}

.ht-footer__links {
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #d9c6b9;
}

.ht-footer__links a {
  min-height: 44px;
  padding-block: 9px;
  font-weight: 750;
}

.ht-footer :is(.ht-footer__links a, .ht-footer__phone):is(:hover, :focus-visible) {
  color: #8a1e3c;
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 710px) {
  .ht-footer__inner { --footer-brand-size: clamp(25.5px, 6.3vw, 29px); }
}

@media (max-width: 360px) {
  .ht-footer__inner { --footer-brand-size: 23px; }
}
