/* ============================================
   SPREAD LAYOUT — Shared sketchbook layout for sub-pages
   Each sub-page uses this same structure:
   - Full viewport colored background (CMYK-derived)
   - Centered paper/sketchbook spread
   - CMYK nav on the left edge
   - Content inside the paper area
   ============================================ */

@font-face {
    font-family: 'Futura Medium';
    src: url('../fonts/FUTURAMEDIUM.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* --- Spread Container (full viewport) --- */
.spread-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Logo (top-left on colored bg) --- */
.spread-logo {
    position: fixed;
    top: 2.67%;
    left: 3.89%;
    width: 11.39%;
    height: 4.56%;
    object-fit: contain;
    z-index: 100;
    pointer-events: none;
}

/* --- CMYK Nav (left edge, fixed) --- */
.spread-nav {
    position: fixed;
    left: 10.56%;
    top: 8.89%;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 200;
    width: 1.67%;
    height: 38%;
    transform: rotate(180deg);
}

.spread-nav .cmyk-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    border: none;
    cursor: pointer;
    transition: filter 0.15s, opacity 0.15s;
    font-family: 'Futura Medium', 'Futura', sans-serif;
    font-size: clamp(0.55rem, 0.8vw, 0.9rem);
    color: #fff;
    text-decoration: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.08em;
    overflow: hidden;
}

.spread-nav .cmyk-btn:hover {
    opacity: 0.85;
}

.spread-nav .cmyk-btn.active {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.spread-nav .cmyk-cyan    { background: #00aeef; border-radius: 0 8px 0 0; }
.spread-nav .cmyk-magenta { background: #ec008c; }
.spread-nav .cmyk-yellow  { background: #fff200; color: #231f20; }
.spread-nav .cmyk-black   { background: #231f20; border-radius: 0 0 8px 0; }

/* --- Paper Spread (centered sketchbook) --- */
.spread-paper {
    position: relative;
    margin-left: 12.22%;
    width: 76.32%;
    height: 84.22vh;
    margin-top: 8.89vh;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* --- Content Area (inside the paper) --- */
.spread-content {
    position: relative;
    padding: 4% 5%;
    z-index: 10;
}

/* Pages with absolute editor positions need no padding & full height */
body.page-people .spread-content,
body.page-home .spread-content {
    padding: 0;
    height: 100%;
}

body.page-home .spread-paper,
body.page-people .spread-paper {
    overflow: visible;
}

/* ============================================
   HOME page items (rendered from layouts/home.json)
   ============================================ */
.lp-stage { position: relative; width: 100%; height: 100%; }
.lp-item  { box-sizing: border-box; }

.lp-notepad > img { width: 100%; height: 100%; object-fit: fill; display: block; pointer-events: none; max-width: none; }
.lp-notepad .lp-notepad-links { position: absolute; inset: 0; pointer-events: none; }
.lp-notepad .lp-notepad-links a { pointer-events: auto; }

.lp-yazi {
    display: flex; align-items: center;
    text-decoration: none;
    font-family: 'Myfont', 'Space Mono', monospace;
    font-size: clamp(0.5rem, 0.85vw, 0.8rem);
    color: #1a1a1a; letter-spacing: 0.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lp-kunye { display: block; text-decoration: none; }
.lp-kunye > img { display: block; }

