:root {
  --ink: #102a43;
  --muted: #52667a;
  --paper: #f5f8fb;
  --panel: #ffffff;
  --line: #c8d6e3;
  --blue: #006d9c;
  --cyan: #00a6a6;
  --lime: #b7d63d;
  --warn: #d85b38;
  --shadow: 0 18px 55px rgba(16, 42, 67, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(0, 109, 156, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 109, 156, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
}

a {
  color: inherit;
}

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

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 248, 251, 0.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .shell {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 31px;
  height: 31px;
  border: 2px solid var(--blue);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--cyan);
}

.brand-mark::before {
  width: 43px;
  height: 1px;
  left: -8px;
  top: 13px;
}

.brand-mark::after {
  width: 1px;
  height: 43px;
  left: 13px;
  top: -8px;
}

.health {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.health-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7c8c99;
}

.health.is-up .health-dot {
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(183, 214, 61, 0.18);
}

.hero {
  padding: 72px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 50px;
  align-items: end;
}

.eyebrow,
.protocol {
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  color: var(--blue);
}

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

h1 {
  margin-bottom: 20px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  max-width: 900px;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 680px;
}

.coordinate {
  border-left: 4px solid var(--lime);
  padding: 18px 0 18px 24px;
  font-family: Consolas, "Courier New", monospace;
  color: var(--muted);
  line-height: 1.75;
}

.section {
  padding: 36px 0 54px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.035em;
  margin-bottom: 0;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 300px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.card h3 {
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 1.8rem;
  margin: 30px 0 12px;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.card .actions {
  margin-top: auto;
}

.status {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid var(--line);
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.status.ok {
  border-color: var(--lime);
}

.status.absent {
  border-color: var(--warn);
  color: var(--warn);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  padding: 0 15px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font: 650 0.9rem "Segoe UI", sans-serif;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  background: transparent;
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 38px;
  padding: 58px 0;
}

.detail h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.endpoint-list {
  display: grid;
  gap: 14px;
}

.endpoint {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
}

.endpoint code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--blue);
  margin: 8px 0 14px;
  font: 0.88rem/1.55 Consolas, "Courier New", monospace;
}

.note {
  border-left: 4px solid var(--warn);
  padding: 14px 18px;
  background: #fff6f2;
  color: #68301f;
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: Consolas, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--blue);
}

footer {
  padding: 30px 0 50px;
  color: var(--muted);
  font-size: 0.85rem;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .hero,
  .detail {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .coordinate {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
