:root {
  --paper: #f6f5f7;
  --surface: #ffffff;
  --ink: #241b22;
  --muted: #675e69;
  --line: #dcd6dd;
  --maroon: #702f45;
  --maroon-deep: #582236;
  --ok: #2e6b4e;
  --warn: #8f6208;
  --bad: #a32b2b;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); }
a { color: var(--maroon); }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 2.5rem); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand .wordmark { display: block; height: 30px; width: auto; }
.who { display: flex; align-items: center; gap: .9rem; margin: 0; color: var(--muted); font-size: .95rem; }

main { padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) 4rem; }
.narrow { max-width: 40rem; margin: 0 auto; }
.wide { max-width: 84rem; margin: 0 auto; }

h1 { font: 600 clamp(1.9rem, 4vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.01em; margin: 0 0 .6rem; text-wrap: balance; }
h2 { font: 600 1.2rem/1.25 var(--sans); margin: 0 0 .15rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; margin: 0 0 2rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
p { margin: 0 0 .6rem; }

.btn { display: inline-block; padding: .7rem 1.4rem; border-radius: 20px; border: 1.5px solid var(--maroon);
  background: var(--maroon); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.btn.quiet { background: transparent; color: var(--maroon); }
.btn.quiet:hover { background: #f1e8ec; }
.btn.small { padding: .45rem .8rem; font-size: .92rem; }
.link { background: none; border: 0; padding: 0; color: var(--maroon); font: inherit; text-decoration: underline; cursor: pointer; }

.notes { max-width: 40rem; margin: 0 auto 1.5rem; }
.note { padding: .8rem 1rem; border-left: 4px solid var(--ok); background: var(--surface); margin: 0 0 .5rem; }
.note.warn { border-color: var(--warn); }

/* client page: one row per platform, divided by lines, not cards */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr minmax(13rem, auto); gap: 1rem 2rem; align-items: center;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.row .side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; text-align: right; }
.status { font-size: .95rem; font-weight: 500; }
.status.none { color: var(--muted); }
.status.ok { color: var(--ok); }
.status.renew { color: var(--warn); }
@media (max-width: 36rem) {
  .row { grid-template-columns: 1fr; }
  .row .side { align-items: flex-start; text-align: left; }
}

/* the switchboard */
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.board { border-collapse: collapse; width: 100%; min-width: 74rem; }
.board th, .board td { padding: .9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.board thead th { font-weight: 600; font-size: .95rem; color: var(--muted); background: #faf9fb; }
.board tbody th { font-weight: 600; min-width: 15rem; }
.board tr:last-child th, .board tr:last-child td { border-bottom: 0; }
.cell { display: grid; grid-template-columns: auto 1fr; column-gap: .5rem; align-items: center;
  text-decoration: none; color: var(--ink); font-size: .95rem; padding: .15rem 0; }
.cell small { grid-column: 2; color: var(--muted); font-size: .8rem; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell span:not(.dot) { white-space: nowrap; }
.cell:hover span:not(.dot) { text-decoration: underline; }
.dot { width: .85rem; height: .85rem; border-radius: 50%; border: 2px solid var(--muted); }
.cell.ok .dot { background: var(--ok); border-color: var(--ok); }
.cell.renew .dot { border-color: var(--warn); border-style: dashed; }
.cell.none .dot { background: transparent; }
.actions { white-space: nowrap; }
.actions form { margin: 0 0 .4rem; }
.actions .link { color: var(--muted); font-size: .85rem; }

/* forms */
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 1.5rem; padding: 1rem 0 0; }
legend { font-weight: 600; padding: 0 .5rem 0 0; }
.pick { display: flex; gap: .7rem; align-items: baseline; padding: .45rem 0; cursor: pointer; }
.pick input { width: 1.15rem; height: 1.15rem; accent-color: var(--maroon); }
.field { display: block; margin: 0 0 1.25rem; }
.field span { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input { width: 100%; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 6px; font: inherit; background: #fff; }
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .15s ease; } }
