@charset "UTF-8";
/*
* Trunk version 2.0.0
*/

 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
     /* background: #FFFFFF;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
     /*  align-items: center; 
      justify-content: center;
      padding: 40px 20px;
      font-family: 'Lato', sans-serif; */
    }

    .preview-label {
      font-size: 0.65rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.2);
      margin-bottom: 18px;
    }

    h2 {
      font-family: 'Noto Serif KR', Georgia, serif;
      font-size: clamp(1.4rem, 3vw, 2.2rem);
      color: #fff;
      margin-bottom: 36px;
      text-align: center;
    }

    h2 span { color: #de3139; }

    /* ── Outer wrap ── */
    .gh-book-wrap {
      position: relative;
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
      padding-bottom: 40px;
    }

    /* Ambient glow beneath the book */
    .gh-book-shadow {
      position: absolute;
      bottom: 10px;
      left: 5%; right: 5%;
      height: 60px;
      /*  background: radial-gradient(ellipse at center, */
        rgba(222,49,57,0.22) 0%,
        rgba(0,0,0,0.55) 45%,
        transparent 100%);
      filter: blur(12px);
      pointer-events: none;
      z-index: 0;
    }

    /* ── Book outer frame: leather-look cover ── */
    .gh-book-frame {
      position: relative;
      z-index: 1;
      border-radius: 6px 14px 14px 6px;
      padding: 10px 10px 10px 18px;
      background: linear-gradient(135deg, #1c1008 0%, #2a1a0a 40%, #1a1008 100%);
      box-shadow:
        0 2px 0 rgba(255,255,255,0.04) inset,
        0 -2px 0 rgba(0,0,0,0.6) inset,
        -8px 0 18px rgba(0,0,0,0.7) inset,
        0 20px 60px rgba(0,0,0,0.7),
        0 6px 20px rgba(0,0,0,0.5),
        4px 0 12px rgba(0,0,0,0.4);
    }

    /* Embossed spine strip */
    .gh-book-frame::before {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 18px;
      border-radius: 6px 0 0 6px;
      background: linear-gradient(to right,
        #0a0604 0%, #2e1e0c 35%, #1a1008 60%, #0e0906 100%);
      box-shadow:
        inset -3px 0 6px rgba(0,0,0,0.5),
        inset 2px 0 4px rgba(255,200,100,0.06);
    }

    /* Gold spine ribs */
    .gh-book-frame::after {
      content: '';
      position: absolute;
      left: 4px;
      top: 15%; bottom: 15%;
      width: 10px;
      background: repeating-linear-gradient(
        to bottom,
        transparent 0px, transparent 10px,
        rgba(180,140,60,0.25) 10px, rgba(180,140,60,0.25) 12px
      );
      border-radius: 2px;
      pointer-events: none;
    }

    /* ── Stage ── */
    .gh-book-stage {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      z-index: 1;
      border-radius: 3px 10px 10px 3px;
      overflow: hidden;
      box-shadow:
        0 4px 24px rgba(0,0,0,0.6),
        0 1px 4px rgba(0,0,0,0.4),
        inset 0 0 0 1px rgba(255,255,255,0.03);
    }

    /* ── Each spread: stacked, crossfade ── */
    .gh-spread {
      position: absolute;
      inset: 0;
      display: flex;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.85s ease;
      z-index: 1;
    }

    .gh-spread--active {
      opacity: 1;
      pointer-events: auto;
      z-index: 5;
    }

    /* ── Left leaf: photo ── */
    .gh-leaf--left {
      position: relative;
      width: 50%;
      height: 100%;
      overflow: hidden;
      border-radius: 3px 0 0 3px;
      flex-shrink: 0;
    }

    /* Ken Burns base state */
    .gh-leaf--left img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
      transform: scale(1.12) translate(2%, 1%);
      transition: transform 0s;
      will-change: transform;
    }

    /* Ken Burns active drift */
    .gh-spread--active .gh-leaf--left img {
      transform: scale(1.0) translate(0%, 0%);
      transition: transform 9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* Vignette overlay */
    .gh-leaf--left::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse at 30% 50%, transparent 40%, rgba(0,0,0,0.45) 100%),
        linear-gradient(to right, rgba(0,0,0,0.0) 70%, rgba(0,0,0,0.55) 100%);
      pointer-events: none;
      z-index: 2;
    }

    /* Photo caption */
    .gh-photo-caption {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 28px 18px 14px;
      background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
      z-index: 3;
      pointer-events: none;
    }

    .gh-photo-caption span {
      font-family: 'Lato', sans-serif;
      font-size: clamp(0.6rem, 0.9vw, 0.78rem);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.55);
    }

    /* ── Spine ── */
    .gh-spine-line {
      position: absolute;
      left: 50%; top: 0;
      transform: translateX(-50%);
      width: 14px; height: 100%;
      background: linear-gradient(to right,
        rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 30%,
        rgba(255,255,255,0.07) 50%,
        rgba(0,0,0,0.18) 70%, rgba(0,0,0,0.45) 100%);
      z-index: 10;
      pointer-events: none;
      flex-shrink: 0;
    }

    .gh-spine-line::after {
      content: '';
      position: absolute;
      left: 50%; top: 8%; bottom: 8%;
      width: 1px;
      transform: translateX(-50%);
      background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255,220,140,0.18) 20%,
        rgba(255,220,140,0.32) 50%,
        rgba(255,220,140,0.18) 80%,
        transparent 100%);
    }

    /* ── Right leaf: paper page ── */
    .gh-leaf--right {
      position: relative;
      width: 50%; height: 100%;
      border-radius: 0 10px 10px 0;
      flex-shrink: 0;
      overflow: hidden;
      background-color: #f5f0e8;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
      box-shadow:
        inset 16px 0 28px rgba(0,0,0,0.22),
        inset 0 0 60px rgba(0,0,0,0.06);
    }

    /* Ruled lines */
    .gh-leaf--right::before {
      content: '';
      position: absolute; inset: 0;
      background-image: repeating-linear-gradient(
        to bottom,
        transparent 0px, transparent 27px,
        rgba(180,160,120,0.12) 27px, rgba(180,160,120,0.12) 28px
      );
      pointer-events: none;
      z-index: 0;
    }

    /* Red margin line */
    .gh-leaf--right::after {
      content: '';
      position: absolute;
      left: clamp(42px, 7%, 72px);
      top: 0; bottom: 0;
      width: 1px;
      background: rgba(222,49,57,0.18);
      pointer-events: none;
      z-index: 0;
    }

    /* ── Text page ── */
    .gh-text-page {
      position: absolute; inset: 0;
      padding: clamp(22px, 4%, 52px) clamp(22px, 5.5%, 62px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
      z-index: 1;
    }

    /* Text fade-up animation */
    @keyframes gh-text-rise {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .gh-spread--active .gh-text-page > * {
      animation: gh-text-rise 0.7s ease both;
    }
    .gh-spread--active .gh-text-page > *:nth-child(1) { animation-delay: 0.35s; }
    .gh-spread--active .gh-text-page > *:nth-child(2) { animation-delay: 0.45s; }
    .gh-spread--active .gh-text-page > *:nth-child(3) { animation-delay: 0.55s; }
    .gh-spread--active .gh-text-page > *:nth-child(4) { animation-delay: 0.65s; }
    .gh-spread--active .gh-text-page > *:nth-child(5) { animation-delay: 0.75s; }
    .gh-spread--active .gh-text-page > *:nth-child(6) { animation-delay: 0.85s; }

    .gh-chapter-num {
      font-family: 'Lato', sans-serif;
      font-size: clamp(0.55rem, 0.85vw, 0.72rem);
      font-weight: 700;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(222,49,57,0.65);
      margin: 0 0 clamp(6px, 1%, 12px) 0;
      display: block;
    }

    .gh-chapter-rule {
      display: block;
      width: clamp(28px, 4vw, 48px);
      height: 2px;
      background: linear-gradient(to right, #de3139, rgba(222,49,57,0.0));
      margin: 0 0 clamp(10px, 1.8%, 20px) 0;
      border-radius: 1px;
    }

    .gh-text-page h4 {
      font-family: 'Noto Serif KR', Georgia, serif;
      font-size: clamp(0.9rem, 1.7vw, 1.5rem);
      font-weight: 700;
      color: #1a1208;
      letter-spacing: 0.01em;
      margin: 0 0 clamp(10px, 1.8%, 20px) 0;
      line-height: 1.25;
      text-transform: none;
    }

    .gh-text-divider {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 clamp(10px, 1.8%, 18px) 0;
    }

    .gh-text-divider::before,
    .gh-text-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(to right, rgba(180,140,80,0.5), rgba(180,140,80,0.1));
    }

    .gh-text-divider::before {
      background: linear-gradient(to left, rgba(180,140,80,0.5), rgba(180,140,80,0.1));
    }

    .gh-text-divider-diamond {
      width: 6px; height: 6px;
      background: rgba(222,49,57,0.6);
      transform: rotate(45deg);
      flex-shrink: 0;
    }

    .gh-text-page p {
      font-family: 'Lato', sans-serif;
      font-size: clamp(0.68rem, 1.05vw, 0.95rem);
      color: #3a2e20;
      line-height: 1.75;
      margin: 0 0 clamp(8px, 1.4%, 16px) 0;
    }

    .gh-text-page p:last-child { margin-bottom: 0; }

    .gh-text-page p.gh-pull {
      font-style: italic;
      color: #5a4530;
      border-left: 2px solid rgba(222,49,57,0.4);
      padding-left: clamp(10px, 1.5%, 16px);
      margin-left: 2px;
    }

    /* Page number badge */
    .gh-leaf-num {
      position: absolute;
      bottom: 12px; right: 16px;
      font-family: 'Lato', sans-serif;
      font-size: 9px;
      letter-spacing: 0.14em;
      color: rgba(80,60,30,0.4);
      pointer-events: none;
      z-index: 5;
      text-transform: uppercase;
    }

    .gh-leaf--left .gh-leaf-num {
      right: auto; left: 14px;
      color: rgba(255,255,255,0.3);
    }

    /* ── Progress bar ── */
    .gh-progress-bar {
      position: absolute;
      bottom: 0; left: 0;
      height: 3px;
      background: linear-gradient(to right, #de3139, #ff6b35);
      border-radius: 0 2px 2px 0;
      transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 15;
      pointer-events: none;
    }

    /* ── Controls ── */
    .gh-book-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      margin-top: 24px;
      padding: 0 10px;
    }

    .gh-flip-btn {
      width: 48px; height: 48px;
      border: 1px solid rgba(255,255,255,0.15);
      background: rgba(15,10,5,0.9);
      color: #d4b896;
      font-size: 26px;
      line-height: 1;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.25s, transform 0.15s, opacity 0.2s, border-color 0.25s, box-shadow 0.25s;
      flex-shrink: 0;
      padding: 0;
      box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    }

    .gh-flip-btn:hover {
      background: rgba(222,49,57,0.85);
      border-color: rgba(222,49,57,0.6);
      color: #fff;
      transform: scale(1.12);
      box-shadow: 0 4px 18px rgba(222,49,57,0.4);
    }

    .gh-flip-btn:active  { transform: scale(0.93); }
    .gh-flip-btn:disabled { opacity: 0.18; cursor: default; pointer-events: none; }

    .gh-page-counter {
      font-family: 'Lato', sans-serif;
      font-size: 0.72rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.35);
      background: rgba(0, 0, 0, 0.56);
      color: rgba(0, 0, 0, 0.9);
background: rgba(195, 39, 39, 0.17);
      min-width: 50px;
      text-align: center;
      user-select: none;
    }

    .gh-dots { display: flex; gap: 12px; align-items: center; }

    .gh-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,0.15);
      background: rgba(0, 0, 0, 0.56);
      border: 1px solid rgba(255,255,255,0.3);
      cursor: pointer;
      transition: background 0.25s, transform 0.25s, border-color 0.25s, width 0.3s;
      display: block;
      flex-shrink: 0;
    }

    .gh-dot:hover {
      background: rgba(222,49,57,0.5);
      border-color: rgba(222,49,57,0.7);
      transform: scale(1.2);
    }

    .gh-dot--active {
      background: #de3139;
      border-color: #de3139;
      transform: scale(1.4);
      width: 20px;
      border-radius: 4px;
    }

    .gh-keyboard-hint {
      text-align: center;
      margin-top: 14px;
      font-family: 'Lato', sans-serif;
      font-size: 0.65rem;
      font-size: 1.0rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.18);
      color: rgba(252, 14, 14, 0.9);
      user-select: none;
    }

    .gh-keyboard-hint kbd {
      display: inline-block;
      padding: 1px 5px;
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 3px;
      font-size: 0.6rem;
      background: rgba(255,255,255,0.05);
      font-family: inherit;
      color: rgba(255,255,255,0.3);
      color: rgba(236, 27, 27, 0.86);
      margin: 0 2px;
    }

    /* ── Mobile ── */
    @media (max-width: 767.98px) {
      .gh-book-frame { padding: 6px 6px 6px 10px; border-radius: 4px 8px 8px 4px; }
      .gh-book-frame::before { width: 10px; }
      .gh-book-frame::after  { display: none; }
      .gh-book-stage { aspect-ratio: unset; height: auto; overflow: visible; }
      .gh-spread { position: relative; flex-direction: column; opacity: 0; height: 0; overflow: hidden; pointer-events: none; }
      .gh-spread--active { opacity: 1; height: auto; pointer-events: auto; }
      .gh-leaf--left, .gh-leaf--right { width: 100%; border-radius: 0; box-shadow: none; }
      .gh-leaf--left { aspect-ratio: 4 / 3; border-radius: 4px 4px 0 0; }
      .gh-leaf--right { border-radius: 0 0 4px 4px; min-height: 280px; }
      .gh-leaf--right::after { display: none; }
      .gh-spine-line { display: none; }
      .gh-text-page { padding: 24px 22px; justify-content: flex-start; }
      .gh-keyboard-hint { display: none; }
      .gh-progress-bar { display: none; }
    }

    @media (max-width: 480px) {
      .gh-text-page h4 { font-size: 1rem; }
      .gh-text-page p  { font-size: 0.8rem; }
      .gh-flip-btn { width: 42px; height: 42px; }
    }







    