/* Kloru: one column of serif text, soft underlines, almost nothing else. */
:root {
  --paper: #fdfcfa;
  --ink: #1a1816;
  --soft: #6f6a64;
  --rule: #ebe6df;
  --underline: #e8cdb9;
  --underline-strong: #c99a7a;
  --ok: #3d6b4f;
  --error: #9b3b2e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141312;
    --ink: #ece8e2;
    --soft: #9d968e;
    --rule: #2a2724;
    --underline: #5c4536;
    --underline-strong: #a87c5e;
    --ok: #8fc2a1;
    --error: #e59a8c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 20px/1.42 var(--serif);
  -webkit-font-smoothing: antialiased;
}
header, main, footer { width: 100%; max-width: 640px; padding-left: 30px; padding-right: 30px; }
@media (max-width: 520px) { header, main, footer { padding-left: 18px; padding-right: 18px; } body { font-size: 18px; } }

/* Header: the mark, and a quiet row of words once signed in. */
header { padding-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.brand { color: var(--ink); display: inline-block; width: fit-content; }
.mark { display: block; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 15px/1.5 var(--sans); }
nav a { color: var(--soft); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.who { color: var(--soft); }
.who a { color: var(--soft); }

main { flex: 1; padding-top: 40px; padding-bottom: 64px; }
h1 { font-size: 26px; font-weight: 500; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 20px; font-weight: 500; margin: 36px 0 8px; }
p { margin: 0 0 22px; }
.prose { max-width: 560px; }
.lead { font-weight: 500; }
.muted { color: var(--soft); }
.small { font-size: 16px; }
.u { text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Links read like text with a soft underline. */
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--underline-strong); }

/* The chevron list: "Start a group ›". */
ul.go { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 10px; }
ul.go a::after, button.go::after { content: " ›"; display: inline-block; margin-left: 4px; text-decoration: none; }

/* Buttons are words. */
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button.go, button.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
button.go:hover, button.link:hover { text-decoration-color: var(--underline-strong); }
button.link { font-size: inherit; }

/* Banners are a sentence in color. */
.banner { margin: 0 0 24px; padding-left: 14px; border-left: 2px solid currentColor; }
.banner.ok { color: var(--ok); }
.banner.error { color: var(--error); }

/* Forms: a label, a line to write on. */
form.inline { display: inline; margin: 0; }
form.signin, form.stack { display: grid; gap: 18px; max-width: 420px; margin: 8px 0 20px; }
form.signin label, form.stack label { display: grid; gap: 4px; }
form label > span { font: 15px/1.4 var(--sans); color: var(--soft); }
input:not([type="radio"]):not([type="checkbox"]), select {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 6px 0;
  max-width: 100%;
  outline: none;
}
input:focus, select:focus { border-bottom-color: var(--underline-strong); }
form.signin input { font-size: 24px; letter-spacing: 0.01em; }
form.signin button.go, form.stack button.go, form.stack button.link { justify-self: start; }
select { appearance: none; padding-right: 14px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 4px; border-bottom: 0; }

/* Lists of things: one per line, separated by space. */
ul.rows { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 18px; }
.name { font-weight: 500; }
.state { color: var(--soft); font-style: italic; }
.state.ok { color: var(--ok); font-style: normal; }
form.tier { margin-left: 8px; font-size: 17px; }
.grants { margin: 6px 0 0; padding-left: 18px; font-size: 17px; }
details { margin-top: 6px; font-size: 17px; }
summary { cursor: pointer; color: var(--soft); list-style: none; width: fit-content; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
summary::-webkit-details-marker { display: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; }

/* Permissions: the label, then three words; the chosen one is underlined. */
form.perm { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 18px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.choices { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 17px; }
label.choice { cursor: pointer; color: var(--soft); }
label.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.choice input:checked + span { color: var(--ink); text-decoration: underline; text-decoration-color: var(--underline-strong); text-decoration-thickness: 2px; text-underline-offset: 4px; }
label.choice input:focus-visible + span { outline: 2px solid var(--underline-strong); outline-offset: 2px; }

/* Legal pages: comfortable reading. */
article.legal { max-width: 600px; font-size: 18px; }
article.legal h2 { font-size: 19px; margin-top: 30px; }
article.legal ul { padding-left: 20px; margin: 0 0 22px; }
article.legal li { margin-bottom: 8px; }

footer { padding-top: 24px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 6px 20px; font: 13px/1.5 var(--sans); color: var(--soft); }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--ink); }
