/* A MAZE. 2027 */

@font-face {
  font-family: 'Tokyto';
  src: url('../webfonts/Tokyto-Light-A.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Tokyto';
  src: url('../webfonts/Tokyto-Medium-A.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Tokyto';
  src: url('../webfonts/Tokyto-Bold-A.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Switzer';
  src: url('../webfonts/Switzer-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* colours */
  --pink:   #ff788c;
  --green:  #b8e05a;
  --teal:   #006759;
  --purple: #c87dff;
  --paper:  #f6f6f3;

  /* header / ticker */
  --nav-bg:   var(--pink);
  --nav-fg:   var(--teal);
  --drop-bg:  var(--green);
  --drop-fg:  var(--teal);

  --header-h: 52px;
  --ticker-h: 50px;
  --gutter:   clamp(16px, 2vw, 28px);

  --tokyto:  'Tokyto', 'Switzer', system-ui, sans-serif;
  --switzer: 'Switzer', system-ui, sans-serif;
}

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

/* header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  background: var(--nav-bg);
  color: var(--nav-fg);
  border-bottom: 1px solid var(--nav-fg);
  box-sizing: border-box;
  font-family: var(--tokyto);
  cursor: auto;
}

.site-header a { color: inherit; text-decoration: none; }

.logo {
  display: block;
  flex: none;
  height: 24px;
  aspect-ratio: 172 / 41;
  font-size: 0;
  background-color: currentColor;
  -webkit-mask: url('../img/a-maze.svg') no-repeat center / contain;
  mask: url('../img/a-maze.svg') no-repeat center / contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { position: relative; }

.nav-label {
  display: block;
  font: 500 22px/1 var(--tokyto);
  color: inherit;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  white-space: nowrap;
}
.nav-label.is-shuffling { display: flex; justify-content: center; }
.nav-label[aria-current="page"],
.nav-item.is-current > .nav-label {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.nav-label:focus-visible,
.drop a:focus-visible,
.logo:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* dropdown */
.drop {
  position: absolute;
  top: calc(100% + (var(--header-h) - 34px) / 2);
  left: -22px;
  min-width: 200px;
  margin: 0;
  padding: 18px 22px 20px;
  list-style: none;
  background: var(--drop-bg);
  color: var(--drop-fg);
  border-radius: 0 0 14px 14px;
  font: 500 20px/1.3 var(--switzer);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.nav-item:last-child .drop,
.nav-item.drop-right .drop { left: auto; right: -22px; }

.drop li + li { margin-top: 1px; }
.drop a { display: inline-block; padding: 1px 0; }
.drop a:hover,
.drop a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.drop .ext::after { content: ' ↗'; font-size: .85em; }

.nav-item.open > .drop {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .15s ease, transform .15s ease;
}
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .nav-item:hover > .drop,
  .nav-item:focus-within > .drop {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .15s ease, transform .15s ease;
  }
}

.nav-toggle {
  display: none;
  font: 500 22px/1 var(--tokyto);
  color: inherit;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}

/* mobile menu */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    overflow-y: auto;
    background: var(--nav-bg);
    color: var(--nav-fg);
    padding: 24px var(--gutter) 48px;
    box-sizing: border-box;
    display: none;
  }
  .menu-open .site-nav { display: block; }
  .menu-open, .menu-open body { overflow: hidden; }

  .nav { display: block; }
  .nav-item + .nav-item { margin-top: 22px; }
  .nav-label { font-size: 34px; padding: 0; cursor: default; }
  a.nav-label { cursor: pointer; }
  .drop {
    position: static;
    opacity: 1; visibility: visible; transform: none; transition: none;
    background: none;
    color: inherit;
    padding: 8px 0 0;
    min-width: 0;
    font-size: 22px;
    line-height: 1.35;
  }
}

/* ticker */

.ticker {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 0 var(--gutter);
  background: var(--nav-fg);
  color: var(--nav-bg);
  box-sizing: border-box;
  overflow: hidden;
  cursor: auto;
}
.ticker-dot {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--nav-bg);
}
.ticker-btn {
  flex: none;
  font: 500 22px/1 var(--tokyto);
  padding: 5px 13px 4px;
  border-radius: 999px;
  background: var(--nav-bg);
  color: var(--nav-fg);
  text-decoration: none;
  white-space: nowrap;
}
.ticker-btn:hover { background: var(--drop-bg); color: var(--drop-fg); }
.ticker-btn.is-rippling { display: flex; justify-content: center; box-sizing: border-box; }
.ticker-btn:focus-visible { outline: 2px solid var(--nav-bg); outline-offset: 2px; }

.ticker-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font: 500 21px/1.4 var(--switzer);
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px);
}
.ticker-move {
  display: inline-flex;
  animation: ticker 144s linear infinite;
}
.ticker-move > span { padding-right: 3em; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

html.anim .site-header,
html.anim .ticker,
html.anim .ticker-dot,
html.anim .ticker-btn,
html.anim .drop {
  transition-property: background-color, color, border-color, opacity, transform, visibility;
  transition-duration: .6s, .6s, .6s, .15s, .15s, 0s;
}

/* subpages */

/* scrollbar */
html:has(body.page) { scrollbar-color: var(--teal) var(--paper); }

body.page {
  margin: 0;
  background: var(--paper);
  color: var(--teal);
  font: 500 clamp(16px, .55rem + .55vw, 19px)/1.4 var(--switzer);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-main {
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) var(--gutter) calc(var(--ticker-h) + 80px);
}

.prose { max-width: 44em; margin-inline: auto; }

.page-title {
  font: 500 clamp(36px, 1rem + 2vw, 50px)/1.02 var(--tokyto);
  letter-spacing: -.005em;
  margin: 0 0 .9em;
  text-wrap: pretty;
}
.page-title.lead { margin-bottom: 0; }

.page-sub {
  font: 500 clamp(20px, .7rem + 1vw, 28px)/1.15 var(--tokyto);
  margin: -.6em 0 1.6em;
  max-width: 24em;
}

.prose > :first-child { margin-top: 0; }

.prose h1, .prose h2, .prose h3 {
  font-family: var(--tokyto);
  font-weight: 500;
  line-height: 1.05;
  margin: 1.6em 0 .55em;
  text-wrap: balance;
}
.prose h1 { font-size: 2.1em; }
.prose .page-title { font-size: clamp(36px, 1rem + 2vw, 50px); }
.prose h2 { font-size: 1.75em; }
.prose h3 { font-size: 1.4em; }
.prose h4, .prose h5, .prose h6 {
  font-family: var(--switzer);
  font-weight: 500;
  font-size: 1.15em;
  line-height: 1.25;
  margin: 1.8em 0 .5em;
  letter-spacing: .01em;
}

.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0 0 1.1em; }
.prose strong, .prose b { font-weight: inherit; }
.prose em, .prose i { font-style: italic; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .3em; }
.prose blockquote { margin-left: 0; padding: 0; }

