/* 유노하나 1994– 기록관 공용 스타일
   index.html  <body class="site home">
   museum.html <body class="site museum">
   공용 부품은 .site 아래, 페이지 전용 규칙은 .home / .museum 아래에 둡니다. */

:root {
  color-scheme: light;
  --paper: #e8f1dc; /* 유노하나를 푼 물빛: 기록관 아기 목욕 사진의 물 색(#D7ECC7)을 옅힌 색 */
  --ink: #171816;
  --muted: #606159;
  --line: #b0b5a1;
  --accent: #a73427;
  --serif: "Nanum Myeongjo", "Noto Serif KR", "Batang", serif;
  --sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --numeral: Georgia, serif;
  --gutter: clamp(20px, 3.2vw, 52px);
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }

/* ================= 공용 부품 (body.site) ================= */

body.site {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.site a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: 1px; }
.site a:hover { color: var(--accent); }
.site :focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.site ::selection { background: #a73427; color: #fff; }
.site img { display: block; max-width: 100%; height: auto; }
.site figure, .site p, .site dl, .site ol, .site ul, .site table { margin: 0 0 1.4rem; }
.site h1, .site h2, .site h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.5;
  text-wrap: pretty;
}
.site h1 { margin: 0; font-size: clamp(42px, 4.7vw, 76px); line-height: 1.34; }
.site h1 span { display: block; }
.site h1 .accent { color: var(--accent); }

/* 틀과 건너뛰기 링크 */
.site .shell { width: min(100%, 1600px); margin-inline: auto; padding-inline: var(--gutter); }
.site .skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  transform: translateY(-130%);
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}
.site .skip-link:focus { transform: none; }

/* 머리띠: 로고 · 에디션 · 사이트 메뉴 */
.site .masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--ink);
}
.site .brand { font: 700 16px var(--numeral); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.site .edition { color: var(--accent); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.site .masthead nav { display: flex; gap: 28px; font-size: 13px; }
.site .masthead nav a { text-decoration: none; }
.site .masthead nav a[aria-current="page"] { color: var(--accent); }

/* 표지: 보조 문구 · 제목 · 설명 · 연도 띠 · 링크 줄 */
.site .cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
  padding: 40px 0 76px;
}
.site .kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 36px; }
.site .cover-deck { max-width: 29rem; margin: 30px 0 0; color: var(--muted); font-size: 15px; }
.site .cover-range { display: flex; align-items: baseline; gap: 18px; margin: 28px 0 0; font-family: var(--numeral); }
.site .cover-range .year { font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -.05em; }
.site .cover-range .range-line { width: 52px; border-top: 1px solid var(--accent); align-self: center; }
.site .cover-range small { font-size: 20px; }
.site .cover-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; font-size: 13px; }
.site .cover-links a { padding-bottom: 6px; border-bottom: 1px solid var(--ink); text-decoration: none; }

