/* Colors mirror mobile/src/ui/theme.ts so the site feels like the app. */
:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --ink: #253c34;
  --muted: #5f6861;
  --line: #dde2da;
  --accent: #345c48;
  --soft: #eaf0e6;
  --serif: "Lora", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18241f;
    --surface: #223229;
    --ink: #e8eee5;
    --muted: #a8b7aa;
    --line: #3a4d40;
    --accent: #c0d6ae;
    --soft: #304639;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 0.4em 0 0.3em;
}

h2 {
  font-size: 1.45rem;
  margin: 2em 0 0.5em;
}

h3 {
  font-size: 1.12rem;
  margin: 1.6em 0 0.3em;
}

p,
li {
  max-width: 68ch;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

main {
  padding-top: 24px;
  padding-bottom: 56px;
}

main.wrap {
  padding-top: 24px;
  padding-bottom: 56px;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 28px 0;
}

.card.soft {
  background: var(--soft);
  border-color: var(--soft);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.app-row {
  display: flex;
  gap: 18px;
  align-items: center;
}

.app-row img {
  border-radius: 16px;
  flex: none;
}

.app-row p {
  margin: 0.2em 0;
}

.promise {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0.6em 0 0.2em;
}

.pill {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.button {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 0.6em 0 0.2em;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

thead th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 0 32px;
}

.site-footer p {
  margin: 0.3em 0;
}
