/* Self-contained stylesheet — no CDN dependencies, so pages render on a
   network-restricted or offline host.

   Palette: black base, orange-red primary, yellow secondary. The look commits
   to a single dark theme rather than following the OS preference — this is a
   branded surface, not a document. */

:root {
  --black: #0c0c0e;
  --black-soft: #17171b;
  --surface: #1c1c21;
  --surface-raised: #24242b;
  --border: #33333d;

  --orange: #f4451d;
  --orange-bright: #ff5a2b;
  --orange-dim: #7a2412;
  --yellow: #ffc72c;
  --yellow-dim: #4a3a0e;

  --text: #f5f5f7;
  --muted: #9d9daa;

  --ok: var(--yellow);
  --ok-bg: var(--yellow-dim);
  --down: var(--orange-bright);
  --down-bg: var(--orange-dim);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  /* Subtle warmth bleeding in from the top corners. */
  background-image:
    radial-gradient(720px 340px at 8% -12%, rgba(244, 69, 29, 0.16), transparent 70%),
    radial-gradient(560px 280px at 96% -6%, rgba(255, 199, 44, 0.09), transparent 70%);
  background-repeat: no-repeat;
}

/* ---------- Header ---------- */

.site-header {
  background: rgba(12, 12, 14, 0.86);
  border-bottom: 1px solid var(--border);
  /* The signature stripe: orange into yellow. */
  box-shadow: inset 0 -3px 0 0 transparent;
  position: relative;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-bright) 45%, var(--yellow) 100%);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--orange-bright), var(--orange));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 12px rgba(244, 69, 29, 0.4);
}

.brand-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
}

.header-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Status pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pill-muted { color: var(--muted); }

.pill-prod {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-bright));
  border-color: transparent;
}

.pill-debug {
  color: var(--yellow);
  background: var(--yellow-dim);
  border-color: transparent;
}

.pill-ok {
  color: var(--yellow);
  background: var(--yellow-dim);
  border-color: transparent;
}

.pill-down {
  color: var(--orange-bright);
  background: var(--orange-dim);
  border-color: transparent;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- Layout ---------- */

.page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 22px 44px;
  display: grid;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}

/* Accent edge on the primary card. */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--orange-bright), var(--yellow));
}

.card-muted {
  background: var(--black-soft);
}

.card-muted::before { background: var(--border); }
.card-danger::before { background: var(--orange-bright); }
.card-warning::before { background: var(--yellow); }

h1 {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}

h2 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--yellow);
  margin: 0 0 10px;
}

.lede { color: var(--muted); margin: 0 0 22px; }
.muted { color: var(--muted); }

/* ---------- Detail grid ---------- */

.detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.detail {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.detail dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 5px;
}

.detail dd {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.status-ok { color: var(--yellow); }
.status-down { color: var(--orange-bright); }

.status-code {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 10px;
  background: linear-gradient(135deg, var(--orange-bright), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

code {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 13px;
  color: var(--yellow);
}

.link {
  color: var(--orange-bright);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--orange-dim);
  padding-bottom: 1px;
}

.link:hover { border-bottom-color: var(--orange-bright); }

.pill-user {
  color: var(--yellow);
  background: var(--yellow-dim);
  border-color: transparent;
}

.pill-link {
  color: var(--muted);
  text-decoration: none;
}

.pill-link:hover { color: var(--text); border-color: var(--muted); }

/* ---------- Forms ---------- */

.card-narrow { max-width: 420px; margin: 24px auto 0; }

.form { display: grid; gap: 16px; margin-top: 20px; }

.field { display: grid; gap: 6px; }

.field span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
}

.field input {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--orange-bright);
  box-shadow: 0 0 0 3px rgba(244, 69, 29, 0.2);
}

.button {
  background: linear-gradient(135deg, var(--orange), var(--orange-bright));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
}

.button:hover { filter: brightness(1.08); }

.form-error {
  background: var(--down-bg);
  color: var(--orange-bright);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--border);
}

.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.site-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 22px 34px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
