/* Ember (ADR 0018), the mobile app's design language: dark by default, warm peach accent. */
:root {
  --bg: #16131a;
  --surface: #221f26;
  --surface-raised: #2d2a33;
  --text: #f3f1f5;
  --text-secondary: #b4aebb;
  --accent: #f1a07b;
  --accent-pressed: #dc8a64;
  --on-accent: #16131a;
  --accent-text: #f1a07b;
  --danger: #ff6b6b;
  --success: #3dd68c;
  --radius-card: 16px;
  --radius-pill: 999px;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4f8;
    --surface: #ffffff;
    --surface-raised: #ebe8ef;
    --text: #1e1b22;
    --text-secondary: #5f5966;
    --accent-pressed: #e48d66;
    --accent-text: #a4502a;
    --danger: #c62f3e;
    --success: #15803d;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 'Noto Sans',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header.site {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

header.site a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 8px 0 4px;
}

h2 {
  font-size: 21px;
  margin: 32px 0 8px;
}

h3 {
  font-size: 17px;
  margin: 20px 0 4px;
}

p,
li {
  color: var(--text-secondary);
}

strong {
  color: var(--text);
}

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

.updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 24px;
}

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

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

.links li {
  margin: 8px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: start;
  vertical-align: top;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--surface-raised);
  color: var(--text-secondary);
}

th {
  color: var(--text);
}

/* The app's balloon button: a pill with a sharper bottom-end corner. */
button {
  display: inline-block;
  min-height: 48px;
  padding: 12px 24px;
  margin: 8px 8px 0 0;
  border: 0;
  border-radius: var(--radius-pill);
  border-end-end-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

button.primary:hover {
  background: var(--accent-pressed);
}

button.danger {
  background: var(--danger);
  color: var(--on-accent);
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

label.confirm {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0;
  color: var(--text);
}

label.confirm input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.message {
  margin-top: 16px;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

[hidden] {
  display: none !important;
}

footer.site {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 14px;
  color: var(--text-secondary);
}

footer.site a {
  margin-inline-end: 16px;
}

/* "Cookie settings" (consent.js), styled as one of the footer's links. */
footer.site button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
footer.site button.link[hidden] {
  display: none;
}
