/* Element defaults, typography, form controls and accessibility helpers. */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
#root > p {
  margin: 38vh 0 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select,
a,
summary {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
p {
  margin: 0 0 12px;
  line-height: 1.55;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.012em;
}
h2 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
h3 {
  font-size: 13px;
  font-weight: 600;
}
/* Controls */
button,
.btn,
input,
select {
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13px;
}
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  font-weight: 500;
  white-space: nowrap;
}
button:hover,
.btn:hover {
  background: var(--bg-subtle);
  text-decoration: none;
}
button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
button.primary:hover {
  background: #33322f;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
input,
select {
  padding: 0 10px;
  min-width: 0;
}
input:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.btn.compact,
.compact {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  z-index: 10;
  padding: 6px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
}
.skip:focus {
  top: 8px;
}
.content:focus {
  outline: none;
}
@media (max-width: 800px) {
  button,
    .btn,
    input,
    select {
      height: 44px;
    }
}
