/* 예수님을 알아가는 첫걸음 — 입문 교재 표지·목차 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&family=Noto+Serif+KR:wght@500;700&display=swap");

.fs-book {
  --fs-ink: #e8f6ff;
  --fs-muted: rgba(184, 220, 240, 0.78);
  --fs-line: rgba(125, 214, 255, 0.22);
  --fs-glow: rgba(99, 198, 255, 0.18);
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  padding: 0 0.25rem 2rem;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--fs-ink);
}

.fs-hero {
  position: relative;
  text-align: center;
  padding: 2.75rem 1.25rem 2.4rem;
  margin-bottom: 2rem;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(99, 198, 255, 0.22), transparent 62%),
    linear-gradient(165deg, rgba(8, 28, 58, 0.55) 0%, rgba(4, 18, 43, 0.15) 100%);
  border: 1px solid var(--fs-line);
  overflow: hidden;
  animation: fs-rise 0.7s ease both;
}

.fs-hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 55%;
  background: radial-gradient(ellipse at center, var(--fs-glow), transparent 70%);
  pointer-events: none;
}

/* Cover page — match print sheet: dark field, luminous title card, clean TOC */
.fs-book--cover {
  max-width: 36rem;
  padding-top: 0.5rem;
}

.fs-hero--cover {
  padding: 2.9rem 1.5rem 2.55rem;
  margin-bottom: 2.35rem;
  border-radius: 18px;
  border: 1.5px solid rgba(125, 214, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(99, 198, 255, 0.12),
    0 0 28px rgba(99, 198, 255, 0.22),
    inset 0 -40px 60px rgba(99, 198, 255, 0.08);
  background:
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(99, 198, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(99, 198, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #071a38 0%, #04122b 100%);
}

.fs-hero--cover .fs-title {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: clamp(1.95rem, 5.4vw, 2.65rem);
  letter-spacing: -0.01em;
  color: #ffffff;
}

.fs-hero--cover .fs-kicker {
  letter-spacing: 0.18em;
  color: #63c6ff;
}

.fs-hero--cover .fs-subtitle {
  max-width: 18rem;
  font-size: 0.95rem;
  color: rgba(184, 220, 240, 0.72);
}

.fs-hero--cover .fs-hero-line {
  width: 2.75rem;
  margin-top: 1.4rem;
  background: #63c6ff;
  opacity: 0.85;
}

.fs-book--cover .fs-section-label {
  letter-spacing: 0.16em;
  color: #63c6ff;
}

.fs-book--cover .fs-toc-list {
  border-top-color: rgba(125, 214, 255, 0.2);
}

.fs-book--cover .fs-toc-list li {
  border-bottom-color: rgba(125, 214, 255, 0.18);
}

.fs-book--cover .fs-toc-num {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 700;
  color: #63c6ff;
}

.fs-book--cover .fs-toc-title {
  color: #f2fbff;
  font-weight: 500;
}

.fs-book--cover .fs-toc-link {
  padding: 0.88rem 0.1rem;
}

.fs-toc-list--thumbs .fs-toc-link--thumb {
  grid-template-columns: 2.4rem 5.6rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.fs-toc-thumb {
  display: block;
  width: 5.6rem;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(125, 214, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(99, 198, 255, 0.08);
}

.fs-toc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-toc-thumb--empty {
  background:
    linear-gradient(135deg, rgba(99, 198, 255, 0.08), rgba(4, 18, 43, 0.4));
  border-style: dashed;
  opacity: 0.55;
}

@media (max-width: 560px) {
  .fs-toc-list--thumbs .fs-toc-link--thumb {
    grid-template-columns: 2rem 4.4rem 1fr;
    gap: 0.55rem;
  }

  .fs-toc-thumb {
    width: 4.4rem;
  }
}

.fs-toc-kind {
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-600, #63c6ff);
  opacity: 0.9;
}

.fs-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0.35rem 0 0.75rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--fs-line);
  background: #000;
}

.fs-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fs-video-link {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
}

.fs-video-link a {
  color: var(--green-600, #63c6ff);
  font-weight: 700;
  text-decoration: none;
}

.fs-video-link a:hover {
  text-decoration: underline;
}

@media print {
  .fs-video {
    display: none !important;
  }

  .fs-video-link a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    font-weight: 500;
    color: #555;
    word-break: break-all;
  }
}

.fs-book--cover .fs-hero--cover .fs-subtitle {
  max-width: 22rem;
}

.fs-kicker {
  position: relative;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-600, #63c6ff);
}

.fs-title {
  position: relative;
  margin: 0;
  font-family: "Noto Serif KR", "Noto Sans KR", serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 5.2vw, 2.55rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #f2fbff;
  text-wrap: balance;
}

.fs-subtitle {
  position: relative;
  margin: 1.15rem auto 0;
  max-width: 22rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--fs-muted);
}

.fs-hero-line {
  position: relative;
  width: 3rem;
  height: 2px;
  margin: 1.55rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--green-600, #63c6ff), transparent);
}

.fs-toc,
.fs-intro {
  padding: 0.35rem 0.35rem 0;
  animation: fs-rise 0.75s ease both;
  animation-delay: 0.12s;
}

.fs-intro {
  animation-delay: 0.22s;
}

.fs-section-label {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600, #63c6ff);
}

.fs-toc-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  border-top: 1px solid var(--fs-line);
}

.fs-toc-list li {
  border-bottom: 1px solid var(--fs-line);
  padding: 0;
}

.fs-toc-link {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.95rem 0.15rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

a.fs-toc-link:hover {
  background: rgba(99, 198, 255, 0.06);
  padding-left: 0.35rem;
}

.fs-toc-link.is-soon {
  opacity: 0.55;
  cursor: default;
}

.fs-toc-num {
  font-family: "Noto Serif KR", serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-600, #63c6ff);
  letter-spacing: 0.04em;
}

.fs-toc-title {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--fs-ink);
}

.fs-toc-title em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fs-muted);
  margin-left: 0.35rem;
}

