body {
  background-color: #fff;
  font-family: "Source Code Pro", monospace;
}

.icon > svg {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

::selection {
  background-color: #d7f9f3;
}

.palette > span {
  position: relative;
}
.palette > span::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 10px;
  bottom: 0;
  right: 0;
  z-index: -1;
}
.palette > span:hover::after {
  bottom: unset;
  right: unset;
  top: 0;
  left: 0;
}
.palette > span.js::after {
  background-color: #F0DB4F;
}
.palette > span.go::after {
  background-color: #29BEB0;
}
.palette > span.rust::after {
  background-color: #CE412B;
}
.palette > span.purple::after {
  background-color: rgb(247, 236, 255);
}

body {
  background-color: var(--bg-color);
  color: var(--primary-text-color);
  transition: color 0.3s, background-color 0.3s;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #29BEB0;
  outline-offset: 3px;
}

:root {
  --bg-color: #fff;
  --primary-text-color: #000;
  --secondary-text-color: #5b546e;
  --box-shadow-color: #c7c7c7;
  --player-bg: #f7ecff;
  --player-text: #000;
  --player-subtext: #5b546e;
  --player-progress-bg: rgba(0, 0, 0, 0.12);
  --player-progress-fill: #29beb0;
  --splash-bg: #191717;
  --splash-accent: #29beb0;
  --splash-glow: rgba(41, 190, 176, 0.7);
}

html[data-theme=dark] {
  --bg-color: #242020;
  --primary-text-color: #fff;
  --secondary-text-color: #b8b3c9;
  --box-shadow-color: #504d4d;
  --player-bg: #2d2638;
  --player-text: #fff;
  --player-subtext: #b8b3c9;
  --player-progress-bg: rgba(255, 255, 255, 0.18);
  --player-progress-fill: #29beb0;
}

html[data-theme=eyecare] {
  --bg-color: #f7f2d1;
  --primary-text-color: #111;
  --secondary-text-color: #5b546e;
  --box-shadow-color: #c7c7c7;
  --player-bg: #fff0db;
  --player-text: #111;
  --player-subtext: #6b6355;
  --player-progress-bg: rgba(0, 0, 0, 0.12);
  --player-progress-fill: #29beb0;
}

body.portal-active {
  background-color: var(--splash-bg) !important;
  transition: none !important;
}
body.portal-active .layout-container {
  clip-path: circle(0px at 50% 50vh);
  will-change: clip-path;
  background-color: var(--bg-color);
}
body.portal-active.portal-striking .layout-container, body.portal-active.portal-splitting .layout-container {
  clip-path: circle(90vmax at 50% 50vh);
  transition: clip-path 0.5s linear;
}

