/* ---- catppuccin latte/mocha personal site ---- */

:root {
  color-scheme: light dark;
  --rosewater: light-dark(#dc8a78, #f5e0dc);
  --flamingo:  light-dark(#dd7878, #f2cdcd);
  --pink:      light-dark(#ea76cb, #f5c2e7);
  --mauve:     light-dark(#8839ef, #cba6f7);
  --red:       light-dark(#d20f39, #f38ba8);
  --maroon:    light-dark(#e64553, #eba0ac);
  --peach:     light-dark(#fe640b, #fab387);
  --yellow:    light-dark(#df8e1d, #f9e2af);
  --green:     light-dark(#40a02b, #a6e3a1);
  --teal:      light-dark(#179299, #94e2d5);
  --sky:       light-dark(#04a5e5, #89dceb);
  --sapphire:  light-dark(#209fb5, #74c7ec);
  --blue:      light-dark(#1e66f5, #89b4fa);
  --lavender:  light-dark(#7287fd, #b4befe);
  --text:      light-dark(#4c4f69, #cdd6f4);
  --subtext1:  light-dark(#5c5f77, #bac2de);
  --subtext0:  light-dark(#6c6f85, #a6adc8);
  --overlay2:  light-dark(#7c7f93, #9399b2);
  --overlay1:  light-dark(#8c8fa1, #7f849c);
  --overlay0:  light-dark(#9ca0b0, #6c7086);
  --surface2:  light-dark(#acb0be, #585b70);
  --surface1:  light-dark(#bcc0cc, #45475a);
  --surface0:  light-dark(#ccd0da, #313244);
  --base:      light-dark(#eff1f5, #1e1e2e);
  --mantle:    light-dark(#e6e9ef, #181825);
  --crust:     light-dark(#dce0e8, #11111b);
}

@font-face {
  font-display: swap;
  font-family: 'Shantell Sans';
  src: url('assets/shantell_sans.ttf');
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

::selection { background: var(--pink); color: var(--crust); }

.page {
  min-height: 100dvh;
  width: 100%;
  background: var(--base);
  color: var(--text);
  font-family: 'Shantell Sans', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
}

/* ---- main card ---- */
.card {
  max-width: 640px;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 28px;
  row-gap: 28px;
  align-items: center;
}

.hero { display: contents; }

.pfp {
  grid-column: 1;
  grid-row: 1;
  width: 104px;
  height: 104px;
  image-rendering: pixelated;
  display: block;
}

.name-row {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.name {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.pronouns {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--overlay0);
  letter-spacing: 0.01em;
}

.bio {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--subtext1);
  text-wrap: pretty;
  text-align: center;
}

.links {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

@media (min-width: 640px) {
  .card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
  }
}

.link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--mauve);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--surface1);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.link:hover {
  border-color: var(--mauve);
  background: var(--surface0);
  color: var(--pink);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ---- footer badges ---- */
.footer {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.badges {
  display: flex;
  gap: 12px;
  align-items: center;
}

.badges img {
  display: block;
  image-rendering: pixelated;
}

/* ---- entrance + idle animation ---- */
@property --ambientAmount {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.1;
}

@keyframes ambientMovement {
  0%, 100% { --ambientAmount: 0.1; }
  50%       { --ambientAmount: -0.1; }
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pfp {
  animation: ambientMovement 4000ms ease-in-out infinite, fade 0.63s ease-out both;
  transform: rotateZ(calc(var(--ambientAmount) * 10deg));
  transform-origin: 50% 50%;
  will-change: transform;
}

.rise { animation: rise 0.63s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise-1 { animation-delay: 0.06s; }
.rise-2 { animation-delay: 0.17s; }
.rise-3 { animation-delay: 0.29s; }
.rise-4 { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .pfp  { animation: fade 0.4s ease-out both; }
  .rise { animation: fade 0.4s ease-out both; }
}