.fs-prose {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--fs-muted);
}

.fs-prose p {
  margin: 0 0 1.15rem;
}

.fs-prose .fs-closing {
  margin-top: 1.75rem;
  padding: 1.25rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--fs-line);
  background: linear-gradient(135deg, rgba(99, 198, 255, 0.1), rgba(4, 18, 43, 0.25));
  font-family: "Noto Serif KR", serif;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #f2fbff;
}

.fs-back {
  margin: 2.5rem 0 0;
  text-align: center;
}

.fs-back a {
  color: var(--green-600, #63c6ff);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.fs-back a:hover {
  text-decoration: underline;
}

/* —— Lesson page —— */
.fs-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fs-muted);
  animation: fs-rise 0.55s ease both;
}

.fs-crumb a {
  color: var(--green-600, #63c6ff);
  text-decoration: none;
}

.fs-crumb a:hover {
  text-decoration: underline;
}

.fs-hero--lesson {
  text-align: left;
  padding: 2.1rem 1.35rem 1.9rem;
}

.fs-hero--lesson .fs-title {
  font-size: clamp(1.55rem, 4.4vw, 2.05rem);
}

.fs-hero--lesson .fs-subtitle {
  margin-left: 0;
  max-width: none;
  font-size: 0.96rem;
}

.fs-hero--lesson .fs-subtitle strong {
  color: #f2fbff;
  font-weight: 700;
}

.fs-hero--lesson .fs-hero-line {
  margin-left: 0;
}

.fs-step {
  margin: 0 0 1.85rem;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--fs-line);
  background: linear-gradient(160deg, rgba(8, 28, 58, 0.35), rgba(4, 18, 43, 0.12));
  animation: fs-rise 0.7s ease both;
}

.fs-step:nth-of-type(1) { animation-delay: 0.08s; }
.fs-step:nth-of-type(2) { animation-delay: 0.12s; }
.fs-step:nth-of-type(3) { animation-delay: 0.16s; }
.fs-step:nth-of-type(4) { animation-delay: 0.2s; }
.fs-step:nth-of-type(5) { animation-delay: 0.24s; }

.fs-step-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
}

.fs-step-badge {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #04122b;
  background: linear-gradient(145deg, #9fe0ff, #63c6ff);
}

.fs-step-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #f2fbff;
  letter-spacing: -0.01em;
}

.fs-step-time {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-600, #63c6ff);
}

