:root {
  color-scheme: dark;
  --ink: #2c1a22;
  --paper: #ffffff;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.92);
  --focus: #ffffff;
  --glass: rgba(18, 8, 14, 0.46);
  --glass-line: rgba(255, 255, 255, 0.22);
  --shadow: 0 18px 40px rgba(12, 0, 10, 0.32);
  --column: 32rem;
  --font: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --msg-color: #f3dcdc;
}

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

html {
  background: #000;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.45;
  background: #000;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus {
  outline: none;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.marfa {
  position: absolute;
  z-index: 0;
  inset: -42%;
  pointer-events: none;
  animation: marfa-spin 22s linear infinite;
}

.marfa-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  will-change: transform;
}

.marfa-violet {
  width: 72%;
  height: 72%;
  left: -6%;
  top: -8%;
  background: radial-gradient(circle, #a020b0 0%, rgba(160, 32, 176, 0.9) 50%, transparent 74%);
  animation: drift-violet 20s ease-in-out infinite;
}

.marfa-magenta {
  width: 68%;
  height: 68%;
  right: -8%;
  top: 6%;
  background: radial-gradient(circle, #b84a8a 0%, rgba(184, 74, 138, 0.88) 48%, transparent 74%);
  animation: drift-magenta 18s ease-in-out infinite;
}

.marfa-amber {
  width: 62%;
  height: 62%;
  left: 22%;
  bottom: -12%;
  background: radial-gradient(circle, #c8902e 0%, rgba(200, 144, 46, 0.86) 46%, transparent 72%);
  animation: drift-amber 24s ease-in-out infinite;
}

.marfa-terra {
  width: 58%;
  height: 58%;
  left: -10%;
  bottom: -6%;
  background: radial-gradient(circle, #b07060 0%, rgba(176, 112, 96, 0.9) 48%, transparent 74%);
  animation: drift-terra 16s ease-in-out infinite;
}

.marfa-beige {
  width: 42%;
  height: 42%;
  right: 0;
  bottom: 4%;
  background: radial-gradient(circle, #c8b0a0 0%, rgba(200, 176, 160, 0.8) 44%, transparent 72%);
  animation: drift-beige 21s ease-in-out infinite;
}

@keyframes marfa-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes drift-violet {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 8%) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes drift-magenta {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12%, 10%) scale(1.12); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes drift-amber {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, -12%) scale(1.06); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes drift-terra {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14%, -8%) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes drift-beige {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10%, -14%) scale(1.14); }
  100% { transform: translate(0, 0) scale(1); }
}

.skip-links {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skip-link {
  position: absolute;
  left: 0;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  position: static;
  transform: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, var(--column));
  margin: 0 auto;
  padding: clamp(3.25rem, 10vh, 5.75rem) 0 calc(2.75rem + env(safe-area-inset-bottom));
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1 {
  margin: 0;
  max-width: 100%;
  color: #fff;
  font-family: Montserrat, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.125rem, 8.7vw, 2.5rem);
  font-weight: 600;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  animation: profile-in 1.2s ease both;
}

.intro {
  align-self: flex-start;
  width: 100%;
  margin: 1.6rem 0 0;
  color: var(--msg-color);
  font-family: Montserrat, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.9;
  text-align: left;
  text-transform: none;
}

.intro p {
  margin: 0;
  padding: 0;
  animation: profile-in 1.2s ease both;
}

.intro p:first-child {
  text-wrap: balance;
  animation-delay: 0.35s;
}

.intro p + p {
  margin-top: 1.15em;
}

.intro p:nth-child(2) {
  animation-delay: 0.7s;
}

.intro p:last-child {
  margin-top: 2em;
  color: color-mix(in srgb, var(--msg-color) 75%, transparent);
  animation-delay: 1.05s;
}

@media (max-width: 520px) {
  .intro {
    width: calc(100vw - 0.5rem);
    margin-left: calc(0.25rem - (100vw - 100%) / 2);
    font-size: 1rem;
  }
}

@media (max-width: 389px) {
  .intro {
    font-size: 0.9375rem;
  }
}

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

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes profile-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.feed {
  margin-top: 2.5rem;
}

@media (max-width: 700px) {
  .feed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
  }
}

.card + .card {
  margin-top: 8px;
}

.card-media {
  position: relative;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
}

.card-media img,
.card-media video,
.card-media iframe {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: transparent;
}

.card-media.is-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  cursor: pointer;
}

.video-slot {
  display: block;
  width: 100%;
  background: transparent;
}

video::-webkit-media-controls,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}

.zoom {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
}

.zoom img {
  width: 100%;
  height: auto;
}

.poster,
.marfa-panel {
  position: relative;
  overflow: hidden;
  background: #140810;
}

.poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.15rem;
  color: #fff;
}

.marfa-panel {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
}

