:root {
  --bg: #020307;
  --panel: rgba(6, 10, 18, 0.9);
  --text: #e9f0fb;
  --muted: #a2b0c2;
  --line: #1d2a3a;
  --accent: #4fd1b2;
  --accent-2: #f8b46e;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 10%, rgba(79, 209, 178, 0.1), transparent 34%),
    radial-gradient(circle at 90% 2%, rgba(248, 180, 110, 0.08), transparent 28%),
    linear-gradient(155deg, #010205 0%, #03070f 56%, #02050b 100%);
  min-height: 100vh;
}

.julia-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(205, 221, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205, 221, 241, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 40%, black 35%, transparent 88%);
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  padding-top: 3.2rem;
}

.hero-copy,
.profile-card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-copy {
  padding: 2rem;
}

.eyebrow {
  margin: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.17rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.nickname {
  margin: 0.28rem 0 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.05rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  margin: 0;
}

h1 {
  margin-top: 0.6rem;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  line-height: 1.15;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1rem;
  line-height: 1.45;
}

.lead {
  margin: 1.05rem 0 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}

.lead a,
.profile-card a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 209, 178, 0.45);
}

.lead a:hover,
.profile-card a:hover {
  color: #77e6cc;
  border-bottom-color: #77e6cc;
}

.link-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.link-row a {
  text-decoration: none;
  color: var(--text);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
  padding: 0.38rem 0.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.link-row a:hover {
  color: var(--accent);
  border-color: rgba(79, 209, 178, 0.42);
  transform: translateY(-1px);
}

.profile-card {
  padding: 1.2rem;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(79, 209, 178, 0.34);
}

.profile-card dl {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.profile-card dt {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-card dd {
  margin: 0.1rem 0 0;
}

main {
  margin-top: 0;
  padding-top: 2.4rem;
  padding-bottom: 1.5rem;
}

.panel {
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.15rem;
}

.publications-panel > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.publications-panel > summary::-webkit-details-marker {
  display: none;
}

.publications-panel > summary h2 {
  margin: 0;
}

.publications-panel > summary::after {
  content: "Hide";
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--muted);
}

.publications-panel:not([open]) > summary::after {
  content: "Show";
}

.publications-body {
  margin-top: 0.95rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pub-filter {
  margin: 0.95rem 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pub-filter-btn {
  border: 1px solid var(--line);
  background: rgba(79, 209, 178, 0.08);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pub-filter-btn:hover {
  color: var(--text);
  border-color: rgba(79, 209, 178, 0.48);
}

.pub-filter-btn.is-active {
  color: #061019;
  border-color: rgba(79, 209, 178, 0.75);
  background: rgba(79, 209, 178, 0.92);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.1rem;
}

.stack-vertical > div + div {
  margin-top: 1.2rem;
}

.pub {
  padding: 0.9rem 0 0.95rem;
  border-top: 1px solid var(--line);
}

.pub:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.pub.is-first-visible {
  border-top: 0;
  padding-top: 0;
}

.pub.is-hidden {
  display: none;
}

.pub h3 a {
  color: var(--text);
  text-decoration: none;
}

.pub h3 a:hover {
  color: var(--accent);
}

.meta {
  margin-top: 0.35rem;
  margin-bottom: 0.38rem;
  color: var(--accent-2);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04rem;
}

.timeline,
.simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  border-top: 1px solid var(--line);
  padding: 0.72rem 0;
}

.timeline li:first-child {
  border-top: 0;
  padding-top: 0;
}

.simple-list li {
  margin-bottom: 0.6rem;
  color: var(--muted);
  line-height: 1.42;
}

.footer {
  padding-bottom: 2.2rem;
}

.footer p {
  text-align: center;
  margin: 0;
  color: var(--muted);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 0.9s ease forwards;
}

.hero .reveal:nth-child(2),
main .reveal:nth-child(2) {
  animation-delay: 0.1s;
}

main .reveal:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1080px, calc(100% - 1.25rem));
  }

  .hero {
    padding-top: 1.2rem;
  }

  .hero-copy,
  .panel,
  .profile-card {
    border-radius: 18px;
  }

  .hero-copy,
  .profile-card,
  .panel {
    padding: 1.05rem;
  }
}
