/*
  status.methmine.com. The site's own tokens, fonts and sky; health in the
  brand's ice, colour spent only on trouble. Works with scripting off: the
  tips are :hover, the chart tabs are radio buttons. Generated rules for the
  tabs are appended by build-css.mjs into public/status.css; edit this file.
*/
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-cyrillic.woff2) format('woff2-variations'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800; src: url(/fonts/mono-cyrillic.woff2) format('woff2-variations'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800; src: url(/fonts/mono-latin.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #08090b;
  --panel: #0e1013;
  --panel-2: #14171c;
  --hairline: rgb(255 255 255 / 0.08);
  --edge: rgb(255 255 255 / 0.16);
  --ink: #ebedf1;
  --body: #c2c8ce;
  --meta: #939aa2;
  --ice: #dbe6fb;
  --night: #1d1d1f;
  --ok: #dbe6fb;
  --ok-bar: #a9b8da;
  --warn: #f0c46a;
  --down: #ff8a80;
  --none: rgb(255 255 255 / 0.07);
  --font-sans: 'Inter Variable', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono Variable', 'Cascadia Mono', Consolas, ui-monospace, monospace;
  --radius-panel: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* The clear sky: the site's own. */
  --sky:
    radial-gradient(ellipse 62% 55% at 22% 18%, #f1f5ff 0%, rgb(241 245 255 / 0) 62%),
    radial-gradient(ellipse 56% 50% at 74% 8%, #9fb0dc 0%, rgb(159 176 220 / 0) 64%),
    radial-gradient(ellipse 80% 58% at 50% 48%, #5d6b8f 0%, rgb(93 107 143 / 0) 70%),
    radial-gradient(ellipse 60% 50% at 82% 60%, #2b3145 0%, rgb(43 49 69 / 0) 70%),
    linear-gradient(180deg, #c3d0ee 0%, #8f9cc0 38%, #2a3042 72%, var(--ground) 100%);
  --glow: 1;
  --hero-ink: var(--night);
  --pulse: var(--ok);
}
/* The storm: something is down. */
body[data-state='down'] {
  --sky:
    radial-gradient(ellipse 62% 55% at 22% 18%, #555c75 0%, rgb(85 92 117 / 0) 62%),
    radial-gradient(ellipse 56% 50% at 76% 10%, #4d2b36 0%, rgb(77 43 54 / 0) 64%),
    radial-gradient(ellipse 80% 58% at 50% 48%, #242836 0%, rgb(36 40 54 / 0) 70%),
    radial-gradient(ellipse 60% 50% at 82% 60%, #181a22 0%, rgb(24 26 34 / 0) 70%),
    linear-gradient(180deg, #373c4d 0%, #262a36 38%, #13151b 72%, var(--ground) 100%);
  --glow: 0.1;
  --hero-ink: var(--ink);
  --pulse: var(--down);
}
/* Nothing known yet: the sky, but no light in it. */
body[data-state='none'] { --glow: 0.35; --pulse: var(--meta); }

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--ground); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-sans); font-optical-sizing: auto; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--ice); color: var(--night); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
a { color: inherit; }
.mono { font-family: var(--font-mono); }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px) { .wrap { padding-inline: 40px; } }
.narrow { max-width: 960px; }
.display { font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; margin: 0; }
.display-md { font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 0; font-size: 30px; }
@media (min-width: 768px) { .display-md { font-size: 36px; } }

/* ------------------------------------------------------------ masthead */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--hero-ink); background: transparent; transition: background-color 260ms, color 260ms; }
.nav[data-solid='true'], .plain .nav {
  color: var(--ink); background: rgb(8 9 11 / 0.88);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--hairline);
}
/* Without a script nothing turns the bar to glass as the page scrolls, so it
   stays with the sky instead of floating dark ink over dark panels. */
@media (scripting: none) { .nav { position: absolute; } }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 12px; max-width: 1536px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 24px); }
.brand { display: flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; color: inherit; }
.brand .mark { height: 22px; width: auto; display: block; }
.brand-rule { width: 1px; height: 22px; background: currentColor; opacity: 0.35; }
.brand-word { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color 180ms, color 180ms; }
.pill-soft { background: rgb(255 255 255 / 0.55); color: var(--night); }
.pill-strong { background: var(--night); color: #fff; }
body[data-state='down'] .nav .pill-soft, .nav[data-solid='true'] .pill-soft, .plain .nav .pill-soft { background: #1f2227; color: var(--ink); }
body[data-state='down'] .nav .pill-strong, .nav[data-solid='true'] .pill-strong, .plain .nav .pill-strong { background: var(--ink); color: var(--ground); }
.nav:not([data-solid='true']) :focus-visible { outline-color: currentColor; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; min-height: 440px; display: flex; align-items: center; isolation: isolate; }
.sky { position: absolute; inset: -4%; z-index: -1; background: var(--sky); }
.sky::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 40% 34% at 36% 26%, rgb(255 255 255 / 0.9) 0%, rgb(255 255 255 / 0) 60%),
    radial-gradient(ellipse 34% 30% at 64% 22%, rgb(197 210 240 / 0.8) 0%, rgb(197 210 240 / 0) 60%);
  filter: blur(48px); opacity: var(--glow);
}
.sky-sheen {
  position: absolute; inset: -10%;
  background:
    radial-gradient(at 50% 4%, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0) 46%),
    linear-gradient(116deg, rgb(255 255 255 / 0) 18%, rgb(255 255 255 / 0.22) 37%, rgb(255 255 255 / 0) 51%),
    repeating-linear-gradient(112deg, rgb(255 255 255 / 0) 0 16px, rgb(255 255 255 / 0.025) 17px 18px);
  mix-blend-mode: soft-light; opacity: calc(0.25 + 0.5 * var(--glow));
  animation: drift 16s var(--ease-out) infinite alternate;
}
@keyframes drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(3%, 1%, 0); } }
.sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 9 11 / 0) 50%, rgb(8 9 11 / 0.65) 82%, var(--ground) 100%); }
.hero-inner { padding-top: 116px; padding-bottom: 60px; text-align: center; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hero-ink); opacity: 0.72; }
.state-title { font-size: clamp(44px, 8vw, 96px); color: var(--hero-ink); }
.hero-sub { margin: 26px auto 0; max-width: 40rem; font-size: 18px; line-height: 1.5; color: var(--ink); text-shadow: 0 1px 2px rgb(8 9 11 / 0.35), 0 2px 22px rgb(8 9 11 / 0.45); text-wrap: pretty; }
.live { position: relative; display: inline-block; width: 9px; height: 9px; margin-right: 12px; border-radius: 50%; background: var(--pulse); vertical-align: 1px; }
.live::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--pulse); opacity: 0; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }

/* ------------------------------------------------------------ sections */
.panel { background: var(--panel); border-radius: var(--radius-panel); box-shadow: inset 0 0 0 1px var(--hairline); }
.section { padding-top: 72px; }
.hero + .systems { padding-top: 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 13px; color: var(--meta); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.swatch.ok { background: var(--ok-bar); }
.swatch.down { background: var(--down); }
.swatch.none { background: var(--none); box-shadow: inset 0 0 0 1px var(--edge); }

.live-incident { margin-top: -36px; position: relative; z-index: 2; display: grid; gap: 14px; }
.live-incident .incident { box-shadow: inset 0 0 0 1px var(--edge), 0 30px 80px rgb(0 0 0 / 0.45); }
.incident { padding: 24px 26px; scroll-margin-top: 80px; }
.incident-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.incident-title { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-down { color: var(--down); background: rgb(255 138 128 / 0.12); }
.badge-warn { color: var(--warn); background: rgb(240 196 106 / 0.12); }
.badge-ok { color: var(--ice); background: rgb(219 230 251 / 0.1); }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--body); }
.timeline time { color: var(--meta); font-size: 14px; padding-top: 1px; }
.timeline b { color: var(--ink); font-weight: 600; }

.group { padding: 8px 0; margin-bottom: 18px; }
.group-title { margin: 0; padding: 18px 26px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--meta); }
.row { padding: 18px 26px 20px; border-top: 1px solid var(--hairline); }
.group-title + .row { border-top: 0; }
.row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.comp-name { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.comp-meta { margin: 2px 0 0; font-size: 14px; color: var(--meta); line-height: 1.45; }
.comp-state { margin: 0; flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding-top: 2px; }
.comp-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.comp-state.up { color: var(--ok); }
.comp-state.down { color: var(--down); }
.comp-state.none { color: var(--meta); }

.bars { display: flex; gap: 2px; margin-top: 14px; height: 34px; }
.bar { position: relative; flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--ok-bar); transition: background-color 120ms; }
.bar.down { background: var(--down); }
.bar.none { background: var(--none); }
.bar:hover { background: var(--ice); }
.bar.down:hover { background: #ffb0a8; }
.bar.none:hover { background: rgb(255 255 255 / 0.16); }
/* The tip is the bar's own: CSS, so it works with scripting off. */
.bar::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  padding: 8px 11px; border-radius: 10px; background: #1f2227; box-shadow: 0 0 0 1px var(--edge), 0 16px 40px rgb(0 0 0 / 0.5);
  font-size: 13px; line-height: 1.3; color: var(--ink); white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity 120ms; z-index: 5;
}
.bar:hover::after { opacity: 1; visibility: visible; }
.bar:nth-child(-n+12)::after { left: 0; transform: none; }
.bar:nth-last-child(-n+12)::after { left: auto; right: 0; transform: none; }
.bars-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--meta); }
.bars-foot .rule { flex: 1; height: 1px; background: var(--hairline); }
.bars-foot .uptime { color: var(--body); }
.span-30 { display: none; }

