:root {
  color-scheme: dark;
  --black: #000;
  --panel: #060606;
  --panel-soft: #0b0b0c;
  --white: #f5f5f2;
  --silver: #b8b8b6;
  --silver-bright: #f4f4f1;
  --silver-dark: #585856;
  --accent-rgb: 184, 184, 182;
  --muted: #969696;
  --line: rgba(235, 235, 231, 0.38);
  --card-glow: rgba(155, 158, 162, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 2%, rgba(190, 193, 197, 0.12), transparent 23rem),
    radial-gradient(circle at 50% 58%, rgba(90, 93, 98, 0.07), transparent 31rem);
  content: "";
}

.intro-screen {
  display: grid;
  position: fixed;
  z-index: 100;
  inset: 0;
  isolation: isolate;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.intro-screen::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: #000;
  content: "";
}

.intro-halo {
  position: absolute;
  width: min(72vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 222, 226, 0.16), rgba(102, 105, 111, 0.07) 38%, transparent 67%);
  filter: blur(20px);
  opacity: 0;
}

.intro-logo {
  display: block;
  position: relative;
  width: min(68vw, 470px);
  height: auto;
  border-radius: 50%;
  background: #000;
  backface-visibility: hidden;
  clip-path: circle(49.5% at 50% 50%);
  opacity: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  --landing-x: 0px;
  --landing-y: 0px;
  --landing-scale: 0.7;
}

body.intro-ready .intro-screen {
  animation: intro-screen-finish 2.2s step-end forwards;
}

body.intro-ready .intro-screen::before {
  animation: intro-curtain-exit 2.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

body.intro-ready .intro-halo {
  animation: intro-halo-pulse 1.92s ease-out forwards;
}

body.intro-ready .intro-logo {
  animation: intro-logo-land 2.05s cubic-bezier(0.22, 0.72, 0.16, 1) forwards;
}

body.intro-ready .page {
  animation: page-arrival 650ms ease 1.45s forwards;
}

body.intro-skip .intro-screen {
  display: none;
}

body.intro-skip .page {
  opacity: 1;
}

.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-cloud {
  position: absolute;
  width: min(72vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 169, 175, 0.13), rgba(82, 85, 91, 0.045) 42%, transparent 69%);
  filter: blur(42px);
  will-change: transform;
}

.cloud-one {
  top: -30%;
  left: -21%;
  animation: ambient-drift-one 20s ease-in-out infinite alternate;
}

.cloud-two {
  right: -27%;
  bottom: -24%;
  animation: ambient-drift-two 25s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 50%;
  padding: 10px 14px;
  border: 1px solid var(--silver-bright);
  color: #000;
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transform: translate(-50%, -150%);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.utility-nav {
  position: absolute;
  z-index: 10;
  top: clamp(17px, 3vw, 28px);
  left: clamp(17px, 3vw, 34px);
}

.libr8-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 0;
  color: #737373;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.libr8-link:hover,
.libr8-link:focus-visible {
  color: var(--white);
}

.page {
  width: min(100% - 32px, 940px);
  margin: 0 auto;
  opacity: 0;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: clamp(66px, 8vw, 88px) 0 clamp(30px, 5vw, 44px);
  text-align: center;
}

.logo-stage {
  display: grid;
  position: relative;
  width: clamp(230px, 33vw, 320px);
  place-items: center;
  margin: 0 auto 20px;
}

.logo-stage::before {
  position: absolute;
  z-index: -2;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 198, 203, 0.14), rgba(103, 106, 112, 0.055) 48%, transparent 70%);
  filter: blur(15px);
  content: "";
  animation: logo-breathe 7.2s ease-in-out infinite;
}

