@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  background: #101417;
  --pass-background: #ff3157;
}
body {
  --background: #101417;
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--background);
  background: color-mix(in oklch shorter hue, var(--pass-background), var(--background) var(--count-progress, 100%));
  color: #fff;
}
body[data-state="pass"] {
  --background: var(--pass-background);
}
body[data-state="watch"] {
  --background: #ff7824;
}
body[data-state="normal"] {
  --background: #ffcc00;
}
body[data-state="consider"] {
  --background: #a6d900;
}
body[data-state="buy"] {
  --background: #00c978;
}
main {
  max-width: 100%;
  box-sizing: border-box;
  padding: 32px 20px;
  text-align: center;
}
h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: .14em;
}
.site-header {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px clamp(16px, 4vw, 40px);
}
.site-header a {
  color: inherit;
  text-decoration: none;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px clamp(12px, 3vw, 28px);
  font-size: 14px;
  font-weight: 600;
}
.site-header nav a:is(:hover, [aria-current="page"]) {
  text-decoration: underline;
  text-underline-offset: .35em;
}
.site-header a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.score {
  margin: 14px 0 18px;
  font-size: clamp(72px, 20vw, 148px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.label {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
.date {
  position: fixed;
  inset-inline: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
button {
  font: inherit;
  margin-top: 12px;
  background: transparent;
  color: inherit;
  border: 1px solid #637076;
  padding: 7px 12px;
  cursor: pointer;
}
button:focus-visible {
  outline: 2px solid #9cddcb;
  outline-offset: 3px;
}
