/* ============================================
   GUESTBOOK — Inner Pages (Funeral Guestbook)
   Font: Instrument Serif (titles) + Libre Baskerville (body)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    background: #1a1a1a;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    background: #1a1a1a;
}

/* ---- PAGE CONTAINER ---- */

.page {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: #f7f3ec;
    min-height: 100vh;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.08),
        4px 4px 24px rgba(0,0,0,0.4);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(255,252,245,0.6) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 100%, rgba(235,228,215,0.4) 0%, transparent 70%);
}

/* Subtle page edge / gilding effect */
.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(180,165,130,0.3) 0%,
        rgba(180,165,130,0.15) 50%,
        rgba(180,165,130,0.3) 100%
    );
}

/* ---- CONTENT AREA ---- */

.content {
    position: relative;
    z-index: 2;
    padding: 3rem 3.5rem;
}

/* ---- NAVIGATION ---- */

.nav {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(160,145,120,0.2);
}

.nav-link {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.75rem;
    color: #9a8e78;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #5a5040;
}

.nav-link.active {
    color: #3a3530;
}

/* ---- TYPOGRAPHY ---- */

.title {
    font-family: 'Instrument Serif', serif;
    font-size: 2.8rem;
    color: #2a2520;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.tagline {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    color: #8a7e68;
    font-style: italic;
    line-height: 1.7;
}

.body-text {
    margin: 2rem 0;
}

.body-text p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    color: #4a4035;
    line-height: 2;
    margin-bottom: 1rem;
}

.body-text p:last-child {
    margin-bottom: 0;
}

.body-text-inline {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    color: #4a4035;
    line-height: 2;
    margin-top: 1.5rem;
}

/* ---- DIVIDER ---- */

.divider {
    width: 40px;
    height: 1px;
    background: rgba(160,145,120,0.35);
    margin: 2.5rem 0;
}

/* ---- CURRENT ISSUE ---- */

.issue-label {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.7rem;
    color: #9a8e78;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.4rem;
}

.issue-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.8rem;
    color: #2a2520;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.definition {
    margin-bottom: 2rem;
    padding-left: 1.25rem;
    border-left: 1.5px solid rgba(160,145,120,0.35);
}

.definition p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.8rem;
    color: #4a4035;
    line-height: 1.9;
    margin-bottom: 0.4rem;
}

.definition em {
    font-style: italic;
}

.definition .pos {
    font-style: italic;
    color: #9a8e78;
}

.definition .def {
    color: #7a7060;
}

.submit-link {
    display: inline-block;
    font-family: 'Instrument Serif', serif;
    font-size: 1rem;
    color: #3a3530;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(60,50,40,0.3);
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.submit-link:hover {
    padding-left: 0.5rem;
    border-color: rgba(60,50,40,0.6);
}

/* ---- SECTIONS (GUIDELINES) ---- */

.section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.2rem;
    color: #2a2520;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.section p,
.section li {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.8rem;
    color: #4a4035;
    line-height: 2.1;
    margin-bottom: 0.6rem;
}

.section ul {
    list-style: none;
    padding: 0;
}

.section li {
    padding-left: 1.25rem;
    position: relative;
}

.section li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #b4a890;
}

/* ---- HIGHLIGHT (COVER LETTER) ---- */

.highlight {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 0.85rem;
    padding: 1.25rem 0 1.25rem 1.25rem;
    border-left: 1.5px solid #8a7e68;
    color: #3a3530;
    margin: 1rem 0;
    line-height: 2;
}

/* ---- PAST ISSUES ---- */

.issues-list {
    list-style: none;
    padding: 0;
}

.issue-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(160,145,120,0.2);
}

.issue-item:last-child {
    border-bottom: none;
}

.issue-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.65rem;
    color: #9a8e78;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.2rem;
}

.issue-name {
    font-family: 'Instrument Serif', serif;
    font-size: 1.4rem;
    color: #2a2520;
    margin-bottom: 0.5rem;
}

.issue-date {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.75rem;
    color: #9a8e78;
    font-style: italic;
    margin-bottom: 1rem;
}

.issue-toc {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.75rem;
    color: #7a7060;
    line-height: 2.1;
    margin-bottom: 1rem;
}

.issue-link {
    font-family: 'Instrument Serif', serif;
    font-size: 0.85rem;
    color: #3a3530;
    text-decoration: none;
    border-bottom: 1px solid rgba(60,50,40,0.25);
    transition: all 0.2s ease;
}

.issue-link:hover {
    border-color: rgba(60,50,40,0.5);
}

.empty-state {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    color: #9a8e78;
    font-style: italic;
    line-height: 2;
    margin-top: 1rem;
}

/* ---- FOOTER ---- */

.footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(160,145,120,0.15);
}

.footer p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.6rem;
    color: #b4a890;
    letter-spacing: 0.06em;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 700px) {
    body {
        padding: 0;
    }
    
    .page {
        box-shadow: none;
    }
    
    .content {
        padding: 2rem 2rem;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .issue-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1.5rem 1.25rem;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .nav {
        gap: 1rem;
    }
}
