@font-face { font-family: "Inter"; src: url("./assets/fonts/inter-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("./assets/fonts/jetbrains-mono-var-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --tint: 148, 170, 210;
  --ink-0: #05070c; --ink-1: #080b13; --ink-2: #0c111d; --ink-3: #111829; --ink-4: #172036;
  --card: linear-gradient(180deg, rgba(17, 24, 41, .72), rgba(12, 17, 29, .72));
  --line: rgba(var(--tint), .11); --line-2: rgba(var(--tint), .19); --line-3: rgba(var(--tint), .3);
  --text: #eef2f8; --text-2: #b6c1d3; --text-3: #8b97ac;
  --blue: #3b82f6; --blue-2: #60a5fa; --cyan: #22d3ee; --green: #34d399; --amber: #fbbf24; --red: #f87171; --violet: #a78bfa;
  --grad: linear-gradient(120deg, #3b82f6 0%, #0ea5e9 55%, #22d3ee 100%);
  --grad-text: linear-gradient(100deg, #a5c8ff 0%, #67e8f9 100%);
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 10px; --r-lg: 16px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 60px -36px rgba(0, 0, 0, .9);
  --st: var(--green);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ink-0: #f6f8fb; --ink-1: #eef2f7; --ink-2: #ffffff; --ink-3: #f1f4f9; --ink-4: #e6ebf3;
    --card: linear-gradient(180deg, #ffffff, #fbfcfe);
    --tint: 40, 60, 100;
    --text: #0d1424; --text-2: #3b4658; --text-3: #5d697d;
    --green: #059669; --amber: #b45309; --red: #dc2626; --cyan: #0891b2; --blue-2: #2563eb;
    --grad-text: linear-gradient(100deg, #1d4ed8 0%, #0891b2 100%);
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px -20px rgba(16, 24, 40, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink-0); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.eyebrow { font: 500 .74rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin: 0 0 .4rem; }
h1, h2, h3 { letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.btn { font: 600 .9rem var(--font); color: var(--text); background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: .55rem 1.05rem; cursor: pointer; }
.btn:hover { border-color: var(--line-3); }
.btn--primary { color: #fff; border: 0; background: var(--grad); box-shadow: 0 8px 24px -12px rgba(59, 130, 246, .8); }

/* nav */
.nav { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ink-1) 80%, transparent); backdrop-filter: blur(12px); }
.nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.logo { height: 28px; width: auto; }
.logo--light { display: none; }
@media (prefers-color-scheme: light) { .logo--dark { display: none; } .logo--light { display: block; } }
.brand__sep { color: var(--text-3); font-weight: 300; }
.brand__page { color: var(--text-2); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 1.2rem; font-size: .92rem; }
.nav__links a { color: var(--text-2); }
@media (max-width: 720px) { .brand__name, .brand__sep { display: none; } .nav__links a { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, color-mix(in srgb, var(--st) 22%, transparent), transparent); pointer-events: none; transition: background .6s; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; padding-block: clamp(2.2rem, 6vw, 4rem); position: relative; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1; display: flex; align-items: center; gap: .9rem; }
.pulse { flex: none; width: .62em; height: .62em; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 0 color-mix(in srgb, var(--st) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .55em transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
#headline-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.degraded #headline-text { background: none; color: var(--amber); }
body.degraded { --st: var(--amber); }
.lede { color: var(--text-2); font-size: 1.08rem; margin: .9rem 0 .4rem; max-width: 34rem; }
.meta { color: var(--text-3); font: .82rem var(--mono); margin: 0; }
.hero__viz { position: relative; height: 300px; }
#orb { width: 100%; height: 100%; display: block; }
.orb-tip { position: absolute; font: .78rem var(--mono); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 8px; padding: .3rem .6rem; pointer-events: none; transform: translate(-50%, -140%); white-space: nowrap; box-shadow: var(--shadow); }
@media (max-width: 820px) { .hero__in { grid-template-columns: 1fr; } .hero__viz { height: 220px; order: -1; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }

/* notices */
.notices { display: grid; gap: .9rem; margin-top: 1.6rem; }
.notice { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem 1.2rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--c); box-shadow: var(--shadow); }
.notice__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.notice__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.notice h3 { font-size: 1rem; margin: 0 0 .15rem; }
.notice .when { font: .78rem var(--mono); color: var(--text-3); }
.notice p { margin: .35rem 0 0; color: var(--text-2); font-size: .94rem; }
.notice .updates { margin: .6rem 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--text-2); }
.notice .updates li { padding: .25rem 0; border-top: 1px dashed var(--line); }
.notice .updates b { font: 600 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); margin-right: .5rem; }

/* section heads */
section[id] { scroll-margin-top: 60px; }
#services, #history { margin-top: clamp(2.4rem, 6vw, 3.6rem); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.legend { display: flex; gap: .9rem; font: .76rem var(--mono); color: var(--text-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
i.ok, .day.ok { background: var(--green); } i.minor, .day.minor { background: var(--amber); } i.major, .day.major { background: var(--red); } i.maint, .day.maint { background: var(--blue-2); }
/* components */
.components { border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.comp { padding: 1.05rem 1.2rem 1.1rem; border-top: 1px solid var(--line); }
.comp:first-child { border-top: 0; }
.comp__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.comp__name { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.comp__name button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem; }
.comp__name button:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.chev { width: 14px; height: 14px; fill: none; stroke: var(--text-3); stroke-width: 2.4; transition: transform .2s; }
.comp.open .chev { transform: rotate(90deg); }
.comp__desc { color: var(--text-3); font-size: .86rem; margin: .1rem 0 .7rem; }
.bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 30px; }
.day { border-radius: 2px; opacity: .9; transition: transform .1s, opacity .1s; }
.day:hover { opacity: 1; transform: scaleY(1.15); }
.bars__foot { display: flex; justify-content: space-between; font: .74rem var(--mono); color: var(--text-3); margin-top: .35rem; }
.bars__foot b { color: var(--text-2); font-weight: 500; }
.subs { display: none; margin: .8rem 0 0; padding: .2rem 0 0 1.4rem; border-left: 1px solid var(--line-2); }
.comp.open .subs { display: block; }
.sub-row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .9rem; color: var(--text-2); }

/* history */
.history { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.history li { position: relative; padding: 0 0 1.1rem 1.2rem; }
.history li::before { content: ""; position: absolute; left: -5px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--line-3)); }
.history time { font: .78rem var(--mono); color: var(--text-3); }
.history h3 { font-size: .98rem; margin: .1rem 0; }
.history p { margin: .15rem 0 0; color: var(--text-2); font-size: .9rem; }
.history .quiet { color: var(--text-3); font-size: .9rem; }

/* footer */
.foot { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--ink-1); }
.foot__in { padding-block: 2.2rem; }
.foot__big { font-size: 1.15rem; margin: 0 0 .5rem; }
.foot__small { color: var(--text-3); font-size: .85rem; margin: 0; }


/* Production states, accessible interaction, and a CSS-only decorative fallback. */
[hidden] { display: none !important; }
.st { display: inline-flex; align-items: center; gap: .4rem; font: 600 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.st::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.tone-operational { --c: var(--green); }
.tone-degraded { --c: var(--amber); }
.tone-outage { --c: var(--red); }
.tone-maintenance { --c: var(--blue-2); }
body.outage { --st: var(--red); }
body.maintenance { --st: var(--blue-2); }
body.unavailable { --st: var(--text-3); }
body.outage #headline-text { background: none; color: var(--red); }
body.unavailable .pulse { animation: none; }
.nav__links a.contact { color: #fff; display: inline-block; }
.comp { position: relative; }
.day { border: 0; padding: 0; min-width: 0; cursor: pointer; font: inherit; }
.day.none { background: var(--ink-4); }
.day:focus-visible { position: relative; z-index: 2; outline-offset: 2px; }
.day-tip { position: relative; margin-top: .6rem; z-index: 5; padding: .65rem .85rem; border: 1px solid var(--line-3); background: var(--ink-2); color: var(--text); border-radius: 8px; box-shadow: var(--shadow); font: .8rem/1.6 var(--mono); pointer-events: none; }
.bars__foot { gap: .5rem; }
.bars__foot span:nth-child(2) { white-space: nowrap; color: var(--text-2); }
.data-banner { margin-top: 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: var(--r); background: var(--ink-2); color: var(--text-2); }
.history-incident { border-left: 2px solid var(--c); padding-left: .8rem; margin: .5rem 0 1rem; }
.history .updates { list-style: none; padding: 0; }
.history .updates li { padding: .25rem 0; font-size: .85rem; color: var(--text-2); }
.history .updates li::before { display: none; }
.history .updates b { margin-right: .5rem; color: var(--text); }
.skip { position: absolute; left: 1rem; top: -6rem; padding: .5rem 1rem; background: var(--ink-2); z-index: 100; }
.skip:focus { top: .5rem; }
.orb-fallback { position: absolute; width: 180px; height: 180px; border: 1px solid var(--blue-2); border-radius: 50%; left: calc(50% - 90px); top: calc(50% - 90px); background: radial-gradient(circle, color-mix(in srgb, var(--blue-2) 35%, transparent), transparent 68%); box-shadow: 0 0 70px color-mix(in srgb, var(--blue) 20%, transparent); }
.orb-fallback::before, .orb-fallback::after { content: ''; position: absolute; inset: -20px; border: 1px solid var(--line-3); border-radius: 50%; transform: rotate(35deg) scaleY(.45); }
.orb-fallback::after { transform: rotate(-35deg) scaleY(.65); inset: -40px; }
.hero__viz.webgl .orb-fallback { display: none; }
@media (max-width: 560px) {
  .nav__links { gap: 0; }
  .contact { font-size: .72rem; padding: .55rem .75rem; }
  .comp__row { align-items: flex-start; flex-direction: column; gap: .3rem; }
  .comp__name button { text-align: left; }
  .sub-row { flex-wrap: wrap; gap: .25rem .75rem; }
  .legend { flex-wrap: wrap; gap: .5rem .8rem; }
  .bars { gap: 2px; }
  .bars__foot { font-size: .61rem; }
  .bars__foot span:first-child, .bars__foot span:last-child { max-width: 30%; }
  .bars__foot span:last-child { text-align: right; }
}
