/* Reset, document defaults, typography primitives and accessibility helpers. */

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

[hidden] {
  display: none !important;
}

html {
  height: 100%;
  background: var(--black);
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--black);
  font-family: var(--font);
  font-size: 16px;
  font-synthesis-weight: none;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

::selection {
  color: var(--on-green);
  background: var(--green);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Spotify-style slim scrollbars inside every scroll surface. */
.scroller {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.scroller::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.scroller::-webkit-scrollbar-track {
  background: transparent;
}

.scroller::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.3);
  background-clip: content-box;
}

.scroller::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
  background-clip: content-box;
}

/* Typography primitives */
.display {
  font-size: clamp(2.25rem, 1rem + 5.6vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: var(--tracking-tight);
  overflow-wrap: anywhere;
}

.display-sm {
  font-size: clamp(1.9rem, 1rem + 3.4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  overflow-wrap: anywhere;
}

.heading {
  font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.label {
  color: var(--subdued);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.body {
  color: var(--subdued);
  font-size: 0.875rem;
  line-height: 1.55;
}

.meta {
  color: var(--subdued);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.numeric {
  font-variant-numeric: tabular-nums;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  color: var(--on-green);
  background: var(--green);
  font-size: 0.875rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}
