@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/courier-prime-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/courier-prime-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/josefin-sans-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Monoton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/monoton.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Shrikhand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/shrikhand.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Layout: a sticky menu bar over one tall concert poster. Full-width color bands stacked like a
   gig bill, each on a different matte ground, joined by melting wave edges. */
:root {
  color-scheme: light;
  --mustard: #d9a53f;
  --rust: #c4683c;
  --rose: #9c4459;
  --plum: #45294a;
  --teal: #6ea396;
  --cream: #f3e7cc;
  --cocoa: #33221a;
  --display: "Shrikhand", "Cooper Black", "Georgia", serif;
  --neon: "Monoton", "Shrikhand", "Georgia", serif;
  --body: "Josefin Sans", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --type: "Courier Prime", "Courier New", Courier, monospace;
  --wrap: 1040px;
  --gutter-left: max(16px, env(safe-area-inset-left, 0px));
  --gutter-right: max(16px, env(safe-area-inset-right, 0px));
  --nav-height: 3.25rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--plum);
  color: var(--cocoa);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.5;
  overflow-x: hidden;
}
main { flex: 1; display: flex; flex-direction: column; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }

/* menu bar */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--plum);
  border-bottom: 3px solid var(--mustard);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-inner {
  max-width: var(--wrap);
  min-height: var(--nav-height);
  margin: 0 auto;
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
}
.nav a { color: var(--cream); text-decoration: none; }
.nav-home {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  margin-right: auto;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.6rem); }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.35em 0 0.2em;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--mustard);
  border-bottom-color: var(--mustard);
}
.nav-github { display: flex; }
.nav-github svg { width: 1.45rem; height: 1.45rem; fill: currentColor; display: block; }
.nav-github:hover { color: var(--mustard); }
.nav-version:not([hidden]) {
  font-family: var(--type);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--mustard);
  border: 2px solid var(--mustard);
  border-radius: 999px;
  padding: 0.4em 0.7em 0.3em;
  white-space: nowrap;
}
.nav-version:hover { background: var(--mustard); color: var(--plum); }
@media (max-width: 1100px) {
  .nav-section { display: none; }
}
@media (max-width: 480px) {
  .nav-inner, .nav-links { gap: 0.6rem; }
  .nav-home { font-size: 1.05rem; }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.05em; }
  .nav-version:not([hidden]) { font-size: 0.72rem; }
}

/* bands */
.band { position: relative; }
.inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
}
.wave { display: block; width: 100%; height: clamp(36px, 6vw, 80px); margin-bottom: -1px; }
.wave path { fill: currentColor; }
.b-cream { background: var(--cream); }
.b-plum { background: var(--plum); color: var(--cream); }
.b-mustard { background: var(--mustard); }
.b-teal { background: var(--teal); }
.b-rose { background: var(--rose); color: var(--cream); }
.c-rust { color: var(--rust); }
.c-cream { color: var(--cream); }
.c-mustard { color: var(--mustard); }
.c-teal { color: var(--teal); }
.c-rose { color: var(--rose); }
.c-plum { color: var(--plum); }