.fs-bible-link {
  color: var(--green-600, #63c6ff);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 198, 255, 0.35);
}

.fs-bible-link:hover {
  border-bottom-color: var(--green-600, #63c6ff);
}

.fs-glossary {
  margin: 1rem 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.fs-glossary > div {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(99, 198, 255, 0.07);
  border: 1px solid rgba(125, 214, 255, 0.16);
}

.fs-glossary dt {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-600, #63c6ff);
}

.fs-glossary dd {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--fs-muted);
}

.fs-prompt {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f2fbff;
}

.fs-q-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--fs-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.fs-q-list li + li {
  margin-top: 0.45rem;
}

.fs-q-list--bullets {
  padding-left: 1.15rem;
  margin-bottom: 1.15rem;
}

.fs-journal {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px dashed rgba(125, 214, 255, 0.35);
  background: rgba(0, 0, 0, 0.12);
}

.fs-journal-row {
  display: grid;
  gap: 0.4rem;
}

.fs-journal-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green-600, #63c6ff);
}

.fs-journal-line {
  display: block;
  height: 1.7rem;
  border-bottom: 1px solid rgba(184, 220, 240, 0.35);
}

.fs-leader {
  margin: 2.25rem 0 0;
  padding: 1.35rem 1.2rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 196, 120, 0.28);
  background: linear-gradient(160deg, rgba(120, 70, 20, 0.22), rgba(4, 18, 43, 0.2));
  animation: fs-rise 0.75s ease both;
  animation-delay: 0.28s;
}

.fs-leader .fs-section-label {
  color: #ffd29a;
}

.fs-leader-list {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(255, 230, 200, 0.88);
  font-size: 0.94rem;
  line-height: 1.75;
}

.fs-leader-list li + li {
  margin-top: 0.7rem;
}

.fs-leader-list strong {
  color: #ffe7c2;
}

.fs-lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fs-line);
}

.fs-lesson-nav a {
  color: var(--green-600, #63c6ff);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.fs-lesson-nav a:hover {
  text-decoration: underline;
}

.fs-lesson-nav-next.is-soon {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fs-muted);
  opacity: 0.7;
}

.fs-prose strong {
  color: #f2fbff;
  font-weight: 700;
}

