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

:root {
  --bg: #080b12;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2ff;
  --muted: #98a3c0;
  --blue: #008cff;
  --blue-2: #4db5ff;
  --up: #3ccf6e;
  --warn: #f5b546;
  --down: #ff5c6c;
  --none: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #26314a var(--bg); }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(0, 140, 255, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 1.125rem; font-weight: 700; }
h3 { font-size: 0.9375rem; font-weight: 640; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.dim { color: var(--muted); }

.wrap { width: min(880px, 100% - 32px); margin-inline: auto; }

/* Ambient background, as on gxthgirls.tech */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, #0d1a36 0%, var(--bg) 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4; mix-blend-mode: screen; }
.orb-a { width: 60vmax; height: 60vmax; left: -20vmax; top: -30vmax; background: radial-gradient(circle, rgba(0, 140, 255, 0.7), transparent 60%); }
.orb-b { width: 50vmax; height: 50vmax; right: -22vmax; top: -18vmax; background: radial-gradient(circle, rgba(0, 82, 204, 0.75), transparent 60%); }
.grain { position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gridlines { position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(70% 50% at 50% 0%, #000 0%, transparent 100%); mask: radial-gradient(70% 50% at 50% 0%, #000 0%, transparent 100%); }
@media (prefers-reduced-motion: no-preference) {
  .orb-a { animation: drift-a 26s ease-in-out infinite alternate; }
  .orb-b { animation: drift-b 32s ease-in-out infinite alternate; }
}
@keyframes drift-a { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vw, 16vh) scale(0.9); } }

/* Floating bar, as on gxthgirls.tech */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px clamp(16px, 4vw, 48px); } /* same bar as every house site */
.nav-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 20px 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 11, 18, 0.6);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 740; font-size: 1.1rem; letter-spacing: 0.08em; white-space: nowrap; }
.brand img { border-radius: 8px; }
.brand:hover { text-decoration: none; }
.updated { color: var(--muted); font: 500 0.75rem var(--mono); letter-spacing: 0.04em; text-align: right; }

main { flex: 1; display: grid; align-content: start; gap: 16px; padding: 24px 0 40px; }

