:root {
  --pad: clamp(1.25rem, 3vw, 3rem);
  color-scheme: dark;
  font-family: InterVariable, Inter, ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  color: #ecebe3;
  background: #121310;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
}

.page {
  isolation: isolate;
  display: grid;
  height: 100dvh;
  min-height: 100dvh;
  grid-template-rows: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: var(--pad);
  overflow: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

h1 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 5.75rem);
  font-weight: 520;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.875rem;
  min-width: max-content;
}

.audience {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #f04d30;
  box-shadow: 0 0 0 0.28rem rgb(240 77 48 / 16%);
}

.meta a {
  color: rgb(236 235 227 / 32%);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.meta a:hover,
.meta a:focus-visible {
  color: rgb(236 235 227 / 72%);
}

.chart {
  position: relative;
  margin: 0 calc(var(--pad) * -1) calc(var(--pad) * -1);
}

canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 40rem) {
  .page {
    gap: 2rem;
  }

  .header {
    flex-direction: column;
    gap: 1.25rem;
  }

  h1 {
    font-size: clamp(2.4rem, 12.5vw, 4.25rem);
  }

  .meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .audience {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    box-shadow: none;
  }
}
