
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #111;
  --surface: #111;
  --fg: #ddd;
  --dim: #9a9a9a;
  --faint: #262626;
  --link: #aaa;
  --link-hover: #fff;
  --mono: 'JetBrains Mono', 'SFMono-Regular', 'Consolas', monospace;
}

::selection {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


header,
.hero,
#contact,
footer {
  max-width: var(--site-w, 900px);
  margin: 0 auto;
  padding: 0 24px;
}

main > hr {
  padding: 0 24px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 40px;
  padding-bottom: 32px;
}

.logo {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: #fff;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  font-size: 0.78rem;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--fg);
}


.hero {
  margin-bottom: 0;
}

.hero-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pfp {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--faint);
  object-fit: cover;
}

h1 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tagline {
  font-size: 0.78rem;
  color: var(--dim);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.bio {
  font-size: 0.95rem;
  color: var(--link);
  line-height: 1.8;
  max-width: none;
}

.bio a {
  color: inherit;
  text-decoration: underline dotted #333;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.bio a:hover {
  text-decoration-color: var(--dim);
}

.links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.links a {
  font-size: 0.76rem;
  color: var(--dim);
  text-decoration: none;
  text-decoration: underline dotted #333;
  text-underline-offset: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.links a:hover {
  color: var(--fg);
  text-decoration-color: var(--dim);
}


hr {
  border: none;
  border-top: 1px solid var(--faint);
  margin: 32px 0;
  max-width: var(--site-w, 900px);
  margin-left: auto;
  margin-right: auto;
}


.filter-bar {
  max-width: var(--site-w, 900px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s;
}

.filter-btn:hover {
  color: var(--fg);
}

.filter-btn.active {
  color: var(--fg);
}


.masonry {
  position: relative;
  display: flex;
  gap: 20px;
  max-width: var(--site-w, 900px);
  margin: 0 auto;
  padding: 0 24px;
}

.masonry-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.masonry-col > [aria-hidden] {
  flex-shrink: 0;
}

.masonry-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.masonry-line .section-label {
  fill: #555;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.masonry-line path {
  fill: none;
  stroke: #444;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 4;
}


.entry {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.entry::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    75deg,
    transparent 30%,
    rgba(255, 255, 255, 0.02) 45%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.02) 55%,
    transparent 70%
  );
  translate: -100% 0;
  pointer-events: none;
}

.entry:hover {
  border-color: #363636;
  transform: translateY(-1px);
}

.entry:hover::after {
  animation: glint 0.6s ease 0.5s;
}

@keyframes glint {
  from { translate: -100% 0; }
  to { translate: 100% 0; }
}

.meta {
  font-size: 0.7rem;
  color: #555;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

h2 {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--dim);
  text-transform: lowercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 4px;
}

h3 a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}

h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.entry:has(h3 a) {
  cursor: pointer;
}

h3 a:hover {
  color: #6fa8ff;
}

.entry p {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--link);
  line-height: 1.8;
}

strong {
  color: #f0f0f0;
  font-weight: 500;
}

.entry ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.7;
}

.entry ul li::marker {
  color: #444;
}

.carousel {
  margin: 10px 0;
  border: 1px solid var(--faint);
  overflow: hidden;
  user-select: none;
  z-index: 1;
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  padding: 0;
  z-index: 2;
}

.carousel-nav:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
}

.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 6px;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: background 0.2s;
}

.carousel-dots span.active {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-caption {
  font-size: 0.68rem;
  color: var(--dim);
  text-align: center;
  padding: 4px 10px;
  background: #141414;
  border-top: 1px solid var(--faint);
  letter-spacing: 0.02em;
  display: none;
}

.carousel-caption.visible {
  display: block;
}

.mini-player {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  padding: 6px 10px;
  border: 1px solid var(--faint);
  font-size: 0.68rem;
  color: var(--dim);
  position: relative;
  z-index: 1;
}

.mini-player-btn {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  width: 16px;
  text-align: center;
  transition: color 0.2s;
}

.mini-player-btn:hover {
  color: var(--fg);
}

.mini-player-label {
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.mini-player-bar {
  flex: 1;
  height: 2px;
  background: var(--faint);
  position: relative;
}

.mini-player-progress {
  height: 100%;
  width: 0%;
  background: var(--dim);
  transition: width 0.1s linear;
}

.entry-img {
  width: calc(100% + 40px);
  margin: 10px -20px;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.link-preview {
  display: block;
  margin: 10px 0;
  border: 1px solid var(--faint);
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s;
  position: relative;
  z-index: 1;
}

.link-preview:hover {
  border-color: #363636;
}

.link-preview-media {
  position: relative;
}

.link-preview img,
.link-preview video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.link-preview-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  background: none;
  pointer-events: none;
}

.link-preview-logo .logo-academy {
  color: #3b82f6;
}

.link-preview-logo svg {
  width: 20px;
  height: 20px;
  margin: 0 4px;
  stroke: rgba(59, 130, 246, 0.7);
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.link-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: #141414;
}

.link-preview-domain {
  font-size: 0.65rem;
  color: #555;
  letter-spacing: 0.05em;
}

.link-preview-title {
  font-size: 0.75rem;
  color: var(--dim);
  font-weight: 400;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tags span {
  font-size: 0.68rem;
  color: var(--dim);
  padding: 2px 7px;
  border: 1px solid var(--faint);
  border-radius: 0;
  letter-spacing: 0.02em;
}


#contact {
  margin-top: 0;
}

#contact p {
  font-size: 0.85rem;
  color: var(--dim);
  margin-bottom: 12px;
}


footer {
  padding-top: 24px;
  padding-bottom: 48px;
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.03em;
}


@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  header {
    flex-direction: column;
    gap: 12px;
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .hero-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pfp {
    width: 48px;
    height: 48px;
  }

  hr {
    margin: 24px 0;
  }

  .masonry {
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
  }

  .masonry-line {
    display: none;
  }

  .entry {
    padding: 14px 16px;
  }
}


#gol {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

body > *:not(#gol) {
  position: relative;
  z-index: 1;
}


::-webkit-scrollbar {
  width: 4px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 0;
}