/* 꼬리말 */
.site .footer { border-top: 1px solid var(--ink); padding: 42px 0 32px; color: var(--muted); font-size: 13px; }
.site .footer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.site .footer .brand { color: var(--ink); }
.site .footer address { font-style: normal; }
.site .footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.site .footer p:last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
  .site .cover { gap: 36px; }
  .site h1 { font-size: 44px; }
}
@media (max-width: 760px) {
  .site .masthead { padding-top: 24px; gap: 16px; }
  .site .edition { display: none; }
  .site .masthead nav { gap: 18px; }
  .site .cover { grid-template-columns: minmax(0, 1fr); gap: 38px; padding: 24px 0 44px; }
  .site h1 { font-size: clamp(40px, 8.5vw, 58px); }
  .site .kicker { margin-bottom: 24px; }
  .site .cover-deck { font-size: 14px; }
  .site .cover-range { margin-top: 25px; }
  .site .footer-top { flex-direction: column; gap: 16px; }
}
@media (max-width: 400px) {
  .site .masthead nav { font-size: 12px; gap: 12px; }
  .site .brand { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  @page { margin: 16mm; }
  body.site { background: white; color: black; font-size: 11pt; }
  .site .shell { padding: 0; }
  .site .skip-link, .site .masthead nav, .site .cover-links { display: none; }
  .site .cover { display: block; padding-block: 20px; }
  .site h1 { font-size: 30pt; }
  .site img { max-height: 170mm; object-fit: contain; }
  .site a { color: black; }
}

/* ================= index.html 전용 (body.home) ================= */

.home .page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
.home .cover-figure {
  position: relative;
  min-width: 0;
  min-height: clamp(360px, 62vh, 720px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
.home .number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  font-family: var(--numeral);
  font-size: clamp(13rem, 30vw, 34rem);
  font-weight: 400;
  line-height: .72;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.home .number__value { letter-spacing: -.1em; }
.home .number sup {
  margin: .35em 0 0 .5em;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
}
.home .seal {
  position: absolute;
  right: 0;
  bottom: 10%;
  z-index: 2;
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--paper);
  font-size: .78rem;
  letter-spacing: .08em;
}
.home .rings { position: absolute; left: 4%; bottom: 8%; width: min(30vw, 360px); color: var(--line); }

@media (max-width: 760px) {
  .home .cover-figure { min-height: 0; padding-top: 8px; align-items: flex-end; }
  .home .number { font-size: clamp(10rem, 56vw, 20rem); line-height: .7; }
  .home .rings { left: auto; right: -8%; width: 44vw; }
  .home .seal { width: 46px; bottom: 8%; }
}
@media print {
  .home .page { min-height: 0; }
  .home .cover-figure { min-height: 0; }
  .home .number { font-size: 120pt; }
  .home .rings { display: none; }
}

/* ================= museum.html 전용 (body.museum) ================= */

.museum h2 { margin: 0; font-size: clamp(25px, 2.3vw, 36px); }
.museum h3 { margin: 2.8rem 0 1rem; font-size: 25px; }
.museum .breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; padding: 17px 0; list-style: none; color: var(--muted); font-size: 12px; }
.museum .breadcrumbs li + li::before { content: "/"; padding-right: 12px; color: var(--line); }
.museum .cover-photo { margin: 0; }
.museum .cover-photo img { width: 100%; aspect-ratio: 1.14; object-fit: cover; }
.museum figcaption { margin-top: 13px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.museum .cover-photo figcaption { display: flex; justify-content: space-between; gap: 20px; }
.museum .cover-photo figcaption span:last-child { flex-shrink: 0; }
.museum .intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 112px);
  border-top: 1px solid var(--ink);
  padding: 64px 0;
}
.museum .intro-label { font: 400 30px var(--serif); margin-bottom: 26px; }
.museum .lead { font-size: 17px; line-height: 2; }
.museum .honest { margin-top: 28px; padding-left: 18px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 13px; }
.museum .lead-en { color: var(--muted); font-family: Georgia, serif; font-size: 14px; line-height: 1.9; }
.museum .band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.museum .band li { padding: 10px 0; border-top: 1px solid var(--line); }
.museum table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.8; }
.museum caption { text-align: left; margin-bottom: 16px; color: var(--ink); font-family: var(--serif); font-size: 24px; }
.museum th, .museum td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.museum th { font-weight: 500; color: var(--muted); }
.museum table.infobox { margin: 0; }
.museum .infobox th { width: 30%; padding-left: 0; font-size: 13px; }
.museum .infobox tr:first-child > * { border-top: 1px solid var(--ink); }
.museum .toc { padding: 34px 0 42px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.museum .toc h2 { margin-bottom: 24px; display: flex; align-items: center; gap: 18px; font: 400 23px var(--serif); }
.museum .toc h2 span { font: 11px var(--sans); letter-spacing: .2em; color: var(--accent); }
.museum .toc ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 36px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: toc;
}
.museum .toc li { counter-increment: toc; }
.museum .toc a { display: flex; align-items: baseline; gap: 15px; padding: 5px 0; text-decoration: none; font-size: 13px; }
.museum .toc a::before { content: counter(toc, decimal-leading-zero); font: 12px Georgia, serif; color: var(--accent); }
.museum .toc a:hover { text-decoration: underline; }
.museum .chapters { counter-reset: chapter; }
.museum .chapter {
  display: grid;
  grid-template-columns: minmax(170px, .62fr) minmax(0, 1.6fr);
  column-gap: clamp(40px, 7vw, 112px);
  padding: 86px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: chapter;
}
.museum .chapter-heading { align-self: start; position: sticky; top: 36px; }
.museum .chapter-heading::before {
  content: counter(chapter, decimal-leading-zero);
  display: block;
  margin-bottom: 24px;
  font: 16px Georgia, serif;
  color: var(--accent);
}
.museum .chapter-heading h2 { max-width: 12ch; }
.museum .chapter-heading a { display: inline-block; margin-top: 26px; color: var(--muted); font-size: 12px; text-decoration: none; }
.museum .chapter-body { min-width: 0; max-width: 880px; }
.museum .chapter-body > p, .museum .chapter-body > dl.def { max-width: 45rem; }
.museum .chapter-body > :first-child { margin-top: 0; }
.museum .chapter-body > :last-child { margin-bottom: 0; }
.museum .chapter-body > figure { margin-block: 38px; }
.museum .chapter-body > figure img { width: 100%; max-width: 760px; }
.museum figure img[src*="permit-"] { width: min(100%, 500px); }
.museum figure img[src*="tin-"] { width: min(100%, 480px); }
.museum figure img[src*="illust-"] { width: min(100%, 320px); }
.museum .chapter-body > figure:has(img[src*="permit-"]), .museum .chapter-body > figure:has(img[src*="tin-"]) { padding: 30px; border: 1px solid var(--line); }
.museum ol.facts { list-style: none; padding: 0; margin: 0; counter-reset: fact; }
.museum ol.facts li {
  counter-increment: fact;
  position: relative;
  padding: 18px 0 18px 42px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.museum ol.facts li::before {
  content: counter(fact, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font: 12px Georgia, serif;
  color: var(--accent);
}
.museum .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 32px 0 40px; }
.museum .quote { margin: 26px 0; padding: 26px 0 0; border-top: 1px solid var(--accent); }
.museum .quote blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.85; }
.museum .quote blockquote p { margin: 0; }
.museum .quote figcaption { margin-top: 22px; font-size: 12px; }
.museum .pair .quote { margin: 0; }
.museum .pair .quote blockquote { font-size: 20px; }
.museum .quote.long blockquote { font-size: 18px; line-height: 1.9; }
.museum .quote.long blockquote p + p { margin-top: .55em; }
.museum .gen { padding-left: 18px; }
.museum .gen li { margin-bottom: 16px; }
.museum .gen li::marker { color: var(--accent); }
.museum .gen time { font-family: Georgia, serif; }
.museum .def dt { margin: 26px 0 8px; font-weight: 600; }
.museum .def dd { margin: 0; }
.museum .timeline { margin: 30px 0 0; }
.museum .timeline > div { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.museum .timeline dt { font: 20px/1.5 Georgia, var(--serif); color: var(--accent); }
.museum .timeline dd { margin: 0; font-size: 15px; }
.museum .timeline .gap { border-top-style: dashed; color: var(--muted); }
.museum .timeline .gap dt { color: var(--muted); }
.museum .src { font-size: 12px; line-height: 1.85; color: var(--muted); }
.museum .grade {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0 5px;
  margin-inline: 4px;
  color: var(--muted);
  font: 10px/1.6 var(--sans);
  vertical-align: .15em;
}
.museum .table-scroll { overflow-x: auto; margin-bottom: 24px; }
.museum .table-scroll table { min-width: 570px; }
.museum .table-scroll th { color: var(--ink); border-top: 1px solid var(--ink); }
.museum .faq h3 { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 23px; }
.museum .faq h3::before { content: "Q. "; font-family: Georgia, serif; color: var(--accent); }
.museum .callout { margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.museum .callout p:last-child { margin-bottom: 0; }
.museum .btn { display: inline-block; padding: 6px 0; border-bottom: 1px solid var(--accent); text-decoration: none; font-size: 14px; }
.museum .sources { padding-left: 20px; font-size: 12px; }
.museum .sources li { padding-left: 7px; margin-bottom: 16px; }
.museum .sources li::marker { color: var(--accent); font-family: Georgia, serif; }
.museum .log { font-size: 12px; }
.museum .log dt { color: var(--accent); }
.museum .log dd { margin: 8px 0 24px; }
.museum .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 30px 0 38px; }
.museum .gallery figure { margin: 0; }
.museum .gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.museum .gallery figcaption { margin-top: 10px; font-size: 13px; }
.museum figure img[src*="importer"] { width: min(100%, 712px); image-rendering: auto; }
.museum figure:has(img[src*="importer"]) { padding: 14px; background: #f1f6e9; border: 1px solid var(--line); }
.museum .src a, .museum .quote figcaption a, .museum .sources a, .museum .log a { text-decoration-color: var(--line); }
.museum .src a:hover, .museum .quote figcaption a:hover, .museum .sources a:hover { text-decoration-color: currentColor; }
.museum :target { scroll-margin-top: 32px; }
.museum li:target { background: #d5e6c4; }

@media (max-width: 1100px) {
  .museum .chapter { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
  .museum .pair { grid-template-columns: 1fr; }
  .museum .intro { gap: 40px; }
}
@media (max-width: 760px) {
  .museum .cover-photo img { aspect-ratio: 1.3; }
  .museum .cover-photo figcaption { font-size: 12px; }
  .museum .intro { grid-template-columns: minmax(0, 1fr); padding: 40px 0; }
  .museum .lead { font-size: 16px; }
  .museum .toc ol { grid-template-columns: 1fr 1fr; gap: 9px 20px; }
  .museum .toc a { font-size: 13px; gap: 8px; }
  .museum .chapter { grid-template-columns: minmax(0, 1fr); padding: 52px 0; gap: 28px; }
  .museum .chapter-heading { position: static; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: baseline; }
  .museum .chapter-heading::before { margin: 0; font-size: 13px; }
  .museum .chapter-heading h2 { max-width: none; font-size: 26px; }
  .museum .chapter-heading a { margin: 0; font-size: 11px; }
  .museum .chapter-body { font-size: 15px; }
  .museum .timeline > div { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .museum .timeline dt { font-size: 17px; }
  .museum .timeline dd { font-size: 14px; }
  .museum .chapter-body > figure:has(img[src*="permit-"]), .museum .chapter-body > figure:has(img[src*="tin-"]) { padding: 16px; }
  .museum .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .museum .gallery figcaption { font-size: 12px; }
}
@media (max-width: 400px) {
  .museum .toc ol { grid-template-columns: 1fr; }
  .museum .chapter-heading { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .museum .timeline > div { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media print {
  .museum .toc, .museum .chapter-heading a, .museum .breadcrumbs { display: none; }
  .museum .intro, .museum .chapter { display: block; padding-block: 20px; }
  .museum .cover-photo { max-width: 70%; margin-block: 24px; }
  .museum .chapter-heading { position: static; margin-bottom: 20px; }
  .museum .chapter-heading h2 { max-width: none; }
  .museum figure, .museum .quote, .museum .timeline > div, .museum tr { break-inside: avoid; }
  .museum .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .museum .table-scroll { overflow: visible; }
  .museum .table-scroll table { min-width: 0; }
}

/* ================= 움직임 (CSS만 사용) =================
   - 움직임이 없어도 모든 글과 사진이 그대로 보입니다(기본 상태가 '보이는 상태').
   - 기기의 '동작 줄이기' 설정을 켠 사람과 인쇄에서는 모두 꺼집니다.
   - 스크롤 연출은 지원하는 브라우저에서만 켜지고, 나머지는 정지 화면 그대로입니다. */
@media (prefers-reduced-motion: no-preference) {
  /* 첫 화면: 주황빛 가루가 물에 풀려 연둣빛이 되는 순간 */
  body.home::before {
    content: "";
    position: fixed;
    inset: -40%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle closest-side at 60% 51%, #f5c68a 0%, #f4dcb6 48%, rgba(244, 220, 182, 0) 100%);
    animation: yh-dissolve 2.8s ease-out .15s both;
  }
  /* 첫 화면: 물결이 번지는 세 겹의 원 */
  .home .rings ellipse {
    transform-box: fill-box;
    transform-origin: center;
    animation: yh-ripple 7.5s ease-out infinite;
  }
  .home .rings ellipse:nth-child(2) { animation-delay: -2.5s; }
  .home .rings ellipse:nth-child(3) { animation-delay: -5s; }
  .home .number { animation: yh-rise 1.3s cubic-bezier(.2, .7, .2, 1) .35s both; }
  .home .seal { animation: yh-stamp .55s cubic-bezier(.3, 1.4, .5, 1) 1.5s both; }

  /* 두 페이지 공통: 표지 글이 차례로 떠오름 */
  .site .cover-copy > * { animation: yh-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .site .cover-copy > :nth-child(1) { animation-delay: .05s; }
  .site .cover-copy > :nth-child(2) { animation-delay: .18s; }
  .site .cover-copy > :nth-child(3) { animation-delay: .34s; }
  .site .cover-copy > :nth-child(4) { animation-delay: .5s; }
  .site .cover-copy > :nth-child(5) { animation-delay: .66s; }
  .museum .cover-photo img { animation: yh-fade 1.4s ease-out .3s both; }

  /* 링크와 사진의 부드러운 반응 */
  .site a { transition: color .2s ease, text-decoration-color .2s ease; }
  .museum .gallery img { transition: transform .45s ease; }
  .museum .gallery figure:hover img { transform: scale(1.03); }

  /* 기록관: 스크롤하면 연표·인용·사진이 한 칸씩 떠오름 */
  @supports (animation-timeline: view()) {
    .museum .timeline > div,
    .museum .quote,
    .museum .gallery figure,
    .museum ol.facts li,
    .museum .chapter-body > figure {
      animation: yh-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}
/* '동작 줄이기'를 켠 기기(윈도우에서 애니메이션 효과를 끈 경우 포함):
   움직임(이동·확대·물결)은 끄고, 색과 투명도만 서서히 바뀌는 연출은 남깁니다. */
@media (prefers-reduced-motion: reduce) {
  body.home::before {
    content: "";
    position: fixed;
    inset: -40%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle closest-side at 60% 51%, #f5c68a 0%, #f4dcb6 48%, rgba(244, 220, 182, 0) 100%);
    animation: yh-fade-out 2.8s ease-out .15s both;
  }
  .site .cover-copy > * { animation: yh-fade 1s ease-out both; }
  .site .cover-copy > :nth-child(1) { animation-delay: .05s; }
  .site .cover-copy > :nth-child(2) { animation-delay: .2s; }
  .site .cover-copy > :nth-child(3) { animation-delay: .4s; }
  .site .cover-copy > :nth-child(4) { animation-delay: .6s; }
  .site .cover-copy > :nth-child(5) { animation-delay: .8s; }
  .home .number { animation: yh-fade 1.4s ease-out .35s both; }
  .home .seal { animation: yh-fade .8s ease-out 1.5s both; }
  .museum .cover-photo img { animation: yh-fade 1.4s ease-out .3s both; }
  @supports (animation-timeline: view()) {
    .museum .timeline > div,
    .museum .quote,
    .museum .gallery figure,
    .museum ol.facts li,
    .museum .chapter-body > figure {
      animation: yh-fade linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}
/* ===== 장(챕터) 연출 =====
   스크롤에 맞춰 장 번호·제목·밑줄이 나타나고, 맨 위 막대가 읽은 만큼 찹니다.
   선과 막대는 빈 장식(content: "")이라 페이지의 글자는 한 글자도 늘지 않습니다.
   이 기능을 지원하지 않는 브라우저에서는 지금 모습 그대로입니다. */
@supports (animation-timeline: view()) {
  .museum .chapter { view-timeline-name: --yh-chapter; }
  .museum .chapter-heading h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin-top: 18px;
    background: var(--accent);
    transform-origin: left center;
  }
  body.museum::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 20;
    pointer-events: none;
    background: var(--accent);
    transform-origin: left center;
    transform: scaleX(0);
    animation: yh-draw linear both;
    animation-timeline: scroll(root);
  }
  @media (prefers-reduced-motion: no-preference) {
    .museum .chapter-heading::before { animation: yh-num linear both; animation-timeline: --yh-chapter; animation-range: entry 0% entry 45%; }
    .museum .chapter-heading h2 { animation: yh-rise linear both; animation-timeline: --yh-chapter; animation-range: entry 5% entry 50%; }
    .museum .chapter-heading h2::after { animation: yh-draw linear both; animation-timeline: --yh-chapter; animation-range: entry 25% entry 75%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .museum .chapter-heading::before,
    .museum .chapter-heading h2,
    .museum .chapter-heading h2::after { animation: yh-fade linear both; animation-timeline: --yh-chapter; animation-range: entry 0% entry 45%; }
  }
}
@keyframes yh-num { from { opacity: 0; transform: translateY(18px); color: var(--line); } to { opacity: 1; transform: none; color: var(--accent); } }
@keyframes yh-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes yh-fade-out { from { opacity: .9; } to { opacity: 0; } }
@keyframes yh-dissolve { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(1.15); } }
@keyframes yh-ripple { 0% { transform: scale(.55); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes yh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes yh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes yh-stamp { from { opacity: 0; transform: scale(1.6) rotate(-10deg); } to { opacity: 1; transform: none; } }
@media print {
  .site *, .site *::before, .site *::after, body.home::before { animation: none !important; transition: none !important; }
  body.home::before, body.museum::after { display: none; }
}
