:root {
  --base: #000000;
  --gray-base: #cbc9c9;
  --creme: #faf7ff;
  --accent-blue: #5502f1;

  --edges: 8vw;

  --font-geist: 'Geist', sans-serif;
  --font-geist-mono: 'Geist Mono', monospace;

  --frame-border-width: 16px;
  --frame-border-color: var(--base);
  --frame-radius-tl: 64px;
  --frame-radius-tr: 24px;
  --frame-radius-br: 64px;
  --frame-radius-bl: 24px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

::selection {
  background-color: var(--accent-blue);
  color: var(--creme);
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Full-page frame */
.frame {
  position: relative;
  animation: fadeIn 1.5s ease-in-out;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  border: var(--frame-border-width) solid var(--frame-border-color);
  border-radius: var(--frame-radius-tl) var(--frame-radius-tr) var(--frame-radius-br) var(--frame-radius-bl);
  background-color: #2a2a2a;
  background-image: url('/assets/bg.webp');
  background-size: cover;
  background-position: center;
}

@keyframes colorPulse {
  0%   { opacity: 0.05; }
  50%  { opacity: 0.35; }
  100% { opacity: 0.05; }
}

.frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 60%, var(--accent-blue) 0%, transparent 70%);
  mix-blend-mode: color;
  animation: colorPulse 12s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 15%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 55%);
  pointer-events: none;
  z-index: 0;
}

/* Content sits on top */
.frame-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--edges);
}

/* Nav */
nav {
  display: flex;
  align-items: center;
}

.nav-logo {
  width: 32px;
  height: auto;
  display: block;
  filter: invert(1) sepia(8%);
}

/* Main content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}

.kicker a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.kicker {
  font-family: var(--font-geist-mono);
  font-size: clamp(0.8rem, 0.5rem + 0.625vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.05rem;
  color: var(--creme);
  margin: 0 0 1rem 0;
}

h1 {
  font-family: var(--font-geist);
  font-size: clamp(3rem, -0.5rem + 7.4vw, 5rem);
  font-weight: 700;
  letter-spacing: clamp(-0.2rem, 0.078rem - 0.37vw, -0.1rem);
  color: var(--creme);
  margin: 0 0 1rem 0;
  line-height: 1;
}

.bio {
  font-family: var(--font-geist);
  font-size: clamp(1rem, 0.6rem + 0.83vw, 1.25rem);
  font-weight: 400;
  letter-spacing: -0.02rem;
  color: var(--creme);
  line-height: 1.6;
  max-width: 45ch;
  margin: 0 0 2rem 0;
}

.links {
  display: flex;
  gap: 2rem;
}

.links a {
  font-family: var(--font-geist);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02rem;
  color: var(--gray-base);
  text-decoration: none;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  transition: color 0.2s ease-in-out;
}

.links a:hover {
  color: var(--creme);
  text-decoration: underline;
}

/* Footer */
footer p {
  font-family: var(--font-geist-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--creme);
  margin: 1.5rem 0 0 0;
}

/* Responsive */
@media screen and (max-width: 48em) {
  .links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media screen and (max-width: 36em) {
  :root {
    --edges: 6vw;
  }

  .frame {
    background-image: none;
  }
}
