@charset "UTF-8";

:root {
  --bg-main: #F0DCB4;
  --bg-paper: #fDCB464;
  --accent-pink: #ffb7c5;
  --accent-yellow: #FFFDBE;
  --accent-green: #BAF99D;
  --text-main: #523F32;
  --grid-line: rgba(0, 0, 0, .06);
}

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

body {
  margin: 0;
  padding: 0;
  font-family: "Potta One", system-ui, "Klee One", cursive, "Handlee", cursive;
  font-weight: 400;
  font-style: normal;
  color: var(--text-main);
  background-color: var(--bg-main);
}

*,
*::before,
*::after {
  cursor: url("fifi.img/footprint3.png") 16 16, auto !important;
}

a:hover,
button:hover,
[onclick]:hover {
  cursor: url("fifi.img/footprint2.png") 16 16, pointer !important;
}

.hero {
  position: relative;
  width: 100%;
  height: auto;

  overflow: hidden;
}

.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.logo img {
  width: 120px;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.logo img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.hero-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 48px 16px;
  color: #fff;
}

.hero-label {
  font-family: Handlee;
  font-size: 16px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 6px;
  opacity: 0.9;
}

.hero-title {
  font-family: Handlee;
  font-size: 30px;
  line-height: 1.8;
  font-weight: 200;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.hero-sub {
  font-family: Klee One;
  font-size: 20px;
  line-height: 1.9;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-overlay {
    padding: 40px 40px;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 80px;
  }

  .hero-sub {
    font-size: 23px;
  }

  .logo img {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 150px;
    height: auto;
  }
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--bg-main), #ffffff);
}

.page-grid {
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}

.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.profile-section {
  background: var(--bg-paper);
  border-radius: 24px;
  padding: 20px 16px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.profile-section::before {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-green);
  opacity: 0.5;
}

.profile-photo {
  align-self: center;
}

.profile-photo img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.profile-photo {
  animation: popIn .5s ease-out .05s both;
}

.profile-text {
  position: relative;
  z-index: 1;
  font-family: klee one;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  padding-top: 16px;

}

.profile-label {
  font-size: 26px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.profile-intro {
  font-size: 16px;
  line-height: 1.9;
  margin: 8px 0 0;
}

@media (min-width: 798px) {
  body {
    font-size: 110%;
  }

  .page-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 80px;
    box-sizing: border-box;
  }

  .profile-section {
    margin-top: 40px;
    font-size: 22px;
    line-height: 2.0;
    background: #f0f0f0;
    width: 1000px;
    box-sizing: border-box;
  }

  .profile-label {
    font-family: potta one;
    font-size: 40px;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    text-align: center;
  }

  .profile-name {
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: bold;
  }

  .profile-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
  }

  .profile-photo {
    flex: 0 0 400px;
  }

  .profile-content {
    flex: 1;
    min-width: 300px;
  }

  .profile-photo img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
  }

  .profile-text p {
    font-family: klee one;
    font-size: 26px;
    line-height: 2;
    margin-bottom: 12px;
  }

  .profile-text strong {
    display: inline-block;
  }

  .profile-intro {
    font-size: 20px;
  }
}

.episode {
  background: var(--bg-paper);
  border-radius: 24px;
  padding: 20px 16px 24px;
  margin-bottom: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .04);
  position: relative;
  overflow: hidden;
}

.episode::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-pink);
  opacity: 0.35;
}

.episode-title {
  font-size: 26px;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

.episode-text {
  font-family: klee one;
  font-size: 18px;
  line-height: 1.9;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.episode-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.photo-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  transform: translateZ(0);
}

.photo-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}

.photo-card figcaption {
  padding: 6px 10px 10px;
  font-size: 12px;
  line-height: 1.6;
}

.photo-card:nth-child(2) {
  transform: rotate(-1.5deg);
}

.photo-card:nth-child(3) {
  transform: rotate(1.5deg);
}

.photo-card.main {
  transform: rotate(0);
}

.dog-illustration {
  position: relative;
  margin-left: auto;
  padding-right: 20px;
  width: 200px;
  z-index: 10;
  animation: wag 2s infinite ease-in-out;
}

.dog-illustration img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes wag {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@media (min-width: 600px) {
  .episode-photos {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .photo-card.main {
    grid-column: span 2;

  }

  .episode-title {
    font-size: 50px;
    margin: 50px;
  }

  .episode-text {
    font-family: klee one;
    font-size: 26px;
    margin-bottom: 30px;
  }

  .photo-card.main figcaption {
    font-size: 26px;
  }

  .photo-card figcaption {
    font-size: 20px;
  }

  .dog-illustration {
    position: absolute;
    right: 20px;
    bottom: 150px;
    width: 250px;
    margin-left: 0;
    padding-right: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .photo-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.03);
  }
}

.gallery-section {
  margin-top: 40px;
  margin-bottom: 32px;
  padding: 20px 16px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.gallery-title {
  font-size: 26px;
  margin: 0 0 4px;
}

.gallery-grid .gallery-item:nth-last-child(1) {
  height: auto;
  padding-bottom: 56.25%;
  position: relative;

}

.gallery-text {
  font-family: klee one;
  font-size: 18px;
  margin: 0 0 16px;
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  height: 0;
  position: relative;
  padding-bottom: 100%;

}

.gallery-item img,
.gallery-item video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-item video {
  object-fit: cover;

}

.gallery-grid .gallery-item:last-child {
  grid-column: span 3;
  padding-bottom: 56.25%;
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid .gallery-item:last-child {
    grid-column: span 2;
    padding-bottom: 56.25%;
  }
}

.comment {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.comment-text {
  font-size: 18px;
  padding-top: 30px;
  line-height: 1.8;
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 798px) {
  .gallery-title {
    font-size: 50px;
    margin: 20px;
  }

  .gallery-text {
    font-size: 26px;
    margin: 20px;
    line-height: 1.8;
  }

  .comment-text {
    font-size: 26px;
    margin: 0 auto;
    display: block;
    text-align: center;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.main-content {
  min-height: calc(100vh - 150px);
}

.site-footer {
  background-color: #FFFDBE;
  width: 100%;
  padding: 30px;
  text-align: center;
  margin-top: 50px;
}

.footer-inner {
  margin: 0 auto;
  padding: 0 12px;
  text-align: center;
}

.footer-logo {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.footer-logo img {
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.footer-logo img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.contact-info p {
  font-size: 18px;
  margin: 5px 0;
  font-family: 'Klee One', sans-serif;
}

.copyright {
  font-family: klee one;
}

@media (min-width: 798px) {
  .footer-logo {
    width: 200px;
  }

  .site-footer {
    padding: 60px 0;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in {
  opacity: 1;
  transform: none;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes popIn {
  0% {
    transform: scale(0.92);
  }

  60% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }


}