:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #20211f;
  --muted: #6f716d;
  --line: #d9dad5;
  --line-strong: #b8bab4;
  --accent: #a63d2f;
  --accent-contrast: #ffffff;
  --danger: #9b2c2c;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181917;
  --surface: #212220;
  --text: #f0f0eb;
  --muted: #a9aaa4;
  --line: #3a3b38;
  --line-strong: #5b5d57;
  --accent: #de7969;
  --accent-contrast: #171816;
  --danger: #f08a83;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.boot-status {
  margin: 3rem auto;
  max-width: 40rem;
  padding: 1rem;
  color: #555;
  font: 16px/1.5 system-ui, sans-serif;
  text-align: center;
}

body {
  min-height: 100dvh;
}

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

button,
select,
input[type="number"],
input[type="search"] {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.42;
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
