/* roam. on the web. Colours and their roles are the app's (docs/BRAND.md): cream backgrounds, ink
   text and selected states, coral for the one primary action, lime for badges. Ink sits on coral;
   white never does. */
:root {
  --cream: #F8F8FF; --ink: #20356C; --coral: #FF796B; --lime: #FFE68C; --purple: #C6B7FF;
  --line: #E2E5F0; --muted: #66718C;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
  background: var(--cream); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main.card, footer { max-width: 480px; margin: 0 auto; }
main.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px 20px; }
.brand { display: inline-block; margin-bottom: 14px; }
.brand img { display: block; height: 34px; width: auto; }
h1 { font: 800 30px/1.12 var(--rounded); margin: 4px 0 14px; overflow-wrap: anywhere; }
h2 { font: 800 13px/1 var(--rounded); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
p { margin: 0 0 10px; }
a { color: var(--ink); }
.eyebrow { font-weight: 700; color: var(--muted); margin: 0; }
.facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-weight: 600; }
.facts span { display: inline-block; width: 1.4em; color: var(--muted); }
.note { background: var(--cream); border-radius: 14px; padding: 12px 14px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.badge { display: inline-block; font: 800 12px/1 var(--rounded); padding: 5px 9px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); vertical-align: middle; }
.badge.lime { background: var(--lime); border-color: var(--lime); }
.status { font-weight: 700; margin: 16px 0 0; }
.names { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.names li { background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 999px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
button, a.secondary, a.primary { font: 700 17px/1 var(--rounded); min-height: 50px; border-radius: 14px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 16px; -webkit-tap-highlight-color: transparent; }
button.primary, a.primary { background: var(--coral); color: var(--ink); }
button.secondary, a.secondary { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
button:active, a.secondary:active { transform: scale(.98); }
button.link { background: none; min-height: 44px; padding: 0; font-size: 15px; text-decoration: underline; color: var(--muted); }
.ask { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }
input[type=text] { font: inherit; font-size: 17px; color: var(--ink); min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; width: 100%; }
input[type=text]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.mine { font-weight: 700; margin-top: 16px; }
.state { font-weight: 700; background: var(--cream); border-radius: 14px; padding: 12px 14px; margin-top: 14px; }
.error { color: #B3261E; font-weight: 600; margin-top: 10px; }
.report { margin-top: 22px; font-size: 14px; color: var(--muted); }
.report summary { cursor: pointer; min-height: 32px; }
footer { padding: 16px 6px 0; font-size: 13px; color: var(--muted); text-align: center; }
footer a { color: var(--muted); }
/* Home and privacy pages */
.prose h1 { font-size: 34px; }
.prose h2 { font: 800 20px/1.2 var(--rounded); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 26px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.lead { font-size: 18px; }
@media (prefers-reduced-motion: reduce) { button:active, a.secondary:active { transform: none; } }
