/* Brand palette (BRAND.md, closed 11 Oct 2026): black, white, one accent sky. */
:root {
  --ink: #141414;
  --paper: #ffffff;
  --sky: #9dbbd6;
  --sky-soft: #e6eef5;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --error: #b42318;
  --radius: 12px;
  /* Fonts match peculiarpeopleco.com: Montserrat 400 for headings, Arial for
     everything else, buttons in Arial bold. */
  --head: "Montserrat", sans-serif;
  --body: Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--body);
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: 0.78px; line-height: 1.23; margin: 0; }
h1 { font-size: 26px; }
h2 { font-size: 18px; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  background: var(--ink); color: var(--paper);
}
.topbar a { text-decoration: none; }
.wordmark { display: flex; align-items: center; }
.wordmark img { display: block; height: 24px; width: auto; }
.login-logo { display: block; width: min(280px, 100%); height: auto; margin: 12px 0 28px; }
.topbar .who { font-size: 14px; opacity: 0.8; }
.topbar button { background: none; border: 0; color: inherit; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 0; }

main { max-width: 640px; margin: 0 auto; padding: 20px 16px 64px; }
.sub { color: var(--muted); margin: 6px 0 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 16px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: 700 15px var(--body); letter-spacing: 1px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
/* Text on sky is always white (BRAND.md, 11 Oct 2026), knowing the contrast is low. */
.btn.primary { background: var(--sky); border-color: var(--sky); color: var(--paper); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.quiet { border-color: var(--line); color: var(--muted); }
.btn:disabled { opacity: 0.5; cursor: default; }

input, textarea, select {
  width: 100%; font: 16px/1.4 var(--body); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--paper);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }

.tiles { display: grid; gap: 12px; }
.tile {
  display: block; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius);
  text-decoration: none;
}
.tile:hover { border-color: var(--ink); }
.tile p { margin: 4px 0 0; color: var(--muted); }
.tile.soon { opacity: 0.55; pointer-events: none; }
.tile .count { float: right; background: var(--sky); color: var(--paper); border-radius: 999px; padding: 2px 10px; font: 700 13px var(--body); }

.pace {
  padding: 14px 16px; border-radius: var(--radius); background: var(--sky-soft); margin-bottom: 16px;
}
.pace .bar { height: 6px; background: var(--paper); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.pace .bar span { display: block; height: 100%; background: var(--ink); }
.pace p { margin: 6px 0 0; }

.card { border: 1.5px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.card.claimed { border-color: var(--sky); }
.card .post { display: flex; gap: 12px; padding: 12px; }
.card .thumb { width: 88px; height: 88px; flex: none; border-radius: 8px; object-fit: cover; background: var(--sky-soft); }
.card .meta { min-width: 0; }
.card .account { font-weight: 700; overflow-wrap: anywhere; }
.tag { display: inline-block; font: 700 11px var(--body); text-transform: uppercase; letter-spacing: 0.06em; background: var(--sky-soft); border-radius: 4px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }
.caption { color: var(--muted); font-size: 14px; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.caption.open { -webkit-line-clamp: unset; }
.card .draft { padding: 0 12px 12px; }
.card textarea { min-height: 84px; resize: vertical; }
.card .actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.card .actions .btn { flex: 1 1 auto; }
button.alt { background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; padding: 6px 0 0; cursor: pointer; }
.card .skip { display: flex; gap: 8px; padding: 0 12px 12px; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 10px; background: #fdeceb; color: var(--error); margin-bottom: 16px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  font: 700 14px var(--body); opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; }

details.history { margin-top: 32px; }
details.history summary { cursor: pointer; font: 400 16px var(--head); letter-spacing: 0.78px; }
.history ul { list-style: none; padding: 0; margin: 12px 0 0; }
.history li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.history li span { color: var(--muted); }
