/* The approved canvas boards' CSS (Main, Hosts, Privacy/Terms/Delete), merged. A body class
   (home, hosts, legal) carries the few values that differ between boards. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/bricolage-800-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+2018-201F, U+2026, U+20B9;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/mukta-400-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+2018-201F, U+2026, U+20B9;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/mukta-600-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+2018-201F, U+2026, U+20B9;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/mukta-400-devanagari.woff2") format("woff2");
  unicode-range:
    U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/mukta-600-devanagari.woff2") format("woff2");
  unicode-range:
    U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

body {
  margin: 0;
  background: #ffd23f;
  font-family: "Mukta", system-ui, sans-serif;
  color: #1b2a6b;
}
body.hosts {
  background: #fad63e;
}
body.legal {
  background: #ffffff;
}
a {
  color: #1b2a6b;
}
a:hover {
  color: #1b2a6b;
}
.pg {
  container-type: inline-size;
  font-family: "Mukta", system-ui, sans-serif;
  color: #1b2a6b;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.legal .pg {
  line-height: 1.6;
}
.pg * {
  box-sizing: border-box;
}
.pg ::selection {
  background: #ff5ca8;
  color: #1b2a6b;
}
.d {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
.legal .d {
  line-height: 1;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.pg button:focus-visible,
.pg a:focus-visible {
  outline: 3px solid #ff5ca8;
  outline-offset: 3px;
}
.foot a {
  color: #ffd23f;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
/* 44px tall tap targets from padding; the text keeps the canvas size. */
.foot nav a {
  padding: 9px 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.msg {
  border-radius: 22px;
  padding: 14px 18px;
  font-size: 18px;
  line-height: 1.45;
  max-width: 520px;
  position: relative;
}
.hosts .msg {
  max-width: 540px;
}
.tag {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Hero, home and hosts */
.hero {
  position: relative;
  background: #fad63e;
}
.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 72px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Phones: the film tucks up only by its empty sky, so the roof starts about 20cqi below the text and nothing drawn sits behind it. */
.hero-film {
  position: relative;
  z-index: 1;
  margin-top: -26cqi;
  /* Holds the film's space from first paint; main.ts picks the 720 x 1264 film here. */
  aspect-ratio: 720 / 1264;
}
/* Hosts: the door frame starts about 18cqi below the text. */
.hosts .hero-film {
  margin-top: -22cqi;
}
.hero-h {
  font-size: clamp(38px, 11cqi, 52px);
}
.hosts .hero-h {
  font-size: clamp(36px, 10.4cqi, 50px);
}
.hero-line {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  max-width: 30ch;
}
.hosts .hero-line {
  max-width: 34ch;
}
.hero-inner {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: inherit;
}
.hero-below {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-film video,
.hero-film img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
  width: 100%;
  height: auto;
  display: block;
  background: #fad63e;
}
.hero-film video[hidden] {
  display: none;
}
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 220ms cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s;
}
.dock-off {
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 0s 160ms;
}
.dock .wa:focus-visible {
  outline: 3px solid #ff5ca8;
  outline-offset: 3px;
}
.dock .wa {
  pointer-events: auto;
  box-shadow: 0 10px 26px -10px rgba(27, 42, 107, 0.6);
  width: min(100%, 420px);
  justify-content: center;
}
.d-cap {
  display: none;
}
.cta-d {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: #1b2a6b;
  text-decoration: none;
  font:
    600 20px / 1 "Mukta",
    system-ui,
    sans-serif;
  border-radius: 999px;
  min-height: 58px;
  padding: 0 28px 0 22px;
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 160ms ease;
}
.wa:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .wa:hover {
    box-shadow: 0 6px 18px -6px rgba(27, 42, 107, 0.45);
  }
}
.textlink {
  background: none;
  border: 0;
  padding: 0;
  font:
    600 17px / 1.4 "Mukta",
    system-ui,
    sans-serif;
  color: #1b2a6b;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
  min-height: 44px;
}
.textlink[hidden] {
  display: none;
}

