/* johnarana.com. One small stylesheet for a one page site.

   Dark, always. Not behind prefers-color-scheme: browsers report "light"
   whenever the OS is in light mode and effectively never report "no
   preference", so gating on it would hand a light palette to most visitors. */
:root {
  --bg: #0f1014;
  --surface: #191a21;
  --surface-hi: #20222b;
  --line: #2c2e39;
  --ink: #f2f1ee;
  --muted: #9a99a6;
  --accent: #7fb0e6;
  --glow: rgba(127, 176, 230, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 48px 24px;
  background: var(--bg);
  background-image: radial-gradient(
    ellipse 70% 380px at 50% 0%,
    var(--glow),
    transparent 70%
  );
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* ---- identity ---- */

.mark {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  object-fit: cover;
}

h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 10px auto 36px;
  max-width: 34ch;
  color: var(--muted);
}

/* ---- link tree ---- */

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.link:hover,
.link:focus-visible {
  background: var(--surface-hi);
  border-color: var(--accent);
  transform: translateY(-1px);
}

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

.link .label {
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

/* ---- footer ---- */

footer {
  font-size: 13px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .link {
    transition: none;
  }
  .link:hover,
  .link:focus-visible {
    transform: none;
  }
}

