/* Colorways. One is chosen in the page head; :root is the no-script default.
   Each hero uses a colorway's second color as its ground and shows the logo
   in the first, as the wordmark does. --alt is the band in the first color. */
:root, [data-theme="2"] {
  --hero-bg: #8c0c3a; --hero-fg: #f5ede2; --hero-word: #95acde; --hero-on: #95acde;
  --logo1: #95acde; --logo2: #f5ede2;
  --alt-bg: #95acde; --alt-fg: #7a0a32; --word-on-cream: #8c0c3a; --well-b: #8c0c3a;
  --c1: #95acde; --c1-fg: #7a0a32; --c2: #8c0c3a; --c2-fg: #f5ede2; --c3: #f91652; --c3-fg: #2b0212;
}
[data-theme="0"] {
  --hero-bg: #f91652; --hero-fg: #2b0212; --hero-word: #f5ede2; --hero-on: #f5ede2;
  --logo1: #8c0c3a; --logo2: #f5ede2;
  --alt-bg: #8c0c3a; --alt-fg: #f5ede2; --word-on-cream: #8c0c3a; --well-b: #f91652;
  --c1: #8c0c3a; --c1-fg: #f5ede2; --c2: #f91652; --c2-fg: #2b0212; --c3: #95acde; --c3-fg: #7a0a32;
}
[data-theme="1"] {
  --hero-bg: #f5ede2; --hero-fg: #8c0c3a; --hero-word: #f91652; --hero-on: #f91652;
  --logo1: #f91652; --logo2: #8c0c3a;
  --alt-bg: #f91652; --alt-fg: #2b0212; --word-on-cream: #f91652; --well-b: #8c0c3a;
  --c1: #f91652; --c1-fg: #2b0212; --c2: #8c0c3a; --c2-fg: #f5ede2; --c3: #95acde; --c3-fg: #7a0a32;
}
[data-theme="3"] {
  --hero-bg: #8c0c3a; --hero-fg: #f5ede2; --hero-word: #ff9b80; --hero-on: #ff9b80;
  --logo1: #ff9b80; --logo2: #f5ede2;
  --alt-bg: #ff9b80; --alt-fg: #7a0a32; --word-on-cream: #8c0c3a; --well-b: #8c0c3a;
  --c1: #ff9b80; --c1-fg: #7a0a32; --c2: #8c0c3a; --c2-fg: #f5ede2; --c3: #f91652; --c3-fg: #2b0212;
}
[data-theme="4"] {
  --hero-bg: #8c0c3a; --hero-fg: #f5ede2; --hero-word: #f9da23; --hero-on: #f9da23;
  --logo1: #f9da23; --logo2: #f5ede2;
  --alt-bg: #f9da23; --alt-fg: #7a0a32; --word-on-cream: #8c0c3a; --well-b: #8c0c3a;
  --c1: #f9da23; --c1-fg: #7a0a32; --c2: #8c0c3a; --c2-fg: #f5ede2; --c3: #f91652; --c3-fg: #2b0212;
}
[data-theme="5"] {
  --hero-bg: #f91652; --hero-fg: #2b0212; --hero-word: #f5ede2; --hero-on: #f5ede2;
  --logo1: #f5ede2; --logo2: #8c0c3a;
  --alt-bg: #8c0c3a; --alt-fg: #f5ede2; --word-on-cream: #f91652; --well-b: #8c0c3a;
  --c1: #f91652; --c1-fg: #2b0212; --c2: #8c0c3a; --c2-fg: #f5ede2; --c3: #95acde; --c3-fg: #7a0a32;
}

/* Surfaces */
.hero, .bar, .band-ox { background: var(--hero-bg); color: var(--hero-fg); }
.hero .hero-logo, .bar, .band-ox { --l1: var(--logo1); --l2: var(--logo2); }
.hero .float { --l1: var(--alt-bg); --l2: var(--logo2); }
.band-cream { --rule: var(--ox); --l1: var(--alt-bg); --l2: var(--well-b); }
.band-cream .word, .band-cream .subword { color: var(--word-on-cream); }
.band-peri { background: var(--alt-bg); color: var(--alt-fg); --word: var(--alt-fg); --rule: var(--alt-fg); --dot: var(--alt-fg); --l1: var(--hero-bg); --l2: var(--cream); }
.band-ox { --word: var(--hero-word); --rule: var(--hero-fg); --dot: var(--hero-fg); }

/* Controls */
.nav a { color: var(--hero-fg); font-size: 1.1875rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--hero-on); }
.band-peri .button { background: var(--alt-fg); color: var(--alt-bg); }
.band-ox .button { background: var(--hero-fg); color: var(--hero-bg); }
.cta-1 { --cta-bg: var(--c1); --cta-fg: var(--c1-fg); }
.cta-2 { --cta-bg: var(--c2); --cta-fg: var(--c2-fg); }
.cta-3 { --cta-bg: var(--c3); --cta-fg: var(--c3-fg); }

/* Frames */
.portrait-frame { background: var(--hero-bg); color: var(--hero-fg); }
.portrait-frame::before { background: var(--logo2); }
.well-shape, .band-peri .well-shape { --well-a: var(--alt-bg); }
.well-empty { background: var(--well-b); }

/* Dialogs */
.sheet { background: var(--alt-bg); color: var(--alt-fg); }
.sheet .button { background: var(--alt-fg); color: var(--alt-bg); }
.sheet-close { background: var(--alt-fg); color: var(--alt-bg); }

/* Wiggly line takes the color of the band it sits on */
.timeline { position: relative; background: none; }
.timeline::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 120'%3E%3Cpath d='M20 0C44 20 44 40 20 60S-4 100 20 120' fill='none' stroke='%23000' stroke-width='5'/%3E%3C/svg%3E") center var(--wiggle, 0) / 2.5rem 7.5rem repeat-y;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 120'%3E%3Cpath d='M20 0C44 20 44 40 20 60S-4 100 20 120' fill='none' stroke='%23000' stroke-width='5'/%3E%3C/svg%3E") center var(--wiggle, 0) / 2.5rem 7.5rem repeat-y;
}
.tl { position: relative; }
@media (max-width: 52rem) {
  .timeline::before { -webkit-mask-position: 0.25rem var(--wiggle, 0); mask-position: 0.25rem var(--wiggle, 0); }
}
