:root {
  color-scheme: light;
  --black: #000000;
  --ink: #2e2f2d;
  --gold: #ffcc33;
  --white: #ffffff;
  --silver: #f1f1f1;
  --line: #dbdbdb;
  --gold-wash: #fff4ce;
  --warning: #ff7800;
  --negative: #ff0000;
  --positive: #00ac4f;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Roboto Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  border-top: 4px solid var(--black);
  background: var(--silver);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
}

main,
.site-header {
  width: min(1600px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header { padding: 2rem 0 0.5rem; }

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

h1 { margin-top: 0.25rem; font-size: 2.25rem; }

h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.85rem;
  background: var(--gold);
}

h2 { font-size: 1.25rem; }

.lede,
.note,
.panel-header p,
.meta,
.empty { margin: 0; }

.lede { margin-top: 1rem; max-width: 40rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 1.5rem;
  margin: 1.5rem 0;
}

.since {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem;
}

.field { display: flex; flex-direction: column; }

.location-filter { flex-basis: 100%; }

textarea {
  width: min(36rem, 100%);
  min-height: 6.5rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

label {
  width: 100%;
  font-weight: 700;
  font-size: 0.85rem;
}

input[type="date"],
select {
  min-height: 2.5rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.button {
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}

a.button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.account span { font-weight: 700; }

.login-card {
  max-width: 28rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-top: 3px solid var(--gold);
}

.login-card .banner { margin-bottom: 1rem; }

.button:hover { opacity: 0.88; }

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.csv:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.back { margin: 0 0 1rem; }

.back a,
.location-list a {
  color: var(--ink);
  font-weight: 700;
}

.location {
  max-width: 56rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.location dl { margin: 1rem 0 0; }

.location dt {
  font-weight: 700;
  font-size: 0.85rem;
}

.location dd { margin: 0.15rem 0 0.9rem; }

.location h3 {
  margin: 1.25rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status {
  font-weight: 700;
}

.status-alive { color: var(--positive); }
.status-down { color: var(--negative); }

.note { flex-basis: 100%; font-size: 0.9rem; }

.overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.overview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.overview-card p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.overview-card strong {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.panel {
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.panel-header p { margin-top: 0.35rem; max-width: 42rem; }

.csv {
  flex: none;
  color: var(--ink);
  font-weight: 700;
}

.banner {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--gold);
  background: var(--gold-wash);
}

.banner.failed {
  border-left-color: var(--negative);
  background: var(--white);
}

.banner.stale {
  border-left-color: var(--warning);
  background: var(--white);
}

.meta,
.empty { margin-top: 1rem; }

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--silver);
  font-weight: 700;
  white-space: nowrap;
}

td.number,
th.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

td.time { white-space: nowrap; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.legend strong { font-weight: 700; }

.swatch {
  display: inline-block;
  width: 1.25rem;
  height: 3px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.swatch.logins,
.swatch.opened { background: var(--ink); }
.swatch.deliveries,
.swatch.staged { background: var(--positive); }

.chart-scroll {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.growth-chart {
  display: block;
  max-width: none;
  height: auto;
}

.growth-chart .grid { stroke: var(--line); stroke-width: 1; }
.growth-chart .axis {
  fill: var(--ink);
  font-size: 12px;
  font-family: var(--font-body);
}
.growth-chart .axis.deliveries { fill: var(--positive); }
.growth-chart polyline.series {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.growth-chart polyline.series.logins,
.growth-chart polyline.series.opened { stroke: var(--ink); }
.growth-chart polyline.series.deliveries,
.growth-chart polyline.series.staged { stroke: var(--positive); }
.growth-chart circle.series { stroke: var(--white); stroke-width: 1.5; }
.growth-chart circle.series.logins,
.growth-chart circle.series.opened { fill: var(--ink); }
.growth-chart circle.series.deliveries,
.growth-chart circle.series.staged { fill: var(--positive); }

.hourly { margin-top: 0.75rem; }
.hourly summary,
.more-rows summary { cursor: pointer; font-weight: 700; }

.more-rows { margin-top: 0.75rem; }
.more-rows .when-open { display: none; }
.more-rows[open] .when-closed { display: none; }
.more-rows[open] .when-open { display: inline; }
.more-rows summary:focus-visible,
.debug summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.debug { margin: 0.5rem 0 2rem; }
.debug summary { cursor: pointer; font-weight: 700; }
.debug article {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.debug h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.debug pre {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  background: var(--silver);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre;
}

@media (max-width: 900px) {
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  h1 { font-size: 1.75rem; }
  .panel-header { flex-direction: column; }
  .overview { grid-template-columns: 1fr; }
  .overview-card strong { font-size: 1.75rem; }
}
