/* status.merclight.app: the site's palette and type (Website/src/styles/global.css). */
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("/fonts/Archivo-Regular.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/fonts/Archivo-Bold.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("/fonts/Archivo-ExtraBold.woff2") format("woff2"); }

:root {
  --bg: #0B0C0F; --surface: #15171C; --surface-hi: #1A1D23; --outline: #33373F; --outline-hi: #6A6F7A;
  --ink: #F4F4F6; --muted: #9A9FA9; --dim: #7A7F89;
  --crimson: #E0143C; --crimson-hi: #FF3B5C;
  --ok: #34d399; --warn: #f5b942; --bad: #ff5a6e; --none: #2A2E36;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 420px at 50% -12%, rgb(224 20 60 / .13), transparent 62%);
  background-repeat: no-repeat;
}
a { color: var(--crimson-hi); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid #FFF4E0; outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(860px, 100% - 2.5rem); margin-inline: auto; }

.top { border-bottom: 1px solid var(--outline); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .12em; font-size: .95rem; }
.brand img { width: 34px; height: 34px; }
.brand em { font-style: normal; font-weight: 700; letter-spacing: 0; color: var(--muted); padding-left: .2rem; }
.top nav { display: flex; gap: 1.2rem; font-size: .92rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; font-weight: 800; margin: 2.6rem 0 1rem; }
section > h2:first-child { margin-top: 2.6rem; }
p { margin: 0; }
.quiet { color: var(--muted); }

.banner { display: flex; gap: 1rem; align-items: center; margin-top: 2.2rem; padding: 1.25rem 1.4rem; border-radius: 18px; border: 1px solid var(--outline); background: var(--surface); }
.banner h1 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); font-weight: 800; }
.banner p { color: var(--muted); margin-top: .15rem; }
.banner .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--none); box-shadow: 0 0 0 6px rgb(255 255 255 / .04); }
.banner.operational { border-color: rgb(52 211 153 / .35); }
.banner.operational .dot { background: var(--ok); box-shadow: 0 0 0 6px rgb(52 211 153 / .14); }
.banner.degraded { border-color: rgb(245 185 66 / .45); }
.banner.degraded .dot { background: var(--warn); box-shadow: 0 0 0 6px rgb(245 185 66 / .16); }
.banner.down { border-color: rgb(255 90 110 / .5); }
.banner.down .dot { background: var(--bad); box-shadow: 0 0 0 6px rgb(255 90 110 / .16); }
.banner.maintenance { border-color: rgb(125 170 255 / .45); }
.banner.maintenance .dot { background: #7daaff; box-shadow: 0 0 0 6px rgb(125 170 255 / .16); }

.components { list-style: none; margin: 0; padding: 0; border: 1px solid var(--outline); border-radius: 18px; background: var(--surface); }
.component { padding: 1.15rem 1.3rem 1rem; }
.component + .component { border-top: 1px solid var(--outline); }
.component .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.component h3 { font-size: 1.02rem; font-weight: 700; }
.component .row p { color: var(--muted); font-size: .9rem; margin-top: .1rem; }
.pill { flex: none; border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; font-weight: 800; letter-spacing: .03em; background: var(--surface-hi); color: var(--muted); border: 1px solid var(--outline); }
.pill.operational { color: var(--ok); border-color: rgb(52 211 153 / .35); background: rgb(52 211 153 / .1); }
.pill.degraded { color: var(--warn); border-color: rgb(245 185 66 / .4); background: rgb(245 185 66 / .1); }
.pill.down { color: var(--bad); border-color: rgb(255 90 110 / .45); background: rgb(255 90 110 / .1); }

.bars { display: flex; gap: 2px; height: 34px; margin-top: .9rem; }
.bar { flex: 1; border-radius: 2px; background: var(--none); min-width: 2px; }
.bar.ok { background: var(--ok); }
.bar.degraded { background: var(--warn); }
.bar.down { background: var(--bad); }
.scale { display: flex; justify-content: space-between; color: var(--dim); font-size: .78rem; margin-top: .45rem; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; color: var(--muted); font-size: .82rem; margin-top: .8rem; }
.d30 { display: none; }
@media (max-width: 600px) { .d30 { display: inline; } }
.legend .bar { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: .35rem; vertical-align: -1px; }

/* 90 bars do not fit a phone: show the last 30 days there. */
@media (max-width: 600px) {
  .bars .bar:nth-child(-n+60) { display: none; }
  .d90 { display: none; }
  .top nav a:not(:last-child) { display: none; }
}

.incident { border: 1px solid var(--outline); border-radius: 16px; background: var(--surface); padding: 1.1rem 1.25rem; margin-bottom: .8rem; }
.incident.open { border-color: rgb(245 185 66 / .45); }
.incident.open.impact-major { border-color: rgb(255 90 110 / .5); }
.incident h3 { font-size: 1.02rem; font-weight: 700; }
.incident .meta { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.updates { list-style: none; margin: .8rem 0 0; padding: 0; }
.updates li { padding: .6rem 0 0 .9rem; border-left: 2px solid var(--outline); margin-left: .2rem; }
.updates li + li { margin-top: .3rem; }
.updates time { color: var(--dim); font-size: .82rem; margin-left: .35rem; }
.updates p { margin-top: .25rem; color: #C3C8D4; }

.foot { color: var(--dim); font-size: .85rem; padding: 2.4rem 0 3rem; display: grid; gap: .3rem; }
.foot a { color: var(--muted); }

/* Admin */
.admin h1 { font-size: 1.6rem; font-weight: 800; margin-top: 2.2rem; }
.admin > .quiet { margin-top: .5rem; }
.note { margin-top: 1rem; padding: .7rem 1rem; border-radius: 12px; border: 1px solid rgb(52 211 153 / .35); background: rgb(52 211 153 / .08); color: var(--ok); }
.form { display: grid; gap: .8rem; margin-top: .9rem; }
.form label, .form fieldset { display: grid; gap: .3rem; font-size: .9rem; color: var(--muted); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { padding: 0; margin-bottom: .3rem; }
.form .check { display: flex; align-items: center; gap: .5rem; color: var(--ink); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--outline-hi); border-radius: 10px; padding: .6rem .75rem; }
textarea { resize: vertical; }
button { justify-self: start; font: inherit; font-weight: 700; color: #fff; background: var(--crimson); border: 0; border-radius: 999px; padding: .65rem 1.3rem; cursor: pointer; min-height: 44px; }
button:hover { background: #C8102E; }
.form.danger { border-top: 1px solid var(--outline); padding-top: .8rem; }
.form.danger button { background: transparent; border: 1px solid var(--outline-hi); color: var(--muted); }
