
:root {
  --ink: #15171c; --ink-2: #5a6270; --line: #dadee4; --paper: #ffffff;
  /* Every grey line -- a field's edge, an outlined button's ring, the rule
     between posts -- is this one, and every control in a row of them --
     a round button, the box beside it -- is this tall. */
  --rule: 1px solid var(--line); --control: 2.25rem;
  --accent: #2563eb; --ok: #16794a; --bad: #b42318;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.55 var(--font);
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}
/* A solid white bar under the phone's own status bar. An installed app on
   iOS 26 and later blurs the top of the page as it scrolls under the clock,
   unless a fixed (or sticky) box with a background spans the top edge: then
   it takes that box's colour instead, and nothing is blurred. It must be a
   real element -- a ::before is not counted. Exactly as tall as the safe
   area, which the body's padding keeps the page below; nothing where there
   is no inset. */
.statusbar { position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  height: env(safe-area-inset-top); background: var(--paper); }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; }
p { margin: 0 0 1rem; }
/* Links are underlined only under the pointer, and darken there. */
a { color: var(--accent); text-decoration: none; }
a:not(.round):hover { color: #1d4ed8; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.2em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: var(--rule); background: var(--paper); border-radius: 10px; padding: 0.55rem 1rem; }
button:disabled { opacity: 0.5; cursor: default; }
button.working { cursor: progress; }
input[type=text] { width: 100%; padding: 0.7rem 0.85rem; border: var(--rule); border-radius: 10px; background: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 34rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
/* Installed, the app has the whole screen, the phone's own bar kept clear by
   the body's safe-area padding: little more is needed above the page. */
@media (display-mode: standalone) { .wrap { padding-top: 0.5rem; } }

/* Round buttons: the icon in a plain circle. Blue, or red for a destructive
   one; they darken on hover, so it is clear something is about to happen.
   Grey (ghost) is only for stepping back: Back, and the key that offers
   another way in -- an outline, not a fill. */
.round { width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none; color: #fff; background: var(--accent);
  text-decoration: none; }
.round svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.round.small { width: var(--control); height: var(--control); }
.round.small svg { width: 1.1rem; height: 1.1rem; }
.round.small.home svg { width: 1.35rem; height: 1.35rem; }
.round.ghost { background: transparent; color: var(--ink-2); border: var(--rule); }
.round.danger { background: var(--bad); }
.round:hover:not(:disabled) { background: #1d4ed8; }
.round.danger:hover:not(:disabled) { background: #8f1d12; }
.round.ghost:hover:not(:disabled) { background: transparent; color: var(--ink); border-color: var(--accent); }

/* The bar along the top of a page: links on the left, and refreshing and
   signing out at the right-hand end. An ordinary block, so it scrolls away
   with the page. */
.bar { display: flex; align-items: center; gap: 1.25rem; min-height: 2.4rem; margin-bottom: 1.5rem; }
.bar .sign-out { margin: 0 0 0 auto; }

/* Back: a heading with an arrow beside it. .hang holds the heading, .out
   holds the arrow. On a wide screen the arrow hangs in the left margin, out
   of the flow, so the heading lines up with everything below it. A phone has
   no margin, so there it sits above the heading instead. */
.hang { position: relative; margin-bottom: 1rem; }
.hang h1 { margin: 0; }
.hang > .out { display: flex; margin: 0 0 1rem; }
@media (min-width: 44rem) {
  .hang > .out { position: absolute; right: 100%; top: 50%; margin: 0 1rem 0 0; transform: translateY(-50%); }
}
.lede { color: var(--ink-2); font-size: 1.0625rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