/* type */
.display { font-family: var(--display); font-weight: 400; line-height: 0.98; text-wrap: balance; }
h2.display { font-size: clamp(2.6rem, 8vw, 5rem); }
h2.display.minor { font-size: clamp(2rem, 5.5vw, 3.2rem); }
.stack-warm {
  color: var(--cream);
  text-shadow: 0.045em 0.045em 0 var(--rust), 0.09em 0.09em 0 var(--rose),
    0.135em 0.135em 0 var(--plum);
}
.stack-cool {
  color: var(--mustard);
  text-shadow: 0.045em 0.045em 0 var(--rose), 0.09em 0.09em 0 var(--teal),
    0.135em 0.135em 0 var(--cocoa);
}
.stack-dark {
  color: var(--plum);
  text-shadow: 0.045em 0.045em 0 var(--cream), 0.09em 0.09em 0 var(--rust);
}
.kicker {
  font-family: var(--neon);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.lede { font-size: clamp(1.15rem, 2.4vw, 1.45rem); max-width: 34em; font-weight: 600; }
p { max-width: 38em; }
.fine { font-size: 0.98rem; }

/* hero */
.hero { background: var(--rust); overflow: hidden; }
.rays {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 240vmax;
  height: 240vmax;
  margin: -120vmax 0 0 -120vmax;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--mustard) 0deg 7.5deg,
    var(--rust) 7.5deg 15deg, var(--rose) 15deg 22.5deg, var(--rust) 22.5deg 30deg);
  animation: spin 320s linear infinite;
}
.rings {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(118vw, 900px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, var(--plum) 0 9%, var(--rose) 9% 15%,
    var(--mustard) 15% 20%, var(--teal) 20% 26%, var(--plum) 26% 33%);
  box-shadow: 0 0 0 clamp(8px, 1.6vw, 16px) var(--cream);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero .inner {
  position: relative;
  align-items: center;
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8.5rem) clamp(3.5rem, 9vw, 6.5rem);
  gap: clamp(1rem, 2.6vw, 1.75rem);
}
.hero .kicker {
  color: var(--cream);
  background: var(--plum);
  padding: 0.55em 1.1em 0.4em;
  border-radius: 999px;
}
h1.display {
  font-size: clamp(3.4rem, 15.5vw, 10.5rem);
  transform: rotate(-4deg);
  letter-spacing: -0.01em;
}
.hero .lede {
  color: var(--plum);
  background: var(--cream);
  padding: 0.9em 1.3em 0.75em;
  border-radius: 1.6em;
  border: 4px solid var(--plum);
  max-width: 30em;
}
.badge {
  font-family: var(--type);
  font-weight: 700;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cocoa);
  background: var(--mustard);
  border: 3px solid var(--cocoa);
  border-radius: 999px;
  padding: 0.5em 1.1em 0.4em;
  transform: rotate(2deg);
}

/* what it does */
.trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.blob {
  min-width: 0;
  padding: clamp(2.4rem, 6vw, 3.4rem) clamp(1.8rem, 4.5vw, 2.6rem);
  border: 4px solid var(--cocoa);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.blob:nth-child(1) { background: var(--mustard); border-radius: 58% 42% 46% 54% / 44% 52% 48% 56%; }
.blob:nth-child(2) { background: var(--rust); border-radius: 44% 56% 58% 42% / 54% 44% 56% 46%; }
.blob:nth-child(3) { background: var(--teal); border-radius: 52% 48% 42% 58% / 48% 58% 42% 52%; }
.blob h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  line-height: 1.05;
}
.blob p { font-size: 1.02rem; line-height: 1.4; }
.ticket {
  font-family: var(--type);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.5vw, 1.15rem);
  background: var(--cocoa);
  color: var(--mustard);
  padding: 1.1em 1.3em;
  border-radius: 14px;
  max-width: none;
  overflow-wrap: anywhere;
  border: 3px dashed var(--mustard);
}
.ticket span { color: var(--cream); }

/* the trip: four phases */
.trip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
}
.trip li {
  min-width: 0;
  background: var(--cream);
  color: var(--cocoa);
  border: 4px solid var(--cocoa);
  border-radius: 28px 28px 28px 6px;
  padding: 1.3rem 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.trip h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.05; }
.trip p { font-size: 1rem; line-height: 1.4; }

/* rules */
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
}
.rules li {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
}
.rules li::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mustard) 0 28%, var(--rose) 30% 58%, var(--cream) 60%);
  border: 3px solid var(--cocoa);
}

/* where it shines */
.chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chips li {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  line-height: 1.1;
  padding: 0.6em 1em 0.5em;
  border-radius: 999px;
  background: var(--plum);
  color: var(--mustard);
  transform: rotate(-2deg);
}
.chips li:nth-child(even) { background: var(--rose); color: var(--cream); transform: rotate(1.5deg); }

