:root {
  --ink: #211922;
  --muted: #62625b;
  --hint: #91918c;
  --rule: #e5e5e0;
  --sunk: #f6f6f3;
  --paper: #ffffff;
  --page: #eeeeea;
  color: var(--ink);
  background: var(--page);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 2;
  width: auto;
  height: auto;
  overflow: visible;
  padding: .5rem;
  background: var(--paper);
}

.site-header,
.site-footer,
.page {
  width: min(100% - 2rem, 920px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  padding-block: 1.2rem;
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  font-weight: 700;
  text-decoration: none;
}

.page {
  min-height: 70vh;
  padding-block: 2rem 4rem;
}

.site-footer {
  padding-block: 1.5rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .875rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -.02em;
}

h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  margin-top: 2.5rem;
}

.lede,
.meta,
.empty {
  max-width: 68ch;
  color: var(--muted);
}

.crumb {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: .875rem;
}

.panel,
.card {
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: var(--paper);
}

.panel {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.card {
  overflow: hidden;
}

.card-body {
  padding: .8rem 1rem;
}

.poster {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: var(--sunk);
}

.poster-placeholder {
  display: grid;
  aspect-ratio: 3 / 4;
  place-items: center;
  color: var(--hint);
  background: var(--sunk);
}

.position-head,
.row,
.result-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.position-head {
  margin-bottom: .75rem;
}

.row {
  padding-block: .9rem;
  border-bottom: 1px solid var(--rule);
}

.row:last-child {
  border-bottom: 0;
}

.pill {
  display: inline-block;
  padding: .15rem .55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--sunk);
  font-size: .75rem;
}

.answer {
  max-width: 72ch;
  white-space: pre-wrap;
}

.result {
  margin-block: 1rem;
}

.track {
  height: .5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sunk);
}

.fill {
  height: 100%;
  background: var(--muted);
}

.notice {
  padding: .8rem 1rem;
  border-left: 3px solid var(--muted);
  background: var(--sunk);
}

.mono {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .position-head,
  .row,
  .result-line {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
  }
}
