:root {
  --green: #7ecf4a;
  --blue: #4aa3e0;
  --ink: #e8f0f6;
  --ink-muted: rgba(232, 240, 246, 0.72);
  --line: rgba(232, 240, 246, 0.14);
  --panel: rgba(0, 0, 0, 0.42);
  --max: 44rem;
  --wide: 58rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: #000;
  line-height: 1.55;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    #000
    url("images/stars.png")
    center / cover
    no-repeat;
  animation: stars-drift 40s ease-in-out infinite alternate;
  pointer-events: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 70% 55% at 50% 20%,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.82) 100%
  );
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-mark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.15rem;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green);
  outline: none;
}

.hero {
  min-height: calc(100dvh - 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.logo {
  width: min(48vw, 320px);
  height: auto;
  display: block;
  animation:
    rise-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both,
    float 6.5s ease-in-out 1.1s infinite;
}

.tagline {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.88;
  animation: rise-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.email {
  margin-top: 0.35rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
  animation: rise-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.email:hover,
.email:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
  outline: none;
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 1rem;
}

.section--about,
.post {
  width: min(100% - 2rem, var(--wide));
}

.section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.section__lede {
  margin: -0.4rem 0 1.5rem;
  color: var(--ink-muted);
}

.section__lede.prose p {
  color: var(--ink-muted);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3 {
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.prose h2 {
  font-size: 1.35rem;
}

.prose h3 {
  font-size: 1.15rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.prose a:hover,
.prose a:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
  outline: none;
}

.prose code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.92em;
  color: var(--green);
}

.prose pre {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.prose pre code {
  color: var(--ink);
}

.prose blockquote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--blue);
  color: var(--ink-muted);
}

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

.prose .embed-frame {
  margin: 1.25rem 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
}

.prose .embed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  margin-top: 1.5rem;
}

.text-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
  outline: none;
}

.text-link--back {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.about__photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center 35%;
  aspect-ratio: 4 / 5;
}

.about__name {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.about__copy p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.about__copy p:last-child {
  margin-bottom: 0;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.post-list__item {
  border-bottom: 1px solid var(--line);
}

.post-list__link {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  color: inherit;
  text-decoration: none;
}

.post-list__link:hover .post-list__title,
.post-list__link:focus-visible .post-list__title {
  color: var(--green);
}

.post-list__link:focus-visible {
  outline: none;
}

.post-list__title {
  font-size: 1.15rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.post-list__date {
  display: block;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.post-list__excerpt {
  color: var(--ink-muted);
  font-size: 1rem;
}

.post .post-list__date {
  margin: -0.5rem 0 1.5rem;
}

.site-footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 2.5rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--blue);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--green);
  outline: none;
}

.muted {
  color: var(--ink-muted);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes stars-drift {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-1.2%, 0.8%);
  }
}

@media (max-width: 720px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about__photo {
    width: min(100%, 18rem);
    justify-self: start;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stars,
  .logo,
  .tagline,
  .email {
    animation: none;
  }
}
