@charset "UTF-8";

/* ========================================
   1. GHOST BACKGROUND
======================================== */

.tag-manager-frame {
  display: none;
  visibility: hidden;
}

.ghost-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ghost {
  position: absolute;
  display: block;
  opacity: 0.3;
  filter: blur(1px);
  pointer-events: none;
  will-change: transform;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
}

/* 개별 위치 및 애니메이션 */

.ghost:nth-child(1) {
  top: 5%;
  left: 10%;
  font-size: 35px;
  animation: ghost-1 2s ease-in-out infinite alternate;
}

.ghost:nth-child(2) {
  top: 20%;
  left: 75%;
  font-size: 25px;
  animation: ghost-2 3s ease-in-out infinite alternate;
}

.ghost:nth-child(3) {
  top: 40%;
  left: 20%;
  font-size: 20px;
  animation: ghost-3 2s ease-in-out infinite alternate;
}

.ghost:nth-child(4) {
  top: 60%;
  left: 85%;
  font-size: 45px;
  animation: ghost-4 3s ease-in-out infinite alternate;
}

.ghost:nth-child(5) {
  top: 75%;
  left: 45%;
  font-size: 22px;
  animation: ghost-5 2.8s ease-in-out infinite alternate;
}

.ghost:nth-child(6) {
  top: 90%;
  left: 90%;
  font-size: 18px;
  animation: ghost-6 2s ease-in-out infinite alternate;
}

.ghost:nth-child(7) {
  top: 30%;
  left: 45%;
  font-size: 28px;
  animation: ghost-7 2.2s ease-in-out infinite alternate;
}

.ghost:nth-child(8) {
  top: 10%;
  left: 55%;
  font-size: 22px;
  animation: ghost-8 1.6s ease-in-out infinite alternate;
}

.ghost:nth-child(9) {
  top: 55%;
  left: 5%;
  font-size: 30px;
  animation: ghost-9 3.8s ease-in-out infinite alternate;
}

.ghost:nth-child(10) {
  top: 80%;
  left: 70%;
  font-size: 24px;
  animation: ghost-10 2.5s ease-in-out infinite alternate;
}

.ghost:nth-child(11) {
  top: 35%;
  left: 90%;
  font-size: 19px;
  animation: ghost-11 1.5s ease-in-out infinite alternate;
}

.ghost:nth-child(12) {
  top: 65%;
  left: 35%;
  font-size: 32px;
  animation: ghost-12 2.8s ease-in-out infinite alternate;
}

/* 유령 움직임 */

@keyframes ghost-1 {
  to {
    transform: translate(25px, -35px) rotate(15deg);
  }
}

@keyframes ghost-2 {
  to {
    transform: translate(-30px, 25px) rotate(-20deg);
  }
}

@keyframes ghost-3 {
  to {
    transform: translate(20px, 30px) rotate(15deg);
  }
}

@keyframes ghost-4 {
  to {
    transform: translate(-25px, -35px) rotate(-15deg);
  }
}

@keyframes ghost-5 {
  to {
    transform: translate(35px, -20px) rotate(20deg);
  }
}

@keyframes ghost-6 {
  to {
    transform: translate(-25px, -30px) rotate(-15deg);
  }
}

@keyframes ghost-7 {
  to {
    transform: translate(20px, 35px) rotate(15deg);
  }
}

@keyframes ghost-8 {
  to {
    transform: translate(-25px, 30px) rotate(-20deg);
  }
}

@keyframes ghost-9 {
  to {
    transform: translate(30px, -25px) rotate(15deg);
  }
}

@keyframes ghost-10 {
  to {
    transform: translate(-30px, 20px) rotate(-15deg);
  }
}

@keyframes ghost-11 {
  to {
    transform: translate(20px, 25px) rotate(15deg);
  }
}

@keyframes ghost-12 {
  to {
    transform: translate(-20px, -30px) rotate(-15deg);
  }
}

/* ========================================
   2. HERO
======================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #111;
  background-color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  background-image: url("https://images.unsplash.com/photo-1791709342797-d065f0dc070d?q=80&w=627&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D");
  background-position: center bottom;
  background-size: cover;
  background-attachment: fixed;

  opacity: 0.2;
  filter: drop-shadow(2px 4px 26px green);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
}

.hero__eyebrow {
  margin-bottom: 36px;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.14em;
}

.hero__title {
  max-width: 900px;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.07em;
}

.hero__link {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;

  border-bottom: 1px solid #111;
  background-color: #333;
  color: #ccc;

  font-size: 12px;
  letter-spacing: 0.08em;

  transition:
    padding 0.25s ease,
    opacity 0.25s ease;
}

#visitor-counter {
  border: none;
  background-color: #739b73;
  color: #fff;
}

/* ========================================
   3. LATEST WORKS
======================================== */

