:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1f21;
  --muted: #5d6166;
  --line: #e3e0d8;
  --accent: #3b5bdb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141518;
    --surface: #1c1e22;
    --text: #ececec;
    --muted: #a4a9ae;
    --line: #2e3136;
    --accent: #91a7ff;
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0 auto;
  max-width: 40rem;
  padding: max(2rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 2rem max(1rem, env(safe-area-inset-left));
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

header { margin-bottom: 2rem; }

.back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.95rem; }

h1 { margin: 0 0 0.5rem; font-size: 2rem; line-height: 1.2; letter-spacing: -0.01em; }
h2 { margin: 2.25rem 0 0.5rem; font-size: 1.3rem; line-height: 1.3; }
h3 { margin: 1.25rem 0 0.25rem; font-size: 1.05rem; line-height: 1.35; }

p { margin: 0 0 0.9rem; }
.lead { font-size: 1.1rem; color: var(--muted); }

.app-title { display: flex; align-items: center; gap: 0.85rem; }
.app-title h1 { margin: 0; }

/* App icons: the iOS rounded-square shape, with a hairline so the white BRW icon has an edge. */
.icon {
  flex: none;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--line);
}
.app-title .icon { width: 64px; height: 64px; }
picture { flex: none; }

.status-plain { margin: 0.75rem 0 1rem; color: var(--muted); font-size: 0.95rem; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

.card {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card h3 { margin: 0 0 0.25rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--muted); }

dl { margin: 0; }
dt { margin-top: 1.25rem; font-weight: 600; }
dd { margin: 0.25rem 0 0; }

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer p { margin: 0 0 0.3rem; }
