/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

:root {
  --font: 'Roboto Condensed', sans-serif;
  --fs: 20px;
  --lh: 1.7;
}

body {
  font-family: var(--font);
  font-size: var(--fs);
  line-height: var(--lh);
  background: #ffffff;
  color: #000000;
  -webkit-font-smoothing: antialiased;
}

/* Nav — fixed top and bottom */
.nav {
  position: fixed;
  left: 0;
  width: 100vw;
  z-index: 100;
  display: flex;
  overflow: hidden;
}

.nav--top {
  top: 0;
}

.nav--bottom {
  bottom: 0;
}

.nav > * {
  padding: 0;
  overflow: hidden;
  transition: flex 0.6s ease, color 0.3s, background-color 0.3s;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__letter {
  transition: letter-spacing 0.6s ease;
  display: inline-block;
}

.nav__filter {
  font-size: var(--fs);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
  position: relative;
}

.nav__filter.active {
  font-weight: 700;
}

.nav__sound {
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
}

.nav__sound svg {
  display: block;
}

.nav__sound.off .sound-waves {
  display: none;
}


.nav__filter.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

/* Feed */
.feed {
  display: flex;
  flex-direction: column;
}

/* Post section — each post gets min 100vh */
.post-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
  position: relative;
}

.post-section .post,
.post-section .post-inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Fullscreen variant */
.post-section--full {
  min-height: auto;
  padding: 0;
  position: relative;
}

.post-section--full .post,
.post-section--full .post-inner {
  max-width: none;
}

.post-section--full .post-foto__image {
  width: 100%;
  height: auto;
  display: block;
}

.post-section--full .post-video__embed {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.post-section--full > .post-credits {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--section-bg, #ffffff);
  color: var(--section-text, #000000);
  z-index: 1;
}


.post-section--full .post-foto__credits {
  display: none;
}

/* Post types */
.post {
  transition: opacity 0.3s ease;
}

.post.hidden {
  display: none;
}

.post-section:has(.post.hidden) {
  display: none;
}

/* Video post */
.post-video {
  position: relative;
}

.post-video__label {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--section-bg, #ffffff);
  color: var(--section-text, #000000);
  z-index: 1;
  pointer-events: none;
  padding: 8px 12px;
}

.post-video__embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: none;
  display: block;
}

.post-video__title {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 12px;
}

.post-video__caption {
  margin-top: 4px;
}

/* Music post */
.post-disco {
  display: flex;
  gap: 32px;
}

.post-disco__cover {
  width: 260px;
  height: 260px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

.post-disco__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.post-disco__title {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.post-disco__tracks {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-disco__track {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
}

.post-disco__track-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
  width: 14px;
  flex-shrink: 0;
  font-family: var(--font);
  font-size: var(--fs);
}

.post-disco__track-name {
  color: inherit;
}

.post-disco__track.active .post-disco__track-name {
  font-weight: 700;
}

/* Text post */
.post-texto__title {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.post-texto__body {
  margin-top: 16px;
}

.post-texto__body p {
  margin-bottom: 1em;
}

.post-texto__body p:last-child {
  margin-bottom: 0;
}

/* Photo post */
.post-foto__image {
  width: 100%;
  display: block;
}

.post-foto__gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-foto__credits {
  margin-top: 8px;
}

/* Bio */
.post-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-bio__title {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.post-bio__photo {
  width: 100%;
  display: block;
}

.post-bio__credits {
  margin-top: 8px;
}

.post-bio__body p {
  margin-bottom: 1em;
}

.post-bio__body p:last-child {
  margin-bottom: 0;
}

.nav__code {
  color: inherit;
  text-decoration: none;
  font-family: monospace;
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --fs: 15px;
  }

  .nav__filter {
    font-size: 12px;
  }

  .post-section {
    padding: 48px 20px;
  }

  .post-section--full {
    padding: 0;
  }

  .post-disco {
    flex-direction: column;
    gap: 16px;
  }

  .post-disco__cover {
    width: 200px;
    height: 200px;
  }

  .footer {
    padding: 20px;
    flex-direction: column;
    gap: 8px;
  }
}
