:root{
  --bg: #05070d;
  --panel: #0c1020;
  --line: #1c2340;
  --text: #e9ecfb;
  --muted: #7c84a8;
  --accent: #4dd8ff;
  --radius: 10px;
  --font: 'Inter', sans-serif;
}

*{ box-sizing: border-box; }

html,body{
  margin:0;
  padding:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100%;
}

body{
  position: relative;
  overflow-x: hidden;
}

#starfield{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display:block;
}

.wrap{
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

/* ---------- Masthead ---------- */

.masthead{
  text-align:center;
  margin-bottom: 2.5rem;
}

.name{
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  margin: 0 0 0.6rem;
  line-height: 1.1;
  cursor: pointer;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
}

.tagline{
  color: var(--muted);
  font-size: 1rem;
  max-width: 30rem;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* ---------- Content ---------- */

.view{ animation: fade-up 0.3s ease both; }
@keyframes fade-up{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .view{ animation: none; }
}

.list{
  display:flex;
  flex-direction: column;
  gap: 0.7rem;
}

.link-card{
  display:flex;
  align-items:center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration:none;
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.link-card:hover, .link-card:focus-visible{
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}
.link-card:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.link-card:active{
  transform: translateY(0);
  border-color: var(--accent);
}

.link-icon{
  flex: none;
  display:flex;
  align-items:center;
  justify-content:center;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.link-arrow{
  margin-left: auto;
  color: var(--muted);
}

@media (max-width: 640px){
  .wrap{ padding: 3.5rem 1.2rem 3rem; }
  .name{ font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .link-card{ padding: 0.95rem 1.1rem; }
}

/* ---------- Footer ---------- */

.footer{
  text-align:center;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Water easter egg ---------- */

.water-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 5;
  pointer-events: none;
}
