:root {
  --bg: #071018;
  --bg-deep: #03070c;
  --text: #f1eadf;
  --muted: #b9afa3;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 12%, rgba(140, 110, 255, 0.12), transparent 22%),
    radial-gradient(circle at 80% 18%, rgba(110, 180, 255, 0.12), transparent 20%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #0a141d 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 14%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 64% 52%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.5px);
}

.page-shell {
  position: relative;
  width: min(700px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(6rem, 16vh, 10rem) 0 3.5rem;
}

.hero {
  padding: 0 0 3rem;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-copy {
  min-width: 0;
}

.entry-topline p,
.poem,
.quote-note,
.video-label {
  font-size: clamp(0.82rem, 1.5vw, 0.9rem);
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Averia Serif Libre", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1;
}

.subtitle {
  margin: 0.45rem 0 0;
  font-size: clamp(0.84rem, 1.55vw, 0.92rem);
  line-height: 1.3;
  color: var(--muted);
}

.contact-links {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  padding-top: 0.25rem;
  text-align: right;
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 234, 223, 0.24);
}

a:hover,
a:focus-visible {
  border-bottom-color: rgba(241, 234, 223, 0.72);
  outline: none;
}

.content {
  display: grid;
  gap: 2rem;
}

.section {
  display: grid;
  gap: 0.65rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
}

.stack {
  display: grid;
  gap: 1rem;
}

.entry {
  display: grid;
  gap: 0.35rem;
}

.entry h3 {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.entry p {
  margin: 0;
  font-size: clamp(0.82rem, 1.5vw, 0.9rem);
  line-height: 1.35;
  color: var(--muted);
}

.entry-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.poem {
  margin: 0;
  max-width: none;
  font-size: clamp(0.92rem, 1.7vw, 1rem);
  line-height: 1.45;
  font-family: "Averia Serif Libre", Georgia, serif;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.quote-note {
  margin: 0;
}

.quote-section {
  padding-top: 1rem;
  border-top: 1px solid rgba(241, 234, 223, 0.16);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding-top: 4rem;
}

.easter-egg {
  display: grid;
  place-items: center;
  gap: 0.5rem;
}

.toggle-slot {
  min-height: 9.5rem;
  display: grid;
  place-items: center;
}

.egg-button {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 1.9rem;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 180ms ease, filter 180ms ease;
}

.egg-button:hover,
.egg-button:focus-visible {
  transform: translateY(-3px) rotate(-6deg);
  filter: drop-shadow(0 10px 18px rgba(255, 240, 210, 0.18));
  outline: none;
}

.video-panel {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.video-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.video-toggle video {
  display: block;
  width: min(170px, 38vw);
  border-radius: 14px;
  background: #000;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1.5rem, 700px);
    padding-top: 5rem;
  }

  .hero-top {
    flex-direction: column;
    gap: 0.8rem;
  }

  .contact-links {
    justify-items: start;
    text-align: left;
  }

  .entry-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .site-footer {
    padding-top: 3.25rem;
  }

  .easter-egg {
    gap: 0.5rem;
  }

  .toggle-slot {
    min-height: 8.5rem;
  }

  .video-toggle video {
    width: min(150px, 46vw);
  }
}
