:root {
  color-scheme: light;
  --ink: #132033;
  --muted: #667085;
  --line: #d9e0ec;
  --paper: #fbfcff;
  --accent: #2563eb;
  --green: #0f8a5f;
  --amber: #a35f00;
  --rose: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .12), transparent 32rem),
    linear-gradient(135deg, #f7fafc 0%, #eef4ff 42%, #f9fbff 100%);
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .94;
  letter-spacing: 0;
}

.lede {
  max-width: 740px;
  margin-bottom: 0;
  color: #405167;
  font-size: 20px;
  line-height: 1.45;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.status-grid div,
.rules article {
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .07);
}

.status-grid div {
  min-height: 106px;
  padding: 18px;
}

.status-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-grid strong {
  display: block;
  font-size: 31px;
  line-height: 1;
}

.diagram {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 10px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .11);
}

.diagram-header {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 26px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, .32);
}

.diagram-header h2 {
  margin: 0;
  font-size: 22px;
}

.diagram-header p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.map {
  overflow: auto;
  padding: 18px;
}

svg {
  display: block;
  width: 100%;
  min-width: 860px;
  height: auto;
}

.node {
  stroke-width: 1.4;
}

.node.main {
  fill: #e8f1ff;
  stroke: #9dbaf2;
}

.node.worker {
  fill: #ecfdf5;
  stroke: #91d5b7;
}

.node.hetzner {
  fill: #fff7ed;
  stroke: #fdba74;
}

.node.github {
  fill: #f5f7fb;
  stroke: #c7d0df;
}

.node.checks {
  fill: #eef2ff;
  stroke: #aab7ff;
}

.node.runner {
  fill: #fdf2f8;
  stroke: #f3a6c9;
}

.node.gate {
  fill: #eff6ff;
  stroke: #7fb0ff;
}

.node.merge {
  fill: #f0fdf4;
  stroke: #86d69b;
}

.node-title {
  fill: #111827;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.node-title.small {
  font-size: 23px;
}

.node-line {
  fill: #3f4d63;
  font-size: 22px;
  letter-spacing: 0;
}

.node-line.small {
  font-size: 18px;
}

.flow {
  fill: none;
  stroke: #1c2633;
  stroke-width: 4;
  stroke-linecap: round;
  marker-end: url(#arrow);
}

.flow.blue {
  stroke: var(--accent);
  marker-end: url(#blue-arrow);
}

.label {
  fill: #ffffff;
  stroke: #cbd5e1;
}

.blue-label {
  stroke: #9bbcff;
}

.label-text {
  fill: #334155;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.blue-text {
  fill: #1d4ed8;
}

.rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.rules article {
  padding: 22px;
}

.rules h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.rules p {
  margin-bottom: 0;
  color: #4c5c70;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 28px;
  }

  .intro,
  .rules {
    grid-template-columns: 1fr;
  }

  .diagram-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
