:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --line: #e1e5ea;
  --ink: #1d2329;
  --ink-2: #4a5560;
  --ink-3: #6b7680;
  --teal: #00727a;
  --teal-soft: #e0f4f5;
  --blue: #3b5a8a;
  --blue-soft: #e4ebf5;
  --coral: #9a3412;
  --coral-soft: #fdebdd;
  --purple: #5b4a87;
  --purple-soft: #eeeaf6;
  --green: #166534;
  --green-soft: #dcfce7;
  --amber: #78350f;
  --amber-soft: #fef3c7;
  --focus: #00a3ab;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161a22;
    --card: #1f2530;
    --line: #2f3746;
    --ink: #e6e9ef;
    --ink-2: #b5bcc8;
    --ink-3: #8d96a5;
    --teal: #5fd3d9;
    --teal-soft: #12363a;
    --blue: #9db7e0;
    --blue-soft: #222f45;
    --coral: #fdba8c;
    --coral-soft: #3d2416;
    --purple: #c2b5e8;
    --purple-soft: #2c2640;
    --green: #86efac;
    --green-soft: #173323;
    --amber: #fcd34d;
    --amber-soft: #3a2e10;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}

.masthead,
main,
.footer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.masthead {
  padding-top: 56px;
  padding-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.org {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.lede {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 1.05rem;
}

main {
  flex: 1;
}

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.tile {
  --tone: var(--teal);
  --tone-soft: var(--teal-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.tile[data-tone="blue"] {
  --tone: var(--blue);
  --tone-soft: var(--blue-soft);
}

.tile[data-tone="coral"] {
  --tone: var(--coral);
  --tone-soft: var(--coral-soft);
}

.tile[data-tone="purple"] {
  --tone: var(--purple);
  --tone-soft: var(--purple-soft);
}

a.tile:hover {
  border-color: var(--tone);
  transform: translateY(-2px);
}

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

.tile.soon {
  border-style: dashed;
}

.top {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--tone-soft);
  color: var(--tone);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kind {
  color: var(--tone);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.name {
  font-size: 1.2rem;
  font-weight: 700;
}

.about {
  flex: 1;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.host {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.status {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status.live {
  background: var(--green-soft);
  color: var(--green);
}

.status.code {
  background: var(--amber-soft);
  color: var(--amber);
}

.status.soon {
  background: var(--purple-soft);
  color: var(--purple);
}

.footer {
  padding-top: 40px;
  padding-bottom: 32px;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.footer a {
  color: inherit;
}

.missing {
  padding-top: 24px;
}

.missing a {
  color: var(--teal);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }

  a.tile:hover {
    transform: none;
  }
}
