:root {
  color-scheme: light dark;
  --text: #1b1b1f;
  --muted: #4a4a52;
  --surface: #ffffff;
  --panel: #f1f3f8;
  --line: #c4c7d0;
  --accent: #0b57d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e6ea;
    --muted: #b4b7c0;
    --surface: #121316;
    --panel: #1c1e24;
    --line: #444851;
    --accent: #8ab4f8;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--accent);
  transition: color 0.15s;
}

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

.skip {
  position: absolute;
  left: -999rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1;
}

header,
main,
footer {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem;
}

header a {
  font-weight: 700;
  text-decoration: none;
}

h1 {
  margin: 1rem 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
}

.sites {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sites li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.domain,
.tagline {
  grid-column: 1 / -1;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.listing {
  grid-row: 1;
  grid-column: 2;
  align-self: start;
  white-space: nowrap;
}

.status {
  grid-row: 1;
  grid-column: 2;
  align-self: start;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: var(--panel);
  font-size: 0.875rem;
  white-space: nowrap;
}

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

th,
td {
  padding: 0.5rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  a {
    transition: none;
    animation: none;
    scroll-behavior: auto;
  }
}
