:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-2: #f0eadd;
  --ink: #1b1d24;
  --ink-2: #3c3e46;
  --muted: #6e6a62;
  --line: #e0d8c8;
  --line-strong: #cbbfa8;
  --accent: #102a83;
  --accent-ink: #ffffff;
  --accent-soft: #e3e8f7;
  --amber: #c98a00;
  --amber-soft: #fbefd0;
  --target: #b4451f;
  --target-soft: #fbe5dc;
  --good: #2f7a4f;
  --good-soft: #def0e4;
  --shadow: 0 1px 0 rgba(27, 29, 36, 0.04), 0 6px 20px -12px rgba(27, 29, 36, 0.25);
  --radius: 12px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Charter, 'Bitstream Charter',
    Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13151b;
    --surface: #1b1e26;
    --surface-2: #232733;
    --ink: #ece7dc;
    --ink-2: #cdc8bd;
    --muted: #9a958b;
    --line: #2b303c;
    --line-strong: #3b4252;
    --accent: #9db0ff;
    --accent-ink: #0f1430;
    --accent-soft: #232b4a;
    --amber: #f2ac10;
    --amber-soft: #3a2f14;
    --target: #ff8a5c;
    --target-soft: #3d241b;
    --good: #6fcf97;
    --good-soft: #1b3326;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 24px -14px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

button {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* ---------- wordmark ---------- */

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
  margin-left: 0.12em;
}

.wordmark.small {
  font-size: 1.25rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}

.btn:hover {
  border-color: var(--accent);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:hover:not(:disabled) {
  filter: brightness(1.12);
}

.btn.ghost {
  background: transparent;
}

.btn.danger {
  background: var(--target);
  border-color: var(--target);
  color: #fff;
}

.btn.big {
  font-size: 1.1rem;
  padding: 0.8em 1.6em;
}

.btn.tiny {
  font-size: 0.82rem;
  padding: 0.3em 0.8em;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- home ---------- */

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.tagline {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 34em;
  margin: 14px auto 0;
  text-wrap: balance;
}

.how ol {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.how li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.how-node {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
}

.how-node.paper {
  border-radius: 4px;
  border-color: var(--amber);
  background: var(--amber-soft);
}

.how-node.target {
  border-color: var(--target);
  background: var(--target-soft);
  box-shadow: 0 0 0 3px var(--target-soft);
}

@media (max-width: 640px) {
  .how ol {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 16px 0;
}

.card h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 2px 0 0;
}

.card-head {
  margin-bottom: 14px;
}

.card-head p {
  margin: 2px 0 0;
}

.kicker {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6em;
  align-items: baseline;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.daily-card {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, var(--amber-soft), transparent 55%),
    var(--surface);
}

.daily-done {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.daily-done p {
  margin: 0;
}

.difficulty-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn.difficulty {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
}

.btn.difficulty span {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

.btn.difficulty.easy b {
  color: var(--good);
}
.btn.difficulty.medium b {
  color: var(--amber);
}
.btn.difficulty.hard b {
  color: var(--target);
}

@media (max-width: 560px) {
  .difficulty-row {
    grid-template-columns: 1fr;
  }
}

.custom-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.swap {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

@media (max-width: 560px) {
  .custom-row {
    grid-template-columns: 1fr;
  }
  .swap {
    justify-self: center;
    margin: 0;
  }
}

.error {
  color: var(--target);
  margin: 0 0 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
  margin: 24px 0;
}

.stats div {
  display: flex;
  flex-direction: column;
}

.stats b {
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.1;
}

.stats span {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-2);
}

.footer p {
  margin: 4px 0;
}

/* ---------- picker ---------- */

.picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.picker-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.combo {
  position: relative;
}

.filter {
  width: 100%;
  font: inherit;
  padding: 0.6em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}

.filter::placeholder {
  color: var(--muted);
}

.combo-list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
}

.combo-list.empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.combo-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.combo-list li.active {
  background: var(--accent-soft);
}

.combo-meta {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.picked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.45em 0.5em 0.45em 0.9em;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
}

.picked > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.picked-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picked-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- game ---------- */

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mode-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}

.meters {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
}

.meter b {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.giveup-confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.notice {
  background: var(--amber-soft);
  border: 1px solid var(--line-strong);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 8px 0 16px;
}

.matchup-arrow {
  color: var(--muted);
}

.endpoint {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}

.endpoint.target {
  border-color: var(--target);
  background: linear-gradient(135deg, var(--target-soft), transparent 70%), var(--surface);
}

button.endpoint {
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.05s;
}

button.endpoint:hover {
  box-shadow: 0 0 0 2px var(--target-soft), var(--shadow);
}

button.endpoint:hover .endpoint-name {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--target) 45%, transparent);
  text-underline-offset: 4px;
}

button.endpoint:active {
  transform: translateY(1px);
}

.endpoint.active {
  border: 2px solid var(--accent);
  padding: 11px 13px;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.grow-hint {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
  padding: 0.05em 0.6em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  white-space: nowrap;
}

.switch-hint {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
  padding: 0.05em 0.6em;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--target) 40%, transparent);
  color: var(--target);
  white-space: nowrap;
}

.hint-short {
  display: none;
}

.endpoint-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.endpoint.target .endpoint-label {
  color: var(--target);
}

.endpoint-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.endpoint-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .topbar-inner {
    gap: 8px;
    padding: 8px 16px;
  }
  .mode-chip {
    display: none;
  }
  .meters {
    gap: 10px;
  }
  .matchup {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
  }
  .matchup-arrow {
    display: none;
  }
  .endpoint {
    padding: 8px 10px;
  }
  .endpoint.active {
    padding: 7px 9px;
  }
  .endpoint-name {
    font-size: 1.05rem;
  }
  .endpoint-meta {
    font-size: 0.72rem;
  }
  .hint-long {
    display: none;
  }
  .hint-short {
    display: inline;
  }
  .panel {
    padding: 16px 14px;
  }
  .paper-row {
    grid-template-columns: 4.6rem 1fr auto;
    gap: 8px;
    padding: 10px 4px;
  }
}

.trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 16px;
}

.trail ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.trail-gap {
  color: var(--muted);
  letter-spacing: 0.2em;
  font-weight: 700;
}

.crumb.head > button {
  outline: 1px dashed var(--line-strong);
  outline-offset: -1px;
}

.crumb {
  display: inline-flex;
  align-items: center;
}

.crumb + .crumb::before {
  content: '→';
  color: var(--muted);
  margin: 0 6px;
}

.crumb > button,
.crumb > span {
  border: 0;
  background: none;
  padding: 2px 6px;
  border-radius: 6px;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crumb > button {
  cursor: pointer;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}

.crumb > button:hover {
  background: var(--accent-soft);
}

.crumb.paper > button,
.crumb.paper > span {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--amber);
  text-decoration-color: color-mix(in srgb, var(--amber) 35%, transparent);
}

.crumb.current > span {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  animation: rise 0.18s ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

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

.panel-head {
  margin-bottom: 12px;
}

.node-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.15;
  margin: 4px 0 4px;
  text-wrap: balance;
}

.node-title.paper {
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  font-weight: 600;
}

.node-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.ext {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8rem;
  text-decoration: none;
}

.panel-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.prompt {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.paper-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.paper-list li + li {
  border-top: 1px solid var(--line);
}

.paper-row {
  width: 100%;
  display: grid;
  grid-template-columns: 5.4rem 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 10px 8px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}

.paper-row:hover {
  background: var(--accent-soft);
}

.venue-tag {
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.3;
  padding-top: 2px;
}

.venue-year {
  color: var(--muted);
  font-weight: 400;
}

.paper-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.paper-title {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--ink);
}

.paper-authors {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.is-target {
  color: var(--target);
  font-weight: 700;
}

.paper-row.seen .paper-title {
  color: var(--muted);
}

.paper-row.meets {
  background: var(--target-soft);
  box-shadow: inset 3px 0 0 var(--target);
}

.meet-tag {
  margin: 0 0 0 8px;
  vertical-align: 2px;
  background: var(--target);
  color: #fff;
  font-family: var(--sans);
}

.seen-dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.empty {
  padding: 16px 8px;
  color: var(--muted);
}

.author-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

.author-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.author-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.author-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
}

.author-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.author-card {
  position: relative;
}

.author-cost {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber);
}

.author-cost.hidden-cost {
  color: var(--muted);
  font-weight: 600;
}

.author-card .author-name {
  padding-right: 3.2em;
}

/* paper counts = what a researcher costs */
.cost-tag,
.crumb-cost,
.inline-cost {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--amber);
}

.cost-tag {
  font-size: 0.62em;
  vertical-align: 0.25em;
}

.crumb-cost {
  font-size: 0.85em;
  margin-left: 0.15em;
}

.crumb.current .crumb-cost {
  color: inherit;
  opacity: 0.75;
}

.inline-cost {
  font-size: 0.85em;
  margin-left: 0.3em;
}

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

.tag {
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.author-card.from {
  opacity: 0.7;
}

.author-card.seen .author-name {
  color: var(--ink-2);
}

.author-card.target {
  border: 2px solid var(--target);
  background: var(--target-soft);
}

.target-tag {
  background: var(--target);
  color: #fff;
}

/* ---------- result ---------- */

.result.won {
  border-color: var(--good);
  background: linear-gradient(160deg, var(--good-soft), transparent 40%), var(--surface);
}

.result.lost {
  border-color: var(--line-strong);
}

.result-head {
  margin-bottom: 16px;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 20px;
}

.scoreboard div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.scoreboard dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.scoreboard dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
}

.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.path-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.chain {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--line-strong);
}

.chain li {
  position: relative;
  padding: 3px 0 3px 10px;
}

.chain li::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 0.75em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--surface);
}

.chain-paper::before {
  border-radius: 3px !important;
  border-color: var(--amber) !important;
  width: 10px !important;
  height: 10px !important;
  left: -20px !important;
}

.chain li:first-child::before,
.chain li:last-child::before {
  background: var(--accent);
}

.chain li:last-child::before {
  border-color: var(--target);
  background: var(--target);
}

.chain-author a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.chain-paper a {
  font-size: 0.85rem;
  color: var(--ink-2);
  text-decoration: none;
  display: block;
  line-height: 1.35;
}

.chain a:hover {
  text-decoration: underline;
}

.chain-venue {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-fallback {
  width: 100%;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
}

.next-daily {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- misc ---------- */

.loading {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.problem {
  text-align: center;
  padding-top: 15vh;
}

.problem h1 {
  font-family: var(--serif);
}

/* ---------- typeset titles ---------- */

.tex-sf {
  font-family: var(--sans);
  font-size: 0.92em;
}

.tex-sc {
  font-variant: small-caps;
}

.tex-tt {
  font-family: var(--mono);
  font-size: 0.88em;
}

sup,
sub {
  font-size: 0.68em;
  line-height: 0;
}
