@font-face {
  font-family: "Forgotten Stone";
  src: url("/assets/fonts/ForgottenStone-e3b8da72420453edc405513070191901.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Forgotten Tiny";
  src: url("/assets/fonts/ForgottenTiny-64c5bed38640ad205a13100554be57dd.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable-2bf3d951bf9d6109437ea0874bbf12fb.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable-Italic-8d1dc86da25893737b6bb8a9c64b790e.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --lintel: #17191b;
  --lintel-line: #33383a;
  --lintel-text: #a8aaa6;
  --lintel-head: #dcdcd4;
  --lintel-on: #aacb43;
  --lintel-muted: #7b7f7e;
  --moss-4: #5d8416;
  --moss-6: #8fb526;
  --veil: rgba(17, 21, 15, 0.86);
  --rank-shade: #1b140c;
  --page: #0e1516;
  --surface: #141e20;
  --raised: #1b282a;
  --field: #0e1516;
  --line: #233335;
  --line-strong: #364c4e;
  --text: #dcdcd4;
  --text-2: #a8aaa6;
  --muted: #7b7f7e;
  --title: #dcdcd4;
  --accent: #8fb526;
  --accent-strong: #486812;
  --accent-soft: #273a09;
  --accent-on: #e1f1aa;
  --accent-mid: #486812;
  --button-text: #11150f;
  --gold: #f2cb5c;
  --gold-soft: #4f3309;
  --gold-on: #fbe496;
  --bloom: #9ab7f3;
  --bloom-soft: #1d2a66;
  --bloom-on: #cadcfb;
  --danger: #ec8b70;
  --danger-strong: #932d22;
  --danger-soft: #4b1311;
  --danger-on: #f7b9a2;
  --tint: rgba(242, 203, 92, 0.07);
  --hover: rgba(220, 220, 212, 0.04);
  --shade: rgba(17, 21, 15, 0.6);
  --rank-dim: 0%;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #e5dcbe;
  --surface: #f1ebd5;
  --raised: #e5dcbe;
  --field: #f1ebd5;
  --line: #d6caa6;
  --line-strong: #ab9a72;
  --text: #35271a;
  --text-2: #4a3b25;
  --muted: #6b5838;
  --title: #33383a;
  --accent: #486812;
  --accent-strong: #273a09;
  --accent-soft: #c7e172;
  --accent-on: #192706;
  --accent-mid: #8fb526;
  --button-text: #f1ebd5;
  --gold: #9c6d16;
  --gold-soft: #fbe496;
  --gold-on: #4f3309;
  --bloom: #2d43a0;
  --bloom-soft: #cadcfb;
  --bloom-on: #1d2a66;
  --danger: #932d22;
  --danger-strong: #6e1f19;
  --danger-soft: #f7b9a2;
  --danger-on: #4b1311;
  --tint: rgba(156, 109, 22, 0.1);
  --hover: rgba(53, 39, 26, 0.05);
  --shade: rgba(53, 39, 26, 0.35);
  --rank-dim: 45%;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --page: #e5dcbe;
    --surface: #f1ebd5;
    --raised: #e5dcbe;
    --field: #f1ebd5;
    --line: #d6caa6;
    --line-strong: #ab9a72;
    --text: #35271a;
    --text-2: #4a3b25;
    --muted: #6b5838;
    --title: #33383a;
    --accent: #486812;
    --accent-strong: #273a09;
    --accent-soft: #c7e172;
    --accent-on: #192706;
    --accent-mid: #8fb526;
    --button-text: #f1ebd5;
    --gold: #9c6d16;
    --gold-soft: #fbe496;
    --gold-on: #4f3309;
    --bloom: #2d43a0;
    --bloom-soft: #cadcfb;
    --bloom-on: #1d2a66;
    --danger: #932d22;
    --danger-strong: #6e1f19;
    --danger-soft: #f7b9a2;
    --danger-on: #4b1311;
    --tint: rgba(156, 109, 22, 0.1);
    --hover: rgba(53, 39, 26, 0.05);
    --shade: rgba(53, 39, 26, 0.35);
    --rank-dim: 45%;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font: 15px/1.45 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
}

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

a {
  color: var(--bloom);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

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

code,
kbd,
pre {
  font-family: Consolas, "DejaVu Sans Mono", "Courier New", monospace;
  font-size: 0.9em;
}

code,
kbd {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--field);
  border: 1px solid var(--line);
}

hr {
  height: 1px;
  margin: 16px 0;
  border: 0;
  background: var(--line);
}

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

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

[hidden] {
  display: none !important;
}

.pixel {
  image-rendering: pixelated;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 max(28px, calc((100% - 1184px) / 2));
  background: var(--lintel);
  border-bottom: 2px solid var(--moss-4);
  box-shadow: inset 0 -1px 0 var(--lintel-line);
  color: var(--lintel-text);
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lintel-head);
  font: 24px/1 "Forgotten Stone", sans-serif;
  letter-spacing: 2px;
}

.masthead__brand:hover {
  text-decoration: none;
}

.masthead__mark {
  width: 36px;
  height: 34px;
  image-rendering: pixelated;
}

.masthead__nav {
  display: flex;
  align-self: stretch;
  gap: 22px;
  margin-left: 22px;
  font-weight: 500;
}

.masthead__nav a {
  display: flex;
  align-items: center;
  color: var(--lintel-text);
  box-shadow: inset 0 -3px 0 transparent;
}

.masthead__nav a:hover {
  color: var(--lintel-head);
  text-decoration: none;
}

.masthead__nav a[aria-current="page"] {
  color: var(--lintel-on);
  box-shadow: inset 0 -3px 0 var(--moss-6);
}

.masthead__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 14px;
}

