/* Same palette as the Beat app: red-50 -> red-100 gradient, red-800 accents; dark mode mirrors its gray-900/gray-800. */
:root {
  --bg-from: #fef2f2;
  --bg-to: #fee2e2;
  --ink: #991b1b;
  --ink-soft: #b91c1c;
  --text: #374151;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #fca5a5;
  --hover: #fee2e2;
  --btn: #b91c1c;
  --btn-hover: #991b1b;
  --btn-shadow: #7f1d1d;
  --btn-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-from: #111827;
    --bg-to: #1f2937;
    --ink: #fca5a5;
    --ink-soft: #f87171;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --card: #1f2937;
    --border: #4b5563;
    --hover: #374151;
    --btn: #f87171;
    --btn-hover: #fca5a5;
    --btn-shadow: #b91c1c;
    --btn-ink: #111827;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--bg-from), var(--bg-to));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Top bar: two always-visible buttons (Beat, Twist Wise) on the right */
.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
}
.links { display: grid; grid-template-columns: max-content; gap: 0.7rem; justify-items: stretch; }
.link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--btn-ink);
  text-decoration: none;
  background: var(--btn);
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 4px 0 var(--btn-shadow), 0 8px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}
.link-button:hover { background: var(--btn-hover); }
.link-button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-shadow), 0 3px 6px rgba(0, 0, 0, 0.18); }
.link-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.link-emoji { font-size: 1.25rem; line-height: 1; }

/* Hero: the name, big, in a handwriting face */
.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}
.name {
  margin: 0;
  font-family: "Dancing Script", "Brush Script MT", "Segoe Script", cursive;
  font-weight: 700;
  font-size: clamp(3.2rem, 12vw, 8rem);
  line-height: 1.1;
  color: var(--ink);
  text-shadow: 0 3px 12px rgba(153, 27, 27, 0.15);
}
