:root {
  color-scheme: light dark;
  --bg: light-dark(#fbfaf7, #171a18);
  --text: light-dark(#1d2420, #eef1ee);
  --accent: light-dark(#1f6b45, #8fd6ae);
  --on-accent: light-dark(#ffffff, #10231a);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.5 system-ui, sans-serif;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
}

[hidden] {
  display: none !important;
}

a {
  color: var(--accent);
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid currentcolor;
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
  font: inherit;
}

label.check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}

label.check input {
  width: 24px;
  min-height: 24px;
  margin: 0;
}

form > .button {
  margin-top: 1rem;
}

.button,
button.quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

button.quiet,
.button.quiet {
  background: transparent;
  color: var(--accent);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.75rem;
}

.details {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
.list {
  overflow-wrap: anywhere;
}

.tag {
  padding: 0.125rem 0.5rem;
  border: 1px solid currentcolor;
  border-radius: 0.5rem;
}

option {
  background: var(--bg);
  color: var(--text);
}

.card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.card h3 {
  margin: 0;
}

.list {
  padding: 0;
  list-style: none;
}

.list a,
p > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.error:not(:empty) {
  padding: 0.75rem 1rem;
  border-left: 4px solid light-dark(#a3271b, #ff9c8f);
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
