/* mi-su.dk: one name, centred, over slow translucent waves (drawn by waves.js). */
:root {
  --bg-1: #f5f8fc;
  --bg-2: #e2eaf5;
  --ink: #1c2633;
  --muted: #4a5a6e;
  --line: rgba(28, 38, 51, 0.28);
  /* Wave colours as "r, g, b" so waves.js can add its own alpha. */
  --wave-a: 84, 131, 214;
  --wave-b: 150, 120, 225;
  --wave-c: 70, 175, 195;
  --wave-alpha: 0.16;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-1: #0b1220;
    --bg-2: #151f36;
    --ink: #eef2f8;
    --muted: #b6c1d1;
    --line: rgba(238, 242, 248, 0.32);
    --wave-a: 70, 120, 235;
    --wave-b: 140, 100, 230;
    --wave-c: 45, 175, 190;
    --wave-alpha: 0.18;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: linear-gradient(165deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#waves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

main {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.1rem;
  padding: 24px 24px 8vh; /* lifts the name slightly above the true centre */
}

h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2rem, 6.2vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
  text-wrap: balance;
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both;
}

.profile {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
  padding: 0.4rem 0.2rem;
  transition: color 0.2s, text-decoration-color 0.2s;
  animation: rise 1.6s 0.35s cubic-bezier(.2, .7, .2, 1) both;
}

.profile:hover { color: var(--ink); text-decoration-color: currentColor; }

.profile:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  h1, .profile { animation: none; transition: none; }
}
