@property --glow-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 100%;
}

@property --glow-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 100%;
}

@property --ring-progress {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

:root {
  color-scheme: light dark;
  --surface: #f7f7f5;
  --ink: #111;
  --muted: rgb(17 17 17 / 60%);
  --halo: rgb(17 17 17 / 8%);
  --dot-size: 8px;
  --glow: #fff;
  --glow-strength: 0.75;
  --glow-x: 50%;
  --glow-y: 50%;
  --ring-progress: 50%;
  --panel: rgb(17 17 17 / 3%);
  --panel-strong: rgb(17 17 17 / 5%);
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--surface);
  background: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  color: var(--ink);
  background: var(--surface);
  font-family: system-ui, sans-serif;
  isolation: isolate;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), var(--glow), transparent 55vmin);
  content: "";
  opacity: var(--glow-strength);
  pointer-events: none;
  transition: opacity 400ms ease-out, --glow-x 280ms ease-out, --glow-y 280ms ease-out;
}

.stage {
  display: grid;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 112px) 28px 48px;
  animation: reveal 600ms 100ms ease-out both;
}

.home-hero {
  display: grid;
  padding: 0 0 clamp(54px, 7vw, 84px);
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
  border-bottom: 1px solid var(--halo);
}

.home-eyebrow,
.improve-panel-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-intro h1 {
  max-width: 9.5ch;
  margin: 24px 0 0;
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.home-intro h1 span {
  color: var(--muted);
  font-weight: 430;
}

.home-deck {
  max-width: 42ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.improve-panel {
  display: grid;
  width: min(360px, 100%);
  aspect-ratio: 1;
  padding: 48px;
  justify-self: end;
  place-items: center;
  align-content: center;
  border: 1px solid var(--halo);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--panel-strong), transparent 66%);
  box-shadow: 0 28px 80px rgb(17 17 17 / 5%);
  text-align: center;
}

.improve-panel-label {
  margin-bottom: 2px;
  font-size: 10px;
}

.milestone-meter {
  display: grid;
  width: min(190px, 100%);
  margin-top: 18px;
  gap: 9px;
}

.milestone-progress {
  width: 100%;
  height: 3px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: var(--halo);
}

.milestone-progress::-webkit-progress-bar {
  border-radius: inherit;
  background: var(--halo);
}

.milestone-progress::-webkit-progress-value {
  border-radius: inherit;
  background: var(--ink);
}

.milestone-progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--ink);
}

