* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-wrap: anywhere;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.75rem;
}
textarea {
  resize: vertical;
}
label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  accent-color: var(--accent);
}
.check,
.checkbox,
.nl-check,
.stats-switch {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-weight: 400;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
}
.button-secondary {
  background: transparent;
  color: var(--accent);
}
.button-small {
  padding: 0.5rem 0.8rem;
}
.shell {
  width: min(calc(100% - 2 * var(--space)), var(--shell));
  margin-inline: auto;
}
.reading {
  padding-block: clamp(2rem, 6vw, 5rem);
  max-width: 1000px;
}
.prose {
  max-width: 78ch;
  font-size: 1.05rem;
}
.prose > * + * {
  margin-block-start: 1.25em;
}
.prose h2 {
  margin-block-start: 2em;
}
.prose img {
  border-radius: var(--radius);
}
.muted,
.nl-muted {
  color: var(--muted);
}
[id] {
  scroll-margin-block-start: 6rem;
}
.skip {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  background: var(--surface);
  color: var(--ink);
  padding: 0.75rem;
  z-index: 100;
}
.skip:focus {
  inset-block-start: 0.75rem;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.5rem;
}
.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}
.notice {
  padding: 1rem;
  border-radius: 8px;
  background: var(--success-bg);
  color: var(--success-ink);
}
.notice-error {
  background: var(--error-bg);
  color: var(--error-ink);
}
.form,
.admin-form,
.nl-form {
  display: grid;
  gap: 1.25rem;
}
.form .button,
.admin-form .button {
  justify-self: start;
}
.trap {
  position: absolute;
  left: -10000px;
  opacity: 0;
  pointer-events: none;
}
details {
  margin-block: 1rem;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}
th,
td {
  padding: 0.8rem;
  border-block-end: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
