:root
{
  --purple-hsl: 267, 100%, 30%;
  --purple: hsl(var(--purple-hsl));
  --purple-shadow: hsla(var(--purple-hsl), 0.25);
  --electric: hsl(188, 100%, 48%);
  --yellow: hsl(56, 90%, 69%);

  --primary-text: black;
  --primary-headers: black;
  --primary-background: white;

  --border: hsl(0, 0%, 80%);

  --link: hsl(242, 100%, 40%);
  --link-active: hsl(242, 100%, 20%);

  --shadow: hsla(0, 0%, 0%, 0.5);

  --base: min(7vw, max(5vh, 2rem));

  --control-shadow: drop-shadow(0 0.125rem 0.25rem var(--shadow));
  --control-shadow-active: drop-shadow(0 0.0625rem 0.125rem var(--shadow));
}

@media (prefers-color-scheme: dark) {
  :root
  {
    --primary-text: hsl(0, 0%, 85%);
    --primary-headers: white;
    --primary-background: hsl(0, 0%, 15%);

    --border: hsl(0, 0%, 30%);

    --link: hsl(188, 100%, 48%);
    --link-active: hsl(188, 100%, 28%);
  }
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/CrimsonPro-Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/CrimsonPro-ExtraBold.ttf') format('opentype');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/CrimsonPro-Italic.ttf') format('opentype');
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: 'FUCXEDCAPS';
  src: url('fonts/FUCXEDCAPSLatin-Regular.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

html
{
  box-sizing: border-box;
}
*, *::before, *::after
{
  box-sizing: inherit;
}

html,
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
button
{
  margin: 0;
  padding: 0;
}
li
{
  margin-left: 2em;
}
svg
{
  display: block;
}
button
{
  -webkit-appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

table
{
  border-collapse: collapse;
}
tr
{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
th,
td
{
  padding: 0.125rem 0.25rem;
  text-align: left;
}
th:first-child,
td:first-child
{
  padding-left: 0;
}
th:last-child,
td:last-child
{
  padding-right: 0;
}

a
{
  color: var(--link);
  font-weight: bold;
}
a:active
{
  color: var(--link-active);
}

p.tagline
{
  font-size: 150%;
  font-style: italic;
  line-height: 1.1;
}

ol.sources
{
  counter-reset: item;
  list-style-type: none;
}
ol.sources li
{
  margin: 0;
}
ol.sources li::before
{
  content: "[" counter(item) "] ";
  counter-increment: item;
}
ol.sources li:target
{
  background: var(--yellow);
  outline: 1px solid var(--yellow);
}
@media (prefers-color-scheme: dark) {
  ol.sources li:target
  {
    background: black;
  }
}
ol.sources a
{
  font-weight: normal;
}

button.pause:active,
button.replay:active
{
  opacity: 0.9;
}
button.pause svg,
button.replay svg
{
  width: 100%;
  height: 100%;
  filter: var(--control-shadow);
}
button.pause:active svg,
button.replay:active svg
{
  filter: var(--control-shadow-active);
}
button.pause svg path,
button.replay svg path
{
  fill: white;
}
.paused button.pause svg path:nth-child(1),
button.pause:not(.paused button.pause) svg path:nth-child(2)
{
  display: none;
}

html
{
  font: min(150%, max(125%, 2.5vw))/1.3 'Crimson Pro', serif;
}
body
{
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-tap-highlight-color: transparent;
  background: var(--purple);
}

header,
section
{
  padding: var(--base)
           max(var(--base), calc(env(safe-area-inset-left) + 1rem))
           var(--base)
           max(var(--base), calc(env(safe-area-inset-right) + 1rem));
}

header
{
  position: relative;
  max-width: 3200px;
  margin: 0 auto;
  background: url('images/background.jpg?1') center;
  background-size: cover;
  font: var(--base)/0.98 'FUCXEDCAPS', sans-serif;
  text-shadow: 0 0 0.25em var(--purple-shadow);
}
header h1
{
  font-size: 4em;
}
header h1,
header h1 a,
header h1 a:active
{
  color: var(--electric);
}
header h1 a
{
  text-decoration: none;
}
header.secondary
{
  padding-top: 1rem;
  padding-bottom: 1rem;
}
header.secondary h1
{
  font-size: 1.5rem;
}

div.marquees
{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
  font-size: 1.25em;
}
div.marquees > div
{
  position: absolute;
  padding: 0.15em 0 0.1em 0;
  color: white;
  background: black;
}
div.marquees > div > div
{
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  overflow: hidden;
}
div.marquees p
{
  padding: 0 1em;
  white-space: nowrap;
  animation: marquee 4s linear infinite;
}
header.paused div.marquees p
{
  animation-play-state: paused;
}
@keyframes marquee {
  from {
    transform: translate(-100%);
  }
  to {
    transform: translate(0);
  }
}
div.marquees > div:nth-child(1)
{
  top: -1em;
  left: 0;
  transform: rotate(9deg);
  transform-origin: top left;
}
div.marquees > div:nth-child(2)
{
  bottom: -0.5em;
  left: 0;
  transform: rotate(-4.5deg);
  transform-origin: bottom left;
}

header nav
{
  z-index: 9;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  font-size: 1.25rem;
}
header nav a
{
  display: block;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: black;
  background: var(--yellow);
  text-decoration: none;
  filter: var(--control-shadow);
}
header nav a div
{
  margin-bottom: -0.0625em;
}
header nav a:active
{
  opacity: 0.9;
  filter: var(--control-shadow-active);
}

header button.pause
{
  position: absolute;
  right: 0.125em;
  bottom: 0.125em;
  width: 0.75em;
  height: 0.75em;
}
@media (max-width: 874px) {
  header button.pause:not(.paused button.pause)
  {
    display: none;
  }
}

@media (prefers-reduced-motion) {
  div.marquees p
  {
    animation: none !important;
  }
  div.marquees > div:nth-child(1) p
  {
    transform: translate(-80%);
  }
  div.marquees > div:nth-child(2) p
  {
    transform: translate(-95%);
  }
  header button.pause
  {
    display: none;
  }
}

main p,
main h3,
main h4,
main ul,
main ol,
main figure
{
  margin: 1rem 0;
}
main p:first-child,
main h3:first-child,
main h4:first-child,
main ul:first-child,
main ol:first-child,
main figure:first-child
{
  margin-top: 0;
}
main p:last-child,
main h3:last-child,
main h4:last-child,
main ul:last-child,
main ol:last-child,
main figure:last-child
{
  margin-bottom: 0;
}
main h2,
main h3,
main h4
{
  font: 2rem/0.98 'FUCXEDCAPS', sans-serif;
}
main h4
{
  font-size: 1.5rem;
}

main figure
{
  display: block;
}
main figure img
{
  display: block;
  max-width: 100%;
  max-height: max(60vw, 60vh);
  margin: 0 auto;
}

section.primary
{
  color: white;
  background: var(--purple);
}
section.primary:not(.plain) h2
{
  font-size: max(2rem, min(3rem, 6vw));
}
section.primary:not(.plain) a
{
  color: white;
}
section.primary:not(.plain) a:active
{
  opacity: 0.8;
}
section.primary.plain,
section.secondary
{
  color: var(--primary-text);
  background: var(--primary-background);
}
section.secondary h3,
section.secondary h4
{
  color: var(--primary-headers);
}
section.primary.plain h3
{
  font-size: 1.5rem;
}
section.primary.plain h4
{
  font-size: 1.25rem;
}
section > div
{
  container-type: inline-size;
  margin: 0 auto;
}
section.primary > div
{
  max-width: 44rem;
}
section.secondary > div
{
  max-width: 88rem;
}

body:has(header.secondary) section
{
  hyphens: auto;
}

div.actions
{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem auto;
  font: 1rem/0.98 'FUCXEDCAPS', sans-serif;
}
@media (max-width: 40rem) {
  div.actions
  {
    flex-direction: column;
  }
}
div.actions a
{
  flex: 1 1 auto;
  display: block;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.375rem;
  color: black !important;
  background: var(--yellow);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  filter: var(--control-shadow);
  counter-increment: step;
}
div.actions a div
{
  margin-bottom: -0.0625em;
}
div.actions a div:before
{
  content: counter(step) ': ';
}
div.actions a:active
{
  opacity: 0.8;
  filter: var(--control-shadow-active);
}

div.quote
{
  margin: 1rem auto;
}
div.quote blockquote
{
  position: relative;
  margin: 0;
  font-size: 1.25rem;
  font-style: italic;
}
div.quote blockquote p:first-child:before
{
  content: '“';
  position: absolute;
  right: 100%;
}
div.quote blockquote p:last-child:after
{
  content: '”';
}
div.quote > p
{
  margin-top: 0.5rem;
  text-align: right;
}

div.player
{
  display: flex;
  justify-content: center;
  font: min(1.25rem, max(3vw, 0.75rem))/0.98 'FUCXEDCAPS', sans-serif;
  overflow: clip;
}
div.player > div
{
  position: relative;
  width: 100%;
  max-width: 44rem;
  aspect-ratio: 16/9;
  background: var(--shadow);
}
div.player div.overlay
{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
div.player video
{
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  bottom: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
}

div.player button.unmute
{
  position: absolute;
  left: 0.75em;
  top: 0.75em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
  padding: 0.375rem 0.675rem;
  border: none;
  border-radius: 0.375rem;
  color: black;
  background: white;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  filter: var(--control-shadow);
}
div.player button.unmute div
{
  margin-bottom: -0.0625em;
  font: 1rem/0.98 'FUCXEDCAPS', sans-serif;
}
div.player button.unmute svg
{
  width: 1.25rem;
  height: 1.25rem;
}
div.player button.unmute svg path
{
  fill: black;
}
div.player button.unmute:active
{
  opacity: 0.9;
  filter: var(--control-shadow-active);
}

div.player button.pause,
div.player button.replay
{
  position: absolute;
  bottom: 0.5em;
  width: 2.125em;
  height: 2.125em;
}
div.player button.pause
{
  left: 0.5em;
}
div.player button.replay
{
  right: 0.5em;
}

div.player div.cues
{
  position: absolute;
  left: 4em;
  right: 4em;
  bottom: 0.625em;
  color: white;
  text-align: center;
  text-shadow: 0 0 1px var(--shadow), 0 0 0.25em var(--shadow);
}

div.player div.progress
{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--shadow);
}
div.player div.progress > div
{
  width: 0%;
  height: 2px;
  background: white;
}

div.columns
{
  margin: 0 0 -1rem 0;
}
div.columns > div
{
  padding-bottom: 1rem;
}
div.columns > div:has(+div > h3:first-child),
div.columns > div:has(+div > h4:first-child)
{
  padding-bottom: 2rem;
}
@container (min-width: 44rem) {
  div.columns
  {
    column-count: 2;
    column-gap: 2rem;
  }
  div.columns > div,
  div.columns p
  {
    break-inside: avoid-column;
  }
}
@container (min-width: 67rem) {
  div.columns
  {
    column-count: 3;
  }
}

div.video
{
  margin: 2rem 0 0 0;
  text-align: center;
}

ul.media
{
  list-style-type: none;
}
ul.media li
{
  margin: 0;
  padding: 0;
}
ul.media li span
{
  display: inline-block;
  padding: 0.25rem 0.25rem 0.125rem 0.25rem;
  border-radius: 0.125rem;
  background: var(--primary-text);
  color: var(--primary-background);
  font: 0.8rem/0.98 'FUCXEDCAPS', sans-serif;
}

footer a
{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  padding: 1.5rem;
  margin: 0 auto;
  color: white !important;
  text-decoration: none;
}
footer a + a
{
  margin-top: -1rem
}
footer svg path
{
  fill: white;
}
footer a:active
{
  opacity: 0.8;
}
footer a:not(.xr) svg
{
  width: 1.5rem;
  height: 1.5rem;
}
footer a.xr svg
{
  width: 8rem;
  height: 8rem;
}