/* Home */
.fl {
  display: inline-block;
  transition: color 160ms ease;
}
.fl-on {
  color: #ff5ca8;
  animation: flip 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.fl-gone {
  width: 0;
  overflow: hidden;
}
@keyframes flip {
  from {
    transform: rotateX(90deg);
    opacity: 0.2;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.facts {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 56px;
}
.fact {
  border-top: 3px solid #1b2a6b;
  padding: 22px 0 30px;
}
.fact .spot {
  display: block;
  width: 136px;
  height: 136px;
  object-fit: contain;
  margin: 0 0 12px;
}
.film-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Hosts */
.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.tbl {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
/* Both table drawings are in the page; the container width shows one, as the canvas's wide flag does. */
.tbl-l {
  max-width: 900px;
  display: none;
}
.tbl-p {
  max-width: 440px;
}
.tbl-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.sg {
  opacity: 0;
  transform: translateY(10px);
  transform-box: fill-box;
  transition:
    opacity 360ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 360ms cubic-bezier(0.23, 1, 0.32, 1);
}
.sg-in {
  opacity: 1;
  transform: none;
}
.cush {
  fill: #ffe79a;
  stroke: #1b2a6b;
  stroke-width: 2.5;
  stroke-dasharray: 7 6;
  transition: fill 220ms ease;
}
.cush-pink {
  fill: #ff5ca8;
  stroke-dasharray: none;
}
.cush-ink {
  fill: #1b2a6b;
  stroke-dasharray: none;
}
.water {
  fill: #7cc6e6;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0.15);
  opacity: 0.35;
  transition:
    transform 340ms cubic-bezier(0.23, 1, 0.32, 1) 110ms,
    opacity 200ms ease 110ms;
}
.water-on {
  transform: none;
  opacity: 1;
}
.seatbtn {
  position: absolute;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 24px;
  -webkit-tap-highlight-color: transparent;
}
.seatbtn:focus-visible {
  outline: 3px solid #ff5ca8;
  outline-offset: 2px;
}
.card {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: 132px;
  padding: 7px 11px 6px;
  background: #ff5ca8;
  color: #1b2a6b;
  border: 2px solid #1b2a6b;
  border-radius: 8px;
  font:
    600 13px / 1.2 "Mukta",
    system-ui,
    sans-serif;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 8px 14px -10px rgba(27, 42, 107, 0.7);
  opacity: 0;
  transform: translate(-50%, -95%) rotate(calc(var(--r) * 4)) scale(0.92);
  transition:
    transform 300ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 180ms ease;
}
.card-on {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(var(--r));
}
.seatbtn:active + .card-on {
  transform: translate(-50%, -50%) rotate(var(--r)) scale(0.97);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 48px;
  counter-reset: none;
}
.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
  border-top: 3px solid #1b2a6b;
  padding: 22px 0 30px;
}
.step .spot {
  grid-column: 1 / -1;
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
}
.step p {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  max-width: 34ch;
}
.step-n {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1b2a6b;
  color: #ffd23f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
}

/* Privacy, terms, delete and 404 */
.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.toc {
  display: none;
}
.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid #1b2a6b;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.legal-nav a[aria-current="page"] {
  background: #1b2a6b;
  color: #ffd23f;
}
.sec {
  border-top: 3px solid #1b2a6b;
  padding: 26px 0 34px;
}
.sec h2 {
  font-size: clamp(26px, 2.6cqi, 34px);
  margin-bottom: 12px;
}

@container (min-width: 900px) {
  .wrap {
    padding: 0 48px;
  }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy,
  .hero-inner {
    display: contents;
  }
  /* Desktop: headline, then the line and button on the band, then the film tucked up by its empty
     sky (as on phones), so its people are in the first screen at 1280 x 800 with nothing over them. */
  .hero-h {
    grid-row: 1;
    width: 100%;
    max-width: 1240px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 64px 48px 12px;
  }
  .hero-below {
    grid-row: 2;
    position: relative;
    z-index: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 32px;
    padding: 0 max(48px, calc((100cqi - 1240px) / 2 + 48px));
  }
  .hero-film,
  .hosts .hero-film {
    grid-row: 3;
    --tuck: 10cqi;
    margin-top: calc(-1 * var(--tuck));
    /* main.ts picks the 1312 x 688 film above 900px. */
    aspect-ratio: 1312 / 688;
  }
  /* Hosts: the host's head is only about 13% below the film's top, so it tucks up less. */
  .hosts .hero-film {
    --tuck: 6cqi;
  }
  /* The part of the film under the text fades into the band, so the text stays readable. */
  .hero-film video,
  .hero-film img {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent calc(var(--tuck) - 24px),
      #000 calc(var(--tuck) + 24px)
    );
    mask-image: linear-gradient(
      to bottom,
      transparent calc(var(--tuck) - 24px),
      #000 calc(var(--tuck) + 24px)
    );
  }
  .hero-below .hero-line {
    flex: 1 1 360px;
  }
  .hero-h {
    font-size: clamp(60px, 5.4cqi, 96px);
  }
  .hosts .hero-h {
    font-size: clamp(56px, 5cqi, 88px);
  }
  .hero-line {
    font-size: clamp(19px, 1.6cqi, 23px);
    max-width: 34ch;
  }
  /* Hosts: line, button and note fit one row, so the host stays clear of the text. */
  .hosts .hero-line {
    font-size: clamp(17px, 1.25cqi, 22px);
    max-width: none;
  }
  .d-cap {
    display: inline;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cta-d {
    flex-direction: row;
    align-items: center;
    gap: 10px 20px;
  }
  .cta-d p {
    max-width: 12em;
  }
  .two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
  .tbl-l {
    display: block;
  }
  .tbl-p {
    display: none;
  }
  .cols {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 72px;
  }
  .toc {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-on {
    animation: none;
  }
  .sg,
  .water,
  .card,
  .cush,
  .wa {
    transition: none;
  }
  /* The dock still fades, but does not slide. */
  .dock,
  .dock-off {
    transform: none;
  }
}
