/*
 * Chrome for the status page. Deliberately minimal — the embedded Superblocks
 * app supplies the content, so this only provides a header, a full-height
 * frame slot, and a footer.
 */

:root {
  --paper: #ffffff;
  --ink: #14181d;
  --ink-2: #5a6674;
  --rule: #dfe4ea;
  --accent: #2d6fa8;
  /* System stack only — the CSP loads no external fonts, so naming a webfont
     here would fall back silently and inconsistently across platforms. */
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1116;
    --ink: #e7edf3;
    --ink-2: #9aa8b6;
    --rule: #263039;
    --accent: #6ba9dc;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Keyboard users land here first. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
  text-decoration: none;
}
.skip:focus {
  left: 0;
}

.masthead {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.masthead h1 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

/* The frame slot takes all remaining height. */
.embed {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.embed-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  display: block;
}

.fallback {
  margin: auto;
  max-width: 34rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.fallback h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.fallback p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.6;
}

.footer {
  flex: 0 0 auto;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--ink-2);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
