/* ---------------------------------------------------------------
   Accepting the Universe - link-in-bio
   Design: near-black ground, hand-lettered display type (Amatic SC)
   against a literary serif (Newsreader), with a typewriter/ledger
   utility face (Space Mono) for small marks. Signature: hand-drawn
   underlines beneath each section eyebrow, echoing the etched,
   hand-made feel of the artwork and his own on-site typography.
------------------------------------------------------------------ */

:root {
  --bg: #06060a;
  --bg-raise: #0e0e10;
  --ink: #f3f0ea;
  --ink-dim: #a79f90;
  --ink-faint: #726b5e;
  --line: rgba(243, 240, 234, 0.14);
  --line-hover: rgba(243, 240, 234, 0.42);
  --paper: #c3b8a2;
  --paper-dim: #8a8171;

  --font-display: "Amatic SC", sans-serif;
  --font-title: "Cinzel", serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-mono: "Space Mono", monospace;

  --gutter: 1.5rem;
  --max-w: 30rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--line-hover) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--line-hover);
  border: 2px solid var(--bg);
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--ink-dim);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Lenis smooth scroll — recommended base rules */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- ambient background ---------- */

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: var(--ink);
  opacity: var(--o, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  .star {
    animation:
      star-twinkle-a var(--dur, 5s) ease-in-out infinite var(--delay, 0s),
      star-drift var(--dur-move, 9s) ease-in-out infinite var(--delay-move, 0s);
  }

  .star--b {
    animation-name: star-twinkle-b, star-drift;
  }

  .star--c {
    animation-name: star-twinkle-c, star-drift;
  }
}

/* three slightly different fade shapes so stars never read as one synchronized pulse */
@keyframes star-twinkle-a {
  0%, 100% { opacity: var(--o, 0.5); }
  38% { opacity: var(--o-min, 0.08); }
  70% { opacity: var(--o, 0.5); }
}

@keyframes star-twinkle-b {
  0%, 100% { opacity: var(--o, 0.5); }
  50% { opacity: var(--o-min, 0.08); }
}

@keyframes star-twinkle-c {
  0%, 100% { opacity: var(--o, 0.5); }
  30% { opacity: var(--o, 0.5); }
  62% { opacity: var(--o-min, 0.08); }
  85% { opacity: var(--o, 0.5); }
}

@keyframes star-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(var(--dx, 2px), var(--dy, 2px)); }
}

/* an occasional shooting star, spawned rarely by script.js */
.shooting-star {
  position: fixed;
  top: var(--sy, 10vh);
  left: var(--sx, 10vw);
  width: 130px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: rotate(var(--angle, 140deg)) translateX(0) scaleX(0.25);
  transform-origin: left center;
  animation-name: shooting-star-fly;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes shooting-star-fly {
  0% {
    transform: rotate(var(--angle, 140deg)) translateX(0) scaleX(0.25);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  75% {
    opacity: 0.56;
  }
  100% {
    transform: rotate(var(--angle, 140deg)) translateX(var(--dist, 300px)) scaleX(1);
    opacity: 0;
  }
}

.glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.glow-a {
  top: -10%;
  left: 50%;
  width: 34rem;
  height: 22rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(243, 240, 234, 0.07), transparent 70%);
}

.glow-b {
  bottom: 8%;
  left: -10%;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(195, 184, 162, 0.08), transparent 70%);
}

/* ---------- layout ---------- */

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  padding: 4.5rem var(--gutter) 2.5rem;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.portrait {
  width: 132px;
  height: 132px;
  border-radius: 0;
  object-fit: cover;
  margin: 0 auto 1.6rem;
  border: 1px solid var(--line-hover);
  padding: 5px;
  filter: grayscale(1) contrast(1.05);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 30px 60px -20px rgba(0,0,0,0.8);
}

.wordmark {
  margin: 0 0 1.3rem;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}

/* below ~342px the wordmark's natural width exceeds the available
   space and clips; drop the size a step so it still fits on one line */
@media (max-width: 380px) {
  .wordmark {
    font-size: 1.05rem;
  }
}

.tagline {
  margin: 0 auto;
  max-width: 24rem;
  font-style: normal;
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgb(202, 194, 182);
  opacity: 0.82;
}

/* ---------- follower-count chips ---------- */

.stat-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 9px;
  background: #121214;
  border-radius: 0;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.4), 0 2px 2px -1px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(243, 240, 234, 0.09);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--ink-dim);
  transition: box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.stat-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink-dim);
  transition: color 0.25s ease;
}

.stat-chip:hover,
.stat-chip:focus-visible {
  background: #17171a;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5), 0 2px 2px -1px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(195, 184, 162, 0.35);
  color: var(--paper);
  transform: translateY(-1px);
}

.stat-chip:hover svg,
.stat-chip:focus-visible svg {
  color: var(--paper);
}

/* ---------- section eyebrow + hand-drawn rule ---------- */

.eyebrow {
  margin: 0 0 0.75rem;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
}

.eyebrow span {
  position: relative;
  display: inline-block;
}

/* quiet variant - used for the Contact label, a footer detail rather
   than a primary section, so it reads unaccented */