.milestone-status {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.improve-note {
  max-width: 28ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.home-dashboard {
  display: grid;
  margin-top: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.no-js .improver,
.no-js .random-link,
.no-js .share,
.no-js .reset,
.no-js .home-shortcuts {
  display: none;
}

.no-script {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.improver {
  display: grid;
  width: 148px;
  min-height: 112px;
  padding: 22px 0 12px;
  place-items: center;
  gap: 18px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.improver:focus-visible {
  border-radius: 3px;
  outline: 1px solid var(--muted);
  outline-offset: 4px;
}

.dot {
  position: relative;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: var(--ink);
  transition: box-shadow 180ms ease-out, transform 180ms ease-out;
}

.mark {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
}

.mark::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--muted) var(--ring-progress), var(--halo) 0);
  content: "";
  opacity: 0.7;
  transform: rotate(-90deg);
  transition: --ring-progress 320ms ease-out;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
}

.dot::after {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--ink);
  border-radius: inherit;
  content: "";
  opacity: 0;
}

.improver:focus-visible .dot {
  box-shadow: 0 0 0 6px var(--halo);
  transform: scale(2);
}

.improver:active .dot {
  transform: scale(1.5);
}

.improver.is-improving .dot::after {
  animation: ripple 600ms ease-out;
}

.improver.is-milestone .mark::before {
  animation: milestone 700ms ease-out;
}

.prompt,
.wordmark {
  color: var(--muted);
  font: 600 10px/1 system-ui, sans-serif;
  letter-spacing: 0.13em;
}

.prompt {
  min-width: 10ch;
  text-align: center;
  text-transform: uppercase;
}

.count {
  min-width: 24ch;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.count.is-updating {
  animation: count-change 280ms ease-out;
}

.published-latest {
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px;
  align-content: start;
  gap: 11px;
  border: 1px solid var(--halo);
  border-radius: 18px;
  background: var(--panel);
  text-align: left;
}

.published-latest-label {
  margin: 0;
  color: var(--muted);
  font: 650 10px/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.published-latest > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 620;
  line-height: 1.3;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}

.published-latest > a span {
  margin-right: 0.35em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.published-latest a:hover {
  text-decoration-thickness: 2px;
}

.published-latest a:focus-visible {
  border-radius: 2px;
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.published-latest-note {
  max-width: 48ch;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.published-latest-note a {
  color: inherit;
  text-underline-offset: 3px;
}

.saved-history {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--halo);
  border-radius: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  background: var(--panel);
}

.saved-history[hidden] {
  display: none;
}

.saved-history-label {
  margin: 0;
  color: var(--muted);
  font: 650 10px/1.4 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.saved-history-link {
  display: grid;
  color: var(--ink);
  gap: 4px;
  text-align: right;
  text-decoration: none;
}

.saved-history-count {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.saved-history-link span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.saved-history-link:hover span {
  color: var(--ink);
}

.saved-history-link:focus-visible {
  border-radius: 2px;
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.catch-up {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 28px;
  grid-row: span 2;
  gap: 14px;
  border: 1px solid var(--halo);
  border-radius: 18px;
  background: var(--panel);
}

.catch-up-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.catch-up-label,
.catch-up-heading h2,
.catch-up-summary,
.catch-up-overflow,
.catch-up-status {
  margin: 0;
}

.catch-up-label {
  color: var(--muted);
  font: 650 10px/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.catch-up-heading h2 {
  font-size: 18px;
  font-weight: 650;
}

.catch-up-summary,
.catch-up-overflow,
.catch-up-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.catch-up-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 2px;
  list-style: none;
}

.catch-up-list li:nth-child(n + 4),
.catch-up-list li[hidden] {
  display: none;
}

.catch-up-list a {
  display: grid;
  min-height: 42px;
  padding: 9px 0;
  grid-template-columns: 5ch minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}

.catch-up-list a span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.catch-up-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.catch-up-history,
.catch-up-seen {
  min-height: 44px;
  padding: 12px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: 650 12px/1.3 system-ui, sans-serif;
  cursor: pointer;
  text-underline-offset: 3px;
}

.catch-up-seen {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--muted);
}

.catch-up-list a:hover,
.catch-up-history:hover,
.catch-up-seen:hover {
  text-decoration-thickness: 2px;
}

.catch-up-list a:focus-visible,
.catch-up-history:focus-visible,
.catch-up-seen:focus-visible {
  border-radius: 2px;
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.catch-up-status:empty {
  display: none;
}

.discovery {
  display: grid;
  width: 100%;
  margin: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--halo);
  border-radius: 18px;
  background: var(--panel);
}

.discovery-label {
  grid-column: 1 / -1;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--halo);
  color: var(--muted);
  font: 650 10px/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.discovery a {
  display: grid;
  min-height: 92px;
  padding: 22px 20px;
  place-content: center;
  gap: 7px;
  border-left: 1px solid var(--halo);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease-out;
}

.discovery a:first-of-type {
  border-left: 0;
}

.discovery strong {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discovery a span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.discovery a:hover {
  background: var(--halo);
}

.discovery a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: -1px;
}

.home-evidence {
  margin-top: clamp(64px, 10vw, 112px);
  padding-top: clamp(48px, 7vw, 72px);
  border-top: 1px solid var(--halo);
}

.evidence-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 18px clamp(40px, 7vw, 84px);
}

.evidence-eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.evidence-heading h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.evidence-heading > p:last-child {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.evidence-frames {
  display: grid;
  margin-top: clamp(36px, 6vw, 56px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.evidence-state {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--halo);
  border-radius: 20px;
  background: var(--panel);
}

.evidence-frame {
  position: relative;
  display: grid;
  aspect-ratio: 8 / 5;
  border-bottom: 1px solid var(--halo);
  place-items: center;
  background: var(--surface);
}

.evidence-state-after .evidence-frame {
  align-content: center;
  gap: 12px;
  background: radial-gradient(circle at 50% 38%, var(--panel-strong), transparent 58%), var(--surface);
}

.evidence-origin-dot,
.evidence-current-ring > span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.evidence-current-ring {
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  place-items: center;
}

.evidence-current-prompt,
.evidence-current-count {
  color: var(--muted);
  line-height: 1;
  text-align: center;
}

.evidence-current-prompt {
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.evidence-current-count {
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.evidence-current-card {
  display: grid;
  width: min(64%, 230px);
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid var(--halo);
  border-radius: 9px;
  align-content: center;
  gap: 6px;
  background: var(--panel);
}

.evidence-current-card i,
.evidence-current-card b {
  font-style: normal;
}

.evidence-current-card i {
  color: var(--muted);
  font-size: 6px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.evidence-current-card b {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.evidence-state figcaption {
  display: grid;
  min-height: 134px;
  padding: 22px 24px 24px;
  align-content: start;
  gap: 7px;
}

.evidence-state figcaption > span {
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.evidence-state figcaption strong {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.evidence-state figcaption small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.evidence-stats {
  display: grid;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--halo);
  border-radius: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--panel);
}

.evidence-stats div {
  display: grid;
  min-height: 92px;
  padding: 20px;
  border-left: 1px solid var(--halo);
  align-content: center;
  gap: 9px;
  text-align: center;
}

.evidence-stats div:first-child {
  border-left: 0;
}

.evidence-stats dt,
.evidence-stats dd {
  margin: 0;
}

.evidence-stats dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.evidence-stats dd {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 620;
}

.evidence-source {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--halo);
  border-radius: 18px;
  background: var(--panel);
}

.evidence-source > summary {
  display: flex;
  min-height: 56px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.evidence-source > summary::-webkit-details-marker {
  display: none;
}

.evidence-source > summary::after {
  content: "+";
  font-size: 14px;
}

.evidence-source[open] > summary {
  border-bottom: 1px solid var(--halo);
}

.evidence-source[open] > summary::after {
  content: "−";
}

.evidence-source > summary:hover {
  background: var(--halo);
}

.evidence-source > summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -3px;
}

.evidence-source-toolbar {
  display: flex;
  padding: 16px 20px;
  border-bottom: 1px solid var(--halo);
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.evidence-source-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.evidence-source-toolbar a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-underline-offset: 3px;
}

.evidence-source-toolbar a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.evidence-source-grid {
  display: grid;
  padding: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.evidence-source-grid > section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--halo);
  border-radius: 14px;
  background: var(--surface);
}

.evidence-source-grid header {
  padding: 20px;
}

.evidence-source-grid header p {
  margin: 0 0 8px;
  color: var(--muted);
  font: 650 9px/1 system-ui, sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.evidence-source-grid h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.evidence-source-grid pre {
  max-width: 100%;
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  border-top: 1px solid var(--halo);
  border-bottom: 1px solid var(--halo);
  background: var(--panel);
  color: var(--muted);
  font: 500 11px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  tab-size: 2;
}

.evidence-source-grid pre:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -3px;
}

.evidence-source-grid code span {
  display: block;
  color: var(--ink);
}

.evidence-source-note {
  margin: 0;
  padding: 15px 20px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.wordmark {
  position: relative;
  display: flex;
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto;
  padding: 26px 0 calc(30px + env(safe-area-inset-bottom));
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  border-top: 1px solid var(--halo);
  animation: reveal 800ms 400ms ease-out both;
  line-height: 1.5;
  white-space: normal;
}

.wordmark > span:first-child {
  margin-right: auto;
  color: var(--ink);
}

.wordmark-nav {
  display: inline;
}

.wordmark-nav a,
.home-more > summary,
.share,
.install,
.reset,
.home-shortcuts > summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.explore-link::before,
.highlights-link::before,
.about-link::before,
.colophon-link::before,
.privacy-link::before,
.stats-link::before,
.history-link::before,
.search-link::before,
.latest-link::before,
.random-link::before,
.feed-link::before,
.milestones-link::before,
.map-link::before,
.milestone-link::before,
.home-more > summary::before,
.share::before,
.install::before,
.reset::before,
.network-status:not(:empty)::before {
  content: " · ";
}

.home-more {
  position: relative;
  display: inline-block;
}

.home-more > summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
  cursor: pointer;
  list-style: none;
}

.home-more > summary::-webkit-details-marker {
  display: none;
}

.home-more > summary::after {
  margin-left: 0.45em;
  content: "+";
}

.home-more > summary:focus-visible {
  border-radius: 2px;
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.home-more[open] > summary {
  color: var(--ink);
}

.home-more[open] > summary::after {
  content: "−";
}

.home-more-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  display: grid;
  width: min(280px, calc(100vw - 32px));
  margin: 0;
  padding: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--halo);
  color: var(--muted);
  background: var(--surface);
  box-shadow: 0 12px 40px var(--halo);
  text-align: left;
  white-space: normal;
}

.home-more-panel a {
  display: flex;
  min-block-size: 44px;
  padding: 0 8px;
  align-items: center;
}

.home-more-panel a::before {
  content: none;
}

.home-shortcuts {
  position: relative;
  display: inline-block;
}

.home-shortcuts > summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
  cursor: pointer;
  list-style: none;
}

.home-shortcuts > summary::-webkit-details-marker {
  display: none;
}

.home-shortcuts > summary::before {
  content: " · ";
}

.home-shortcuts > summary:focus-visible {
  border-radius: 2px;
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.home-shortcuts[open] > summary {
  color: var(--ink);
}

.home-shortcuts dl {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  display: grid;
  width: 156px;
  margin: 0;
  padding: 12px;
  gap: 8px;
  border: 1px solid var(--halo);
  color: var(--muted);
  background: var(--surface);
  box-shadow: 0 12px 40px var(--halo);
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  white-space: normal;
}

.home-shortcuts dl div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: baseline;
}

.home-shortcuts dt,
.home-shortcuts dd {
  margin: 0;
}

.home-shortcuts kbd {
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.share,
.install,
.reset,
.explore-link,
.highlights-link,
.about-link,
.colophon-link,
.privacy-link,
.stats-link,
.search-link,
.latest-link,
.random-link,
.feed-link,
.milestones-link,
.map-link,
.milestone-link,
.history-link,
.help-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 160ms ease-out;
}

.install[hidden],
.reset[hidden] {
  display: none;
}

.explore-link,
.highlights-link,
.about-link,
.colophon-link,
.privacy-link,
.stats-link,
.history-link,
.search-link,
.latest-link,
.random-link,
.feed-link,
.milestones-link,
.map-link,
.milestone-link,
.help-link {
  text-decoration: none;
}

.share:focus-visible,
.install:focus-visible,
.reset:focus-visible,
.explore-link:focus-visible,
.highlights-link:focus-visible,
.about-link:focus-visible,
.colophon-link:focus-visible,
.privacy-link:focus-visible,
.stats-link:focus-visible,
.search-link:focus-visible,
.latest-link:focus-visible,
.random-link:focus-visible,
.feed-link:focus-visible,
.milestones-link:focus-visible,
.map-link:focus-visible,
.milestone-link:focus-visible,
.history-link:focus-visible,
.help-link:focus-visible {
  border-radius: 2px;
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.share {
  min-inline-size: 12ch;
  text-align: center;
}

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

.share:disabled {
  opacity: 0.6;
  cursor: wait;
}

@keyframes reveal {
  from { opacity: 0; }
}

@keyframes ripple {
  from {
    opacity: 0.45;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(12);
  }
}

@keyframes count-change {
  from {
    opacity: 0.2;
    transform: translateY(2px);
  }
}

@keyframes milestone {
  50% {
    opacity: 1;
    transform: rotate(-90deg) scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage,
  .wordmark {
    animation: none;
  }

  .dot {
    transition: none;
  }

  .mark::before {
    transition: none;
  }

  body::before {
    transition: none;
  }

  .share,
  .install,
  .reset,
  .explore-link,
  .highlights-link,
  .about-link,
  .privacy-link,
  .stats-link,
  .search-link,
  .latest-link,
  .random-link,
  .milestones-link,
  .map-link,
  .milestone-link,
  .history-link,
  .help-link {
    transition: none;
  }

  .improver.is-improving .dot::after {
    animation: none;
  }

  .improver.is-milestone .mark::before {
    animation: none;
  }

  .count.is-updating {
    animation: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body::before {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .improver:hover .dot {
    box-shadow: 0 0 0 6px var(--halo);
    transform: scale(2);
  }

  .share:hover,
  .install:hover,
  .reset:hover,
  .explore-link:hover,
  .highlights-link:hover,
  .about-link:hover,
  .colophon-link:hover,
  .privacy-link:hover,
  .stats-link:hover,
  .search-link:hover,
  .latest-link:hover,
  .random-link:hover,
  .feed-link:hover,
  .milestones-link:hover,
  .map-link:hover,
  .milestone-link:hover,
  .history-link:hover,
  .help-link:hover,
  .home-more > summary:hover {
    color: var(--ink);
  }
}

@media (max-width: 720px) {
  .stage {
    padding: 44px 20px 28px;
  }

  .home-hero {
    padding-bottom: 52px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-intro h1 {
    font-size: clamp(50px, 14vw, 72px);
  }

  .home-deck {
    margin-top: 24px;
    font-size: 15px;
  }

  .improve-panel {
    justify-self: center;
  }

  .home-dashboard {
    grid-template-columns: 1fr;
  }

  .evidence-heading,
  .evidence-frames {
    grid-template-columns: 1fr;
  }

  .evidence-source-grid {
    grid-template-columns: 1fr;
  }

  .evidence-source-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-heading {
    align-items: start;
    gap: 16px;
  }

  .evidence-heading h2 {
    max-width: 12ch;
  }

  .catch-up {
    grid-row: auto;
  }

  .wordmark {
    width: calc(100% - 40px);
    justify-content: center;
    line-height: 1.8;
    text-align: center;
    white-space: normal;
  }

  .wordmark > span:first-child {
    width: 100%;
    margin: 0 0 4px;
  }
}

@media (max-width: 440px) {
  .stage {
    padding-top: 34px;
  }

  .home-eyebrow {
    font-size: 10px;
  }

  .home-intro h1 {
    margin-top: 18px;
    font-size: clamp(44px, 14vw, 58px);
  }

  .improve-panel {
    width: min(330px, 100%);
    padding: 38px;
  }

  .published-latest,
  .catch-up {
    padding: 22px;
  }

  .published-latest > a,
  .catch-up-heading h2 {
    font-size: 17px;
  }

  .catch-up-heading {
    display: grid;
    gap: 6px;
  }

  .discovery {
    grid-template-columns: 1fr;
  }

  .discovery a,
  .discovery a:first-of-type {
    border-top: 1px solid var(--halo);
    border-left: 0;
  }

  .discovery a:first-of-type {
    border-top: 0;
  }

  .evidence-stats {
    grid-template-columns: 1fr;
  }

  .evidence-stats div,
  .evidence-stats div:first-child {
    min-height: 78px;
    border-top: 1px solid var(--halo);
    border-left: 0;
  }

  .evidence-stats div:first-child {
    border-top: 0;
  }

  .evidence-source > summary {
    min-height: 64px;
    padding: 0 16px;
  }

  .evidence-source-toolbar {
    padding: 14px 16px;
  }

  .evidence-source-toolbar a {
    width: 100%;
    justify-content: flex-start;
  }

  .evidence-source-grid {
    padding: 10px;
  }

  .evidence-source-grid pre {
    padding: 16px;
    font-size: 10px;
  }

  .home-more-panel {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (prefers-contrast: more) {
  .prompt,
  .count,
  .published-latest-label,
  .published-latest-note,
  .saved-history-label,
  .saved-history-link span,
  .catch-up-label,
  .catch-up-summary,
  .catch-up-overflow,
  .catch-up-status,
  .discovery-label,
  .discovery a span,
  .evidence-eyebrow,
  .evidence-heading > p:last-child,
  .evidence-state figcaption > span,
  .evidence-state figcaption small,
  .evidence-stats dt,
  .evidence-source-toolbar p,
  .evidence-source-grid header p,
  .evidence-source-note,
  .wordmark {
    color: var(--ink);
  }

  .mark::before {
    opacity: 1;
  }

  .improver:focus-visible {
    outline: 2px solid var(--ink);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #111;
    --ink: #f7f7f5;
    --muted: rgb(247 247 245 / 60%);
    --halo: rgb(247 247 245 / 10%);
    --glow: #30302e;
    --panel: rgb(247 247 245 / 3%);
    --panel-strong: rgb(247 247 245 / 6%);
  }

  .improve-panel {
    box-shadow: 0 28px 80px rgb(0 0 0 / 18%);
  }
}

@media (forced-colors: active) {
  body::before {
    display: none;
  }

  .dot {
    background: ButtonText;
  }

  .mark::before {
    border: 1px solid ButtonText;
    background: none;
    opacity: 1;
    -webkit-mask: none;
    mask: none;
  }

  .prompt,
  .count,
  .saved-history-label,
  .saved-history-link,
  .saved-history-link span,
  .catch-up-label,
  .catch-up-summary,
  .catch-up-overflow,
  .catch-up-status,
  .catch-up-list a,
  .catch-up-list a span,
  .catch-up-history,
  .catch-up-seen,
  .discovery-label,
  .discovery a,
  .discovery a span,
  .wordmark {
    color: CanvasText;
  }

  .improver:focus-visible {
    outline: 2px solid Highlight;
  }

  .catch-up {
    border-color: CanvasText;
  }

  .home-evidence,
  .evidence-state,
  .evidence-frame,
  .evidence-current-ring,
  .evidence-current-card,
  .evidence-stats,
  .evidence-stats div,
  .evidence-source,
  .evidence-source[open] > summary,
  .evidence-source-toolbar,
  .evidence-source-grid > section,
  .evidence-source-grid pre {
    border-color: CanvasText;
  }

  .evidence-origin-dot,
  .evidence-current-ring > span {
    background: CanvasText;
  }

  .evidence-current-prompt,
  .evidence-current-count,
  .evidence-current-card i,
  .evidence-state figcaption > span,
  .evidence-state figcaption small,
  .evidence-stats dt,
  .evidence-source > summary,
  .evidence-source-toolbar p,
  .evidence-source-toolbar a,
  .evidence-source-grid header p,
  .evidence-source-grid pre,
  .evidence-source-grid code span,
  .evidence-source-note {
    color: CanvasText;
  }

  .saved-history {
    border-color: CanvasText;
  }

  .home-more-panel {
    border-color: CanvasText;
    box-shadow: none;
  }
}
