/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #111;
  color: #ccc;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Links (psychedelic gradient) ──────────────────── */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
  background: linear-gradient(
    90deg,
    #ff6ec7, #ff9a00, #ffe600,
    #48ff00, #00cfff, #a855f7,
    #ff6ec7
  );
  background-size: 600% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 180s ease infinite;
}
a:hover {
  /* border-bottom-color: #a855f7; */
  /* text-decoration: none; */
  animation: gradient-shift 4s ease infinite;
}
a:visited {
  background: linear-gradient(
    90deg,
    #c084fc, #f472b6, #fb923c,
    #c084fc
  );
  background-size: 600% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 30s ease infinite;
}

/* ── Header ───────────────────────────────────────── */
.site-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e0e0e0;
  margin: 0 0 0.2rem;
}
.site-title a {
  background: none;
  -webkit-text-fill-color: inherit;
  color: inherit;
  border: none;
  animation: none;
}
.site-nav {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.site-nav a {
  letter-spacing: 0.05em;
}
.site-nav .sep {
  color: #555;
  padding: 0 0.3rem;
}

/* ── Main Content ─────────────────────────────────── */
main {
  margin: 0 auto;
  max-width: 820px;
  padding: 2rem 1.5rem 4rem;
}

/* ── Typography ───────────────────────────────────── */
h1, h2, h3 {
  color: #e0e0e0;
  font-weight: normal;
}

h1 {
  font-size: 1.5rem;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 0.3rem;
  margin-top: 2.5rem;
}

h2 {
  font-size: 1.15rem;
  margin-top: 1.8rem;
  color: #bbb;
}

h3 {
  font-size: 1rem;
  font-style: italic;
  color: #aaa;
}

p { margin: 0.6rem 0; }

hr {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 2rem 0;
}

/* ── Lists (information-dense) ────────────────────── */
ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0;
}
li {
  margin: 0.15rem 0;
  line-height: 1.5;
}

/* Multi-column lists for favorites sections */
.favorites ul {
  columns: 2;
  column-gap: 2rem;
}
@media (max-width: 600px) {
  .favorites ul { columns: 1; }
}

/* ── Table of Contents ────────────────────────────── */
.toc {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.toc h1 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  padding: 0;
  border: none;
}
.toc a { color: #8ab4f8; }
.toc .sep { color: #555; padding: 0 0.4rem; }

/* ── Section anchors ──────────────────────────────── */
.anchor {
  display: block;
  position: relative;
  top: -1rem;
  visibility: hidden;
}

/* ── About section ────────────────────────────────── */
.about-me p,
.favorites p {
  max-width: 65ch;
}

/* ── Contact / meta info ──────────────────────────── */
.contact-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.contact-links li::before {
  content: none;
}

/* ── Avatar ───────────────────────────────────────── */
.fraggle {
  padding: 1.5rem 0 2rem;
}
.fraggle img {
  display: block;
  margin: auto;
  border-radius: 50%;
  filter: grayscale(30%);
  max-width: 100px;
}

/* ── Footer ───────────────────────────────────────── */
footer {
  /* border-top: 1px solid #2a2a2a; */
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #555;
}
footer img {
  max-width: 48px;
  filter: grayscale(50%);
  border-radius: 50%;
}

/* ── Metadata / date stamps ───────────────────────── */
.metadata {
  font-size: 0.85rem;
  color: #777;
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin-bottom: 1.5rem;
}

/* ── Selection color ──────────────────────────────── */
::selection {
  background: #3a5a8a;
  color: #fff;
}

/* ── Print ────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; }
}