.page-foot ul a { color: inherit; text-decoration: none; }
.page-foot ul a:hover, .page-foot ul a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.prose a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.prose a:hover { text-decoration-thickness: 2px; }

.prose hr, .page-main hr {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: .55;
  margin: 2.6em 0;
}

.prose img, .prose iframe { max-width: 100%; }
.prose code { font-size: .92em; }

.prose table { border-collapse: collapse; width: 100%; font-size: .92em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .45em .8em .45em 0; border-bottom: 1px solid rgba(0, 103, 89, .25); }
.prose th { font-weight: 500; border-bottom-color: currentColor; }
.prose td:first-child { white-space: nowrap; width: 1%; }

.embed { position: relative; width: 100%; aspect-ratio: 16 / 9.5; margin: 0 0 1em; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* swatches */
.swatches { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.swatches li { display: flex; align-items: center; gap: 10px; margin: 0 !important; }
.swatches i { display: block; width: 28px; height: 28px; border-radius: 50%; }

/* coming soon */
.soon {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2.2em 0;
  padding: 18px 22px;
  background: var(--green);
  border-radius: 14px;
  font: 500 clamp(20px, .8rem + .8vw, 26px)/1.1 var(--tokyto);
}
.soon::before {
  content: '';
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(.6); } }

.btn {
  display: inline-block;
  font: 500 20px/1 var(--tokyto);
  padding: 8px 16px 7px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--paper) !important;
  text-decoration: none !important;
}
.btn:hover { background: var(--pink); color: var(--teal) !important; }

/* tickets dot */
.ticket-dot {
  position: fixed;
  left: var(--gutter);
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--paper);
  text-decoration: none;
  font: 500 17px/1 var(--tokyto);
  white-space: nowrap;
  overflow: hidden;
  max-width: 26px;
  transition: max-width .3s ease, padding .3s ease;
}
.ticket-dot::before { content: ''; flex: none; width: 26px; height: 26px; }
.ticket-dot span { padding-right: 14px; }
.ticket-dot:hover, .ticket-dot:focus-visible { max-width: 200px; outline: none; }

/* footer */
.page-foot {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  height: var(--ticker-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--gutter);
  background: var(--nav-fg);
  color: var(--nav-bg);
  font: 500 16px/1 var(--switzer);
  white-space: nowrap;
}
.page-foot .mark { font: 500 22px/1 var(--tokyto); margin-left: 14px; }
.page-foot ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  line-height: 1.5;
}
.page-foot ul::-webkit-scrollbar { display: none; }

