/* Dooley's site: one stylesheet, system font, one green accent, light and dark. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #6c6c70;
  --accent: #1f6f43;
  --accent-fg: #ffffff;
  --field: #f2f2f7;
  --line: #d1d1d6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #f2f2f7;
    --muted: #a1a1a6;
    --accent: #3fae73;
    --accent-fg: #000000;
    --field: #1c1c1e;
    --line: #3a3a3c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 40px 20px;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  text-align: center;
}
main { max-width: 420px; margin: 0 auto; }
img.icon { width: 96px; height: 96px; border-radius: 22px; }
h1 { font-size: 28px; margin: 16px 0 8px; }
p { margin: 12px 0; }
p.muted, small { color: var(--muted); }
a { color: var(--accent); }
a.button, button {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
a.button.primary, button.primary { background: var(--accent); color: var(--accent-fg); }
button:disabled { opacity: 0.5; cursor: default; }
form { text-align: left; }
label { display: block; margin: 16px 0 6px; font-weight: 600; }
label small { font-weight: 400; }
input, textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--fg);
  font: inherit;
}
textarea { min-height: 88px; resize: vertical; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.45em; text-align: center; }
[hidden] { display: none !important; }

/* The tester portal: section headings, the guide, the recorder and Jack's tables. */
h2 { font-size: 20px; margin: 28px 0 8px; }
p.label { margin: 16px 0 6px; font-weight: 600; }
article { text-align: left; }
article ul { padding-left: 22px; }
article li { margin: 6px 0; }
.count { margin: 4px 0 0; text-align: right; font-size: 14px; color: var(--muted); }
.timer { margin: 8px 0; font-size: 22px; font-variant-numeric: tabular-nums; text-align: center; }
audio { display: block; width: 100%; margin: 8px 0; }
main.wide { max-width: 1100px; }
.table-wrap { overflow-x: auto; margin: 8px 0 24px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); white-space: nowrap; }
td.text { min-width: 240px; white-space: pre-wrap; overflow-wrap: anywhere; }
td.from { white-space: pre-line; }
main.wide > a.button, main.wide section > button { max-width: 420px; margin-left: auto; margin-right: auto; }
td.nowrap { white-space: nowrap; }
td button { display: inline-block; width: auto; margin: 0 6px 6px 0; padding: 6px 12px; font-size: 15px; }
td audio { min-width: 220px; }