/* ------------------------------------------------------------ charts */
.tab-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chart-tabs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.tabs { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); }
.tabs label { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; color: var(--meta); font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.tabs label:hover { color: var(--ink); }
.cp { display: none; }
.chart-panel { padding: 24px 26px 18px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.chart-now { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; text-align: right; }
.chart-now small { font-size: 15px; color: var(--meta); font-weight: 500; letter-spacing: 0; }
.chart-now .down-text { font-size: 18px; color: var(--down); }
.chart-sub { margin: 4px 0 0; font-size: 13px; color: var(--meta); text-align: right; }
.chart-wrap { position: relative; margin-top: 18px; }
.chart { display: block; width: 100%; height: 190px; overflow: visible; }
.chart .grid line { stroke: var(--hairline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .line { fill: none; stroke: var(--ice); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .dots circle { fill: var(--ice); }
.chart-y { position: absolute; top: 0; right: 0; height: 190px; pointer-events: none; }
.chart-y span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; color: var(--meta); background: var(--panel); padding-left: 6px; }
.chart-y .y3 { top: 5.26%; }
.chart-y .y2 { top: 36.84%; }
.chart-y .y1 { top: 68.42%; }
.chart-x { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--meta); }

/* ------------------------------------------------------------ history */
.days { list-style: none; margin: 0; padding: 0; }
.day { padding: 18px 0; border-top: 1px solid var(--hairline); }
.day:first-child { border-top: 0; padding-top: 4px; }
.day h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.day > p { margin: 0; color: var(--meta); font-size: 15px; }
.day .incident { margin-top: 10px; }
.since { margin: 14px 0 0; color: var(--meta); font-size: 15px; }
.more { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; font-size: 15px; font-weight: 600; }
.more a { text-underline-offset: 4px; }

/* History and not-found: no sky, the bar glass from the start. */
.page { padding-top: 112px; min-height: 60vh; }
.page .display-md { margin: 8px 0 24px; }
.back { margin: 0; font-size: 15px; }
.back a { color: var(--meta); text-underline-offset: 4px; }

.foot { padding-top: 72px; padding-bottom: 72px; }
.foot-inner { border-top: 1px solid var(--hairline); padding-top: 28px; display: grid; gap: 18px; }
.foot p { margin: 0; max-width: 44rem; font-size: 14px; line-height: 1.6; color: var(--meta); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 500; }
.foot nav a { color: var(--body); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .hero { min-height: 380px; }
  .hero-inner { padding-top: 104px; padding-bottom: 48px; }
  .hero-sub { font-size: 16px; }
  .group-title, .row { padding-left: 18px; padding-right: 18px; }
  .incident { padding: 20px 18px; }
  .chart-panel { padding: 20px 18px 16px; }
  /* Thirty days on a phone: ninety bars would be a pixel each. */
  .bars .bar:nth-child(-n+60) { display: none; }
  .bar:nth-child(-n+70)::after { left: 0; transform: none; }
  .span-90 { display: none; }
  .span-30 { display: inline; }
  .chart-x span:nth-child(even) { display: none; }
  .brand-word { font-size: 15px; }
  .nav .pill-soft { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sky-sheen, .live::after { animation: none; }
  * { transition-duration: 0ms !important; }
}

/* ------------------------------------------------------------ chart tabs (generated) */
#cs-site:checked ~ .chart-tabs label[for='cs-site'] { background: #1f2227; color: var(--ink); }
#cs-site:focus-visible ~ .chart-tabs label[for='cs-site'] { outline: 2px solid var(--ice); outline-offset: 2px; }
#cs-site:checked ~ #cr-day:checked ~ .chart-panels .cp-site-day { display: block; }
#cs-site:checked ~ #cr-week:checked ~ .chart-panels .cp-site-week { display: block; }
#cs-site:checked ~ #cr-month:checked ~ .chart-panels .cp-site-month { display: block; }
#cs-apply:checked ~ .chart-tabs label[for='cs-apply'] { background: #1f2227; color: var(--ink); }
#cs-apply:focus-visible ~ .chart-tabs label[for='cs-apply'] { outline: 2px solid var(--ice); outline-offset: 2px; }
#cs-apply:checked ~ #cr-day:checked ~ .chart-panels .cp-apply-day { display: block; }
#cs-apply:checked ~ #cr-week:checked ~ .chart-panels .cp-apply-week { display: block; }
#cs-apply:checked ~ #cr-month:checked ~ .chart-panels .cp-apply-month { display: block; }
#cs-accounts:checked ~ .chart-tabs label[for='cs-accounts'] { background: #1f2227; color: var(--ink); }
#cs-accounts:focus-visible ~ .chart-tabs label[for='cs-accounts'] { outline: 2px solid var(--ice); outline-offset: 2px; }
#cs-accounts:checked ~ #cr-day:checked ~ .chart-panels .cp-accounts-day { display: block; }
#cs-accounts:checked ~ #cr-week:checked ~ .chart-panels .cp-accounts-week { display: block; }
#cs-accounts:checked ~ #cr-month:checked ~ .chart-panels .cp-accounts-month { display: block; }
#cs-updates:checked ~ .chart-tabs label[for='cs-updates'] { background: #1f2227; color: var(--ink); }
#cs-updates:focus-visible ~ .chart-tabs label[for='cs-updates'] { outline: 2px solid var(--ice); outline-offset: 2px; }
#cs-updates:checked ~ #cr-day:checked ~ .chart-panels .cp-updates-day { display: block; }
#cs-updates:checked ~ #cr-week:checked ~ .chart-panels .cp-updates-week { display: block; }
#cs-updates:checked ~ #cr-month:checked ~ .chart-panels .cp-updates-month { display: block; }
#cs-soda-bot:checked ~ .chart-tabs label[for='cs-soda-bot'] { background: #1f2227; color: var(--ink); }
#cs-soda-bot:focus-visible ~ .chart-tabs label[for='cs-soda-bot'] { outline: 2px solid var(--ice); outline-offset: 2px; }
#cs-soda-bot:checked ~ #cr-day:checked ~ .chart-panels .cp-soda-bot-day { display: block; }
#cs-soda-bot:checked ~ #cr-week:checked ~ .chart-panels .cp-soda-bot-week { display: block; }
#cs-soda-bot:checked ~ #cr-month:checked ~ .chart-panels .cp-soda-bot-month { display: block; }
#cs-soda-support:checked ~ .chart-tabs label[for='cs-soda-support'] { background: #1f2227; color: var(--ink); }
#cs-soda-support:focus-visible ~ .chart-tabs label[for='cs-soda-support'] { outline: 2px solid var(--ice); outline-offset: 2px; }
#cs-soda-support:checked ~ #cr-day:checked ~ .chart-panels .cp-soda-support-day { display: block; }
#cs-soda-support:checked ~ #cr-week:checked ~ .chart-panels .cp-soda-support-week { display: block; }
#cs-soda-support:checked ~ #cr-month:checked ~ .chart-panels .cp-soda-support-month { display: block; }
#cr-day:checked ~ .chart-tabs label[for='cr-day'] { background: #1f2227; color: var(--ink); }
#cr-day:focus-visible ~ .chart-tabs label[for='cr-day'] { outline: 2px solid var(--ice); outline-offset: 2px; }
#cr-week:checked ~ .chart-tabs label[for='cr-week'] { background: #1f2227; color: var(--ink); }
#cr-week:focus-visible ~ .chart-tabs label[for='cr-week'] { outline: 2px solid var(--ice); outline-offset: 2px; }
#cr-month:checked ~ .chart-tabs label[for='cr-month'] { background: #1f2227; color: var(--ink); }
#cr-month:focus-visible ~ .chart-tabs label[for='cr-month'] { outline: 2px solid var(--ice); outline-offset: 2px; }
