/* =========================
   FONT
========================= */

@font-face {
  font-family: "KNewsLogo";
  src: url(".fonts/Pretendard-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KNewsSans";
  src: url(".fonts/Pretendard-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KNewsDate";
  src: url("./fonts/Griun_PolSensibility-Rg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* =========================
   RESET
========================= */

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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100svh;

  margin: 0;

  background-image: url("./assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


/* =========================
   MAIN LAYOUT
========================= */

.page {
  width: min(66.5vw, 1280px);

  margin: 0 auto;
}


/* =========================
   LOGO
========================= */

.logo {
  font-family: "KNewsLogo", Arial, sans-serif;

  font-size: clamp(80px, 7.5vw, 145px);
  font-weight: 700;

  line-height: 0.95;

  letter-spacing: -0.045em;

  text-align: center;

  white-space: nowrap;

  margin-bottom: 32px;
}


/* =========================
   HEADLINE
========================= */

.headline {
  width: 100%;

  font-family: "KNewsSans", sans-serif;
  font-size: clamp(28px, 2.75vw, 53px);
  font-weight: 700;
  line-height: 1;

  text-align: center;

  border-top: 3px solid #000;
  border-bottom: 3px solid #000;

  height: clamp(60px, 8vw, 100px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 10px;
}

.headline span {
  transform: translateY(4px);
}


/* =========================
   BOTTOM
========================= */

.bottom {
  width: 91%;

  margin: 65px auto 0;

  display: grid;

  grid-template-columns:
    40%
    3px
    1fr;

  column-gap: 38px;

  align-items: stretch;
}


/* =========================
   LOADER BOX
========================= */

.loader-box {
  width: 100%;

  aspect-ratio: 1.44 / 1;

  border: 3px solid #000;

  display: flex;

  align-items: center;
  justify-content: center;
}


/* =========================
   LOADING ICON
========================= */

.loader {
  width: clamp(70px, 6vw, 105px);
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    conic-gradient(
      from 30deg,
      transparent 0deg 70deg,
      rgba(0, 0, 0, 0) 70deg,
      rgba(0, 0, 0, 0.25) 180deg,
      rgba(0, 0, 0, 0.72) 300deg,
      #111 360deg
    );

  -webkit-mask:
    radial-gradient(
      farthest-side,
      transparent calc(100% - 16px),
      #000 0
    );

  mask:
    radial-gradient(
      farthest-side,
      transparent calc(100% - 16px),
      #000 0
    );

  animation: rotate-loader 1.25s linear infinite;
}

@keyframes rotate-loader {
  to {
    transform: rotate(360deg);
  }
}


/* =========================
   VERTICAL LINE
========================= */

.divider {
  width: 3px;
  height: 100%;

  background: #000;
}


/* =========================
   MESSAGE
========================= */

.message {
  display: flex;
  flex-direction: column;

  justify-content: flex-start;

  padding-top: 2px;
}


/* =========================
   DATE
========================= */

.date {
  font-family: "KNewsDate", cursive;

  font-size: clamp(38px, 3.45vw, 67px);

  line-height: 1;

  white-space: nowrap;

  margin-bottom: 23px;

  transform: translateY(12px);
}


/* =========================
   DESCRIPTION
========================= */

.description {
  font-family: "KNewsSans", sans-serif;

  font-size: clamp(27px, 2.15vw, 60px);
  font-weight: 700;

  line-height: 1.62;

  letter-spacing: -0.035em;

  transform: translateY(20px);
}


/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

  .page {
    width: 78vw;
  }

  .bottom {
    width: 100%;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  body {
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow-x: hidden;
    overflow-y: auto;
  }

  .page {
    width: 88%;

    margin: 0 auto;

    /* 기존에 있었다면 제거 */
    padding-top: 0;
    padding-bottom: 0;
  }

  .logo {
    width: 100%;

    font-family: "KNewsLogo", Arial, sans-serif;

    font-size: clamp(50px, 16vw, 100px);
    font-weight: 700;
    line-height: 0.7;

    letter-spacing: -0.045em;

    text-align: center;
    white-space: nowrap;

    margin-left: auto;
    margin-right: auto;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .headline {
    width: 100%;

    font-size: clamp(19px, 5.5vw, 25px);
    line-height: 1.2;

    height: clamp(30px, 22vw, 60px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    
  }

  .headline span {
    transform: translateY(2px);
  }

  .bottom {
    width: 100%;

    margin-top: 45px;

    display: flex;
    flex-direction: column;

    gap: 32px;
  }

  .loader-box {
    width: 100%;

    max-height: 200px;

    border-width: 2px;
  }

  .loader {
    width: 80px;

    -webkit-mask:
      radial-gradient(
        farthest-side,
        transparent calc(100% - 12px),
        #000 0
      );

    mask:
      radial-gradient(
        farthest-side,
        transparent calc(100% - 12px),
        #000 0
      );
  }

  .divider {
    display: none;
  }

  .message {
    padding-top: 0;
  }

  .date {
    font-size: clamp(35px, 10vw, 40px);

    white-space: normal;

    margin-bottom: 2px;
  }

  .description {
    font-size: clamp(20px, 7vw, 26px);

    line-height: 1.55;
  }

}