* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: #222527;
  background: #e1e5e6;
  font-family: "Noto Serif KR", Georgia, serif;
}
.taeok-world {
  --chapter-back-bg: #ffffffc4;
  --chapter-back-border: #303f4933;
  --chapter-back-hover: #fff;
  --chapter-back-border-hover: #303f4966;
  display: grid;
  align-content: start;
  gap: clamp(18px, 5vh, 52px);
  min-height: 100svh;
  padding: max(8px, env(safe-area-inset-top)) clamp(14px, 4vw, 64px) 40px;
  background: radial-gradient(ellipse at 40% 4%, #fafaf9, #e8ebeb 62%, #d6dcde);
}
.taeok-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}
.taeok-header .lang-picker {
  margin-left: auto;
  padding-inline: 6px;
  border: 1px solid #303f4933;
  border-radius: 999px;
  background: #ffffffae;
  color: #222527;
}
.taeok-header .lang-picker button:focus-visible { outline-color: #48545d; }

.taeok-book {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  width: min(100%, 1120px);
  margin: 0 auto;
  border: 1px solid #c7cacc;
  border-radius: 3px 12px 10px 3px;
  background: #fff;
  box-shadow:
    0 3px #fafafa, 0 4px #bcc4c8,
    0 6px #f1f3f3, 0 7px #a9b2b7,
    0 29px 62px #3d53602a, 0 9px 22px #293d4a24;
}
.taeok-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(24px, 4.8vw, 68px);
  background: linear-gradient(90deg, #f7f8f8, #fff 10%, #fff 88%, #e4e7e9);
  border-radius: 3px 0 0 3px;
}
.taeok-number {
  font: 12px Georgia, serif;
  letter-spacing: .13em;
  color: #62676a;
}
.taeok-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(45px, 6vw, 84px);
  font-weight: 400;
  letter-spacing: .09em;
  line-height: 1.05;
}
.taeok-copy p {
  margin: 0;
  max-width: 40ch;
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.65;
  color: #3c4145;
}
.taeok-copy .taeok-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: #5a6063;
}
.taeok-book .taeok-copy .chapter-entry-audio {
  --entry-audio-ink: #222527;
  --entry-audio-fill: #f8f9fa;
  --entry-audio-border: #878f94;
  margin-top: 14px;
}
.taeok-studies {
  display: block;
  width: min(70%, 220px);
  height: auto;
  margin-top: 12px;
  mix-blend-mode: multiply;
  opacity: .73;
}
.taeok-art {
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  padding: clamp(10px, 2vw, 28px);
  border-radius: 0 11px 9px 0;
  background: linear-gradient(90deg, #e8ebec, #fff 7%, #fff 96%, #f3f5f5);
}
.taeok-art img {
  display: block;
  width: min(100%, 475px);
  max-height: min(71svh, 640px);
  object-fit: contain;
  height: auto;
  mix-blend-mode: multiply;
}
.taeok-world.is-sketching .taeok-art img {
  animation: sketch-appear .7s ease both;
}
@keyframes sketch-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 701px) {
  .taeok-world {
    position: relative;
    display: block;
    padding: 0;
    background: #fff;
  }
  .taeok-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    padding: max(9px, env(safe-area-inset-top)) clamp(24px, 4vw, 64px) 0;
  }
  .taeok-book {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .taeok-copy {
    padding: 76px clamp(30px, 8vw, 142px) 30px;
    border-radius: 0;
    background: linear-gradient(90deg, #f8f9f9 0%, #fff 9%, #fff 89%, #f1f2f2 97%, #e1e4e5 100%);
  }
  .taeok-art {
    padding: 64px clamp(14px, 3.5vw, 60px) 20px;
    border-radius: 0;
    background: linear-gradient(90deg, #e6e9ea 0%, #f3f4f4 3%, #fff 11%, #fff 95%, #f5f6f6 100%);
  }
  .taeok-art img {
    width: min(100%, 615px);
    max-height: max(235px, calc(100svh - 84px));
  }
}
@media (max-width: 700px) {
  .taeok-world {
    gap: 10px;
    padding: max(8px, env(safe-area-inset-top)) 14px 84px;
  }
  .taeok-book {
    grid-template-columns: 1fr;
    border-radius: 3px 9px 9px 3px;
  }
  .taeok-art {
    grid-row: 1;
    padding: 7px 13px 0;
    border-radius: 3px 8px 0 0;
    background: linear-gradient(90deg, #f0f2f3, #fff 6%, #fff 98%, #f3f5f5);
  }
  .taeok-art img {
    width: min(100%, 440px);
    max-height: clamp(250px, 48svh, 455px);
  }
  .taeok-copy {
    padding: 4px clamp(24px, 6vw, 44px) 20px;
    border-radius: 0 0 8px 3px;
    background: linear-gradient(90deg, #f0f2f3, #fff 6%, #fff 98%, #f3f5f5);
  }
  .taeok-copy h1 { margin: 7px 0 10px; }
  .taeok-copy .taeok-note { margin-top: 7px; }
  .taeok-studies { width: min(52%, 160px); margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .taeok-world.is-sketching .taeok-art img { animation: none; }
}
