@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Yellowtail&display=swap");

@view-transition {
  navigation: auto;
}

:root {
  color-scheme: dark;
  font-family: "Open Sans", Arial, sans-serif;
  color: #dedede;
  background: #050505;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #aaa;
  --green: #8fe6a8;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #050505;
  font-size: 14px;
  line-height: 1.6;
}

.ambient,
.shade,
.wave-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient {
  z-index: 0;
  inset: -18%;
  width: 136%;
  height: 136%;
  background: none;
}

.shade {
  z-index: 0;
  background: rgba(0, 0, 0, .24);
}

.wave-field {
  z-index: 1;
  display: block;
}

main {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 36px), 672px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 120px;
  view-transition-name: page-content;
  animation: page-arrive .24s cubic-bezier(.2, .75, .25, 1) both;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .75, .25, 1);
}

@keyframes page-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal-word {
  display: inline-block;
  animation: word-reveal .4s cubic-bezier(.2, .75, .25, 1) both;
  animation-delay: calc(var(--word-index) * 22ms);
}

@keyframes word-reveal {
  from {
    filter: blur(6px);
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

body:not(.is-leaving) .discord-card,
body:not(.is-leaving) .skills-content .skill-group {
  animation: content-reveal .4s cubic-bezier(.2, .75, .25, 1) both;
}

body:not(.is-leaving) .discord-card { animation-delay: .28s; }
body:not(.is-leaving) .skills-content .skill-group { animation-delay: .18s; }

@keyframes content-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

::view-transition-old(page-content),
::view-transition-new(page-content) {
  animation-duration: .24s;
  animation-timing-function: ease-out;
}

.topbar {
  height: 118px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 28px;
}

.wordmark {
  position: relative;
  display: inline-block;
  width: 190px;
  height: 76px;
}

.wordmark-canvas {
  display: block;
  width: 190px;
  height: 76px;
}

.clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #bbb;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.05;
}

.clock span + span {
  margin-top: 2px;
  color: #888;
  font-size: 10px;
  font-weight: 400;
}

.intro {
  margin: 8px 0 62px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
}

.content-section {
  position: relative;
  min-height: 240px;
  margin: 0 0 35px;
  scroll-margin-top: 28px;
}

h1,
h2 {
  margin: 0 0 14px;
  color: #ededed;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.discord-card {
  width: min(100%, 336px);
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 11px 14px;
  border: 1px solid rgba(143, 230, 168, .18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 32, 24, .82), rgba(10, 15, 12, .88));
  box-shadow: inset 0 1px 0 rgba(143, 230, 168, .06), 0 12px 32px rgba(0, 0, 0, .18);
}

.discord-avatar-link {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: rgba(143, 230, 168, .08);
  text-decoration: none;
}

.discord-avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.discord-avatar-fallback {
  color: #e7e7e7;
  font-size: 18px;
  font-weight: 600;
}

.discord-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border: 2px solid #202123;
  border-radius: 50%;
  background: #777;
}

