:root {
  --bg: #0d0a16;
  --bg-raised: #161122;
  --edge: #2a2140;
  --text: #ece8f5;
  --muted: #a79dc0;
  --accent: #b98bff;
  --accent-2: #4fd6e0;
  --radius: 14px;
  --max: 900px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 ui-sans-serif, system-ui, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- nav ---------- */
nav {
  border-bottom: 1px solid var(--edge);
  background: rgba(13, 10, 22, .85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}
nav .brand {
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
nav a.tab {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav a.tab:hover { color: var(--text); }
nav a.tab[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- header ---------- */
header {
  position: relative;
  padding: 64px 0 48px;
  text-align: center;
  overflow: hidden;
}
header::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 420px;
  background:
    radial-gradient(50% 60% at 30% 40%, rgba(185,139,255,.20), transparent 70%),
    radial-gradient(45% 55% at 72% 30%, rgba(79,214,224,.14), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.avatar {
  position: relative;
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 3px solid var(--edge);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  background: var(--bg-raised);
}
h1 {
  position: relative;
  margin: 20px 0 8px;
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
  letter-spacing: -0.02em;
  font-weight: 650;
}
.pronouns {
  position: relative;
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 14px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--accent);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: lowercase;
}

.tagline {
  position: relative;
  margin: 0 auto;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.about {
  background: var(--bg-raised);
  border: 1px solid var(--edge);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 8px;
}
.about p { margin: 0 0 12px; }
.about p:last-child { margin-bottom: 0; }

/* ---------- sections ---------- */
main { padding-bottom: 40px; }
section { padding: 36px 0; }
h2 {
  font-size: 1.3rem;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--edge), transparent);
}
.section-note { color: var(--muted); margin: 0 0 26px; font-size: .95rem; }

/* ---------- gallery ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
figure {
  margin: 0;
  background: var(--bg-raised);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}
figure video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

/* landscape pieces get the full row so they don't shrink
   into a letterboxed sliver beside the portrait ones */
figure.wide { grid-column: 1 / -1; }
figcaption {
  padding: 12px 16px 14px;
  color: var(--muted);
  font-size: .9rem;
}

/* ---------- blog ---------- */
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.posts article {
  background: var(--bg-raised);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.posts time {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.posts h3 { margin: 8px 0 12px; font-size: 1.25rem; font-weight: 620; letter-spacing: -.01em; }
.posts p { margin: 0 0 14px; }
.posts p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  figure { transition: border-color .2s ease, transform .2s ease; }
  figure:hover { border-color: var(--accent); transform: translateY(-2px); }
}

/* "older work lives elsewhere" note at the end of the About block */
.about .elsewhere {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: .93rem;
}