.masthead__user a {
  color: var(--lintel-text);
}

.masthead__head {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  image-rendering: pixelated;
}

.masthead__user form {
  display: flex;
}

.masthead__action {
  padding: 0;
  border: 0;
  background: none;
  color: var(--lintel-text);
  font-size: 14px;
  cursor: pointer;
}

.masthead__action:hover {
  color: var(--lintel-head);
  text-decoration: underline;
}

.theme-switch {
  position: relative;
  width: 44px;
  height: 22px;
  padding: 0;
  border: 1px solid #43484a;
  border-radius: 3px;
  background: #24282a;
  cursor: pointer;
}

.theme-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: #f2cb5c;
  box-shadow: inset 0 -2px 0 #c28e22;
}

:root[data-theme="light"] .theme-switch::after {
  left: auto;
  right: 3px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-switch::after {
    left: auto;
    right: 3px;
  }
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 28px 30px;
}

.page--narrow {
  max-width: 616px;
  align-items: stretch;
  text-align: center;
}

.page__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.split {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.split__main {
  flex: 1;
  min-width: 0;
}

.split__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: none;
  width: 300px;
}

.eyebrow {
  color: var(--muted);
  font: 18px/1 "Forgotten Tiny", sans-serif;
  letter-spacing: 1px;
}

.title {
  color: var(--title);
  font: 32px/1 "Forgotten Stone", sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}

.title--small {
  font-size: 16px;
}

.lead {
  margin-top: 8px;
  color: var(--muted);
}

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

.card {
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--surface), inset 0 0 0 2px var(--line);
}

.card > p:not([class]),
.card .notice {
  margin-top: 12px;
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent-on);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.chip--gold {
  background: var(--gold-soft);
  color: var(--gold-on);
}

.chip--bloom {
  background: var(--bloom-soft);
  color: var(--bloom-on);
}

.chip--danger {
  background: var(--danger-soft);
  color: var(--danger-on);
}

.chip--quiet {
  background: var(--raised);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--raised);
  box-shadow: inset 0 -2px 0 var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  border-color: var(--text-2);
  text-decoration: none;
}

.button:active {
  box-shadow: inset 0 2px 0 var(--line);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.button--primary {
  border-color: var(--accent-strong);
  background: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent-strong);
  color: var(--button-text);
}

.button--primary:hover {
  border-color: var(--accent-strong);
  filter: brightness(1.08);
}

.button--primary:active {
  box-shadow: inset 0 2px 0 var(--accent-strong);
}

.button--chosen {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
  color: var(--accent-on);
}

.button--danger {
  border-color: var(--danger-strong);
  background: var(--danger-soft);
  box-shadow: inset 0 -2px 0 var(--danger-strong);
  color: var(--danger-on);
}

.button--quiet {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
}

.button--quiet:hover {
  border-color: var(--line-strong);
  background: var(--hover);
}

.button--small {
  min-height: 28px;
  padding: 0 10px;
  font-size: 13px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.buttons__end {
  margin-left: auto;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 14px;
}

.facts dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field {
  position: relative;
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.field__label {
  display: block;
  padding: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.field__label .chip {
  margin-left: 4px;
}

.field__help {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.field__label + .field__input,
.field__label + .choices,
.field__label + .options {
  margin-top: 8px;
}

.field__input {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--field);
  box-shadow: inset 0 2px 0 var(--line);
  color: var(--text-2);
  line-height: 1.45;
}

textarea.field__input {
  min-height: 104px;
  padding: 12px 14px 26px;
  resize: vertical;
}

select.field__input {
  width: auto;
  max-width: 100%;
  padding-right: 34px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

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

.field__input:hover {
  border-color: var(--text-2);
}

.field__input:focus,
.field__input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  outline: 0;
}

.field__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px var(--danger-soft);
}

.field__count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

.field__error {
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
  display: inline-flex;
}

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice input:checked + .button {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
  color: var(--accent-on);
}

.choice input:focus-visible + .button {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice input:disabled + .button {
  opacity: 0.55;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  cursor: pointer;
}

.option input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--field);
  box-shadow: inset 0 2px 0 var(--line);
  appearance: none;
  cursor: pointer;
}

.option input[type="radio"] {
  border-radius: 50%;
}

.option input:checked {
  border-color: var(--accent-strong);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--field);
}