.latest-works,
.month-diary,
.television {
  width: min(1400px, calc(100% - 80px));
}

/* 슬라이더 */

.work-slider,
.month-slider {
  position: relative;
  width: 100%;
  overflow: hidden;

  border: 1px solid #111;
  cursor: grab;

  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.work-slider:active {
  cursor: grabbing;
}

.month-slider,
.month-slider:active {
  cursor: default;
}

.month-diary__empty {
  display: flex;
  width: 100%;
  min-height: 180px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  background-color: #fff;
  text-align: center;
}

.month-diary__empty p {
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: 1.2rem;
}

.month-diary__empty span {
  color: #888;
  font-size: 0.9rem;
}

/* 작품 카드 */

.work-card,
.month-card {
  position: relative;
  min-width: 0;
  height: auto;
  box-sizing: border-box;

  border-right: 1px solid #111;
  background-color: #fff;
}

.work-card__link,
.month-card__link {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;

  height: 100%;
  min-height: 420px;
  padding: 30px;
  overflow: hidden;

  color: inherit;
  text-decoration: none;

  -webkit-user-drag: none;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.work-card__link:hover,
.month-card__link:hover {
  background-color: #111;
  color: #f7f6f2;
}

.work-card__background,
.month-card__background {
  position: absolute;
  z-index: -1;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0.15;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* 작품 정보 */

.work-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;

  font-size: 14px;
  letter-spacing: 0.02em;
}

.work-card__publication {
  min-width: 0;
}

.work-card__type {
  flex-shrink: 0;
  margin-left: auto;
  padding: 2px 10px;

  border-radius: 25px;
  background-color: #739b73;
  color: #fff;

  font-size: 12px;
  white-space: nowrap;
}

/* 작품 제목 */

.work-card__title,
.month-card__title {
  margin-top: auto;

  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(28px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.05em;

  overflow-wrap: anywhere;
}

/* 작품 요약 */

.work-card__excerpt,
.month-card__excerpt {
  display: -webkit-box;

  min-height: calc(1.6em * 2);
  margin-top: 25px;
  overflow: hidden;

  font-family: "Noto Serif KR", Georgia, serif;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.65;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.month-card__link {
  background-color: #333;
  color: #fff;
  aspect-ratio: 2/3;
}

.month-card__background {
  opacity: 1;
}

.month-card__title {
  color: rgb(255 255 255 / 70%);
}

.month-card__excerpt {
  padding: 0.5rem;
  background-color: rgb(51 51 51 / 30%);
  color: #fff;
  font-family:
    "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  opacity: 1;
}

/* 슬라이더 버튼 */

.work-slider__btn,
.month-slider__btn,
.memory-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 5;

  display: grid;
  place-items: center;
  padding: 0;

  transform: translateY(-50%);

  border: 1px solid #ddd;
  border-radius: 50%;

  background-color: #fff;
  color: #333;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.work-slider__btn,
.month-slider__btn {
  width: 50px;
  height: 50px;
  font-size: 20px;
}

.work-slider__btn:hover:not(:disabled),
.month-slider__btn:hover:not(:disabled),
.memory-slider__btn:hover:not(:disabled) {
  border-color: #739b73;
  background-color: #739b73;
  color: #fff;
}

.work-slider__btn:disabled,
.month-slider__btn:disabled,
.memory-slider__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.work-slider__btn:focus-visible,
.month-slider__btn:focus-visible,
.memory-slider__btn:focus-visible {
  outline: 2px solid #739b73;
  outline-offset: 3px;
}

.work-slider__btn--prev,
.month-slider__btn--prev {
  left: 10px;
}

.work-slider__btn--next,
.month-slider__btn--next {
  right: 10px;
}

/* ========================================
   4. ABOUT
======================================== */

.about {
  position: relative;

  border-top: 1px solid #111;
  border-bottom: 1px solid #111;

  background-color: #f0ffe9;
}

.about_bg {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;

  background-image: url("https://images.unsplash.com/photo-1578059456805-cd4809a05d70?q=80&w=687&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  opacity: 0.25;
}

.about__inner {
  position: relative;
  z-index: 99;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 5rem;

  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
  padding: 1.5rem 0;
}

.about__heading {
  max-width: 600px;
}

.about__heading .tell {
  margin-top: 0.5rem;
  text-align: right;
}

.about__heading .tell p {
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.about__heading h2 {
  font-family: serif;
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.08em;
}

.about__content {
  display: flex;
  justify-content: center;
  align-items: center;

  max-width: 480px;
  height: 100%;
  margin: 1rem;
  padding: 1.5rem;

  border-radius: 0.5rem;
  background-color: #ffffff6b;

  font-family: "Noto Serif KR", serif;
  font-size: 18px;
  line-height: 2;
}

.about__content p {
  font-size: 1rem;
  line-height: 1.5rem;
}

.about__content a {
  display: inline-block;
  margin-top: 50px;
  padding-bottom: 5px;

  border-bottom: 1px solid #111;

  font-family: "Pretendard", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.about__content p a {
  margin: 0;
  padding: 0;
  border: 0;

  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

/* ========================================
   5. INTERVIEW
======================================== */

.interview {
  width: min(1400px, calc(100% - 80px));
}

.interview-list {
  border-top: 1px solid #111;
}

.interview-item {
  padding-right: 1rem;
  border-bottom: 1px solid #111;
}

.interview-item a {
  display: flex;
  align-items: center;
  column-gap: 5%;
  padding: 20px 0;

  transition: padding 0.3s ease;
}

.interview-item a:hover {
  padding-left: 15px;
}

.interview-item a .interview-item__category {
  min-width: 100px;

  border-radius: 25px;
  background-color: rgba(186, 238, 66, 0.308);
  color: #004b00;

  text-align: center;
}

.interview-item__date {
  font-size: 11px;
  opacity: 0.6;
}

.interview-item__title {
  display: -webkit-box;
  overflow: hidden;

  font-family: "Noto Serif KR", serif;
  font-size: 20px;
  font-weight: 400;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.interview-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.interview-page-button {
  min-width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #111;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.interview-page-button.active {
  background: #111;
  color: #fff;
}

.interview-page-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.interview-page-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ========================================
   6. ITEM MEMORY PARK
======================================== */

.memory-park {
  width: min(1400px, calc(100% - 80px));
}

/* 슬라이더 */

.memory-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* 메모리 카드 */

.memory-card {
  min-width: 0;
  height: auto;
  box-sizing: border-box;

  border: 1px solid #111;
}

/* 이미지 */

.memory-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;

  background-color: #739b73;
}

.memory-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.5s ease;
  opacity: 0.8;
}

.memory-card:hover .memory-card__image img {
  transform: scale(1.04);
}

/* 카드 정보 */

.memory-card__info {
  padding: 1rem;
  background-color: #fff;
}

.memory-card__info > span {
  display: block;
  margin-bottom: 6px;

  color: #739b73;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.memory-card__info h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.memory-card__info p {
  margin: 0 0 8px;

  color: #333;
  font-size: 1rem;
  line-height: 1.8;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.6;
  min-height: calc(1em * 1.6 * 3);
}

.memory-card__info small {
  /* opacity: 0.5; */
}

/* 슬라이더 버튼 */

.memory-slider__btn {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

.memory-slider__btn--prev {
  left: 10px;
}

.memory-slider__btn--next {
  right: 10px;
}

/* ========================================
   7. TELEVISION
======================================== */

.television {
  position: relative;
  margin: 0 auto;
}
.television-inner {
  margin-top: 5rem !important;
  margin-bottom: 2rem !important;
}

/* TV 본체 */

.television-inner {
  position: relative;
  isolation: isolate;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  width: 100%;
  max-width: 950px;
  box-sizing: border-box;

  margin: 0 auto;
  padding: 2rem 2.5rem;

  border: 1px solid #111;
  border-radius: 25px;
  background: #fff;

  flex-direction: column;
  max-width: 750px;
}

/* TV 다리 */
.television__legs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 950px;
  margin: 0 auto;
}
.television__legs::before,
.television__legs::after {
  content: "";
  position: absolute;
  bottom: -22px;
  z-index: -1;

  width: 12px;
  height: 25px;

  background: #739b73;
  border: 1px solid #111;
  border-radius: 2px 2px 5px 5px;
}

.television__legs::before {
  left: 18%;
  transform: rotate(15deg);
}

.television__legs::after {
  right: 18%;
  transform: rotate(-15deg);
}

/* 안테나 */

.television__antenna {
  position: absolute;
  top: -40px;
  left: 50%;

  width: 1px;
  height: 40px;

  transform: translateX(-50%);
}

.television__antenna::before,
.television__antenna::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;

  width: 1px;
  height: 42px;

  background: #333;
  transform-origin: bottom center;
}

.television__antenna::before {
  transform: translateX(-50%) rotate(-35deg);
}

.television__antenna::after {
  transform: translateX(-50%) rotate(35deg);
}

/* 화면 */

.television-screen {
  flex: 0 1 560px;
  min-width: 0;
  width: 560px;

  aspect-ratio: 16 / 9;

  overflow: hidden;
  border: 1px solid #111;
  border-radius: 15px;

  background-color: black;

  flex: none;
  width: 100%;
}

.television-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transform: scaleY(0.01);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

@keyframes tv-on {
  0% {
    opacity: 0;
    transform: scaleY(0.01);
    filter: brightness(1);
  }

  50% {
    transform: scaleY(1.02);
    filter: brightness(1.5);
  }

  100% {
    opacity: 1;
    transform: scaleY(1);
    filter: brightness(1);
  }
}

.television.on .television-screen iframe {
  opacity: 1;
  transform: scaleY(1);
  animation: tv-on 0.8s ease-out;
}

/* 조작부 */

.television__right {
  display: flex;
  flex: 0 0 30%;
  flex-direction: column;
  row-gap: 20px;

  width: 100%;
}

.television__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.television__channel {
  font-size: 0;
  width: 30%;
  padding: 5px 10px;
  box-sizing: border-box;

  border: 1px solid #739b73;
  border-radius: 5px;

  color: #739b73;
  text-align: center;
}

.television .television__channel::before {
  content: "NO SIGNAL";
  font-size: 1rem;
}

.television.on .television__channel {
  font-size: inherit;
}

.television.on .television__channel::before {
  content: "";
}

.television__name {
  font-size: 0;

  width: 60%;
  padding: 5px 10px;
  box-sizing: border-box;
  border: 1px solid #739b73;
  border-radius: 5px;
  color: #739b73;
  text-align: center;
}

.television__name::before {
  content: "이곳에 방영 프로그램 제목이 표시됩니다.";
  font-size: 1rem;
}

.television.on .television__name {
  font-size: 1rem;
}
.television.on .television__name::before {
  content: "";
}

@media (max-width: 500px) {
  .television__channel {
    display: none;
  }
  .television__name {
    width: 100%;
  }
  .television-controler {
    width: auto !important;
  }
}

.television-controler {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  flex: none;
  flex-direction: row;
  justify-content: left;
}

.television-controler button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
  padding: 0;

  border: 1px solid #739b73;
  border-radius: 50%;

  background: transparent;
  color: #739b73;

  font-size: 16px;
  cursor: pointer;

  transition:
    background 0.2s,
    color 0.2s;
}

.television-controler button:hover {
  background: #739b73;
  color: #fff;
}

.controler__buttons {
  display: flex;
  gap: 0.8rem;
  flex-direction: row;
}

.television-controler button#volume-mute {
  width: 60px;
  border-radius: 10px;
}

/* 전원 버튼 */

.controler__power {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.controler__power:hover {
  transform: scale(1.1);
}

.controler__power:active {
  transform: scale(0.9);
}

.television__alert {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  backdrop-filter: blur(10px);
  text-align: center;
}

.television__alert.on {
  display: block;
}

.television__alert p {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  padding: 4rem;
  transform: translateY(-50%);
  border: 1px solid #333;
  background-color: #fff;
  line-height: 2.5;
  letter-spacing: 1.8px;
  text-align: center;
}

.television__alert-highlight,
.television__alert-instruction {
  padding: 0 0.4rem;
  color: #fff;
}

.television__alert-highlight {
  background-color: #739b73;
}

.television__alert-instruction {
  background-color: #b16d6d;
}

#television_close {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  aspect-ratio: 1 / 1;
  max-height: 40px;
  border: 0;
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
  background: #ffffa3;
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

/* ========================================
   8. RESPONSIVE
======================================== */

@media (max-width: 768px) {
  /* HERO */

  .hero__inner {
    width: min(1400px, calc(100% - 40px));
  }

  /* LATEST WORKS */

  .latest-works,
  .month-diary,
  .television {
    width: calc(100% - 40px);
  }

  .work-card__link,
  .month-card__link {
    min-height: 380px;
    padding: 24px;
  }

  .work-card__title,
  .month-card__title {
    font-size: clamp(28px, 8vw, 30px);
  }

  .work-slider__btn,
  .month-slider__btn {
    width: 40px;
    height: 40px;
  }

  /* ABOUT */

  .about__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;

    width: min(1400px, calc(100% - 40px));
  }

  /* INTERVIEW */

  .interview {
    width: min(1400px, calc(100% - 40px));
  }

  .interview-item__title {
    font-size: 1rem;
  }

  /* MEMORY PARK */

  .memory-park {
    width: calc(100% - 40px);
  }

  .memory-card__info h3 {
    font-size: 0.95rem;
  }

  .memory-card__info p {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .television__alert p {
    max-width: 90%;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ========================================
   9. TELEVISION RESPONSIVE
======================================== */

@media (max-width: 900px) {
  .television-inner {
    flex-direction: column;
    gap: 20px;
    padding: 1.5rem;
    border-radius: 20px;
  }

  .television-screen {
    flex: none;
    width: 100%;
  }

  .television__right {
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
  }
}

main > section:not(.television__alert):not(:first-child) {
  margin: 6rem auto;
}