.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(120deg, #0052cc 0%, #006ae6 55%, #4db5ff 100%); opacity: 0.8; }

/* Overall banner */
.banner {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.banner h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 780; letter-spacing: -0.03em; }
.banner p { margin: 2px 0 0; color: var(--muted); font-size: 0.875rem; }
.pulse { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; color: inherit; }
.banner[data-state="up"] { background: rgba(60, 207, 110, 0.08); border-color: rgba(60, 207, 110, 0.28); }
.banner[data-state="up"] .pulse { background: var(--up); color: var(--up); }
.banner[data-state="partial"] { background: rgba(245, 181, 70, 0.08); border-color: rgba(245, 181, 70, 0.3); }
.banner[data-state="partial"] .pulse { background: var(--warn); color: var(--warn); }
.banner[data-state="down"] { background: rgba(255, 92, 108, 0.08); border-color: rgba(255, 92, 108, 0.3); }
.banner[data-state="down"] .pulse { background: var(--down); color: var(--down); }
@media (prefers-reduced-motion: no-preference) {
  .banner[data-state="up"] .pulse::after, .banner[data-state="down"] .pulse::after { animation: ring 2.4s var(--ease) infinite; }
}
@keyframes ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* Minecraft card */
.mc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mc-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mc-id p { margin: 2px 0 0; font-size: 0.8125rem; overflow-wrap: anywhere; white-space: pre-line; }
.mc-icon {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  color: var(--blue-2); background: rgba(0, 140, 255, 0.12); border: 1px solid rgba(0, 140, 255, 0.25);
}
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill[data-state="up"] { color: var(--up); border-color: rgba(60, 207, 110, 0.35); background: rgba(60, 207, 110, 0.08); }
.pill[data-state="down"] { color: var(--down); border-color: rgba(255, 92, 108, 0.35); background: rgba(255, 92, 108, 0.08); }

.address {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 20px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line);
  transition: border-color .2s var(--ease);
}
.address:hover { border-color: var(--line-strong); }
.address:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.address-label { color: var(--muted); font-size: 0.8125rem; }
.address-value { flex: 1; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-copy { font-size: 0.8125rem; font-weight: 600; color: var(--blue-2); }

.stats, .windows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 16px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.stats > div, .windows > div { background: var(--bg-2); padding: 12px 14px; }
dt { color: var(--muted); font: 600 0.6875rem var(--mono); text-transform: uppercase; letter-spacing: .14em; }
dd { margin: 4px 0 0; font-size: 1.375rem; font-weight: 760; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
dd.good { color: var(--up); } dd.warn { color: var(--warn); } dd.bad { color: var(--down); }

.names { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 0; }
.names:empty { display: none; }
.names li { font: 13px var(--mono); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

.history { margin-top: 24px; position: relative; }
.history-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 36px; }
.bar { border-radius: 2px; background: var(--none); min-width: 0; transition: transform .15s var(--ease), filter .15s; }
.bar[data-level="up"] { background: var(--up); }
.bar[data-level="warn"] { background: var(--warn); }
.bar[data-level="down"] { background: var(--down); }
.bar:hover, .bar:focus-visible { transform: scaleY(1.12); filter: brightness(1.2); }
.bar:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.bars-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -100%);
  padding: 7px 10px; border-radius: 8px; font-size: 0.75rem; white-space: nowrap;
  background: #111829; border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.tip strong { display: block; font-size: 0.8125rem; }
.windows { margin-top: 16px; }

/* Websites */
.sites { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.site-groups { display: grid; gap: 18px; margin-top: 12px; }
.site-groups .sites { margin-top: 0; }
.site-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.site-group-head h3 { color: var(--muted); font: 600 0.6875rem var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.site { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.site-name { font-weight: 600; }
.site-beats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(40, 1fr); gap: 2px; height: 18px; }
.site-beats span { border-radius: 2px; background: var(--none); }
.site-beats span[data-level="up"] { background: var(--up); }
.site-beats span[data-level="down"] { background: var(--down); }
.site-beats span[data-level="warn"] { background: var(--warn); }

/* Incidents */
.incidents { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.incident { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.incident-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--down); }
.incident[data-planned="true"] .incident-dot { background: var(--blue-2); }
.incident-title { font-weight: 600; }
.incident-when { color: var(--muted); font-size: 0.8125rem; }

.foot { padding: 24px 0 28px; border-top: 1px solid var(--line); background: rgba(4, 6, 11, 0.6); }
.foot p { margin-block: 0; color: var(--muted); font-size: 0.84rem; }

@media (max-width: 640px) {
  .card { padding: 18px; }
  .stats, .windows { grid-template-columns: repeat(2, 1fr); }
  .bars { gap: 1px; height: 32px; }
  .brand span { font-size: 1rem; letter-spacing: 0.04em; }
  .address-label { display: none; }
}

/* Increase Contrast: brighter secondary text, edges and empty days */
@media (prefers-contrast: more) {
  :root { --muted: #c3cbe0; --line: rgba(255, 255, 255, 0.24); --line-strong: rgba(255, 255, 255, 0.4); --none: rgba(255, 255, 255, 0.22); }
}
@media (prefers-contrast: more) { .grain, .gridlines { display: none; } }
/* Reduce Transparency: the floating bar turns opaque */
@media (prefers-reduced-transparency: reduce) {
  .nav-inner { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Home: back to gxthgirls.tech, same pill on every site */
.home-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 560 0.95rem var(--sans); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); transition: background-color 0.2s, border-color 0.2s; }
.home-pill:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(0, 140, 255, 0.5); text-decoration: none; }
.home-pill svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.updated { margin-left: auto; }
.nav-inner { padding-right: 8px; }
@media (max-width: 520px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
