:root {
  color-scheme: light dark;
  --bg: #eaf3ff;
  --surface: #ffffff;
  --surface-alt: #f6f9ff;
  --text: #0f2a5c;
  --text-muted: #324a78;
  --accent: #1e5bd8;
  --accent-text: #ffffff;
  --highlight: #ffb020;
  --border: #c9daf8;
  --focus: #0f2a5c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1836;
    --surface: #10234d;
    --surface-alt: #152c5e;
    --text: #f3f7ff;
    --text-muted: #c6d6f5;
    --accent: #3e7bf0;
    --accent-text: #081229;
    --highlight: #ffb020;
    --border: #2a4782;
    --focus: #ffb020;
  }
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-block-size: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-color: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.site-header,
.site-main,
.site-footer {
  inline-size: min(44rem, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  padding-block: 2rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.brand-mark {
  flex: none;
  inline-size: 3rem;
  block-size: auto;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-main {
  display: grid;
  align-content: center;
  padding-block: 1.5rem 2.5rem;
}

.card {
  background-color: var(--surface);
  border: 2px solid var(--border);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  margin-block: 0 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: var(--highlight);
  color: #0f2a5c;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  margin-block: 0 1rem;
  font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-inline-size: 24ch;
  text-wrap: balance;
}

.lead {
  margin-block: 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-inline-size: 60ch;
  text-wrap: pretty;
}

h2 {
  margin-block: 0 0.875rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
}

.channel-link {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-block-size: 3rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 2px solid var(--border);
  background-color: var(--surface-alt);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.channel-link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.channel-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.channel-platform {
  font-weight: 700;
  font-size: 1rem;
}

.channel-handle {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-footer {
  padding-block: 1rem 2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

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

  .channel-link:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .card,
  .channel-link {
    border: 2px solid CanvasText;
  }

  .eyebrow {
    border: 1px solid CanvasText;
  }

  .channel-link:focus-visible {
    outline: 3px solid Highlight;
  }
}
