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

html {
  --accent: #fcafc9;
  --bg: #292f3a;
  --fg: white;
  --heading-link: #769e87;
  --heading-link-hover: #aae2b7;
  --secondary: #9abbf4;
  --secondary-subdued: #798eb3;
  --secondary-bg-subdued: #37445c80;
  --secondary-bright: #adcbff;
  --secondary-bg-bright: #5c729680;
  --subdued: #aaaaaa;
  font-size: 20px;
  font-family: sans-serif;
}

body {
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  background-color: var(--bg);
  color: var(--fg);
}

a, a:visited {
  text-decoration: none;
}

h1 {
  font-size: 1.5rem;
  margin: 0;
  max-width: max-content;
  line-height: 1;
}

p, ul, ol {
  margin: 0;
}

.flex {
  display: flex;
}
.col {
  flex-direction: column;
}
.gap-sm {
  gap: 0.5rem;
}
.gap-md {
  gap: 0.75rem;
}
.gap-lg {
  gap: 1rem;
}
.gap-xl {
  gap: 1.5rem;
}
.align-start {
  align-items: flex-start;
}
.align-center {
  align-items: center;
}
.align-end {
  align-items: flex-end;
}

.mb-sm {
  margin-bottom: 0.5rem;
}
.mb-1 {
  margin-bottom: 1rem;
}

.logo {
  width: 2.5rem;
  height: 2.5rem;
  image-rendering: pixelated;
  transition: filter 0.2s ease-out;
}
.logo:hover {
  filter: drop-shadow(0 0 3px var(--accent));
  transition: filter 0.2s ease-out;
}

.rotation-btn {
  font-family: monospace;
  font-weight: bold;
  font-size: 2rem;
  line-height: 2rem;
  padding: 0 0.4rem;
  transition: all 0.2s ease-out;
}
.rotation-btn::before {
  content: '→';
}
.rotation-btn.active {
  transform: rotateZ(90deg);
}

.live-indicator {
  color: var(--subdued);
  user-select: none;
}

button {
  font-size: 1rem;
  color: var(--secondary-subdued);
  background: var(--secondary-bg-subdued);
  border: none;
  border-radius: 4px;
  transition: all 0.1s ease-out;
  cursor: pointer;
}
button:hover {
  color: var(--secondary);
  transition: all 0.1s ease-out;
}
button.watching {
  color: var(--secondary-bright);
  background-color: var(--secondary-bg-bright);
}

video {
  max-width: 100%;
  height: min-content;
}

.videos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.videos:has(video + video) video {
  max-width: calc(50% - 0.25rem);
}

.footer {
  color: #789;
}