.eyebrow--quiet {
  color: var(--ink-dim);
}

/* ---------- link sections ---------- */

.linkset {
  margin-top: 2.2rem;
}

.linkset + .linkset {
  margin-top: 3.6rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: rgba(243, 240, 234, 0.02);
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.link-card:last-child {
  margin-bottom: 0;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--line-hover);
  background: rgba(243, 240, 234, 0.045);
}

.link-card:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}

.link-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.link-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  padding: 15px 18px;
}

.link-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.link-icon {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  color: var(--paper-dim);
  transition: color 0.25s ease;
}

.link-card:hover .link-icon,
.link-card:focus-visible .link-icon {
  color: var(--paper);
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.link-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.link-sub {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-dim);
}

/* ---------- swipeable link carousel ---------- */

.link-carousel {
  margin-bottom: 10px;
}

.link-carousel:last-child {
  margin-bottom: 0;
}

.carousel-heading {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 9%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 82%;
  scroll-snap-align: center;
  display: block;
  border: 1px solid var(--line);
  background: rgba(243, 240, 234, 0.02);
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.carousel-slide:hover,
.carousel-slide:focus-visible {
  border-color: var(--line-hover);
  background: rgba(243, 240, 234, 0.045);
}

.carousel-slide-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.carousel-slide-title {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* ---------- artist mark ---------- */

.artist-mark {
  margin: 2.5rem auto 0;
  display: flex;
  justify-content: center;
}

.artist-mark img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 1;
  border: 1px solid rgba(243, 240, 234, 0.22);
}

/* ---------- contact ---------- */

.contact {
  text-align: center;
  margin-top: 1.75rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  border-bottom: 1px solid rgba(200, 190, 175, 0.4);
  padding-bottom: 0.04rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.contact-address {
  margin: 1.1rem 0 0;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem var(--gutter) 0.75rem;
}

.site-footer p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

/* thin, filamentary nebula wisps behind the closing wordmark - like
   faint interstellar dust trails, not a fog bank. Sparse, mostly black,
   with only thread-like threads of grey catching the light. */
.cloud-band {
  position: relative;
  margin: 0.85rem auto 0;
  width: min(680px, 100%);
  height: 190px;
  z-index: 0;
  overflow: hidden;
  opacity: 0.95;
  -webkit-mask-image: radial-gradient(ellipse 46% 42% at 50% 50%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 46% 42% at 50% 50%, black 20%, transparent 100%);
}

.cloud-layer {
  position: absolute;
  top: -20%;
  left: -15%;
  width: 130%;
  height: 140%;
  mix-blend-mode: screen;
}

.cloud-layer--1 {
  filter: url(#cloudNoise1);
  opacity: 1;
  transform: rotate(-7deg);
}

.cloud-layer--2 {
  filter: url(#cloudNoise2);
  opacity: 0.78;
  transform: rotate(5deg) scale(1.12);
}

/* featured bright stars scattered through the nebula, some with a
   thin diffraction spike, like the brighter points in a real deep-sky shot */
.bright-star {
  position: absolute;
  z-index: 1;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.85), 0 0 12px 4px rgba(255, 255, 255, 0.25);
}

.bright-star--big {
  width: 3.5px;
  height: 3.5px;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.9), 0 0 18px 7px rgba(255, 255, 255, 0.3);
}

.bright-star--spike::before,
.bright-star--spike::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
}

.bright-star--spike::before {
  top: 50%;
  left: 50%;
  width: 26px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.bright-star--spike::after {
  top: 50%;
  left: 50%;
  width: 1px;
  height: 26px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.65), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .bright-star {
    animation: star-twinkle-b 6s ease-in-out infinite;
  }

  .bright-star:nth-of-type(2) { animation-duration: 7.5s; animation-delay: -2s; }
  .bright-star:nth-of-type(3) { animation-duration: 5.2s; animation-delay: -1s; }
  .bright-star:nth-of-type(4) { animation-duration: 8s; animation-delay: -4s; }
  .bright-star:nth-of-type(5) { animation-duration: 6.6s; animation-delay: -3s; }
  .bright-star:nth-of-type(6) { animation-duration: 7s; animation-delay: -5s; }
}

@media (prefers-reduced-motion: no-preference) {
  .cloud-layer--1 {
    animation: cloud-drift-1 85s ease-in-out infinite alternate;
  }

  .cloud-layer--2 {
    animation: cloud-drift-2 112s ease-in-out infinite alternate;
  }
}

@keyframes cloud-drift-1 {
  0% { transform: rotate(-7deg) translate(-2.5%, 0%); }
  100% { transform: rotate(-7deg) translate(2.5%, -1.6%); }
}

@keyframes cloud-drift-2 {
  0% { transform: rotate(5deg) scale(1.12) translate(2.2%, -1.3%); }
  100% { transform: rotate(5deg) scale(1.12) translate(-3%, 1.3%); }
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- small screens polish ---------- */

@media (max-width: 360px) {
  :root {
    --gutter: 1.15rem;
  }

  .link-card {
    padding: 0.95rem 1rem;
  }
}

/* ---------- focus baseline ---------- */

a:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}
