/* Loam's website (docs/tasks/website-waitlist.md): the page at /, the
   privacy page and the waitlist's answers. Served by the front with a CSP
   that allows this file and no script at all (index.mjs, sitePage).

   The look decided on 2026-10-05/06 (docs/decisions.md): a paper ground
   #f7f5ef with a dot grid, the notebook direction (a plain sans to read,
   a mono for labels), Besley 500 for the name only. These tokens are
   written here from those words; when host/web/look.js and docs/look.md
   land, take their values over these. No web fonts are loaded: a font
   from another site would tell it who reads the page, and the privacy
   page says nothing else sees a visit. The name will be the wordmark's
   SVG (see the marked place in index.html); until then it is set in
   Besley if the reader has it, else a near serif. */

:root {
  --paper: #f7f5ef;
  --dot: #d6d1c3;
  --ink: #22201c;
  --muted: #5f5a50;
  --rule: #d9d4c7;
  --card: #fbfaf6;
  --accent: #2f5d50;
  --bad: #9b2c1f;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --name: Besley, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1a17;
    --dot: #36332c;
    --ink: #ebe7dc;
    --muted: #a8a294;
    --rule: #3a372f;
    --card: #23211d;
    --accent: #8cc2b0;
    --bad: #f0a493;
  }
}
:root[data-theme="dark"] {
  --paper: #1b1a17;
  --dot: #36332c;
  --ink: #ebe7dc;
  --muted: #a8a294;
  --rule: #3a372f;
  --card: #23211d;
  --accent: #8cc2b0;
  --bad: #f0a493;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 20px 20px;
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}
main { max-width: 38rem; margin: 0 auto; padding: 40px 16px 56px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.name {
  font-family: var(--name);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.name a { color: inherit; text-decoration: none; }
.name svg { height: 44px; width: auto; display: block; }
.lede { font-size: 21px; line-height: 1.45; margin: 14px 0 0; }

h2 {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 44px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
ol.steps li { counter-increment: step; position: relative; padding-left: 2.4rem; margin: 0 0 14px; }
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  font: 500 13px/22px var(--mono);
  text-align: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper);
}
ol.steps b { font-weight: 600; }

.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0 0;
}
.note p:last-child { margin-bottom: 0; }

form { margin: 0; }
label { display: block; font-weight: 600; margin: 0 0 6px; }
label .muted { font-weight: 400; }
input[type="email"], input[type="text"] {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 16px;
}
button {
  font: 600 17px/1 var(--sans);
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  cursor: pointer;
}
.bad { color: var(--bad); }

footer {
  margin-top: 48px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font: 13px/1.6 var(--mono);
  color: var(--muted);
}
footer a { color: var(--muted); }
.after { margin-top: 14px; }
