:root {
  --bg: #120f24;
  --bg-2: #1c1838;
  --card: #231e45;
  --text: #f1eeff;
  --muted: #b3acd9;
  --red: #ff4b5c;
  --blue: #3fa7ff;
  --green: #3ddc84;
  --yellow: #ffd23f;
  --border: #0a0816;
  --pixel: "Press Start 2P", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font: 17px/1.6 system-ui, sans-serif;
  /* starfield: two layers of dots drifting at different speeds */
  background:
    radial-gradient(1px 1px at 20px 30px, #fff8, transparent),
    radial-gradient(1px 1px at 120px 80px, #fff6, transparent),
    radial-gradient(2px 2px at 200px 150px, #fff5, transparent),
    radial-gradient(1px 1px at 60px 200px, #fff7, transparent),
    var(--bg);
  background-size: 240px 240px;
  animation: stars 60s linear infinite;
}
@keyframes stars { to { background-position: 0 -240px; } }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  html { scroll-behavior: auto; }
}

a { color: var(--blue); }
h1, h2, h3, .pixel { font-family: var(--pixel); line-height: 1.5; font-weight: normal; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--border);
  box-shadow: 0 4px 0 var(--bg-2);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--pixel); font-size: 0.8rem; }
.brand img { width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.brand b { color: var(--blue); font-weight: normal; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 12px;
  color: var(--text); text-decoration: none;
  font-family: var(--pixel); font-size: 0.65rem;
  border: 2px solid transparent;
}
.menu a:hover, .menu a:focus-visible { border-color: var(--yellow); color: var(--yellow); }
.burger {
  display: none;
  background: var(--card); color: var(--text);
  border: 3px solid var(--border); box-shadow: 3px 3px 0 var(--red);
  font-family: var(--pixel); font-size: 0.7rem; padding: 8px 10px; cursor: pointer;
}

@media (max-width: 720px) {
  .burger { display: block; }
  .menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 4px solid var(--border);
  }
  .menu.open { display: flex; }
  .menu a { padding: 16px; font-size: 0.75rem; border: 0; border-top: 2px solid var(--border); }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.avatar {
  width: 200px; height: 200px; flex: none;
  border-radius: 50%; background: #fff;
  border: 6px solid var(--border);
  box-shadow: 0 0 0 6px var(--blue), 0 0 40px var(--blue);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .avatar { animation: none; } }
.hero h1 { font-size: clamp(1.3rem, 5vw, 2.2rem); margin: 0 0 12px; text-shadow: 4px 4px 0 var(--blue); }
.hero p { color: var(--muted); margin: 0 0 24px; max-width: 460px; }
.tagline { color: var(--green); font-family: var(--pixel); font-size: 0.7rem; }
.tagline::after { content: "_"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.btn {
  display: inline-block; padding: 12px 16px; margin: 0 8px 8px 0;
  font-family: var(--pixel); font-size: 0.65rem;
  color: var(--border); background: var(--yellow); text-decoration: none;
  border: 3px solid var(--border); box-shadow: 4px 4px 0 var(--border);
}
.btn.alt { background: var(--green); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--border); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--border); }

/* ---------- sections ---------- */
section { padding: 48px 0; }
section h2 { font-size: 1rem; margin: 0 0 24px; display: flex; align-items: center; gap: 12px; }
section h2::before { content: ""; width: 16px; height: 16px; background: var(--c, var(--red)); box-shadow: 4px 4px 0 var(--border); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.card {
  display: block; height: 100%; padding: 20px;
  background: var(--card); color: inherit; text-decoration: none;
  border: 3px solid var(--border);
  border-top: 6px solid var(--c, var(--blue));
  box-shadow: 6px 6px 0 var(--border);
  transition: transform .15s, box-shadow .15s;
}
a.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--c, var(--blue)); }
.card h3 { font-size: 0.75rem; margin: 0 0 12px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tag {
  display: inline-block; margin-bottom: 12px; padding: 2px 8px;
  font-family: var(--pixel); font-size: 0.55rem;
  background: var(--c, var(--blue)); color: var(--border);
}

/* progress bar: fill width comes from --p on the element */
.bar {
  position: relative; height: 32px; margin: 20px 0;
  background: var(--bg); border: 3px solid var(--border); box-shadow: 4px 4px 0 var(--border);
}
.bar::before {
  content: ""; position: absolute; inset: 0; width: var(--p);
  background: repeating-linear-gradient(90deg, var(--green) 0 12px, #2bb56c 12px 16px);
}
.bar span { position: relative; display: block; text-align: center; line-height: 26px; font-family: var(--pixel); font-size: 0.7rem; text-shadow: 2px 2px 0 var(--border); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.shot {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 3px solid var(--border);
  display: grid; place-items: center;
  background: var(--bg); color: var(--muted); font-family: var(--pixel); font-size: 0.6rem;
}

.about { background: var(--bg-2); border-block: 4px solid var(--border); }
.about p { max-width: 640px; color: var(--muted); }

/* ---------- article ---------- */
article { padding: 48px 0; }
article h1 { font-size: clamp(1rem, 4vw, 1.5rem); text-shadow: 3px 3px 0 var(--blue); }
article .meta { color: var(--green); font-family: var(--pixel); font-size: 0.6rem; }
article img { max-width: 100%; border: 3px solid var(--border); }
article p, article li { max-width: 680px; }

footer { padding: 32px 0; text-align: center; color: var(--muted); font-size: 0.85rem; border-top: 4px solid var(--border); }
