@font-face {
  font-family: 'Roboto Flex';
  src: url('fonts/RobotoFlex.woff2') format('woff2');
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
}

/* palettes: flat hand picked colors in material 3 roles, each role is a light and dark pair.
   terracotta is the default, the palette button cycles through the others */
:root {
  color-scheme: dark light;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --pri: light-dark(#b5441f, #f0906a);
  --on-pri: light-dark(#fff8f0, #4a1707);
  --pri-c: light-dark(#f7cdb8, #6e2c14);
  --on-pri-c: light-dark(#4a1707, #ffdccb);
  --sec-c: light-dark(#dce3bb, #404a22);
  --on-sec-c: light-dark(#2b3312, #e1e8c0);
  --ter-c: light-dark(#f6dc88, #5c4a10);
  --on-ter-c: light-dark(#3e3000, #fbe79f);
  --bg: light-dark(#fbf5ec, #1e1915);
  --s1: light-dark(#f4ebdd, #26201b);
  --s2: light-dark(#ece0cc, #302821);
  --fg: light-dark(#2a211b, #f2e8da);
  --fg2: light-dark(#6b5b4e, #bbaa97);
}

:root[data-palette="moss"] {
  --pri: light-dark(#2f6b3a, #8fd08a);
  --on-pri: light-dark(#f4fbf0, #0c3012);
  --pri-c: light-dark(#c7e6be, #25502b);
  --on-pri-c: light-dark(#0e3314, #c9efc1);
  --sec-c: light-dark(#ebd9b4, #4f3f1a);
  --on-sec-c: light-dark(#3b2c0b, #f2dfb6);
  --ter-c: light-dark(#f5c6b8, #5e2e20);
  --on-ter-c: light-dark(#4a1a0e, #fbd3c6);
  --bg: light-dark(#f4f4ea, #171b14);
  --s1: light-dark(#ebebdb, #1f241b);
  --s2: light-dark(#e1e2cd, #292f24);
  --fg: light-dark(#1f2418, #e9eddd);
  --fg2: light-dark(#5a6049, #aeb59a);
}

:root[data-palette="lagoon"] {
  --pri: light-dark(#0f6b73, #73d0d8);
  --on-pri: light-dark(#f0fdfd, #013a40);
  --pri-c: light-dark(#bde7ea, #115158);
  --on-pri-c: light-dark(#022f33, #c2f0f4);
  --sec-c: light-dark(#f8e0a8, #5a4510);
  --on-sec-c: light-dark(#3a2a00, #ffe9b0);
  --ter-c: light-dark(#f9c9c0, #5e2a22);
  --on-ter-c: light-dark(#4c150c, #ffd5cc);
  --bg: light-dark(#f2f6f5, #0f1a19);
  --s1: light-dark(#e7eeec, #162423);
  --s2: light-dark(#dae5e2, #1f302f);
  --fg: light-dark(#14211f, #e1eeec);
  --fg2: light-dark(#4c6560, #9db5b1);
}

:root[data-palette="ink"] {
  --pri: light-dark(#171512, #f1eee7);
  --on-pri: light-dark(#f7f5f0, #171512);
  --pri-c: light-dark(#ffb547, #e99a1e);
  --on-pri-c: light-dark(#3a2300, #2b1a00);
  --sec-c: light-dark(#ddd6c6, #3a362e);
  --on-sec-c: light-dark(#26221a, #e9e4d6);
  --ter-c: light-dark(#f7c9b3, #6a3b26);
  --on-ter-c: light-dark(#4a1d0a, #ffdccb);
  --bg: light-dark(#f7f5f0, #121110);
  --s1: light-dark(#efebe3, #1b1a17);
  --s2: light-dark(#e6e1d6, #25231f);
  --fg: light-dark(#171512, #f1eee7);
  --fg2: light-dark(#605a50, #a8a298);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .25 6%, .67 14%, .98 24%, 1.08 33%, 1.06 42%, 1.01 56%, .995 70%, 1);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 1.125rem/1.6 'Roboto Flex', system-ui, sans-serif;
  font-variation-settings: 'opsz' 18;
  overflow-x: hidden;
  padding-bottom: 120px;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.ic {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.ic.f {
  fill: currentColor;
  stroke: none;
}

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

.wave {
  position: fixed;
  inset: 0 0 auto;
  height: 14px;
  width: 100%;
  z-index: 30;
  pointer-events: none;
}

.wave path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.wave .t {
  stroke: var(--s2);
}

.wave .p {
  stroke: var(--pri);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.top {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  z-index: 20;
  pointer-events: none;
}

.top > * {
  pointer-events: auto;
}

.tools {
  display: flex;
  gap: 10px;
}

.btn,
.ib,
.bar a,
.tile,
.card.lnk {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn::after,
.ib::after,
.tile::after,
.card.lnk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity .2s;
}

.btn:hover::after,
.ib:hover::after,
.tile:hover::after,
.card.lnk:hover::after {
  opacity: .08;
}

.rip {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: .22;
  transform: scale(0);
  animation: rip .7s var(--ease) forwards;
  pointer-events: none;
}

@keyframes rip {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.ib {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--s2);
  color: var(--fg);
  transition: border-radius .5s var(--spring), rotate .6s var(--spring);
}

.ib:hover {
  border-radius: 18px;
  rotate: 12deg;
}

.ib:active {
  border-radius: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 32px;
  border: 0;
  border-radius: 30px;
  font: inherit;
  font-weight: 650;
  font-size: 1.2rem;
  text-decoration: none;
  transition: border-radius .5s var(--spring), scale .4s var(--spring);
}

.btn:hover {
  border-radius: 20px;
}

.btn:active {
  border-radius: 12px;
  scale: .95;
}

.fill {
  background: var(--pri);
  color: var(--on-pri);
}

.tonal {
  background: var(--pri-c);
  color: var(--on-pri-c);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 32px;
  padding: 120px clamp(20px, 6vw, 96px) 80px;
  max-width: 1500px;
  margin: auto;
}

h1 {
  font-size: clamp(3.6rem, 12vw, 9.5rem);
  line-height: .92;
  letter-spacing: -.04em;
  font-weight: 700;
  margin-bottom: 28px;
}

h1 .w {
  display: inline-block;
  white-space: nowrap;
  margin-right: .22em;
}

h1 .l {
  display: inline-block;
  font-variation-settings: 'wght' var(--w, 650), 'wdth' var(--d, 100);
  animation: pop 1s var(--spring) backwards;
  animation-delay: calc(var(--i) * 45ms + .1s);
}

@keyframes pop {
  from {
    opacity: 0;
    translate: 0 60px;
    rotate: 8deg;
    scale: .6;
  }
}

.hero .sub {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.3;
  color: var(--fg2);
  max-width: 18em;
  margin-bottom: 36px;
  animation: rise .9s var(--spring) .6s backwards;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: rise .9s var(--spring) .75s backwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px) scale(.94);
  }
}

.stage {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 520px);
  justify-self: center;
  translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 16px);
  transition: translate .4s var(--ease);
  animation: rise 1.1s var(--spring) .3s backwards;
}

.big {
  position: absolute;
  inset: 6%;
  cursor: pointer;
  animation: spin 40s linear infinite;
  background: var(--pri);
}

.glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 850 clamp(7rem, 20vw, 14rem)/1 'Roboto Flex', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  letter-spacing: -.04em;
  color: var(--on-pri);
  pointer-events: none;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

section {
  max-width: 1300px;
  margin: auto;
  padding: clamp(70px, 12vw, 140px) clamp(20px, 5vw, 64px) 0;
}

h2 {
  font-size: clamp(2.8rem, 8.5vw, 6.4rem);
  line-height: .95;
  letter-spacing: -.035em;
  font-weight: 800;
  font-variation-settings: 'wdth' 100;
  margin-bottom: 22px;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  max-width: 30em;
}

.intro {
  color: var(--fg2);
  max-width: 36em;
  margin: 18px 0 44px;
}

h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 18px;
}

.sub-h {
  grid-column: 1 / -1;
  margin-top: 26px;
}

.sub-h p {
  color: var(--fg2);
  max-width: 40em;
  margin-top: 6px;
}

.grp {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pri);
  margin: 34px 0 14px;
}

.card {
  background: var(--bg-c, var(--s1));
  color: var(--fg-c, var(--fg));
  border-radius: 36px;
  padding: 30px;
  transition: border-radius .8s var(--spring), translate .6s var(--spring);
  display: block;
  text-decoration: none;
}

.card:hover {
  border-radius: 60px 22px 60px 22px;
  translate: 0 -5px;
}

.c-p {
  --bg-c: var(--pri-c);
  --fg-c: var(--on-pri-c);
}

.c-s {
  --bg-c: var(--sec-c);
  --fg-c: var(--on-sec-c);
}

.c-t {
  --bg-c: var(--ter-c);
  --fg-c: var(--on-ter-c);
}

.c-n {
  --bg-c: var(--s2);
}

.wide {
  grid-column: 1 / -1;
}

.card p {
  margin-top: 10px;
  opacity: .88;
}

.card .note {
  margin-top: 18px;
  font-size: 1rem;
  opacity: .75;
}

.item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.blob {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pri);
  color: var(--on-pri);
  flex: none;
  transition: border-radius .8s var(--spring), rotate .8s var(--spring);
}

.card:hover .blob {
  border-radius: 20px;
  rotate: -10deg;
}

.c-p .blob {
  background: var(--on-pri-c);
  color: var(--pri-c);
}

dl {
  margin-top: 18px;
  display: grid;
}

/* label and value side by side, the value reads left to right and wraps normally */
dl div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2px 18px;
  padding: 12px 0;
  border-top: 1px solid color-mix(in oklab, currentColor 18%, transparent);
}

dt {
  opacity: .7;
}

dd {
  font-weight: 550;
  min-width: 0;
}

/* links inside text: a thin quiet underline that firms up on hover */
.card a:not(.lnk) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .2s;
}

.card a:not(.lnk):hover {
  text-decoration-color: currentColor;
}

.big-card h3 {
  font-size: 2.1rem;
  margin: 22px 0 4px;
}

.big-card .blob {
  width: 84px;
  height: 84px;
}

.music {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}

.art {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--pri);
  color: var(--on-pri);
  display: grid;
  place-items: center;
  flex: none;
  transition: border-radius .9s var(--spring);
}

.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music.on .art {
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.eq {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 16px;
}

.eq i {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
}

.on .eq i {
  animation: eq .9s ease-in-out infinite alternate;
}

.on .eq i:nth-child(2) {
  animation-delay: -.3s;
}

.on .eq i:nth-child(3) {
  animation-delay: -.6s;
}

@keyframes eq {
  to {
    height: 16px;
  }
}

.track {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}

#artist {
  display: block;
  opacity: .8;
}

.load #song,
.load #artist {
  border-radius: 10px;
  color: transparent;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(90deg, color-mix(in oklab, currentColor 10%, transparent) 30%, color-mix(in oklab, currentColor 24%, transparent) 50%, color-mix(in oklab, currentColor 10%, transparent) 70%) 0 0 / 300% 100%;
  animation: shim 1.4s linear infinite;
}

.load #song {
  width: 11em;
  max-width: 100%;
  height: 1.5rem;
  margin-top: 8px;
}

.load #artist {
  width: 7em;
  height: 1.1rem;
  margin-top: 8px;
}

@keyframes shim {
  to {
    background-position: -300% 0;
  }
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
  padding: 24px 28px;
  border: 0;
  font: inherit;
  text-align: left;
  text-decoration: none;
  background: var(--bg-c);
  color: var(--fg-c);
  border-radius: 40px;
  transition: border-radius .8s var(--spring), scale .5s var(--spring);
}

.tile .blob {
  width: 68px;
  height: 68px;
}

.tile b {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.tile small {
  display: block;
  font-size: 1.05rem;
  opacity: .8;
  overflow-wrap: anywhere;
}

.tile:hover {
  border-radius: 24px 60px 24px 60px;
  scale: 1.02;
}

.tile:active {
  border-radius: 16px;
  scale: .97;
}

@media (max-width: 640px) {
  .tiles {
    grid-template-columns: 1fr;
  }
}

.bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  translate: -50% 0;
  width: max-content;
  max-width: calc(100vw - 16px);
  display: flex;
  gap: 4px;
  padding: 8px;
  border-radius: 999px;
  background: var(--s2);
  box-shadow: 0 3px 12px rgb(0 0 0 / .16);
  z-index: 20;
  animation: rise 1s var(--spring) 1.1s backwards;
}

.bar a {
  display: flex;
  flex: none;
  align-items: center;
  height: 52px;
  padding: 0 14px;
  border-radius: 26px;
  text-decoration: none;
  color: var(--fg2);
  transition: color .2s, border-radius .5s var(--spring);
  z-index: 1;
}

.bar a.on {
  color: var(--on-pri);
}

.bar .ind {
  position: absolute;
  top: 8px;
  left: 0;
  height: 52px;
  width: 0;
  border-radius: 26px;
  background: var(--pri);
  pointer-events: none;
}

.bar.snap,
.bar.snap * {
  transition: none !important;
}

.bar a:hover {
  border-radius: 16px;
}

.bar span {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns .3s cubic-bezier(.3, .7, .2, 1);
}

.bar a.on span {
  grid-template-columns: 1fr;
}

.bar b {
  overflow: hidden;
  white-space: nowrap;
  font-weight: 650;
  min-width: 0;
}

.bar b::before {
  content: '';
  display: inline-block;
  width: 10px;
}

.snack {
  position: fixed;
  left: 50%;
  bottom: 100px;
  translate: -50% 30px;
  scale: .9;
  opacity: 0;
  pointer-events: none;
  background: var(--fg);
  color: var(--bg);
  padding: 14px 26px;
  border-radius: 18px;
  font-weight: 600;
  z-index: 40;
  transition: all .5s var(--spring);
}

.snack.show {
  translate: -50% 0;
  scale: 1;
  opacity: 1;
}

.js .rv:not(.in) {
  opacity: 0;
}

.rv.in {
  animation: rise .9s var(--spring) var(--d, 0s) backwards;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
  }

  .stage {
    width: min(80%, 380px);
    order: -1;
  }

  .bar a {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .bar {
    gap: 0;
    padding: 6px;
  }

  .bar a {
    padding: 0 9px;
  }

  .bar .ind {
    top: 6px;
  }

  .bar b {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* palette and theme changes crossfade instead of snapping */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .45s;
}

/* what i use: cards size themselves, so layout follows the card width and not the screen */
.card {
  container-type: inline-size;
}

@container (max-width: 25rem) {
  dl div {
    grid-template-columns: 1fr;
  }
}

/* six column layout for the setup cards */
#rigs {
  grid-template-columns: repeat(6, 1fr);
}

#rigs .s3 {
  grid-column: span 3;
}

#rigs .s6 {
  grid-column: 1 / -1;
}

#rigs .tall {
  grid-row: span 2;
}

@media (max-width: 900px) {
  #rigs {
    grid-template-columns: 1fr;
  }

  #rigs .s3,
  #rigs .tall {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* wide cards: text on one side, specs on the other */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  align-items: start;
}

.split dl {
  margin-top: 0;
}

.split dl div:first-child {
  border-top: 0;
  padding-top: 0;
}

@container (max-width: 44rem) {
  .split {
    grid-template-columns: 1fr;
  }

  .split dl {
    margin-top: 18px;
  }
}

.hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.tag {
  font-size: .95rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.card .lede {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 14px;
}