.layout-container {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.content-wrapper {
  max-width: 500px;
  width: 100%;
  padding: 16px;
  margin-top: 5em;
  margin-bottom: 3em;
}
@media (max-width: 600px) {
  .content-wrapper {
    margin-top: 2.5em;
  }
}

.greeting {
  line-height: 2rem;
}
.greeting h1 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.greeting p {
  text-align: left;
}
.greeting .location {
  color: var(--secondary-text-color);
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.stacks-section {
  margin-top: 3rem;
}

.stacks-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.stack-card {
  box-shadow: 4px 5px var(--box-shadow-color);
  transition: box-shadow 0.3s;
}
.stack-card:hover {
  box-shadow: 5px 6px var(--box-shadow-color);
}
.stack-card .stack-link,
.stack-card .stack-btn {
  width: 100%;
  padding: 15px 0;
  color: #000;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  line-height: 1.5em;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.player-section {
  margin-top: 3rem;
}

.audio-player {
  width: 100%;
  height: 78px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  background-color: var(--player-bg);
  color: var(--player-text);
  box-shadow: 4px 5px var(--box-shadow-color);
  transition: box-shadow 0.3s;
  user-select: none;
}
.audio-player:hover {
  box-shadow: 5px 6px var(--box-shadow-color);
}
.audio-player .thumb-box {
  width: 56px;
  height: 56px;
  min-width: 56px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.audio-player .thumb-box .spool {
  transform-origin: center;
}
.audio-player .thumb-box.playing .spool {
  animation: rotate-spool 2.5s linear infinite;
}
.audio-player .thumb-box .eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}
.audio-player .thumb-box .eq-bars .bar {
  width: 4px;
  height: 8px;
  transition: height 0.2s;
}
.audio-player .thumb-box .eq-bars .bar-1 {
  height: 8px;
}
.audio-player .thumb-box .eq-bars .bar-2 {
  height: 16px;
}
.audio-player .thumb-box .eq-bars .bar-3 {
  height: 22px;
}
.audio-player .thumb-box .eq-bars .bar-4 {
  height: 12px;
}
.audio-player .thumb-box .eq-bars .bar-5 {
  height: 18px;
}
.audio-player .thumb-box.playing .eq-bars .bar-1 {
  animation: eq1 0.8s ease-in-out infinite alternate;
}
.audio-player .thumb-box.playing .eq-bars .bar-2 {
  animation: eq2 0.65s ease-in-out 0.15s infinite alternate;
}
.audio-player .thumb-box.playing .eq-bars .bar-3 {
  animation: eq3 0.9s ease-in-out 0.1s infinite alternate;
}
.audio-player .thumb-box.playing .eq-bars .bar-4 {
  animation: eq4 0.6s ease-in-out 0.25s infinite alternate;
}
.audio-player .thumb-box.playing .eq-bars .bar-5 {
  animation: eq5 0.75s ease-in-out 0.2s infinite alternate;
}
.audio-player .thumb-box.playing .star-1, .audio-player .thumb-box.playing .star-2, .audio-player .thumb-box.playing .star-3 {
  animation: star-pulse 1.2s ease-in-out infinite alternate;
}
.audio-player .player-main {
  flex: 1;
  height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 12px;
  min-width: 0;
}
.audio-player .top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  height: 26px;
}
.audio-player .track-meta {
  display: flex;
  align-items: baseline;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-right: 8px;
}
.audio-player .track-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--player-text);
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-player .track-artist {
  font-size: 11px;
  color: var(--player-subtext);
  margin-left: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-player .controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.audio-player .ctrl-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--player-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
  line-height: 1;
}
.audio-player .ctrl-btn svg {
  display: block;
  margin: 0;
}
.audio-player .ctrl-btn:hover {
  opacity: 0.7;
  transform: scale(1.1);
}
.audio-player .ctrl-btn:active {
  transform: scale(0.92);
}
.audio-player .play-btn {
  width: 17px;
  height: 17px;
}
.audio-player .prev-btn,
.audio-player .next-btn {
  width: 16px;
  height: 16px;
}
.audio-player .bottom-bar {
  display: flex;
  align-items: center;
  height: 18px;
  gap: 8px;
}
.audio-player .time-label {
  font-size: 11px;
  font-family: inherit;
  color: var(--player-subtext);
  min-width: 30px;
}
.audio-player .time-label.current {
  text-align: left;
}
.audio-player .time-label.duration {
  text-align: right;
}
.audio-player .progress-container {
  flex: 1;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 4px 0;
}
.audio-player .progress-track {
  width: 100%;
  height: 4px;
  background: var(--player-progress-bg);
  position: relative;
  transition: height 0.15s ease;
}
.audio-player .progress-fill {
  height: 100%;
  background: var(--player-progress-fill);
  pointer-events: none;
}
.audio-player .progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 10px;
  background: var(--player-text);
  pointer-events: none;
  transition: width 0.15s ease, height 0.15s ease;
}
.audio-player .progress-container:hover .progress-track {
  height: 6px;
}
.audio-player .progress-container:hover .progress-thumb {
  width: 6px;
  height: 12px;
}