.discord-status-dot.status-online { background: #3ba55c; }
.discord-status-dot.status-idle { background: #faa81a; }
.discord-status-dot.status-dnd { background: #ed4245; }
.discord-status-dot.status-offline { background: #747f8d; }
.discord-status-dot.status-unknown { background: #747f8d; }
.discord-status-dot.status-loading { animation: status-pulse 1.2s ease-in-out infinite alternate; }

@keyframes status-pulse {
  to { opacity: .45; }
}

.discord-card-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-username {
  overflow: hidden;
  color: #eee;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.discord-username:hover { color: #fff; }

.discord-presence {
  overflow: hidden;
  color: #a5a5a8;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-activity {
  display: block;
  overflow: hidden;
  color: #85858a;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.discord-activity:hover {
  color: #ddd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-section p {
  max-width: 672px;
  margin: 0;
  color: #b6b6b6;
  font-size: 14px;
  line-height: 1.62;
}

.content-section p + p {
  margin-top: 18px;
}

.contact-note a {
  color: #dedede;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

.contact-note a:hover {
  color: var(--green);
}

.skills-page {
  width: min(calc(100% - 60px), 790px);
}

.skills-content {
  padding-top: 2px;
}

.skills-content > h1 {
  margin: 0 0 13px;
  font-size: 24px;
}

.content-section > h1,
.skills-content > h1 {
  font-family: "Outfit", "Open Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.skills-description {
  max-width: 100%;
  margin: 0 0 22px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.65;
}

.skill-groups {
  width: 100%;
}

.skill-group {
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  align-items: center;
  min-height: 83px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(143, 230, 168, .18);
}

.skill-group h2 {
  margin: 0;
  color: #8fe6a8;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-items li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: #b4b4b8;
  font-size: 13px;
  white-space: nowrap;
}

.skill-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  flex: 0 0 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.javascript { color: #e6db45; }
.brand-icon img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.python { color: #73b9e6; }
.skill-icon.python {
  border-color: rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .06);
}
.python svg {
  display: block;
  width: 16px;
  height: 16px;
}
.go { color: #45d6d2; }
.astro { color: #ff806b; }
.react { color: #51d6ed; font-size: 15px; }
.tailwind { color: #47c9da; font-size: 18px; }
.discord {
  background: rgba(88, 101, 242, .12);
}

.placeholder {
  color: #dedede;
  text-decoration: underline;
  text-decoration-color: rgba(222, 222, 222, .7);
  text-underline-offset: 3px;
}

.bottom-nav {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px;
  border: 1px solid rgba(143, 230, 168, .2);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(17, 27, 20, .94), rgba(8, 13, 10, .96));
  box-shadow: 0 5px 22px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(143, 230, 168, .06);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.nav-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, .11);
  pointer-events: none;
  transition: left .24s cubic-bezier(.22, .8, .25, 1),
    top .24s cubic-bezier(.22, .8, .25, 1),
    width .24s cubic-bezier(.22, .8, .25, 1),
    height .24s cubic-bezier(.22, .8, .25, 1);
}

.bottom-nav a {
  position: relative;
  z-index: 1;
  min-width: 62px;
  padding: 5px 12px;
  border-radius: 22px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: color .2s ease;
}

.bottom-nav .views-divider { margin-left: 3px; }

.view-count {
  padding: 0 12px 0 7px;
  color: #777;
  font-size: 12px;
  white-space: nowrap;
}

.bottom-nav a:hover { color: #eee; }
.bottom-nav a.active { color: #fff; background: transparent; }
.bottom-nav a.is-transition-target { color: #fff; }

.divider {
  width: 1px;
  height: 25px;
  margin: 0 5px;
  background: rgba(255, 255, 255, .14);
}

@media (max-width: 650px) {
  main { width: min(calc(100% - 34px), 672px); }
  .topbar { height: 104px; padding-top: 24px; }
  .wordmark,
  .wordmark-canvas {
    width: 172px;
    height: 70px;
  }
  .intro { margin: 8px 0 48px; }
  .bottom-nav { bottom: 12px; }
  .skills-page { width: min(calc(100% - 36px), 790px); }
  .skill-group {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }
  .skill-items { gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal-word,
  body:not(.is-leaving) .discord-card,
  body:not(.is-leaving) .skills-content .skill-group {
    animation: none;
    filter: none;
    opacity: 1;
    transform: none;
  }
  .ambient { background: none; }
  main { animation: none; }
  main { transition: none; }
}

:root {
  --green: #dedede;
  --muted: #8c8c8c;
}

body {
  background: #050505;
}

.ambient {
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #090a0d 0%, #050505 72%);
}

.ambient::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(
    440px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    rgba(220, 225, 238, .095),
    rgba(220, 225, 238, .025) 42%,
    transparent 74%
  );
  content: "";
  opacity: var(--pointer-opacity, 0);
  transition: opacity .24s ease;
}

.shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .34));
}

.clock {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.clock span + span { color: #727272; }

main {
  width: min(calc(100% - 64px), 960px);
  padding-bottom: 130px;
}

.topbar {
  height: 148px;
  padding-top: 34px;
}

.intro,
.skills-description {
  max-width: 800px;
  margin: 20px 0 86px;
  color: #929292;
  font-size: 16px;
  line-height: 1.85;
}

.content-section { margin-bottom: 52px; }

.content-section > h1,
.skills-content > h1 {
  margin-bottom: 20px;
  color: #f1f1f1;
  font-size: clamp(40px, 6vw, 60px);
  letter-spacing: -.055em;
  line-height: 1.08;
}

.content-section p {
  max-width: 790px;
  color: #aaa;
  font-size: 15px;
  line-height: 1.85;
}

.content-section p + p { margin-top: 20px; }

.contact-note a {
  color: #eee;
  text-decoration-color: #777;
}

.discord-card {
  border-color: rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(12, 12, 12, .72);
  box-shadow: none;
}

.discord-avatar-link,
.skill-icon {
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.skills-page {
  width: min(calc(100% - 64px), 960px);
}

.skills-content { padding-top: 4px; }

.skills-content > h1 {
  font-size: clamp(40px, 6vw, 54px);
  text-transform: lowercase;
}

.skills-description {
  max-width: 790px;
  margin: 0 0 42px;
}

.skill-group {
  grid-template-columns: 220px minmax(0, 1fr);
  border-bottom-color: rgba(255, 255, 255, .12);
}

.skill-group h2 { color: #d1d1d1; }

.skill-items li { color: #aaa; }

.bottom-nav {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(10, 10, 10, .88);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .42);
  animation: none;
  backdrop-filter: blur(14px);
}

.bottom-nav a.active {
  color: #fff;
  background: transparent;
}

.contact-note a:hover {
  color: #fff;
}

.divider { background: rgba(255, 255, 255, .16); }

@media (max-width: 650px) {
  main,
  .skills-page {
    width: min(calc(100% - 36px), 960px);
  }

  .topbar { height: 122px; }

  .intro {
    margin: 16px 0 62px;
    font-size: 15px;
  }

  .content-section > h1,
  .skills-content > h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .content-section p { font-size: 14px; }

  .skill-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bottom-nav {
    max-width: calc(100vw - 20px);
  }

  .bottom-nav a { min-width: 54px; }

  .view-count { padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .bottom-nav { animation: none; }
  .ambient::before { transition: none; }
  .nav-indicator { transition: none; }
}
