:root {
  --bg: #0f1115;
  --bg-alt: #171a21;
  --text: #e8e9ec;
  --text-muted: #9aa0ab;
  --accent: #b391f5;
  --accent-hover: #cbb0ff;
  --border: #262a33;
  --max-width: 960px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.25s ease, color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  background-size: 100% 1px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 4px double var(--border);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links a:hover {
  color: var(--accent);
}

#about {
  text-align: center;
  padding-top: 3.5rem;
  border-top: none;
}

/* Note headshot styling tailored to the OG film photo. */
.headshot {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px var(--bg-alt), 0 0 40px 6px rgba(179, 145, 245, 0.25);
  margin-bottom: 1.75rem;
}

#about h1 {
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin-top: 0;
  margin-bottom: 2.25rem;
}

/* Little rule on either side of the tagline */
.tagline::before,
.tagline::after {
  content: "";
  width: 2.75rem;
  height: 1px;
  background: var(--border);
}

#about .bio {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  text-align: left;
  color: var(--text);
}

#about .bio:last-of-type {
  margin-bottom: 0;
}

.section {
  padding: 2.75rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section h2 {
  position: relative;
  font-size: 1.85rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1.75rem;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  background: var(--accent);
}

.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 640px) {
  #about h1 {
    font-size: 2.1rem;
  }

  .contact-list {
    flex-wrap: nowrap;
    gap: 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    overflow-x: auto;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#about > *,
#contact > * {
  animation: fade-up 0.6s ease both;
}

#about > *:nth-child(2) { animation-delay: 0.08s; }
#about > *:nth-child(3) { animation-delay: 0.16s; }
#about > *:nth-child(4) { animation-delay: 0.24s; }
#about > *:nth-child(5) { animation-delay: 0.32s; }

#contact > *:nth-child(2) { animation-delay: 0.08s; }
#contact > *:nth-child(3) { animation-delay: 0.16s; }
#contact > *:nth-child(4) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  #about > *,
  #contact > * {
    animation: none;
  }
}