@keyframes rotate-spool {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes eq1 {
  from {
    height: 6px;
  }
  to {
    height: 18px;
  }
}
@keyframes eq2 {
  from {
    height: 18px;
  }
  to {
    height: 8px;
  }
}
@keyframes eq3 {
  from {
    height: 10px;
  }
  to {
    height: 24px;
  }
}
@keyframes eq4 {
  from {
    height: 22px;
  }
  to {
    height: 6px;
  }
}
@keyframes eq5 {
  from {
    height: 12px;
  }
  to {
    height: 20px;
  }
}
@keyframes star-pulse {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}
/* ==========================================================================
   Splash Screen (Clip-Path Splash Animation)
   ========================================================================== */
html.skip-splash #initial-splash {
  display: none !important;
}

.splash-screen {
  --splash-bg: #191717;
  --splash-accent: #29beb0;
  --splash-glow: rgba(41, 190, 176, 0.7);
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  overflow: hidden;
  user-select: none;
  background: transparent;
  /* --------------------------------------------------------------------------
     Effect 1: Slash (Forward diagonal /)
     -------------------------------------------------------------------------- */
  /* --------------------------------------------------------------------------
     Effect 2: Backslash (Reverse diagonal \)
     -------------------------------------------------------------------------- */
  /* --------------------------------------------------------------------------
     Effect 3: Portal (Circular Iris Warp)
     -------------------------------------------------------------------------- */
  /* --------------------------------------------------------------------------
     Effect 4: CRT (Retro Monitor Power-On)
     -------------------------------------------------------------------------- */
  /* --------------------------------------------------------------------------
     Effect 5: Curtain (Stage Curtain Lift)
     -------------------------------------------------------------------------- */
}
.splash-screen .splash-panel {
  position: absolute;
  inset: -6px;
  background-color: var(--splash-bg);
  will-change: clip-path, transform, opacity;
  transition: clip-path 0.52s cubic-bezier(0.77, 0, 0.175, 1), transform 0.52s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.52s cubic-bezier(0.77, 0, 0.175, 1);
}
.splash-screen .splash-crt-beam {
  position: absolute;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: #ffffff;
  box-shadow: 0 0 14px var(--splash-accent), 0 0 28px var(--splash-glow), 0 0 45px #ffffff;
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.18s ease-in, opacity 0.12s ease-in;
  z-index: 3;
}
.splash-screen.striking .splash-crt-beam {
  opacity: 1;
}
.splash-screen.splitting, .splash-screen.done {
  pointer-events: none;
}
.splash-screen.splitting .splash-crt-beam, .splash-screen.done .splash-crt-beam {
  opacity: 0;
  box-shadow: 0 0 80px rgba(41, 190, 176, 0.5);
  transition: opacity 0.35s ease-out 0.08s;
}
.splash-screen.splash-effect-slash {
  background-color: transparent;
}
.splash-screen.splash-effect-slash .splash-panel-top {
  clip-path: polygon(0% 0%, 100% 0%, 100% 38.4%, 0% 62.4%);
}
.splash-screen.splash-effect-slash .splash-panel-bottom {
  clip-path: polygon(0% 61.6%, 100% 37.6%, 100% 100%, 0% 100%);
}
.splash-screen.splash-effect-slash .splash-crt-beam {
  left: 50%;
  right: auto;
  width: 200vmax;
  margin-left: -100vmax;
  transform: rotate(atan2(-24vh, 100vw)) scaleX(0);
}
.splash-screen.splash-effect-slash.striking .splash-crt-beam, .splash-screen.splash-effect-slash.splitting .splash-crt-beam, .splash-screen.splash-effect-slash.done .splash-crt-beam {
  transform: rotate(atan2(-24vh, 100vw)) scaleX(1);
}
.splash-screen.splash-effect-slash.splitting .splash-panel-top, .splash-screen.splash-effect-slash.done .splash-panel-top {
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  transform: translate(-12px, -18px);
}
.splash-screen.splash-effect-slash.splitting .splash-panel-bottom, .splash-screen.splash-effect-slash.done .splash-panel-bottom {
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  transform: translate(12px, 18px);
}
.splash-screen.splash-effect-backslash {
  background-color: transparent;
}
.splash-screen.splash-effect-backslash .splash-panel-top {
  clip-path: polygon(0% 0%, 100% 0%, 100% 62.4%, 0% 38.4%);
}
.splash-screen.splash-effect-backslash .splash-panel-bottom {
  clip-path: polygon(0% 37.6%, 100% 61.6%, 100% 100%, 0% 100%);
}
.splash-screen.splash-effect-backslash .splash-crt-beam {
  left: 50%;
  right: auto;
  width: 200vmax;
  margin-left: -100vmax;
  transform: rotate(atan2(24vh, 100vw)) scaleX(0);
}
.splash-screen.splash-effect-backslash.striking .splash-crt-beam, .splash-screen.splash-effect-backslash.splitting .splash-crt-beam, .splash-screen.splash-effect-backslash.done .splash-crt-beam {
  transform: rotate(atan2(24vh, 100vw)) scaleX(1);
}
.splash-screen.splash-effect-backslash.splitting .splash-panel-top, .splash-screen.splash-effect-backslash.done .splash-panel-top {
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  transform: translate(12px, -18px);
}
.splash-screen.splash-effect-backslash.splitting .splash-panel-bottom, .splash-screen.splash-effect-backslash.done .splash-panel-bottom {
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  transform: translate(-12px, 18px);
}
.splash-screen.splash-effect-portal {
  background-color: transparent;
}
.splash-screen.splash-effect-portal .splash-portal-ring {
  position: fixed;
  inset: 0;
  clip-path: circle(0px at 50% 50vh);
  will-change: clip-path;
  pointer-events: none;
}
.splash-screen.splash-effect-portal.striking .splash-portal-ring, .splash-screen.splash-effect-portal.splitting .splash-portal-ring, .splash-screen.splash-effect-portal.done .splash-portal-ring {
  clip-path: circle(90vmax at 50% 50vh);
  opacity: 0;
  transition: clip-path 1.1s linear, opacity 0.35s ease-out 0.75s;
}
.splash-screen.splash-effect-crt {
  background-color: transparent;
}
.splash-screen.splash-effect-crt .splash-panel-top {
  clip-path: polygon(0% 0%, 100% 0%, 100% 50.4%, 0% 50.4%);
}
.splash-screen.splash-effect-crt .splash-panel-bottom {
  clip-path: polygon(0% 49.6%, 100% 49.6%, 100% 100%, 0% 100%);
}
.splash-screen.splash-effect-crt .splash-crt-beam {
  left: 0;
  right: 0;
  transform: scaleX(0);
}
.splash-screen.splash-effect-crt.striking .splash-crt-beam, .splash-screen.splash-effect-crt.splitting .splash-crt-beam, .splash-screen.splash-effect-crt.done .splash-crt-beam {
  transform: scaleX(1);
}
.splash-screen.splash-effect-crt.splitting .splash-panel-top, .splash-screen.splash-effect-crt.done .splash-panel-top {
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  transform: translateY(-16px);
}
.splash-screen.splash-effect-crt.splitting .splash-panel-bottom, .splash-screen.splash-effect-crt.done .splash-panel-bottom {
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  transform: translateY(16px);
}
.splash-screen.splash-effect-curtain {
  background-color: transparent;
}
.splash-screen.splash-effect-curtain .splash-curtain-panel {
  position: absolute;
  inset: 0;
  background-color: var(--splash-bg);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  will-change: clip-path;
  transition: clip-path 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}
.splash-screen.splash-effect-curtain .splash-curtain-panel .splash-curtain-rail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--splash-accent);
  box-shadow: 0 0 14px var(--splash-glow), 0 0 28px var(--splash-accent);
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}
.splash-screen.splash-effect-curtain.splitting .splash-curtain-panel, .splash-screen.splash-effect-curtain.done .splash-curtain-panel {
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
}
.splash-screen.splash-effect-curtain.splitting .splash-curtain-panel .splash-curtain-rail, .splash-screen.splash-effect-curtain.done .splash-curtain-panel .splash-curtain-rail {
  transform: translateY(-100vh);
}

.site-footer {
  margin-top: 5rem;
  padding-bottom: 1rem;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: var(--secondary-text-color);
}
.site-footer a,
.site-footer button {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.site-footer button:hover {
  color: var(--primary-text-color);
}
