@font-face {
  font-family: Rubik;
  src: url('./assets/fonts/Rubik_500Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Rubik;
  src: url('./assets/fonts/Rubik_700Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Rubik, sans-serif;
  font-weight: 500;
  color: #302c30;
  background: #fffdfa;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --cream: #fffdfa;
  --ink: #302c30;
  --muted: #78675c;
  --orange: #f4773a;
  --orange-dark: #d65e2d;
  --video-aspect: calc(498 / 972);
  --phone-inset: 9px;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a[aria-disabled='true'] { cursor: default; }
a:focus-visible { outline: 3px solid var(--orange-dark); outline-offset: 5px; }

.site {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  padding: max(24px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left));
}

.background-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.hero {
  display: grid;
  min-height: 0;
  min-width: 0;
  place-items: center;
  padding: 24px 0;
}

.hero-stage {
  --scene-height: min(660px, calc(100svh - 112px - max(24px, env(safe-area-inset-top))
    - max(20px, env(safe-area-inset-bottom))), calc(55vw + 70px));
  display: grid;
  grid-template-columns: max(min(280px, 42vw), calc((var(--scene-height) - 70px) * .77))
    calc((var(--scene-height) - 2 * var(--phone-inset)) * var(--video-aspect) + 2 * var(--phone-inset));
  align-items: stretch;
  column-gap: clamp(48px, 10vw, 160px);
  height: var(--scene-height);
}

.brand {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  gap: clamp(12px, 2.4vh, 24px);
  min-height: 0;
  height: 100%;
}

.wordmark { width: 100%; margin: 0; align-self: start; }
.wordmark img { width: 100%; height: auto; }
.buddy { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center bottom; }

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 19px;
  min-height: 44px;
  color: var(--muted);
}
.site-footer small { font-size: 12px; font-weight: 500; white-space: nowrap; }
.social-links { display: flex; align-items: center; gap: 0; }
.social-links button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease;
}
.social-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
  mask: var(--social-icon) center / contain no-repeat;
}
.social-icon-instagram { --social-icon: url('./assets/icons/instagram.svg'); }
.social-icon-tiktok { --social-icon: url('./assets/icons/tiktok.svg'); }
.social-links button:focus-visible { outline: none; color: var(--orange-dark); }
@media (hover: hover) {
  .social-links button:hover { color: var(--orange); }
}
.social-links button:active { color: var(--orange-dark); }
.legal-links { display: flex; align-items: center; gap: 16px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.legal-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
