/* status.daykeep.io (vault note 1075, look B). Served by forge, not the app, so it carries the
   brand's MARKETING palette (daykeep-brand tokens/color.tokens.json, color.marketing) and its
   signal set (color.signal) rather than the app's themes, and follows the device's light or dark.
   Success is pine; there is no gold here (the status page is not on the gold list). The contrast
   of every pair below is measured by page_test.go, so change a value there first. */
:root {
  --page: #eff4f0; --card: #fdfefd; --hair: #dbe4dc;
  --ink: #14211b; --ink2: #4f5a53; --ink3: #66716a;
  --up: #1f6b4a; --up-tint: #e2efe9; --on-up: #ffffff;
  --upd: #a64b07; --upd-tint: #fdf1dc;
  --down: #c5221f; --down-tint: #fde8e6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b120e; --card: #15201b; --hair: #2a352e;
    --ink: #eef3f0; --ink2: #a6b1ab; --ink3: #879189;
    --up: #52b78a; --up-tint: #1c3a2c; --on-up: #06170f;
    --upd: #ed874c; --upd-tint: #3a2e14;
    --down: #f28b82; --down-tint: #3a201c;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page); color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 40px; }

/* The lockup in a product's chrome: mark, wordmark, then the product word in the UI face on the
   wordmark's baseline. */
header { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.lock { display: flex; align-items: flex-end; gap: 8px; }
.lock .mk { width: 28px; height: 28px; display: block; }
.lock .wm { height: 22px; width: auto; display: block; }
.lock .pw { font-size: 17px; font-weight: 600; color: var(--ink2); line-height: 1; margin-bottom: 5px; }
header a { margin-left: auto; color: var(--up); font-size: 14px; font-weight: 600; text-decoration: none; }
header a:hover { text-decoration: underline; }

.banner { border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.banner .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.banner .ic svg { width: 16px; height: 16px; display: block; }
.banner h1 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 600; }
.banner p { margin: 4px 0 0; color: var(--ink2); font-size: 14px; }
.s-up .banner { background: var(--up-tint); }
.s-up .banner .ic { background: var(--up); color: var(--on-up); }
.s-updating .banner { background: var(--upd-tint); }
.s-updating .banner .ic { background: var(--upd); color: var(--card); }
.s-down .banner { background: var(--down-tint); }
.s-down .banner .ic { background: var(--down); color: var(--card); }

.card { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; }
.row { padding: 12px 18px; border-top: 1px solid var(--hair); }
.row:first-child { border-top: 0; }
.rhead { display: flex; align-items: center; gap: 10px; }
.rhead b { font-size: 15px; font-weight: 600; }
.rhead .hint { color: var(--ink3); font-size: 13px; }
.state { margin-left: auto; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.st-up { color: var(--up); } .st-up .dot { background: var(--up); }
.st-updating { color: var(--upd); } .st-updating .dot { background: var(--upd); }
.st-down { color: var(--down); } .st-down .dot { background: var(--down); }

.hist { padding: 16px 18px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 30px; margin-top: 10px; }
.bars i { flex: 1; height: 100%; border-radius: 2px; background: var(--up); }
.bars i.u { background: var(--upd); }
.bars i.d { background: var(--down); }
/* No data yet (the checker was not running): a short stub, so it cannot be read as a state. */
.bars i.n { background: var(--ink3); height: 4px; }
.axis { display: flex; justify-content: space-between; color: var(--ink3); font-size: 12px; margin-top: 6px; }
.axis b { color: var(--ink2); font-weight: 600; }

h2 { font-size: 14px; color: var(--ink2); margin: 26px 0 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ev { display: grid; grid-template-columns: 92px 1fr auto; gap: 4px 12px; padding: 12px 18px; border-top: 1px solid var(--hair); font-size: 14px; }
.ev:first-child { border-top: 0; }
.ev .when { color: var(--ink3); }
.ev .what { font-weight: 600; }
.ev .dur { color: var(--ink2); }
.ev .det { grid-column: 2 / 4; color: var(--ink3); font-size: 13px; }
.none { padding: 12px 18px; color: var(--ink3); font-size: 14px; }

footer { margin-top: 22px; color: var(--ink3); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 16px; }

@media (max-width: 520px) {
  .wrap { padding: 18px 16px 32px; }
  .bars { gap: 1px; height: 28px; }
  .bars i { border-radius: 1px; }
  .rhead { display: grid; grid-template-columns: 1fr auto; row-gap: 0; }
  .rhead .hint { grid-row: 2; grid-column: 1 / 3; }
  .rhead .state { grid-row: 1; grid-column: 2; }
  .ev { grid-template-columns: 64px 1fr auto; }
}
