/* The web editor. Same colours as the Mac app; sizes for fingers on an iPad. */
:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9d9de;
  --field: #ffffff;
  --accent: #b8860b;
  --accent-text: #1d1d1f;
  --accent-soft: #f6ecd2;
  --danger: #c4302b;
  --error-bg: #fde8e7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --panel: #232325;
    --text: #f2f2f7;
    --muted: #9a9aa1;
    --line: #38383c;
    --field: #2c2c2e;
    --accent: #d4a531;
    --accent-text: #111;
    --accent-soft: #3b3220;
    --danger: #ff6961;
    --error-bg: #3d2120;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body, #root { margin: 0; min-height: 100%; }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
.icon { flex: none; vertical-align: -3px; }
.brand { font-weight: 700; letter-spacing: .01em; }
.quiet { color: var(--muted); }

button {
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; width: 100%; }
button.link { border: none; background: none; color: var(--muted); padding: 0 8px; }
button.link:hover { color: var(--text); }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.card-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; padding-top: max(24px, env(safe-area-inset-top)); }
.card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card h1 { font-size: 26px; margin: 0 0 4px; }
.card h2 { font-size: 18px; margin: 0 0 18px; font-weight: 600; }
.card form { display: grid; gap: 14px; margin-bottom: 14px; }
.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }

.field { display: grid; gap: 6px; }
.field span { font-size: 14px; color: var(--muted); }
.field input {
  font: inherit;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
}

.error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--error-bg); color: var(--danger); }
.notice { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
.loading { min-height: 100vh; }

.app { min-height: 100vh; display: flex; flex-direction: column; }
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.bar .brand { font-size: 20px; margin-right: auto; }
.who { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.home { padding: 24px 16px; max-width: 720px; width: 100%; margin: 0 auto; }
.churches { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.churches li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.churches .name { font-weight: 600; margin-right: auto; }
