/* Tokens shared by the viewer and the sticker page: the Hive interface's palette and type. */

:root {
  --ink: #1c2a36;
  --ink-muted: #5a6b78;
  --surface: #ffffff;
  --surface-sunk: #eef2f4;
  --line: #c8d2d9;
  --honey: #f0b429;
  --honey-deep: #c98a04;
  --honey-ink: #3d2a00;
  --ok: #1e7f6a;
  --warn: #b3541e;
  --bad: #b42318;
  --mark: #f0b429; /* lines drawn over the camera image */
  --mark-unknown: #f08a4b;
  --focus: #2f6fd6;
  --font: "Bahnschrift", "DIN Alternate", "D-DIN", "Barlow", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", system-ui, sans-serif;
  --radius: 0.375em;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e3eaf0;
    --ink-muted: #9aabb8;
    --surface: #18232c;
    --surface-sunk: #111a21;
    --line: #2f3e4a;
    --honey-deep: #f6d58a;
    --ok: #4cc3a5;
    --warn: #f08a4b;
    --bad: #f07167;
    --focus: #8ab4ff;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.4;
  color: var(--ink);
  background: var(--surface-sunk);
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.7em 1.4em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button.primary {
  border-color: var(--honey);
  background: var(--honey);
  color: var(--honey-ink);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.hash {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