.option input:checked + span {
  color: var(--text);
}

.meter {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--field);
  overflow: hidden;
  appearance: none;
}

.meter::-webkit-progress-bar {
  background: var(--field);
}

.meter::-webkit-progress-value {
  background: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent-strong), inset 0 2px 0 var(--moss-6);
}

.meter::-moz-progress-bar {
  background: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent-strong), inset 0 2px 0 var(--moss-6);
}

.requirements {
  margin-top: 8px;
}

.requirements li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}

.requirements li:last-child {
  border-bottom: 0;
}

.requirements li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
  border-radius: 1px;
}

.requirements .requirements__met::before {
  border-color: var(--accent);
  background: var(--accent);
}

.requirements .requirements__missing {
  color: var(--text);
}

.requirements .requirements__missing::before {
  border-color: var(--danger);
}

.requirements small {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  text-align: left;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 14px;
}

.steps li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-strong);
  border-radius: 2px;
}

.steps .steps__done {
  color: var(--text-2);
}

.steps .steps__done::before {
  border-color: var(--accent);
  background: var(--accent);
}

.steps .steps__now {
  color: var(--text);
  font-weight: 600;
}

.steps .steps__now::before {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.steps small {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
  color: var(--text-2);
  text-align: left;
  overflow-wrap: anywhere;
}

ol.list {
  list-style: decimal;
}

.notice {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-left-width: 4px;
  border-radius: 4px;
  background: var(--raised);
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
}

.notice--good {
  border-color: var(--accent);
}

.notice--warning {
  border-color: var(--gold);
  background: var(--tint);
}

.notice--danger {
  border-color: var(--danger);
  color: var(--text);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filters__end {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.filter select,
.filter input {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 500;
}

.filter:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.filter select:focus,
.filter input:focus {
  outline: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: var(--hover);
}

.table__main {
  color: var(--text);
  font-weight: 600;
}

.table__end {
  text-align: right;
  white-space: nowrap;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.empty {
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

.empty .title {
  margin-bottom: 10px;
}

.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar--head {
  border-radius: 4px;
  image-rendering: pixelated;
}

.avatar--small {
  width: 24px;
  height: 24px;
}

.avatar--large {
  width: 72px;
  height: 72px;
}

.avatar--large.avatar--head {
  border-radius: 6px;
}

.pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 20px 0;
}

.pair figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 14px;
}

.pair__arrow {
  position: relative;
  width: 30px;
  height: 2px;
  margin-bottom: 26px;
  background: var(--accent);
}

.pair__arrow::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.wordmark {
  display: block;
  width: 300px;
  max-width: 100%;
  margin: 30px auto;
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
  margin-top: auto;
  padding: 0 max(28px, calc((100% - 1184px) / 2));
  background: var(--lintel);
  border-top: 2px solid var(--lintel-line);
  color: var(--lintel-muted);
  font-size: 13px;
}

.colophon__wordmark {
  flex: none;
  width: 240px;
  margin: 24px;
}

.colophon a {
  color: var(--lintel-text);
}

.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

@media (max-width: 860px) {
  .masthead {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px 14px;
  }

  .masthead__nav {
    order: 3;
    align-self: auto;
    flex-basis: 100%;
    margin-left: 0;
    gap: 6px 18px;
    flex-wrap: wrap;
  }

  .masthead__nav a {
    min-height: 34px;
  }

  .page {
    padding: 18px 16px 24px;
    gap: 22px;
  }

  .split {
    flex-direction: column;
  }

  .split__main,
  .split__side {
    width: 100%;
  }

  .card {
    padding: 16px;
  }

  .title {
    font-size: 24px;
  }

  .title--small {
    font-size: 16px;
  }

  .card__actions,
  .filters__end {
    margin-left: 0;
  }

  .colophon {
    padding: 0 16px 16px;
  }
}

@media (max-width: 560px) {
  .masthead__user span {
    display: none;
  }
}

@media print {
  .masthead__nav,
  .theme-switch,
  .card__actions,
  .buttons {
    display: none;
  }
}