/* benchmarks */
.scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.score {
  min-width: 0;
  background: var(--cream);
  color: var(--cocoa);
  border: 4px solid var(--cocoa);
  border-radius: 26px;
  padding: 1.4rem 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.score h3 { font-family: var(--type); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.02em; }
.score dl { margin: 0; display: flex; flex-wrap: wrap; gap: 0.9rem 1.6rem; }
.score dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.score dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.2vw, 1.9rem);
  line-height: 1;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.score div { display: flex; flex-direction: column-reverse; gap: 0.3rem; min-width: 0; }

/* why small swarms */
.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.why li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: color-mix(in srgb, var(--cream) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent);
  border-radius: 22px;
  padding: 1.4rem 1.5rem 1.3rem;
}
.why h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  line-height: 1.08;
  color: var(--mustard);
}
.why p { font-size: 1.05rem; line-height: 1.45; }

/* get it */
.get .inner { align-items: center; }
.get h2, .get .kicker { text-align: center; }
.steps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
  counter-reset: step;
}
.steps li {
  min-width: 0;
  counter-increment: step;
  background: color-mix(in srgb, var(--cream) 55%, white);
  border: 4px solid var(--cocoa);
  border-radius: 26px;
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.steps h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.2vw, 1.75rem);
  line-height: 1.1;
  color: var(--plum);
}
.steps h3::before { content: counter(step) ". "; color: var(--rose); }
.steps p { font-size: 1.02rem; line-height: 1.45; }
.steps .ticket { font-size: clamp(0.82rem, 2.2vw, 0.98rem); padding: 0.9em 1.1em; }
code {
  font-family: var(--type);
  font-weight: 700;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
.get-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2rem; }

/* see it run */
.shots { display: flex; flex-direction: column; gap: clamp(1.5rem, 4vw, 2.5rem); }
.shot { margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.shot a { display: block; border-radius: 16px; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--cream);
  border-radius: 16px;
  background: var(--cocoa);
}
.shot figcaption { font-size: 1rem; max-width: 38em; }

/* questions */
.faq { display: flex; flex-direction: column; gap: 0.8rem; max-width: 46rem; }
.faq details {
  background: var(--cream);
  border: 4px solid var(--cocoa);
  border-radius: 20px;
  padding: 0 1.3rem;
}
.faq summary {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  line-height: 1.2;
  color: var(--plum);
  padding: 1rem 0 0.85rem;
  cursor: pointer;
}
.faq summary:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; border-radius: 6px; }
.faq p { font-size: 1.02rem; line-height: 1.5; padding-bottom: 1.1rem; max-width: none; }

.get a, .prose a {
  color: var(--plum);
  font-weight: 700;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.get a:focus-visible, .prose a:focus-visible { outline-color: var(--rose); }

/* sub pages */
.page { flex: 1; }
.page h1.display { font-size: clamp(2.8rem, 9vw, 5.5rem); transform: none; }
.placeholder {
  border: 4px dashed var(--plum);
  border-radius: 28px;
  padding: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}
.placeholder h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.prose { display: flex; flex-direction: column; gap: 1rem; }
.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.05;
  color: var(--plum);
  margin-top: 1.5rem;
}
.prose ul { list-style: disc; padding-left: 1.3em; max-width: 38em; display: flex; flex-direction: column; gap: 0.4rem; }

/* footer */
.foot { background: var(--plum); color: var(--cream); border-top: 3px solid var(--mustard); }
.foot-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.25rem var(--gutter-right) calc(1.25rem + env(safe-area-inset-bottom, 0px))
    var(--gutter-left);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  font-size: 0.92rem;
}
.foot p { max-width: none; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.foot a { color: var(--cream); text-underline-offset: 3px; }
.foot a:hover { color: var(--mustard); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rays { animation: none; }
}
