/* SheyShey. One typeface. A looping dance video stays fixed behind the page and the
   content floats over it as liquid-glass panels. No framework, no external requests. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Great Vibes: formal calligraphic script, used only for her name. */
@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f4f1ec;
  --paper: #0e0d0c;
  --muted: #cfc9c1;
  --rule: #34302c;
  --sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  --pad: clamp(20px, 5vw, 64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

svg {
  fill: currentColor;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}

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

/* ---------- stage: the dance video, fixed behind everything ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  margin: 0;
  height: 100vh;
  height: 100lvh;
  background: var(--paper);
}

.stage__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Her photo fades in when the video ends (and is shown straight away for reduced motion). */
.stage__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.stage.show-photo .stage__photo {
  opacity: 1;
}

/* Fixed shade: keeps the name (top) and lower screen readable over the video. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(10 9 8 / 0.55) 0%, rgb(10 9 8 / 0) 26%, rgb(10 9 8 / 0) 55%, rgb(10 9 8 / 0.6) 100%);
}

/* ---------- pause / play (WCAG 2.2.2: moving content can be paused) ---------- */
.motion-toggle {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}

.motion-toggle[hidden] {
  display: none;
}

.motion-toggle svg {
  width: 18px;
  height: 18px;
}

.motion-toggle .i-play,
.motion-toggle.is-paused .i-pause {
  display: none;
}

.motion-toggle.is-paused .i-play {
  display: block;
}

/* ---------- hero: first screen, name over the video ---------- */
.hero {
  min-height: 82vh;
  min-height: 82svh;
  padding: calc(28px + env(safe-area-inset-top)) var(--pad) 0;
  color: #fff;
}

/* ---------- sheet: the glass panels ---------- */
.sheet {
  position: relative;
  padding: 0 12px 32px;
}

.sheet > * {
  max-width: 600px;
  margin-inline: auto;
}

/* ---------- liquid glass ---------- */
.links,
.booking,
.instagram,
.tiktok,
.youtube,
.motion-toggle {
  background: linear-gradient(140deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02) 45%), rgb(18 16 14 / 0.65);
  -webkit-backdrop-filter: blur(22px) saturate(1.8) brightness(0.6);
  backdrop-filter: blur(22px) saturate(1.8) brightness(0.6);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.32),
    inset 1px 0 0 rgb(255 255 255 / 0.1),
    inset 0 -1px 0 rgb(255 255 255 / 0.05),
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    0 20px 50px rgb(0 0 0 / 0.35);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .links,
  .booking,
  .instagram,
  .tiktok,
  .youtube,
  .motion-toggle {
    background: rgb(18 16 14 / 0.94);
  }
}

.links,
.booking,
.instagram,
.tiktok,
.youtube {
  position: relative;
  margin-top: 14px;
  padding: 22px 20px;
  border-radius: 24px;
}

