.week-preview {
  width: min(100%, 54rem);
  margin: 0 auto;
  color: #25344a;
}

.preview-header,
.notebook-header {
  position: relative;
  overflow: hidden;
  margin: 0 0 2.2rem;
  padding: clamp(1.6rem, 4vw, 2.7rem);
  border: 1px solid #d8e0eb;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 207, 94, .28), transparent 28%),
    linear-gradient(145deg, #fffdf7 0%, #f2f6fb 100%);
  box-shadow: 0 1.2rem 3rem rgba(29, 50, 82, .08);
}

.notebook-header {
  margin-top: 4.5rem;
  background:
    radial-gradient(circle at 92% 8%, rgba(145, 111, 192, .18), transparent 30%),
    linear-gradient(145deg, #fcfbff 0%, #f2f6fb 100%);
}

.preview-header .eyebrow,
.notebook-header .eyebrow {
  margin: 0 0 .7rem;
  color: #8b5e13;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.preview-header h1,
.notebook-header h2 {
  margin: 0;
  color: #14233c;
  font-family: Georgia, "Noto Serif KR", serif;
  line-height: 1.28;
  letter-spacing: -.035em;
}

.preview-header h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
.notebook-header h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); }

.preview-header .subtitle,
.notebook-header .subtitle {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: #56657a;
  line-height: 1.75;
}

.preview-story > p {
  margin: 0 0 1.05rem;
  color: #2f3e52;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 1.055rem;
  line-height: 1.95;
  word-break: keep-all;
}

.preview-story > p + p { text-indent: 0; }

.preview-story code,
.question-notebook code {
  padding: .08em .34em;
  border: 1px solid #dbe2eb;
  border-radius: .35em;
  background: #f5f7fa;
  color: #824c0d;
  font-family: Consolas, "Noto Sans Mono", monospace;
  font-size: .9em;
}

.scene-break {
  display: grid;
  place-items: center;
  margin: 2.6rem 0;
  color: #9a7b41;
  letter-spacing: .8em;
}

.learning-figure {
  margin: 2.3rem auto 2.7rem;
  padding: .85rem;
  border: 1px solid #d8e0eb;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 .8rem 2.2rem rgba(29, 50, 82, .08);
}

.learning-figure img {
  display: block;
  width: 100%;
  max-height: 44rem;
  border-radius: .85rem;
  object-fit: contain;
}

.learning-figure--official img {
  max-height: 31rem;
  object-fit: cover;
}

.learning-figure figcaption {
  padding: .8rem .35rem .15rem;
  color: #55667c;
  font-size: .91rem;
  line-height: 1.65;
}

.question-notebook {
  margin-top: 4.5rem;
  padding-top: .5rem;
}

.question-card {
  margin: 0 0 1.35rem;
  padding: clamp(1.15rem, 3vw, 1.7rem);
  border: 1px solid #dce3ed;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 .45rem 1.4rem rgba(29, 50, 82, .055);
  scroll-margin-top: 5.5rem;
}

.question-card h3 {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  margin: 0 0 1rem;
  color: #182c49;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  line-height: 1.5;
}

.question-number {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 999px;
  background: #e8eef8;
  color: #31547f;
  font-size: .82rem;
  font-weight: 850;
}

.question-answer > p {
  margin: .72rem 0 0;
  color: #34445a;
  line-height: 1.78;
  word-break: keep-all;
}

.technology-label {
  display: grid;
  gap: .35rem;
  margin-top: 1rem !important;
  padding: .85rem 1rem;
  border-left: .3rem solid #9271b8;
  border-radius: .55rem;
  background: #f6f2fb;
}

.technology-label__caption {
  color: #6c4b91;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
}

.technology-label__value { color: #4a3d5e; }

.concept-links,
.notebook-closing {
  margin: 2rem 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid #dce3ed;
  border-radius: 1rem;
  background: #f7f9fc;
  color: #40526a;
  line-height: 1.75;
}

@media (max-width: 46rem) {
  .preview-story > p { font-size: 1rem; line-height: 1.87; }
  .learning-figure { margin-inline: -.25rem; padding: .55rem; }
  .question-card { padding: 1rem; }
  .question-card h3 { grid-template-columns: 2rem minmax(0, 1fr); gap: .55rem; }
  .question-number { width: 1.9rem; height: 1.9rem; }
}

@media print {
  .question-card,
  .learning-figure { break-inside: avoid; box-shadow: none; }
  .preview-header,
  .notebook-header { box-shadow: none; }
}