@media (max-width: 860px) {
  .page-main { padding-left: var(--gutter); padding-right: var(--gutter); }
  .page-foot .mark { display: none; }
  .page-foot ul { margin-left: 8px; mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-move { animation: none; }
  .soon::before { animation: none; }
  .drop, .ticket-dot { transition: none !important; }
}

.sw-pink   { background: var(--pink); }
.sw-green  { background: var(--green); }
.sw-teal   { background: var(--teal); }
.sw-purple { background: var(--purple); }

/* info panel */
.info-btn {
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--nav-fg);
  font: 700 19px/1 var(--tokyto);
}
.info-btn:hover,
.info-btn[aria-expanded="true"] { background: var(--drop-bg); color: var(--drop-fg); }
.info-btn:focus-visible { outline: 2px solid var(--nav-bg); outline-offset: 2px; }

.info-panel {
  position: fixed;
  left: 0;
  bottom: var(--ticker-h);
  z-index: 95;
  width: min(580px, 100%);
  box-sizing: border-box;
  padding: 22px var(--gutter) 22px;
  background: var(--drop-bg);
  color: var(--drop-fg);
  border-radius: 0 14px 0 0;
  font: 500 20px/1.3 var(--switzer);
}
.info-panel[hidden] { display: none; }
.info-panel p { margin: 0 0 16px; }
.info-panel ul { list-style: none; margin: 0 0 16px; padding: 0; }
.info-panel a { color: inherit; }
.info-panel ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.info-panel ul a { text-decoration: none; }
.info-social { font-size: 16px; line-height: 1.6; }
.info-social a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ext-arrow::after { content: ' ↗'; font-size: .85em; }

/* embeds */
.consent-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--teal);
  color: var(--paper);
  border-radius: 14px;
  overflow: hidden;
}
.consent-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.consent-load {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 0;
  background: none;
  color: inherit;
  font: 500 16px/1.4 var(--switzer);
  text-align: center;
  cursor: pointer;
}
.consent-load strong { font: 500 26px/1.1 var(--tokyto); color: var(--green); }
.consent-load small { max-width: 34em; font-size: 14px; opacity: .9; }
.consent-load:hover strong { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 600px) {
  .info-panel { font-size: 18px; border-radius: 0; }
  .consent-load small { display: none; }
}

/* engage page */
.prose .intro {
  font-size: 1.3em;
  line-height: 1.3;
  margin-bottom: 2.4em;
}

.prose ol.ways {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: way;
}
.ways > li {
  counter-increment: way;
  position: relative;
  padding: 1.6em 0 1.4em 4.2em;
  border-top: 1px solid rgba(0, 103, 89, .55);
}
.prose .ways > li + li { margin-top: 0; }
.ways > li::before {
  content: counter(way);
  position: absolute;
  left: 0;
  top: .55em;
  font: 500 3.4em/1 var(--tokyto);
}
.prose .ways h2 { margin: 0 0 .5em; font-size: 1.6em; }

/* dates */
.prose .when {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2em .6em;
  padding: .35em .9em .3em;
  border-radius: 999px;
  background: var(--green);
}
.when span { font-family: var(--tokyto); font-size: 1.1em; }

.btn.is-soon {
  background: none;
  color: var(--teal) !important;
  box-shadow: inset 0 0 0 1.5px var(--teal);
  opacity: .7;
}
.btn.is-soon:hover { background: none; color: var(--teal) !important; }

@media (max-width: 600px) {
  .ways > li { padding-left: 0; padding-top: 5.8em; }
  .ways > li::before { top: .45em; }
  .prose .when { border-radius: 14px; }
}

/* emails */
.eml { white-space: nowrap; }

/* partners page */
.page-partners .prose { max-width: 64em; }
.partner-group { margin: 2.6em 0 0; }
.prose .partner-group h2 {
  margin: 0 0 .9em;
  padding-top: .9em;
  border-top: 1px solid rgba(0, 103, 89, .55);
  font: 500 1em/1.25 var(--switzer);
  letter-spacing: .01em;
}
.prose ul.partner-logos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 28px;
}
.prose .partner-logos li { margin: 0; }
.partner-logos a, .partner-logos span {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 1;
  padding: 6% 4%;
}
.partner-logos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(100%);
  transition: transform .2s ease;
}
.partner-logos a:hover img { transform: scale(1.05); }
.partner-group:last-of-type { margin-bottom: 3em; }
@media (prefers-reduced-motion: reduce) {
  .partner-logos a:hover img { transform: none; }
}
@media (max-width: 760px) {
  .prose ul.partner-logos { grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
}

/* 404 */
html:has(body.page-404) { scrollbar-color: var(--teal) var(--pink); }
body.page-404 { background: var(--pink); }
.page-404 .page-main { min-height: 100svh; overflow: hidden; box-sizing: border-box; display: grid; place-items: center; }
.lost-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page-404 .page-main { position: relative; z-index: 1; }
.lost { text-align: center; }
.prose .lost-code {
  margin: 0;
  height: 1.05em;
  font: 500 min(32vw, 50vh)/1.05em var(--tokyto);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.prose .lost-text { font: 500 clamp(24px, 1rem + 1.6vw, 40px)/1.1 var(--tokyto); margin: .4em 0 1.2em; }
.page-404 .btn:hover { background: var(--green); }
