* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #f8faf5;
}

body {
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.article-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--article-width, 1676px);
  height: var(--article-height, 1592px);
  background: #f8faf5;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--article-scale, 1));
  transform-origin: center center;
}

.article-back {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 20;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
}

.article-hero {
  position: absolute;
  width: 1504px;
  height: 474px;
  left: 86px;
  top: 88px;
  background: #d9d9d9;
  border-radius: 83px;
  overflow: hidden;
}

.article-hero-image {
  position: absolute;
  width: 1737px;
  height: 1567px;
  left: -86px;
  top: -1067px;
  object-fit: cover;
  display: block;
}

.article-title {
  position: absolute;
  width: 1504px;
  height: 222px;
  left: 87px;
  top: 403px;
  margin: 0;
  font-family: "Patrick Hand", cursive;
  font-size: 200px;
  font-weight: 400;
  line-height: 271px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000;
  text-shadow:
    -8px -8px 0 #f8faf5,
    8px -8px 0 #f8faf5,
    -8px 8px 0 #f8faf5,
    8px 8px 0 #f8faf5;
}

.article-author {
  position: absolute;
  width: 1315px;
  height: 67px;
  left: 153px;
  top: 611px;
  font-family: "Pridi", serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(0, 0, 0, 0.47);
}

.article-author-role {
  font-size: 34px;
  line-height: 1.05;
}

.article-author-name {
  font-size: 52px;
  line-height: 1.05;
}

.article-body {
  position: absolute;
  width: 1421px;
  height: 473px;
  left: 128px;
  top: 802px;
  margin: 0;
  font-family: "Patrick Hand", cursive;
  font-size: 48px;
  font-weight: 400;
  line-height: 116%;
  display: flex;
  align-items: center;
  color: #000;
  white-space: pre-line;
}

.article-made {
  position: absolute;
  width: 1688px;
  height: 75px;
  left: 0;
  top: 1517px;
  font-family: "Patrick Hand SC", cursive;
  font-size: 64px;
  font-weight: 400;
  line-height: 87px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 820px) {
  html,
  body {
    min-height: 100dvh;
    background: #f8faf5;
  }

  body {
    overflow: auto;
  }

  .article-frame {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    transform: none;
    padding: 76px 16px 24px;
    display: flex;
    flex-direction: column;
  }

  .article-back {
    top: 14px;
    left: 14px;
    width: 60px;
    height: 60px;
  }

  .article-hero {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: min(42vh, 420px);
    aspect-ratio: auto;
    border-radius: 34px;
  }

  .article-hero-image {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .article-title,
  .article-author,
  .article-body,
  .article-made {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    justify-content: flex-start;
    text-align: left;
  }

  .article-title {
    margin-top: 22px;
    font-size: clamp(54px, 16vw, 92px);
    line-height: 0.95;
    justify-content: flex-start;
    text-shadow:
      -5px -5px 0 #f8faf5,
      5px -5px 0 #f8faf5,
      -5px 5px 0 #f8faf5,
      5px 5px 0 #f8faf5;
  }

  .article-author {
    margin-top: 10px;
    line-height: 1.05;
    align-items: flex-start;
    justify-content: flex-start;
    color: rgba(0, 0, 0, 0.56);
  }

  .article-author-role {
    font-size: clamp(22px, 6vw, 32px);
  }

  .article-author-name {
    font-size: clamp(34px, 9vw, 50px);
  }

  .article-body {
    margin-top: 24px;
    display: block;
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.22;
  }

  .article-made {
    margin-top: auto;
    padding-top: 34px;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.1;
  }
}

@media (prefers-color-scheme: dark) {
  html,
  body,
  .article-frame {
    background: #252624;
  }

  .article-back {
    color: #c2c0b6;
    background: rgba(47, 48, 46, 0.86);
    border-color: rgba(194, 192, 182, 0.18);
  }

  .article-hero {
    background: #2f302e;
  }

  .article-title,
  .article-body {
    color: #c2c0b6;
  }

  .article-title {
    text-shadow:
      -8px -8px 0 #252624,
      8px -8px 0 #252624,
      -8px 8px 0 #252624,
      8px 8px 0 #252624;
  }

  .article-author {
    color: rgba(194, 192, 182, 0.58);
  }

  .article-made {
    color: rgba(194, 192, 182, 0.38);
  }
}

@media (prefers-color-scheme: dark) and (max-width: 820px) {
  .article-title {
    text-shadow:
      -5px -5px 0 #252624,
      5px -5px 0 #252624,
      -5px 5px 0 #252624,
      5px 5px 0 #252624;
  }
}
