:root {
      --paper: #FBF8F3;
      --paper-soft: #F5EFE6;
      --desk: #EAE2D6;
      --desk-deep: #DDD2C3;
      --ink: #1F1B18;
      --muted: #6B6057;
      --salmon: #C95B42;
      --salmon-soft: rgba(201, 91, 66, 0.1);
      --sage: #4B6B55;
      --sage-soft: rgba(75, 107, 85, 0.11);
      --hairline: #E2D9CC;
      --shadow-book: 0 26px 65px rgba(31, 27, 24, 0.18), 0 8px 20px rgba(31, 27, 24, 0.08);
      --serif-display: "Playfair Display", "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
      --serif-body: "Noto Serif KR", "Cormorant Garamond", Georgia, serif;
      --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    html, body {
      margin: 0;
      padding: 0;
      overflow-x: clip;
      background: radial-gradient(circle at top center, #EFE8DC 0%, var(--desk) 55%, var(--desk-deep) 100%);
      color: var(--ink);
      font-family: var(--sans);
      line-height: 1.68;
      -webkit-font-smoothing: antialiased;
      min-height: 100vh;
    }

    /* Floating Top Toolbar */
    .toolbar {
      position: sticky;
      top: 0;
      z-index: 40;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 24px;
      background: rgba(251, 248, 243, 0.9);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--hairline);
    }

    .brand-bar {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .home-pill {
      display: inline-flex;
      align-items: center;
      padding: 5px 11px;
      border-radius: 999px;
      border: 1px solid var(--hairline);
      background: var(--paper-soft);
      color: var(--ink);
      font-size: 0.78rem;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
      transition: all 0.16s ease;
    }

    .home-pill:hover {
      border-color: var(--salmon);
      color: var(--salmon);
    }

    .brand-title {
      font-family: var(--serif-display);
      font-size: 1.05rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: var(--ink);
      text-decoration: none;
      white-space: nowrap;
    }

    .brand-title:hover {
      color: var(--salmon);
    }

    .chapter-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
    }

    .tab-btn, .ctrl-btn {
      appearance: none;
      border: 1px solid var(--hairline);
      background: var(--paper);
      color: var(--muted);
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 500;
      padding: 6px 11px;
      border-radius: 999px;
      cursor: pointer;
      transition: all 0.18s ease;
    }

    .tab-btn:hover, .ctrl-btn:hover {
      border-color: var(--salmon);
      color: var(--ink);
    }

    .tab-btn.active {
      background: var(--ink);
      color: var(--paper);
      border-color: var(--ink);
    }

    .toolbar-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
    }

    .ctrl-btn.primary {
      background: var(--salmon);
      border-color: var(--salmon);
      color: #fff;
    }

    .ctrl-btn.primary:hover {
      background: #B44D36;
    }

    /* Book Stage */
    .book-stage {
      max-width: 1320px;
      margin: 28px auto 48px;
      padding: 0 24px;
    }

    .spread-wrapper {
      display: flex;
      flex-direction: column;
      gap: 36px;
    }

    /* Partner Rail (PC 3-Col Wide Bottom / Mobile 1-Col Above Nav) */
    .partner-rail {
      background: var(--paper);
      border: 1px solid rgba(107, 96, 87, 0.2);
      border-radius: 10px;
      padding: 18px 22px;
      margin-top: 20px;
      box-shadow: 0 10px 28px rgba(31, 27, 24, 0.08);
    }

    .partner-head {
      display: flex;
      flex-direction: row;
      align-items: baseline;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
      padding-bottom: 11px;
      margin-bottom: 14px;
      border-bottom: 1px solid var(--hairline);
    }

    .partner-head strong {
      font-family: var(--serif-body);
      font-size: 1.02rem;
      color: var(--ink);
    }

    .partner-head span {
      font-size: 0.8rem;
      color: var(--muted);
    }

    .partner-items {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .partner-item {
      background: #FFFDF9;
      border: 1px solid var(--hairline);
      border-radius: 8px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .partner-info { min-width: 0; }

    .partner-info strong {
      display: block;
      font-size: 0.85rem;
      color: var(--ink);
      line-height: 1.35;
      margin-bottom: 2px;
    }

    .partner-info span {
      display: block;
      font-size: 0.75rem;
      color: var(--muted);
    }

    .partner-btn {
      padding: 6px 10px;
      border-radius: 7px;
      background: var(--paper-soft);
      color: var(--salmon);
      border: 1px solid rgba(201, 91, 66, 0.28);
      font-size: 0.76rem;
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
      text-decoration: none;
      transition: all 0.16s ease;
    }

    .partner-btn:hover {
      background: var(--salmon);
      border-color: var(--salmon);
      color: #fff;
    }

    .partner-ftc {
      margin: 12px 0 0;
      font-size: 0.73rem;
      line-height: 1.5;
      color: var(--muted);
    }

    @media (min-width: 980px) {
      body.mode-spread .spread {
        height: 760px;
        min-height: 760px;
        max-height: 760px;
      }

      body.mode-spread .page:not(.page-full-photo) {
        height: 100%;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #D5C9B8 transparent;
      }
    }

    /* Spread Mode Behavior */
    body.mode-spread .spread {
      display: none;
    }

    body.mode-spread .spread.active {
      display: grid;
      animation: pageReveal 0.28s ease;
    }

    @keyframes pageReveal {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Two-Page Open Cookbook Spread */
    .spread {
      display: grid;
      grid-template-columns: 1fr 1fr;
      background: var(--paper);
      border-radius: 8px;
      box-shadow: var(--shadow-book);
      border: 1px solid rgba(107, 96, 87, 0.18);
      overflow: hidden;
      min-height: 760px;
      position: relative;
    }

    /* Subtle Center Book Spine */
    .spread::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 36px;
      transform: translateX(-50%);
      background: linear-gradient(
        to right,
        rgba(31, 27, 24, 0) 0%,
        rgba(31, 27, 24, 0.05) 45%,
        rgba(31, 27, 24, 0.11) 50%,
        rgba(31, 27, 24, 0.05) 55%,
        rgba(31, 27, 24, 0) 100%
      );
      pointer-events: none;
      z-index: 5;
    }

    .page {
      padding: 40px 44px 36px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      background: var(--paper);
    }

    .page-left {
      border-right: 1px solid rgba(226, 217, 204, 0.7);
    }

    .page-full-photo {
      padding: 0;
      background: #1B1714;
      overflow: hidden;
    }

    .page-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--hairline);
      padding-bottom: 10px;
      margin-bottom: 20px;
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .page-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 20px;
      padding-top: 10px;
      border-top: 1px solid var(--hairline);
      font-size: 0.75rem;
      color: var(--muted);
    }

    .page-num {
      font-family: var(--serif-display);
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--ink);
    }

    /* Typography & Editorial Elements */
    .eyebrow {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--salmon);
      margin-bottom: 10px;
      display: inline-block;
    }

    h1.book-title {
      font-family: var(--serif-body);
      font-size: 2.15rem;
      font-weight: 700;
      line-height: 1.24;
      margin: 0 0 8px;
      color: var(--ink);
      letter-spacing: -0.02em;
    }

    .italian-title {
      font-family: "Cormorant Garamond", "Playfair Display", serif;
      font-style: italic;
      font-size: 1.38rem;
      font-weight: 500;
      color: var(--muted);
      margin: 0 0 22px;
    }

    h2.section-title {
      font-family: var(--serif-body);
      font-size: 1.45rem;
      font-weight: 700;
      margin: 0 0 6px;
      line-height: 1.3;
    }

    h3.sub-heading {
      font-family: var(--serif-body);
      font-size: 1.04rem;
      font-weight: 700;
      margin: 18px 0 8px;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .lead-copy {
      font-family: var(--serif-body);
      font-size: 0.98rem;
      line-height: 1.82;
      color: #322B26;
      margin: 0 0 24px;
    }

    .body-text {
      font-size: 0.9rem;
      line-height: 1.76;
      color: #352E29;
      margin: 0 0 12px;
    }

    /* Metadata Grid */
    .meta-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 18px 0;
      border-top: 1px solid var(--hairline);
      border-bottom: 1px solid var(--hairline);
      margin-bottom: 22px;
    }

    .meta-item {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .meta-label {
      font-size: 0.72rem;
      color: var(--muted);
      letter-spacing: 0.06em;
    }

    .meta-value {
      font-family: var(--serif-body);
      font-size: 0.96rem;
      font-weight: 600;
      color: var(--ink);
    }

    .rating-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 14px;
      background: var(--salmon-soft);
      color: var(--salmon);
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 600;
    }

    /* Editorial Photography Frames */
    .hero-frame {
      position: relative;
      width: 100%;
      height: 100%;
      min-height: 760px;
      cursor: zoom-in;
    }

    .hero-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hero-caption-overlay {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 36px 34px 28px;
      background: linear-gradient(to top, rgba(24, 19, 16, 0.78) 0%, rgba(24, 19, 16, 0.3) 55%, rgba(24, 19, 16, 0) 100%);
      color: #FAF6F0;
    }

    .hero-caption-overlay .tag {
      font-size: 0.72rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      opacity: 0.88;
      display: block;
      margin-bottom: 4px;
    }

    .hero-caption-overlay p {
      margin: 0;
      font-family: "Noto Serif KR", var(--sans);
      font-size: 1.04rem;
      font-style: normal;
    }

    figure.photo-card {
      margin: 0 0 16px;
      cursor: zoom-in;
    }

    figure.photo-card .img-wrap {
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid var(--hairline);
      background: var(--paper-soft);
      width: 100%;
      height: 310px;
      position: relative;
    }

    figure.photo-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.35s ease;
    }

    figure.photo-card:hover img {
      transform: scale(1.02);
    }

    figure.photo-card figcaption {
      margin-top: 8px;
      font-size: 0.78rem;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }

    .zoom-hint {
      font-size: 0.7rem;
      color: var(--salmon);
      opacity: 0.85;
      white-space: nowrap;
    }

    /* Callout & Tip Boxes */
    .tip-box {
      background: var(--paper-soft);
      border-left: 3px solid var(--salmon);
      padding: 13px 16px;
      border-radius: 0 6px 6px 0;
      margin: 12px 0;
    }

    .tip-box.sage {
      border-left-color: var(--sage);
      background: rgba(75, 107, 85, 0.06);
    }

    .tip-title {
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--salmon);
      margin-bottom: 4px;
      display: block;
    }

    .tip-box.sage .tip-title {
      color: var(--sage);
    }

    .tip-box p {
      margin: 0;
      font-size: 0.85rem;
      line-height: 1.65;
      color: #362F2A;
    }

    /* Portion Scaler & Ingredients Checklist */
    .scaler-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 10px 14px;
      background: var(--paper-soft);
      border: 1px solid var(--hairline);
      border-radius: 8px;
      margin-bottom: 16px;
    }

    .scaler-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--muted);
    }

    .scaler-btns {
      display: flex;
      gap: 6px;
    }

    .scale-btn {
      border: 1px solid var(--hairline);
      background: var(--paper);
      color: var(--ink);
      font-size: 0.76rem;
      font-weight: 600;
      padding: 5px 10px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.16s ease;
    }

    .scale-btn.active {
      background: var(--salmon);
      border-color: var(--salmon);
      color: #fff;
    }

    ul.ingredient-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    ul.ingredient-list li {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 11px 6px;
      border-bottom: 1px dashed var(--hairline);
      cursor: pointer;
      transition: background 0.15s ease;
      user-select: none;
    }

    ul.ingredient-list li:hover {
      background: rgba(201, 91, 66, 0.04);
    }

    .ing-left {
      display: flex;
      align-items: center;
      gap: 11px;
      min-width: 0;
    }

    .ing-check {
      width: 18px;
      height: 18px;
      border: 1.5px solid #B5A99B;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.72rem;
      color: transparent;
      flex-shrink: 0;
      transition: all 0.15s ease;
    }

    .ing-name {
      font-size: 0.92rem;
      font-weight: 500;
      color: var(--ink);
    }

    .ing-it {
      font-family: var(--sans);
      font-style: normal;
      font-size: 0.78rem;
      color: var(--muted);
      display: block;
      margin-top: 2px;
      line-height: 1.45;
    }

    .ing-qty {
      font-family: var(--serif-body);
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--salmon);
      white-space: nowrap;
    }

    ul.ingredient-list li.checked .ing-check {
      background: var(--sage);
      border-color: var(--sage);
      color: #fff;
    }

    ul.ingredient-list li.checked .ing-name,
    ul.ingredient-list li.checked .ing-it {
      text-decoration: line-through;
      color: #9E9388;
    }

    ul.ingredient-list li.checked .ing-qty {
      color: #9E9388;
    }

    /* Step Typography */
    .step-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--serif-display);
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      color: var(--salmon);
      margin-bottom: 6px;
    }

    .step-num-circle {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--salmon);
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: var(--sans);
      font-size: 0.75rem;
      font-weight: 700;
    }

    /* Compact Cards & Lists for Notes/FAQ */
    .tools-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin: 8px 0 12px;
    }

    .tool-chip {
      font-size: 0.78rem;
      padding: 4px 10px;
      border-radius: 999px;
      background: var(--paper-soft);
      border: 1px solid var(--hairline);
      color: var(--ink);
    }

    .info-block {
      margin-bottom: 16px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--hairline);
    }

    .info-block:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }

    .faq-item {
      margin-bottom: 10px;
    }

    .faq-q {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 2px;
    }

    .faq-a {
      font-size: 0.83rem;
      line-height: 1.6;
      color: #49403A;
      margin: 0;
    }

    /* Spread Footer Navigation */
    .spread-nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 20px;
      padding: 0 4px;
    }

    body.mode-scroll .spread-nav {
      display: none;
    }

    .nav-arrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      border-radius: 999px;
      border: 1px solid rgba(107, 96, 87, 0.28);
      background: var(--paper);
      color: var(--ink);
      font-size: 0.84rem;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(31, 27, 24, 0.06);
      transition: all 0.16s ease;
    }

    .nav-arrow:hover:not(:disabled) {
      border-color: var(--salmon);
      color: var(--salmon);
      transform: translateY(-1px);
    }

    .nav-arrow:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

    .nav-arrow.is-home-cta {
      background: var(--salmon);
      border-color: var(--salmon);
      color: #fff;
    }

    .nav-arrow.is-home-cta:hover {
      background: #B44D36;
      border-color: #B44D36;
      color: #fff;
    }

    /* Thin Editorial Site Footer */
    .site-footer {
      background: rgba(251, 248, 243, 0.86);
      border-top: 1px solid var(--hairline);
      padding: 22px 24px;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .site-footer-inner {
      max-width: 1320px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .site-footer-brand strong {
      font-family: var(--serif-display);
      color: var(--ink);
      font-size: 0.92rem;
      margin-right: 8px;
    }

    .site-footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
    }

    .site-footer-links a {
      color: var(--muted);
      text-decoration: none;
      transition: color 0.16s ease;
    }

    .site-footer-links a:hover {
      color: var(--salmon);
    }

    .spread-indicator {
      font-family: var(--serif-display);
      font-size: 0.92rem;
      color: var(--muted);
    }

    /* Photo Lightbox */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(20, 17, 15, 0.9);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 28px;
      cursor: zoom-out;
    }

    .lightbox.open {
      display: flex;
    }

    .lightbox-inner {
      max-width: 960px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .lightbox-inner img {
      max-width: 100%;
      max-height: 80vh;
      border-radius: 6px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
      object-fit: contain;
    }

    .lightbox-caption {
      color: #F3ECE2;
      font-size: 0.88rem;
      text-align: center;
    }

    /* Responsive Mobile / Tablet Layout */
    @media (max-width: 979px) {
      .toolbar {
        padding: 8px 12px;
        gap: 6px;
      }
      .brand-bar { gap: 8px; }
      .toolbar-actions { gap: 5px; flex-wrap: nowrap; }
      #modeToggleBtn, .ctrl-btn.primary { display: none; }
      .chapter-tabs {
        order: 3;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
      }
      .chapter-tabs::-webkit-scrollbar { display: none; }
      .tab-btn { flex-shrink: 0; white-space: nowrap; padding: 6px 11px; }
      .book-stage {
        padding: 0 12px;
        margin: 16px auto 36px;
      }
      .spread,
      body.mode-spread .spread.active {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
      }
      .spread::after {
        display: none;
      }
      .page {
        padding: 22px 16px;
        min-width: 0;
      }
      .page-left {
        border-right: none;
        border-bottom: 1px solid var(--hairline);
      }
      .hero-frame {
        min-height: 320px;
      }
      h1.book-title { font-size: 1.55rem; }
      .italian-title { font-size: 1.12rem; margin-bottom: 14px; }
      .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
      figure.photo-card .img-wrap {
        height: 220px;
      }
      .partner-rail {
        padding: 16px 14px;
      }
      .partner-head {
        flex-direction: column;
        gap: 3px;
      }
      .partner-items {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    @media (max-width: 640px) {
      .scaler-bar { flex-direction: column; align-items: stretch; gap: 8px; }
      .scaler-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
      .scale-btn { white-space: nowrap; text-align: center; padding: 8px 4px; }
      .spread-nav { flex-wrap: wrap; justify-content: center; gap: 8px; }
      .hero-caption-overlay { padding: 24px 18px 16px; }
    }

    /* Print / PDF Export Layout */
    @media print {
      @page {
        size: A4 landscape;
        margin: 10mm;
      }
      html, body {
        background: #fff !important;
      }
      .toolbar,
      .spread-nav,
      .partner-rail,
      .site-footer,
      .zoom-hint,
      .lightbox {
        display: none !important;
      }
      .book-stage {
        margin: 0;
        padding: 0;
        max-width: 100%;
      }
      .spread-wrapper {
        gap: 0;
      }
      .spread,
      body.mode-spread .spread {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        min-height: 185mm;
        box-shadow: none !important;
        border: 1px solid #D8CFC2;
        page-break-after: always;
        break-after: page;
      }
      .spread:last-child {
        page-break-after: auto;
        break-after: auto;
      }
      .page {
        padding: 24px 28px;
      }
      .hero-frame {
        min-height: 185mm;
      }
    }
