:root {
  color-scheme: dark;
  --ink: #edf1eb;
  --muted: #aeb6ac;
  --paper: #16201d;
  --panel: #22312c;
  --line: #4c6359;
  --accent: #de8b45;
  --good: #74d6a0;
  --bad: #e97061;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: #111815;
  color: var(--ink);
  font-family: "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 37vw) minmax(0, 1fr);
}

.masthead {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.masthead-image {
  position: absolute;
  inset: 0;
  background-image: url("/assets/server-hardware.jpg");
  background-position: 52% center;
  background-size: cover;
  transform: scale(1.03);
}

.masthead-shade {
  position: absolute;
  inset: 0;
  background: rgba(13, 21, 18, 0.58);
}

.masthead-content {
  position: relative;
  display: flex;
  min-height: calc(100vh - 76px);
  flex-direction: column;
  justify-content: center;
  padding: 56px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

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

h1,
h2 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 18px 0 10px;
  font-size: 58px;
  line-height: 1.06;
}

.masthead-copy {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 18px;
}

.masthead-footer {
  position: relative;
  display: flex;
  gap: 9px;
  padding: 26px 56px;
  border-top: 1px solid rgba(237, 241, 235, 0.24);
  color: var(--muted);
  font-size: 13px;
}

.content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 56px clamp(32px, 6vw, 96px);
}

.content-header,
.status-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.content-header h2,
.status-panel h2 {
  margin: 9px 0 0;
  font-size: 32px;
  line-height: 1.2;
}

.health {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.health-dot,
.status-indicator {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #d6a451;
  box-shadow: 0 0 0 4px rgba(214, 164, 81, 0.13);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.service-card {
  position: relative;
  display: grid;
  min-height: 210px;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.service-card-active {
  background: var(--panel);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.service-card-active:hover {
  border-color: var(--accent);
  background: #2a3c35;
  transform: translateY(-3px);
}

.service-card-muted { background: rgba(34, 49, 44, 0.38); }

.service-index,
.service-meta {
  color: var(--muted);
  font-size: 13px;
}

.service-icon {
  align-self: center;
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
}

.service-name {
  align-self: end;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 23px;
  font-weight: 700;
}

.service-arrow {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--accent);
  font-size: 22px;
}

.status-panel {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.status-value {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.status-value strong { color: var(--ink); }

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .masthead { min-height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }
  .masthead-content { min-height: 264px; padding: 42px 28px; }
  .masthead-footer { padding: 18px 28px; }
  h1 { font-size: 46px; }
  .content { padding: 42px 28px; }
}

@media (max-width: 640px) {
  .content-header,
  .status-panel { align-items: start; flex-direction: column; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 156px; }
  .status-value { justify-content: start; }
}
