/* === Starry pastel theme for Neocities === */
:root {
  --bg: #0b0f10;
  --text: #e7ecef;
  --muted: #b7c0c4;
  --pink: #ff7ab8;
  --green: #79f2a2;
  --star-opacity: 0.9;
  --star-soften: 0.25px;
  --twinkle-min: 0.25;
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrapper {
  max-width: 840px;
  margin-inline: auto;
  padding: 24px 18px 48px;
  flex: 1;
}

/* Headings with glow */
h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin: 0.6em 0 0.4em;
  text-shadow: 0 0 8px color-mix(in oklab, var(--pink), transparent 50%),
               0 0 16px color-mix(in oklab, var(--green), transparent 60%);
}

p { color: var(--text); }
small, .muted { color: var(--muted); }

a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in oklab, var(--green), transparent 60%);
  transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
}
a:hover {
  color: var(--pink);
  border-bottom-style: solid;
  text-shadow: 0 0 6px var(--pink);
}

/* Fancy glowing list items */
ul {
  list-style: none;
  padding-left: 0;
  margin: 1em 0;
  display: grid;
  gap: 0.6em;
}

ul li {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--pink) 35%, transparent),
    color-mix(in oklab, var(--green) 35%, transparent)
  );
  color: var(--bg);
  padding: 0.6em 0.9em;
  border-radius: 14px;
  font-weight: 500;
  box-shadow: 0 0 6px color-mix(in oklab, var(--green), transparent 50%),
              0 0 12px color-mix(in oklab, var(--pink), transparent 40%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

ul li:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 10px color-mix(in oklab, var(--pink), transparent 30%),
              0 0 18px color-mix(in oklab, var(--green), transparent 40%);
}

ul li a {
  color: var(--bg);
  font-weight: 600;
  border-bottom: none;
}

/* Image styling */
img {
  display: block;
  margin: 1em 0;
  border-radius: 14px;
  box-shadow: 0 0 12px color-mix(in oklab, var(--pink), transparent 50%);
  max-width: 220px;
}

/* Star field layers */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: var(--star-opacity);
  filter: blur(var(--star-soften));
  animation: twinkle 9s ease-in-out infinite alternate;
}

body::before {
  background-image:
    radial-gradient(circle at 6% 12%, var(--pink) 0 1px, transparent 1.2px),
    radial-gradient(circle at 22% 74%, var(--pink) 0 0.9px, transparent 1.1px),
    radial-gradient(circle at 48% 8%,  var(--pink) 0 1px, transparent 1.2px),
    radial-gradient(circle at 63% 22%, var(--pink) 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 81% 37%, var(--pink) 0 0.9px, transparent 1.1px),
    radial-gradient(circle at 90% 19%, var(--pink) 0 1.1px, transparent 1.3px);
  animation-duration: 10.5s;
  animation-delay: -2s;
}

body::after {
  background-image:
    radial-gradient(circle at 4% 8%,   var(--green) 0 1px, transparent 1.2px),
    radial-gradient(circle at 27% 15%, var(--green) 0 0.9px, transparent 1.1px),
    radial-gradient(circle at 56% 13%, var(--green) 0 1px, transparent 1.2px),
    radial-gradient(circle at 68% 27%, var(--green) 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 88% 24%, var(--green) 0 1.1px, transparent 1.3px);
  animation-duration: 12s;
  animation-delay: -5s;
}

@keyframes twinkle {
  0%   { opacity: var(--star-opacity); }
  50%  { opacity: clamp(var(--twinkle-min), 0.5, var(--star-opacity)); }
  100% { opacity: var(--star-opacity); }
}

h1::after, h2::after {
  content: "★";
  font-size: 0.75em;
  opacity: 0.5;
  margin-left: 0.35em;
  color: color-mix(in oklab, var(--pink), var(--green));
  text-shadow: 0 0 6px currentColor;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 16px;
  margin-top: auto;
  font-size: 0.9em;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  border-top: 1px solid color-mix(in oklab, var(--pink), var(--green), transparent 70%);
  box-shadow: 0 -2px 8px color-mix(in oklab, var(--pink), transparent 80%);
  text-shadow: 0 0 6px color-mix(in oklab, var(--green), transparent 60%);
}

footer a {
  color: var(--pink);
  font-weight: 500;
  text-decoration: none;
}

footer a:hover {
  color: var(--green);
  text-shadow: 0 0 6px var(--green);
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

/* List icons (default neocities.png) */
ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

ul li .btn-icon {
  width: 28px;   /* was 20px */
  height: 28px;  /* was 20px */
  object-fit: contain;
  filter: drop-shadow(0 0 4px var(--green));
  transition: transform 0.2s ease, filter 0.3s ease;
}

ul li:hover .btn-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 8px var(--pink));
}


