:root {
  --bg: #ecebe6;
  --ink: #1d1f20;
  --muted: #6f7273;
  --rule: rgba(29, 31, 32, 0.12);
  --accent: #d64a2a;
  --live: #3e9b5b;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: ##4A4A4A;
    --ink: #e9e7e1;
    --muted: #8d9396;
    --rule: rgba(233, 231, 225, 0.12);
    --accent: #ee5c3a;
    --live: #5cc47c;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100dvh;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#pond {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  width: min(360px, calc(100vw - 40px));
  margin: clamp(28px, 12vh, 140px) 0 0 clamp(20px, 9vw, 160px);
}

h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.role {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.links {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.links li {
  border-bottom: 1px solid var(--rule);
}

.links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  color: inherit;
  text-decoration: none;
}

.label {
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

.label::after {
  content: "↗";
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-3px, 2px);
  transition: opacity 0.15s, transform 0.15s;
}

.note {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.links a:hover .label::after,
.links a:focus-visible .label::after {
  opacity: 1;
  transform: translate(0, 0);
}

.links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.now {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.now a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.now a:hover {
  border-bottom-color: currentColor;
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  transform: translateY(-1px);
  opacity: 0.6;
}

.now.live .dot {
  background: var(--live);
  opacity: 1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.hint {
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 18px;
  margin: 0;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.8;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 1.2s;
}

.fed .hint {
  opacity: 0;
}

@media (max-width: 560px) {
  .card {
    margin: 28px 20px 0;
  }

  h1 {
    font-size: 26px;
  }

  .links a {
    flex-direction: column;
    gap: 2px;
  }

  .note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hint {
    display: none;
  }

  .now.live .dot {
    animation: none;
  }
}