*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: inherit;
}

html {
  -webkit-text-size-adjust: 100%;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  background: #000;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Video background + dark overlay (bg.jpg = poster + reduced-motion fallback) */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000 url("/bg.jpg") center / cover no-repeat;
}

.backdrop__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.backdrop__video.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .backdrop__video {
    display: none;
  }
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.45) 45%,
      rgba(0, 0, 0, 0.65) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.25) 50%,
      rgba(0, 0, 0, 0.4) 100%
    );
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100dvh;
  max-width: min(42rem, 92%);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3rem) 1.5rem 2rem;
}

.intro {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.avatar {
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.intro-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.intro-copy .tagline {
  margin: 0;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.72);
}

.x-posts {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.x-posts h2 {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.x-posts h2 a {
  color: rgba(255, 255, 255, 0.5);
}

.x-posts h2 a:hover,
.x-posts h2 a:focus-visible {
  color: #fff;
  text-decoration: none;
}

.x-posts__note {
  margin: -0.75rem 0 1.25rem;
  max-width: 42ch;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.38);
}

.snippets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.snippets li + li {
  margin-top: 1.5rem;
}

.snippets time {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.snippet__text {
  display: block;
  max-width: 52ch;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}

.snippet__text:hover,
.snippet__text:focus-visible {
  color: #fff;
}

.snippet__via {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
}

.snippet__via a {
  color: rgba(255, 255, 255, 0.55);
}

.snippet__via a:hover,
.snippet__via a:focus-visible {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.snippet--repost .snippet__text {
  color: rgba(255, 255, 255, 0.75);
}

.snippet__media {
  display: grid;
  gap: 0.5rem;
  max-width: min(100%, 22rem);
  margin-top: 0.65rem;
}

.snippet__media--many {
  grid-template-columns: repeat(2, 1fr);
}

.snippet__photo {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 0;
}

.snippet__photo:hover,
.snippet__photo:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
}

.snippet__photo img,
.snippet__photo video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.18);
}

.snippet__photo--preview img {
  background: #fff;
}

.nav--dots ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.nav--dots li {
  display: flex;
  align-items: center;
}

.nav--dots li:not(:last-child)::after {
  content: "·";
  margin: 0 0.65rem;
  color: rgba(255, 255, 255, 0.35);
}

a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

*:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 420px) {
  .intro-copy h1 {
    font-size: 1.5rem;
  }

  .avatar {
    width: 4.5rem;
    height: 4.5rem;
  }
}

