:root {
  --bg: #f5f5f7;
  --grouped: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.12);
  --blue: #0071e3;
  --blue-press: #0077ed;
  --radius: 18px;
  --safe: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --grouped: #1c1c1e;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.12);
    --blue: #2997ff;
    --blue-press: #64b5ff;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  padding-bottom: var(--safe);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 2;
  background: var(--grouped);
  color: var(--blue);
  padding: 12px 16px;
  min-height: 44px;
  border-radius: 12px;
}

header, main, footer {
  width: min(680px, calc(100% - 40px));
  margin-inline: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.wordmark {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 980px;
  background: var(--grouped);
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover { background: color-mix(in srgb, var(--blue) 10%, var(--grouped)); }
nav a:active { color: var(--blue-press); }

.hero p {
  margin: 28px 0 36px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
  max-width: 36rem;
}

.hero p a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.hero p a:hover { text-decoration: underline; }

h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px 16px;
}

.focus ul {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus li {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 980px;
  background: var(--grouped);
  font-size: 15px;
  font-weight: 500;
}

.list ul {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  background: var(--grouped);
  border-radius: var(--radius);
  overflow: hidden;
}

.list li + li {
  border-top: 0.5px solid var(--line);
}

.list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 10px;
}

.list li > a:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-height: 64px;
  min-width: 0;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}

.list li > a:first-child:hover { background: color-mix(in srgb, var(--blue) 6%, var(--grouped)); }
.list li > a:first-child:active { background: color-mix(in srgb, var(--blue) 12%, var(--grouped)); }

.list .live {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 980px;
  background: var(--bg);
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.list .live:hover { background: color-mix(in srgb, var(--blue) 10%, var(--bg)); }

.compact li { padding-right: 0; }
.compact li > a:first-child {
  min-height: 56px;
  padding-right: 36px;
  position: relative;
}
.compact li > a:first-child::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-top: 2px solid var(--muted);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.55;
}

.name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.desc {
  font-size: 15px;
  color: var(--muted);
}

footer {
  padding: 8px 0 calc(28px + var(--safe));
  color: var(--muted);
  font-size: 13px;
}

footer a {
  color: var(--blue);
  text-decoration: none;
  min-height: 44px;
}

footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