/* Opacity only — transform creates a layer that can paint over sticky site nav */
@keyframes fs-rise {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fs-book,
.fs-hero,
.fs-step,
.fs-toc,
.fs-intro,
.fs-leader {
  transform: none !important;
}

@media (max-width: 560px) {
  .fs-hero {
    padding: 2.2rem 1rem 2rem;
    border-radius: 18px;
  }

  .fs-toc-list li {
    grid-template-columns: 2.2rem 1fr;
    gap: 0.65rem;
  }

  .fs-prose {
    font-size: 0.98rem;
    line-height: 1.85;
  }
}

.fs-print-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.fs-print-btn {
  appearance: none;
  border: 1px solid rgba(125, 214, 255, 0.35);
  background: rgba(99, 198, 255, 0.12);
  color: var(--green-700, #b3eeff);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.fs-print-btn:hover {
  background: rgba(99, 198, 255, 0.2);
}

/* —— Print / A4 worksheet —— */
@media print {
  @page {
    size: A4;
    margin: 14mm 12mm 16mm;
  }

  html, body {
    background: #fff !important;
    color: #111 !important;
  }

  body.fs-print-page > header,
  body.fs-print-page .site-header,
  body.fs-print-page footer,
  body.fs-print-page .skip-link,
  body.fs-print-page .intro-video,
  body.fs-print-page .mobile-nav,
  body.fs-print-page .hamburger,
  .fs-print-bar,
  .fs-crumb,
  .fs-lesson-nav,
  .fs-back {
    display: none !important;
  }

  /* Keep cover/lesson title block — do not match site chrome <header> */
  body.fs-print-page .fs-hero,
  body.fs-print-page .fs-hero--cover,
  body.fs-print-page .fs-hero--lesson {
    display: block !important;
  }

  body.fs-print-page main {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .fs-book {
    max-width: none;
    margin: 0;
    padding: 0;
    color: #111;
    --fs-ink: #111;
    --fs-muted: #333;
    --fs-line: #ccc;
    --fs-glow: transparent;
  }

  .fs-hero,
  .fs-hero--lesson,
  .fs-step,
  .fs-leader,
  .fs-glossary > div,
  .fs-prose .fs-closing,
  .fs-journal {
    background: #fff !important;
    box-shadow: none !important;
    border: 1px solid #bbb !important;
    border-radius: 0 !important;
    animation: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .fs-hero::before,
  .fs-hero-line {
    display: none !important;
  }

  .fs-kicker,
  .fs-section-label,
  .fs-step-time,
  .fs-toc-num,
  .fs-journal-label,
  .fs-glossary dt,
  .fs-leader .fs-section-label {
    color: #000 !important;
  }

  .fs-title,
  .fs-step-title,
  .fs-toc-title,
  .fs-prompt,
  .fs-prose,
  .fs-prose p,
  .fs-prose strong,
  .fs-q-list,
  .fs-leader-list,
  .fs-leader-list strong,
  .fs-closing,
  .fs-subtitle {
    color: #111 !important;
  }

  .fs-step-badge {
    background: #eee !important;
    color: #111 !important;
    border: 1px solid #999;
  }

  .fs-bible-link {
    color: #111 !important;
    border-bottom: 1px solid #666 !important;
    text-decoration: none;
  }

  .fs-bible-link::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
    word-break: break-all;
  }

  .fs-journal {
    border-style: solid !important;
  }

  .fs-journal-line {
    height: 2.1rem;
    border-bottom: 1px solid #444 !important;
  }

  .fs-toc-list {
    border-top: 1px solid #bbb;
  }

  .fs-toc-list li,
  .fs-toc-link {
    border-color: #bbb !important;
    opacity: 1 !important;
  }

  .fs-toc-link.is-soon em {
    color: #555 !important;
  }

  .fs-leader {
    border: 1px dashed #777 !important;
    margin-top: 1.25rem;
    page-break-before: auto;
  }

  a {
    text-decoration: none;
  }

  /* Cover print — white sheet, no fill, title large and clear */
  body.fs-cover-print,
  body.fs-cover-print main,
  body.fs-cover-print .fs-book--cover {
    background: #fff !important;
    color: #111 !important;
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }

  body.fs-cover-print .fs-book--cover {
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 0;
    --fs-ink: #111;
    --fs-muted: #333;
    --fs-line: #ccc;
    --fs-glow: transparent;
  }

  body.fs-cover-print .fs-hero,
  body.fs-cover-print .fs-hero--cover {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 0 10mm;
    padding: 6mm 0 8mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.fs-cover-print .fs-hero--cover::before,
  body.fs-cover-print .fs-hero--cover .fs-hero-line {
    display: none !important;
  }

  body.fs-cover-print .fs-kicker {
    color: #444 !important;
    font-size: 11pt !important;
    letter-spacing: 0.14em;
    margin-bottom: 4mm !important;
  }

  body.fs-cover-print .fs-title {
    color: #000 !important;
    font-size: 28pt !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
  }

  body.fs-cover-print .fs-subtitle {
    color: #333 !important;
    font-size: 12pt !important;
    max-width: none;
    margin-top: 4mm !important;
  }

  body.fs-cover-print .fs-section-label,
  body.fs-cover-print .fs-toc-num,
  body.fs-cover-print .fs-toc-kind {
    color: #000 !important;
  }

  body.fs-cover-print .fs-toc-title,
  body.fs-cover-print .fs-prose,
  body.fs-cover-print .fs-prose p,
  body.fs-cover-print .fs-prose strong,
  body.fs-cover-print .fs-closing {
    color: #111 !important;
  }

  body.fs-cover-print .fs-toc-list {
    border-top: 1px solid #bbb !important;
  }

  body.fs-cover-print .fs-toc-list li,
  body.fs-cover-print .fs-toc-link {
    border-color: #bbb !important;
    background: transparent !important;
  }

  body.fs-cover-print .fs-toc-thumb {
    border-color: #bbb !important;
    box-shadow: none !important;
  }

  body.fs-cover-print .fs-toc-thumb img {
    filter: grayscale(0.15);
  }

  body.fs-cover-print .fs-toc-link.is-soon em {
    color: #555 !important;
  }

  body.fs-cover-print .fs-prose .fs-closing {
    background: #fff !important;
    border: 1px solid #bbb !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}