/* ---------- intro ---------- */
.name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 19vw, 8.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.styles {
  margin: 12px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.styles span {
  color: var(--muted);
  padding: 0 0.3em;
}

/* ---------- links ---------- */
.links {
  padding-block: 4px;
}

.links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li {
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.links li:last-child {
  border-bottom: 0;
}

.links a {
  display: grid;
  grid-template-columns: 22px 1fr auto 18px;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  text-decoration: none;
}

.links__icon {
  width: 22px;
  height: 22px;
}

.links__name {
  font-size: 1.125rem;
  font-weight: 500;
}

.links__handle {
  color: var(--muted);
  font-size: 0.9375rem;
}

.links__arrow {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease-out;
}

.links a:hover .links__name {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.links a:hover .links__arrow {
  transform: translate(2px, -2px);
}

/* ---------- booking ---------- */


.label {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.button {
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 8px 24px rgb(0 0 0 / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease-out;
}

.button:hover {
  background: #d9d3ca;
}

.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.note a {
  color: var(--ink);
  text-underline-offset: 3px;
}

/* ---------- TikTok card (her latest videos) ---------- */
.instagram,
.tiktok {
  container-type: inline-size;
}

.instagram__box,
.tiktok__box,
.youtube__frame {
  overflow: hidden;
  border-radius: 14px;
}

/* Instagram's profile embed: fixed header + a 3x2 grid of square tiles + footer
   (measured 2026-11-28: 196px + 2/3 width, header grows by 27px from ~481px). */
.instagram__box {
  position: relative;
  background: var(--rule);
}

.instagram__frame {
  position: relative;
  display: block;
  width: 100%;
  height: calc(196px + 66.667cqi);
  border: 0;
  background: transparent;
}

@container (min-width: 481px) {
  .instagram__frame {
    height: calc(223px + 66.667cqi);
  }
}

/* TikTok's card has fixed heights per width band (measured 2026-11-27). */
.tiktok__box {
  position: relative;
  background: var(--rule);
}

/* Shown while TikTok loads, and stays if a tracker blocker stops it. */
.instagram__placeholder,
.tiktok__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 500;
}

.instagram__placeholder svg,
.tiktok__placeholder svg {
  width: 40px;
  height: 40px;
}

.instagram__placeholder,
.tiktok__placeholder {
  padding: 24px;
  text-align: center;
  text-decoration: none;
  pointer-events: none;
}

.tiktok__blocked {
  display: none;
}

/* site.js adds .is-blocked when the browser refuses to load TikTok. */
.tiktok__box.is-blocked .tiktok__frame {
  display: none;
}

.tiktok__box.is-blocked .tiktok__placeholder {
  position: static;
  min-height: 367px;
  color: var(--ink);
  pointer-events: auto;
  cursor: pointer;
}

.tiktok__box.is-blocked .tiktok__blocked {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 8px;
}

.tiktok__cta {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--paper);
  transition: background-color 160ms ease-out;
}

.tiktok__placeholder:hover .tiktok__cta {
  background: #d9d3ca;
}


.tiktok__box.is-blocked + .tiktok__note {
  display: none;
}

.tiktok__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 457px;
  border: 0;
  background: transparent;
}

@container (max-width: 374.98px) {
  .tiktok__frame {
    height: 367px;
  }
}

@container (min-width: 375px) and (max-width: 419.98px) {
  .tiktok__frame {
    height: 433px;
  }
}

/* ---------- YouTube (uploads playlist: newest first) ---------- */

.youtube__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--rule);
}

/* ---------- footer ---------- */
.footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer p {
  margin: 0;
}

/* ---------- 404 ---------- */
.notfound {
  display: grid;
  place-content: center;
  gap: 16px;
  min-height: 100vh;
  padding: var(--pad);
}

.notfound p {
  margin: 0;
}

/* ---------- desktop: video in a rounded glass frame on the left, panels on the right,
   over a blurred, darkened still of the video ---------- */
@media (min-width: 960px) {
  :root {
    --card-w: min(calc((100vh - 80px) * 0.5625), 40vw);
    --gap: 64px;
    /* Video and panels sit as one centred group; the video starts at least 40px in. */
    --stage-left: max(40px, calc((100vw - var(--card-w) - var(--gap) - 600px) / 2));
  }

  body::before {
    content: "";
    position: fixed;
    inset: -80px;
    z-index: -2;
    background: var(--paper) url("../video/dance-poster.jpg") center / cover no-repeat;
    filter: blur(70px) brightness(0.4) saturate(1.5);
  }

  .stage {
    top: 40px;
    bottom: 40px;
    left: var(--stage-left);
    right: auto;
    width: var(--card-w);
    height: auto;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
  }

  /* The frame's glass edge sits above the video. */
  .stage::after {
    background: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), inset 0 0 0 1px rgb(255 255 255 / 0.16);
  }

  .motion-toggle {
    top: auto;
    right: auto;
    bottom: 56px;
    left: calc(var(--stage-left) + 16px);
  }

  .hero,
  .sheet {
    margin-left: calc(var(--stage-left) + var(--card-w) + var(--gap));
    padding-inline: 0 40px;
  }

  .hero {
    min-height: 0;
    padding-top: 48px;
    color: var(--ink);
  }

  .hero > *,
  .sheet > * {
    max-width: 600px;
    margin-inline: 0;
  }

  .sheet {
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .name {
    font-size: 8.5rem;
  }

  .links,
  .booking,
  .instagram,
  .tiktok,
  .youtube {
    margin-top: 20px;
    padding: 28px;
  }

  .links {
    margin-top: 32px;
  }
}

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