@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/libre-franklin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/libre-franklin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/libre-franklin-700.woff2") format("woff2");
}

:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.008 68);
  --ink: oklch(0.2 0.024 62);
  --muted: oklch(0.36 0.022 62);
  --honey: oklch(0.86 0.11 74);
  --on-honey: oklch(0.26 0.04 55);
  --primary: oklch(0.4 0.12 55);
  --primary-ink: oklch(0.99 0.004 80);
  --accent: oklch(0.34 0.11 250);
  --line: oklch(0.88 0.012 70);
  --danger: oklch(0.4 0.15 25);
  --ok: oklch(0.38 0.1 155);
  --focus: var(--primary);
  --kiosk: oklch(0.08 0 0);
  color-scheme: light;
  font-family: "Libre Franklin", "Franklin Gothic Medium", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--honey); color: var(--ink); }

h1, h2, h3 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
p { text-wrap: pretty; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

.btn, button, input, select, textarea { font: inherit; color: inherit; }
.btn, button {
  appearance: none;
  border: 0;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 600;
  border-radius: 8px;
  min-height: 44px;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.btn:hover, button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.quiet, a.quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.danger, a.danger { background: transparent; color: var(--danger); border: 0; padding-inline: 0; }

label { display: block; font-weight: 600; margin: 0.9rem 0 0.3rem; }
input[type="checkbox"] { width: auto; min-height: auto; vertical-align: middle; }
input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  min-height: 44px;
}
textarea { min-height: 8rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }

.flash, .error {
  margin: 0;
  padding: 0.85rem 1rem;
}
.flash { background: var(--honey); color: var(--on-honey); }
.error { background: oklch(0.94 0.03 25); color: var(--ink); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
