/* INFINITY EGGS — Vladimir Nefedov */
/* Fixed 1024px layout (matching Readymag canvas) */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@400..800&display=swap');

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

:root {
  --font-main: 'Google Sans Flex', sans-serif;
  --color-bg: #ffffff;
  --color-text: #222222;
  --color-black: #000000;
  --page-padding: 16px;
}

html, body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 12px;
  line-height: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.6;
}

.nav-link:hover {
  opacity: 1;
}

/* Layout */
.page-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: var(--page-padding);
}

/* Navigation — fixed bottom bar */
.site-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 100;
  padding: 10px 0 15px;
}

.site-nav .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 20px;
}

.nav-ghost {
  font-size: 17px;
  font-weight: 400;
  font-variation-settings: 'wght' 600;
  line-height: 17px;
  text-transform: lowercase;
  color: transparent;
  pointer-events: none;
  user-select: none;
}

.nav-link {
  font-size: 17px;
  font-weight: 400;
  font-variation-settings: 'wght' 600;
  line-height: 17px;
  text-transform: lowercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-home .nav-link {
  padding-bottom: 85px;
}

.nav-link.active {
  text-decoration: none;
  padding-bottom: 85px;
  background: linear-gradient(to right, #000 0%, #000 100%) 0px 100% / 100% 85px no-repeat;
}

/* Breathing animation */
@keyframes breathe {
  0% { transform: scale(1); }
  100% { transform: scale(0.8); }
}

.breathing-circle {
  animation: breathe 1.8s ease-in-out alternate infinite;
}

/* Typography */
.text-body {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--color-text);
}

.text-h1 {
  font-size: 36px;
  font-weight: 400;
  font-variation-settings: 'wght' 820;
  line-height: 47px;
  color: var(--color-text);
}

.text-h2 {
  font-size: 10px;
  font-weight: 400;
  font-variation-settings: 'wght' 600;
  line-height: 10px;
  color: var(--color-text);
}

.text-caption {
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--color-black);
}

.text-episode-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-black);
}

/* Main content area */
.main-content {
  flex: 1;
  padding-bottom: 60px;
}

/* Home page */
.home-circle {
  width: 517px;
  height: 517px;
  background: var(--color-black);
  border-radius: 50%;
  margin: 113px auto 0;
}

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 40.43vw 1fr;
  column-gap: 20px;
  align-items: start;
  /* break out of page-wrapper max-width */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 20px;
  box-sizing: border-box;
}

.about-text {
  padding-top: 263px;
  text-align: left;
}

.about-poster {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin-top: 16px;
}

/* Rules page */
.rules-layout {
  display: grid;
  grid-template-columns: 1fr 29.69vw;
  column-gap: 10.55vw;
  align-items: start;
  /* break out of page-wrapper, align with footer */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 10.55vw 0 20px;
  box-sizing: border-box;
}

.rules-text {
  font-size: 1.17vw;
  line-height: 1.56vw;
}

.rules-text h3 {
  font-size: 1.17vw;
  font-weight: 700;
  line-height: 1.56vw;
  margin-bottom: 0;
}

.rules-text p {
  margin-bottom: 1.56vw;
}

.rules-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: 1.56vw;
}

/* Challenges page */
.challenges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.13vw 40px;
  /* break out, 20px from edges */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 20px;
  box-sizing: border-box;
}

.challenge-block {
  font-size: 1.17vw;
  line-height: 1.56vw;
}

.challenge-block h3 {
  font-size: 1.17vw;
  font-weight: 700;
  line-height: 1.56vw;
  margin-bottom: 0.78vw;
}

.challenge-block .solution-label {
  font-style: italic;
}

.challenges-motto {
  margin-top: 3.91vw;
  text-align: center;
  font-size: 1.37vw;
  line-height: 1.76vw;
  /* break out to match grid and footer width */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 20px;
  box-sizing: border-box;
}

/* Teaser page */
.teaser-wrapper {
  width: 73.05vw;
  padding-top: 1.56vw;
  /* break out and center on viewport */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.teaser-wrapper .video-container {
  position: relative;
  padding-bottom: 56.15%;
  height: 0;
  overflow: hidden;
}

.teaser-wrapper .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Episodes page */
.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  /* break out of page-wrapper, align with footer 20px edges */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 20px;
  box-sizing: border-box;
}

.episode-item {
  display: grid;
  grid-template-columns: 47.66vw 1fr;
  gap: 32px;
  align-items: start;
}

.episode-item img {
  width: 100%;
  height: auto;
  display: block;
}

.episode-info {
  padding-top: 0;
}

.episode-info .text-h1 {
  font-size: 4.22vw;
  line-height: 5.51vw;
  margin-bottom: 16px;
}

.episode-info .text-episode-desc {
  font-size: 1.17vw;
  line-height: 1.6vw;
}

/* Contact page */
.contact-content {
  width: 33vw;
  text-align: center;
}

.contact-content p {
  margin-bottom: 24px;
  font-size: 1.17vw;
  line-height: 1.56vw;
}

.contact-content a {
  text-decoration: underline;
}

/* Festivals page */
.festivals-content {
  text-align: center;
  padding-top: 3.52vw;
}

.festivals-link {
  font-size: 1.32vw;
  line-height: 1.32vw;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
}

.festivals-link-top {
  line-height: 11.4vw;
}

.festivals-link-bottom {
  line-height: 1.32vw;
}

.festivals-link a {
  text-decoration: underline;
}

.festivals-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.91vw;
  margin-top: 25px;
}

.festival-logo-1 {
  width: 15.66vw;
  height: auto;
}

.festival-logo-2 {
  width: 14.4vw;
  height: auto;
}

/* Author page */
.author-circle {
  width: 38px;
  height: 38px;
  background: var(--color-black);
  border-radius: 50%;
}