.chip {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.kind {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.play-btn {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.play-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(12, 0, 10, 0.28);
}

.play-btn:hover .play-pill,
.play-btn:focus-visible .play-pill {
  transform: translateY(-1px);
}

.sound,
.sound:hover,
.sound:focus,
.sound:focus-visible,
.sound:active {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.8);
  background-color: rgba(10, 10, 12, 0.8);
  background-image: none;
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.sound svg {
  display: block;
}

.sound .waves {
  display: none;
}

.sound.is-on .slash {
  display: none;
}

.sound.is-on .waves {
  display: block;
}

.round-btn,
.round-btn:hover,
.round-btn:focus,
.round-btn:focus-visible,
.round-btn:active {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.8);
  background-color: rgba(10, 10, 12, 0.8);
  background-image: none;
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.round-btn svg {
  display: block;
}

.speaker-btn .waves,
.viewer .icon-play {
  display: none;
}

.speaker-btn.is-on .slash {
  display: none;
}

.speaker-btn.is-on .waves {
  display: block;
}

.viewer.is-paused .icon-pause {
  display: none;
}

.viewer.is-paused .icon-play {
  display: block;
}

.viewer {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #000;
  color: #fff;
  overscroll-behavior: none;
  touch-action: none;
}

.viewer-stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #000;
  touch-action: none;
}

.viewer-reel {
  position: absolute;
  inset: 0;
  touch-action: none;
}

.viewer-pane {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #000;
  overflow: hidden;
}

.viewer-stage video {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
  cursor: pointer;
}

@media (max-width: 700px) and (orientation: portrait) {
  .viewer-pane {
    padding: 0;
  }

  .viewer-stage video.viewer-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
  }

  .viewer-stage video.viewer-wide {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: 100%;
    object-fit: contain;
    justify-self: stretch;
  }
}

.viewer-back,
.viewer-back:hover,
.viewer-back:focus,
.viewer-back:focus-visible,
.viewer-back:active {
  position: absolute;
  z-index: 3;
  top: calc(0.75rem + env(safe-area-inset-top));
  left: calc(0.75rem + env(safe-area-inset-left));
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

.viewer-chrome {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  transition: opacity 0.2s ease;
}

.viewer.is-chrome .viewer-chrome,
.viewer.is-paused .viewer-chrome {
  opacity: 1;
}

.viewer-back {
  pointer-events: none;
}

.viewer.is-chrome .viewer-back,
.viewer.is-paused .viewer-back {
  pointer-events: auto;
}

.viewer-bottom {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background: #000;
  background-image: none;
  opacity: 1;
  pointer-events: auto;
}

.viewer-progress {
  display: flex;
  align-items: flex-start;
  height: 0.85rem;
  touch-action: none;
  cursor: pointer;
}

.viewer-progress-track {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.viewer-progress-buffer,
.viewer-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(255, 255, 255, 0.45);
}

.viewer-progress-fill {
  background: #fff;
}

.viewer.is-waiting .viewer-progress-track {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.15), #fff, rgba(255, 255, 255, 0.15));
  background-size: 30% 100%;
  background-repeat: no-repeat;
  animation: viewer-load 1.1s linear infinite;
}

@keyframes viewer-load {
  from { background-position: -40% 0; }
  to { background-position: 140% 0; }
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 0.85rem 0.55rem;
}

.viewer-bar-group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.viewer-time {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

body.viewer-open {
  overflow: hidden;
  width: 100%;
}

.media-note {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  text-align: center;
  z-index: 2;
}

.caption {
  position: relative;
  z-index: 1;
  margin: -1.4rem 0.8rem 0;
  padding: 0.9rem 1rem;
  border-radius: 1.15rem;
  background: rgba(10, 10, 10, 0.86);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.add-link {
  display: block;
  padding: 0.5rem;
  border-radius: 1.8rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 48px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(160, 32, 176, 0.2);
}

.add-link:hover,
.add-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
}

.plus {
  position: relative;
  z-index: 1;
  font-size: 6rem;
  font-weight: 200;
  line-height: 0.8;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.add-note {
  margin: 0.8rem 0.4rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}

.status {
  margin: 0.4rem 0 1.3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

#lightbox[open] {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  overflow: hidden;
}

#lightbox::backdrop {
  background: #000;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: calc(0.75rem + env(safe-area-inset-top));
  right: calc(0.75rem + env(safe-area-inset-right));
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-figure {
  position: absolute;
  z-index: 1;
  top: calc(3.25rem + env(safe-area-inset-top));
  right: calc(1.25rem + env(safe-area-inset-right));
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  left: calc(1.25rem + env(safe-area-inset-left));
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.lightbox-figure img {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}

#lightbox-caption {
  position: absolute;
  z-index: 2;
  left: 1.25rem;
  right: 1.25rem;
  bottom: calc(0.4rem + env(safe-area-inset-bottom));
  margin: 0;
  max-width: none;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-wrap: balance;
}

@media (forced-colors: active) {
  .card-media,
  .caption,
  .add-link {
    border: 1px solid CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marfa,
  .marfa-blob,
  .viewer-chrome,
  .viewer-reel,
  .viewer-progress-track {
    animation: none;
    transition: none;
  }

  .profile h1,
  .intro p {
    animation-name: profile-fade;
    animation-duration: 1.2s;
    animation-timing-function: ease;
    animation-fill-mode: both;
    transform: none;
  }

  .play-btn:hover .play-pill,
  .play-btn:focus-visible .play-pill {
    transform: none;
  }
}
