@font-face {
  font-family: Besley;
  src: url("/fonts/besley.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f6;
  --card: #fffdfb;
  --ink: #2c1c14;
  --soft: #665044;
  --line: #ddd3ca;
  --field: #8c776a;
  --plum: #6e3a3d;
  --plum-deep: #552a2d;
  --amber: #cd8f55;
  --maple: #eccfa4;
  --walnut: #6a4938;
  --bad: #a1271f;
  --z-cheap: #7a4fa3;
  --z-happy: #3f8f5f;
  --z-hesitate: #d99a2b;
  --z-out: #b8433a;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Besley, Rockwell, "Roboto Slab", Georgia, serif;
  --inlay: linear-gradient(to right,
    var(--plum) 5.3%,
    var(--amber) 5.3% 33%,
    var(--plum) 33% 39%,
    var(--maple) 39% 84.3%,
    var(--walnut) 84.3%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--ui);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 2px;
}

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

.inlay { height: 0.5rem; background: var(--inlay); }

.btn {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--plum);
  border-radius: 6px;
  background: var(--plum);
  color: #fff;
  font: 600 1rem/1.2 var(--ui);
  cursor: pointer;
}
.btn:hover { background: var(--plum-deep); border-color: var(--plum-deep); }
.btn.quiet { background: transparent; color: var(--plum); }
.btn.quiet:hover { background: #f1e8e4; color: var(--plum-deep); }
