:root {
  color-scheme: light;
  --background: #f4f6f3;
  --surface: #ffffff;
  --text: #19332d;
  --muted: #52675f;
  --border: #b8c8be;
  --accent: #205e47;
  --accent-text: #ffffff;
  --focus: #176bcd;
  --feedback: #8e271a;
  font-family: 'DM Sans', system-ui, sans-serif;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --background: #101d18;
  --surface: #1a2a23;
  --text: #eef5ee;
  --muted: #bbcdc1;
  --border: #60776a;
  --accent: #b2e1c6;
  --accent-text: #10271b;
  --focus: #9bcbff;
  --feedback: #ffb7a9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem max(1.25rem, calc((100vw - 68rem) / 2));
  border-bottom: 1px solid var(--border);
}
a {
  color: var(--text);
  text-underline-offset: 0.25rem;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
[aria-current] {
  font-weight: 700;
}
.brand {
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}
main {
  max-width: 68rem;
  margin: auto;
  padding: 1.25rem;
}
.intro {
  padding: 2rem 0;
  max-width: 45rem;
}
h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}
h2 {
  margin-top: 0;
}
p {
  line-height: 1.65;
}
.intro p,
small {
  color: var(--muted);
}
.panel {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: 1rem;
}
.form-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
}
.form-grid label {
  flex: 1 1 12rem;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  font: inherit;
  padding: 0.7rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
}
button {
  min-height: 2.75rem;
  cursor: pointer;
  border: 1px solid var(--accent);
  border-radius: 0.35rem;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
}
button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.check input {
  width: auto;
  margin: 0;
}
#status {
  color: var(--feedback);
}
#status:empty {
  display: none;
}
code {
  overflow-wrap: anywhere;
}
video {
  width: 100%;
  max-height: 65vh;
  background: #000;
}
ul {
  padding-left: 1.25rem;
}
li {
  margin-bottom: 1rem;
}
li .actions {
  margin-top: 0.5rem;
}
[hidden] {
  display: none !important;
}
