:root {
  --bg: #121214;
  --card: #1e1e22;
  --fg: #f3f3f3;
  --muted: #a0a0a8;
  --accent: #4f8cff;
  --active: #e0554a;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 20px;
  line-height: 1.4;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 28px;
  margin: 12px 0 20px;
}

h2 {
  font-size: 22px;
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
  font-weight: normal;
  font-size: 20px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

button.big {
  width: 100%;
  min-height: 88px;
  font-size: 30px;
  font-weight: 600;
  border: none;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
}

button.big.active {
  background: var(--active);
}

button.big:disabled {
  background: #444;
  color: #999;
}

button.small {
  min-height: 48px;
  font-size: 18px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--fg);
  margin: 12px 8px 0 0;
}

.field-label {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.big-select {
  width: 100%;
  min-height: 56px;
  font-family: inherit;
  font-size: 22px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--muted);
  background: #2a2a30;
  color: var(--fg);
}

/* Text formatting used in documents. Colours are set through a custom
   property so that an underline can take the colour of its text. */

.samples {
  font-size: 24px;
  line-height: 1.8;
  padding-left: 1.4em;
  margin: 8px 0 0;
}

.c-red {
  --memoir-color: #ff7b7b;
  color: var(--memoir-color);
}

.c-green {
  --memoir-color: #7bdb9a;
  color: var(--memoir-color);
}

.c-blue {
  --memoir-color: #7dbdff;
  color: var(--memoir-color);
}

.c-yellow {
  --memoir-color: #ffd97a;
  color: var(--memoir-color);
}

.u-solid,
.u-dotted,
.u-dashed,
.u-wavy {
  text-decoration-line: underline;
  text-decoration-color: var(--memoir-color, currentColor);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.25em;
}

.u-solid {
  text-decoration-style: solid;
}

.u-dotted {
  text-decoration-style: dotted;
}

.u-dashed {
  text-decoration-style: dashed;
}

.u-wavy {
  text-decoration-style: wavy;
  text-decoration-thickness: 0.14em;
}

.hl {
  background-color: rgba(255, 217, 122, 0.3);
  border-radius: 4px;
  padding: 0 0.15em;
}

.status {
  color: var(--muted);
  min-height: 28px;
  margin-top: 12px;
}

.text {
  font-size: 26px;
  line-height: 1.4;
  margin-top: 8px;
  min-height: 36px;
  word-break: break-word;
}

pre {
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
  margin: 8px 0 0;
  color: var(--muted);
}