.logo-orbit {
  position: absolute;
  z-index: -1;
  inset: 7%;
  border: 1px solid rgba(231, 232, 234, 0.14);
  border-right-color: rgba(255, 255, 255, 0.54);
  border-bottom-color: rgba(116, 119, 124, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 16px rgba(205, 208, 213, 0.12),
    inset 0 0 15px rgba(186, 189, 194, 0.06);
  animation: orbit-turn 14s linear infinite;
}

.channel-logo {
  display: block;
  width: 100%;
  max-height: none;
  object-fit: contain;
  margin: 0;
  border-radius: 50%;
  background: #000;
  backface-visibility: hidden;
  clip-path: circle(49.5% at 50% 50%);
}

.channel-logo[hidden] {
  display: none;
}

.chat-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--white);
  background:
    linear-gradient(#050505, #050505) padding-box,
    linear-gradient(135deg, #ffffff 0%, #777 48%, #eeeeeb 100%) border-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(180, 183, 188, 0.16);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.chat-link:hover,
.chat-link:focus-visible {
  color: #000;
  background:
    linear-gradient(#f2f2ef, #c7c7c4) padding-box,
    linear-gradient(135deg, #ffffff, #8c8c8a, #ffffff) border-box;
  box-shadow: 0 0 26px rgba(205, 208, 213, 0.34);
}

.channel-link {
  margin-top: 13px;
  color: #6f6f6f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 180ms ease;
}

.channel-link:hover,
.channel-link:focus-visible {
  color: var(--silver-bright);
}

.archive {
  padding: 0 0 48px;
  scroll-margin-top: 30px;
}

.archive-heading {
  margin-bottom: 18px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #777;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.31em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 66px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(210, 213, 217, 0.18);
}

.search {
  position: relative;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(rgba(5, 5, 5, 0.97), rgba(5, 5, 5, 0.97)) padding-box,
    linear-gradient(135deg, #f4f4f1, #5c5c5c 52%, #d7d7d4) border-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.045),
    0 0 24px rgba(135, 138, 143, 0.16);
}

.search label {
  display: block;
  margin: 0 0 11px;
  color: #c9c9c6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  min-height: 52px;
  padding: 13px 100px 13px 15px;
  border: 1px solid #444;
  border-radius: 7px;
  outline: none;
  color: var(--white);
  background: #0b0b0c;
  font-size: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search input::placeholder {
  color: #666;
}

.search input:focus {
  border-color: #d8d8d5;
  box-shadow: 0 0 0 3px rgba(205, 205, 201, 0.1);
}

.search button {
  position: absolute;
  top: 58px;
  right: clamp(28px, 4vw, 36px);
  padding: 5px;
  border: 0;
  color: #aaa;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

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

#search-status {
  min-height: 16px;
  margin: 11px 0 0;
  color: #727272;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.feed {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  margin-top: clamp(20px, 3vw, 28px);
}

.post {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(8px, 1.7vw, 13px);
  border: 1px solid transparent;
  border-radius: 13px;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(135deg, #ffffff 0%, #777 36%, #3f3f3f 58%, #eeeeeb 100%) border-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.055),
    0 0 26px var(--card-glow),
    0 18px 44px rgba(0, 0, 0, 0.78);
}

.post::before {
  position: absolute;
  z-index: -1;
  inset: 8% 5% -8%;
  border-radius: 18px;
  background: rgba(137, 140, 145, 0.16);
  filter: blur(24px);
  content: "";
}

.post iframe {
  display: block;
  max-width: 100% !important;
  margin: 0 auto !important;
  border-radius: 7px;
}

.post-link {
  display: block;
  margin-top: 10px;
  padding: 11px 5px 2px;
  border-top: 1px solid rgba(220, 220, 217, 0.22);
  color: #aaa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

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

.preview-post {
  display: grid;
  min-height: 210px;
  place-content: center;
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
}

.preview-post p {
  margin: 0 0 12px;
  color: #777;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

.preview-post h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 400;
  letter-spacing: 0.025em;
}

.preview-post span {
  max-width: 570px;
  margin: 15px auto 0;
  color: #858585;
  font-size: 13px;
  line-height: 1.55;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid #9c9c9a;
  border-radius: 999px;
  color: #d9d9d6;
  background: #050505;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 18px rgba(190, 193, 198, 0.2);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

footer {
  padding: 32px 0 42px;
  border-top: 1px solid rgba(225, 225, 221, 0.16);
  color: #646464;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-align: center;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: #777;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.powered-by:hover,
.powered-by:focus-visible {
  color: #ccc;
}

.powered-by img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  filter: grayscale(1);
  opacity: 0.72;
}

@media (max-width: 600px) {
  .page {
    width: min(100% - 22px, 940px);
  }

  .hero {
    padding: 70px 0 32px;
  }

  .logo-stage {
    width: min(74vw, 280px);
    margin-bottom: 17px;
  }

  .search input {
    padding-right: 15px;
  }

  .search button {
    position: static;
    margin-top: 9px;
  }

  .post {
    border-radius: 10px;
  }
}

@keyframes intro-logo-land {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.62) rotate(-120deg);
  }

  20% {
    opacity: 1;
  }

  64% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(315deg);
  }

  100% {
    opacity: 1;
    transform:
      translate3d(var(--landing-x), var(--landing-y), 0)
      scale(var(--landing-scale))
      rotate(360deg);
  }
}

@keyframes intro-halo-pulse {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  56% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@keyframes intro-curtain-exit {
  0%,
  61% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes intro-screen-finish {
  0%,
  99% {
    visibility: visible;
  }

  100% {
    visibility: hidden;
  }
}

@keyframes page-arrival {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-drift-one {
  from {
    transform: translate3d(-4%, -3%, 0) scale(0.9);
  }

  to {
    transform: translate3d(26%, 20%, 0) scale(1.16);
  }
}

@keyframes ambient-drift-two {
  from {
    transform: translate3d(7%, 8%, 0) scale(1.08);
  }

  to {
    transform: translate3d(-27%, -21%, 0) scale(0.91);
  }
}

@keyframes logo-breathe {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.985);
  }

  50% {
    opacity: 0.58;
    transform: scale(1.02);
  }
}

@keyframes orbit-turn {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .intro-screen {
    display: none;
  }

  .page {
    opacity: 1;
  }
}
