/* index.html styles — virtualserv.uk */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 15px;
}

a { color: #1a56db; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 28px 64px;
}

/* ── Header ── */
header {
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 20px;
  margin-bottom: 36px;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

header p {
  font-size: 0.88rem;
  color: #555;
  font-weight: 300;
}

/* ── Intro ── */
.intro {
  font-size: 0.95rem;
  color: #444;
  font-weight: 300;
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 44px;
}

/* ── Sections ── */
.section { margin-bottom: 44px; }

.section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}

/* ── Link list ── */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.link-row:hover {
  background: #f4f4f4;
  text-decoration: none;
}

.link-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.link-name {
  font-weight: 500;
  font-size: 0.92rem;
  color: #1a1a1a;
  min-width: 140px;
  flex-shrink: 0;
}

.link-desc {
  font-size: 0.88rem;
  color: #666;
  font-weight: 300;
}

.link-tag {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Warning box ── */
.warning {
  background: #fffbf0;
  border: 1px solid #e8d88a;
  border-left: 3px solid #c8a200;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #5a4a00;
  margin: 6px 0;
}

/* ── Status widget ── */
.status-section { margin-bottom: 44px; }

#status-error {
  display: none;
  font-size: 0.85rem;
  color: #c0152a;
  padding: 10px 14px;
  background: #fff5f5;
  border: 1px solid #ffd0d0;
  border-radius: 6px;
  margin-bottom: 12px;
}

.obs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.obs-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fafafa;
}

.obs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.obs-title {
  font-weight: 500;
  font-size: 0.88rem;
  color: #1a1a1a;
}

.obs-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid transparent;
}

.obs-up   { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.obs-down { background: #fff5f5; border-color: #fecaca; color: #991b1b; }

.obs-meta { display: flex; flex-direction: column; gap: 4px; }

.obs-kv {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.obs-kv span   { color: #888; font-weight: 300; }
.obs-kv strong { color: #1a1a1a; font-weight: 500; }

#status-updated {
  margin-top: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #aaa;
}

/* ── Footer ── */
footer {
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
  font-size: 0.82rem;
  color: #aaa;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .link-row { flex-wrap: wrap; }
  .link-tag { margin-left: 38px; }
}

.subsection-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 6px;
  padding-left: 14px;
}
