/* ssfn status page. The "Ledger" look of the site and console: paper, ink, one blue, square corners. */
:root {
  --paper: #f3f3ee; --white: #fff; --ink: #0e0e14; --blue: #2b2bd9; --blue-dark: #1a1a8f; --tint: #ececfb;
  --rule: #d5d5cc; --muted: #4a4a57; --warn-bg: #fcefd9; --warn: #6b4300; --amber: #c27a00; --danger: #8a1f1f; --danger-bg: #f7dede;
  --sans: Inter, system-ui, sans-serif; --display: "Space Grotesk", var(--sans); --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); overflow-wrap: break-word; }
h1, h2, h3, p { margin: 0; }
h1 { font: 700 28px/1.2 var(--display); }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
a { color: var(--blue); } a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: 8px; top: -80px; background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 600; z-index: 2; }
.skip:focus { top: 8px; color: #fff; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.small { font-size: 13px; } .muted { color: var(--muted); } .mono { font-family: var(--mono); }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--display); color: var(--ink); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--ink); }
.mark { width: 22px; height: 22px; flex: none; }
.tag { font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--blue); color: #fff; padding: 3px 7px; }
main { display: flex; flex-direction: column; gap: 32px; padding-bottom: 40px; }
section { display: flex; flex-direction: column; gap: 12px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }

/* The answer to "is it working?", before anything else. */
.now { background: var(--ink); color: #fff; padding: 28px 24px; gap: 6px; border: 2px solid var(--ink); }
.now p { color: #c5cfca; }
.now.bad { background: var(--white); color: var(--ink); border-color: var(--danger); }
.now.bad h1 { color: var(--danger); } .now.bad p { color: var(--muted); }
.now.unknown { background: var(--white); color: var(--ink); }
.now.unknown p { color: var(--muted); }

.notice { background: var(--warn-bg); color: var(--warn); padding: 14px 18px; border-left: 4px solid var(--amber); }
.card { background: var(--white); border: 2px solid var(--ink); }
.part { padding: 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.part + .part { border-top: 1px solid var(--rule); }
.part .line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.part .name { font-weight: 600; }
.badge { display: inline-block; padding: 3px 10px; font-size: 13px; background: var(--tint); color: var(--blue-dark); white-space: nowrap; }
.badge.bad { background: var(--danger-bg); color: var(--danger); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.dark { background: var(--ink); color: #fff; }

/* 90 days, oldest on the left. Narrow screens show the most recent 30. */
.days { display: flex; gap: 2px; height: 30px; }
.days span { flex: 1 1 0; min-width: 0; background: var(--ink); }
.days .minor, .key.minor { background: var(--amber); }
.days .bad, .key.bad { background: var(--danger); }
.days .none, .key.none { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.key { display: inline-block; width: 10px; height: 10px; background: var(--ink); margin: 0 6px 0 14px; vertical-align: baseline; }
.legend .key:first-child { margin-left: 0; }
.part .foot { display: flex; justify-content: space-between; gap: 16px; }
@media (max-width: 620px) { .days span:nth-child(-n+60) { display: none; } .only-wide { display: none; } }
@media (min-width: 621px) { .only-narrow { display: none; } }

.incident { background: var(--white); border: 2px solid var(--ink); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.incident + .incident { margin-top: 12px; }
.incident.open { border-left: 6px solid var(--amber); }
.incident .line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.updates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.updates li { border-top: 1px solid var(--rule); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.updates .when { font: 13px var(--mono); color: var(--muted); }
.updates .text { white-space: pre-wrap; }
.empty { background: var(--white); border: 2px solid var(--ink); padding: 18px 24px; color: var(--muted); }
.foot.wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--ink); }
