:root {
    --cream: #F6F5F2;
    --dark-charcoal: #121212;
    --editorial-black: #1A1A1A;
    --gold-ochre: #dfa41f;
    --editorial-pink: #f2a6b2;
    --border-gray: #e0dcd5;
}

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

body {
    background-color: var(--dark-charcoal);
    font-family: 'Montserrat', sans-serif;
    color: var(--editorial-black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
}

/* Header Navigation Style */
.header-nav {
    width: 100%;
    padding: 20px 40px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 10;
}

.brand {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.audio-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 8px 16px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.audio-btn:hover {
    background: #ffffff;
    color: var(--dark-charcoal);
    border-color: #ffffff;
}

/* Viewport Layout */
.viewport-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.book-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

/* StPageFlip styling */
.book {
    background-color: transparent;
    box-shadow: 0 30px 70px rgba(0,0,0,0.8);
}

.page {
    background-color: var(--cream);
    box-sizing: border-box;
    padding: 40px;
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Cover Styling */
.page-cover {
    background-color: var(--cream);
    padding: 25px;
}

.imgp1 {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.cover-border {
    border: 1px solid var(--editorial-black);
    height: 100%;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
}

.issue-sub {
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.magazine-title-small {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: -5px;
}

.magazine-title-large {
    font-family: 'Bodoni Moda', serif;
    font-weight: 800;
    font-size: 4.2rem;
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.magazine-title-huge {
    font-family: 'Bodoni Moda', serif;
    font-weight: 900;
    font-size: 5.5rem;
    line-height: 0.8;
    letter-spacing: 2px;
    color: var(--editorial-black);
}

.cover-hero {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    margin: 15px 0;
    border: 1px solid var(--editorial-black);
    filter: grayscale(10%);
}

.celebration-tag {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
}

.date-tag {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 5px;
    font-weight: 700;
}

/* Standard Pages Header/Footer */
.page-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    border-bottom: 1px solid rgba(26,26,26,0.1);
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.page-footer {
    border-top: 1px solid rgba(26,26,26,0.1);
    padding-top: 8px;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Editorial Content Styling */
.editorial-body {
    flex: 1;
    padding: 10px 0;
}

.editorial-heading {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 700;
    margin-bottom: 20px;
}

.dropcap {
    font-family: 'Bodoni Moda', serif;
    font-size: 4.8rem;
    float: left;
    line-height: 0.8;
    margin-right: 12px;
    font-weight: 900;
    color: var(--editorial-black);
}

.editorial-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
    font-weight: 400;
}

/* Event Countdown Styling */
.countdown-page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.countdown-title {
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 25px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 15px 5px;
    border: 1px solid var(--border-gray);
}

.time-num {
    font-family: 'Bodoni Moda', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--editorial-black);
}

.time-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 4px;
    color: #666666;
}

.gold-accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--gold-ochre);
    margin-bottom: 25px;
}

.countdown-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.4;
    padding: 0 10px;
}

/* Specific Spread Styles (Quotes) */
.page-quote-yellow {
    background-color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quote-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quote-title-yellow {
    font-family: 'Bodoni Moda', serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--gold-ochre);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.quote-title-pink {
    font-family: 'Bodoni Moda', serif;
    font-weight: 900;
    font-size: 3.2rem;
    color: var(--editorial-pink);
    letter-spacing: 1px;
    margin-top: 10px;
}

.quote-sub {
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
    line-height: 1.8;
}

.editorial-bar-gold {
    width: 120px;
    height: 8px;
    background-color: var(--gold-ochre);
    margin-top: 25px;
}

.quote-center-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.category-tag {
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--gold-ochre);
    text-transform: uppercase;
}

.section-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0;
}

.quote-body-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.5;
}

/* Two Column Layout */
.editorial-columns {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col-heading {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 15px;
}

.editorial-text-small {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 10px;
    opacity: 0.9;
}

.editorial-collage-img {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--editorial-black);
}

/* Profile Theme */
.theme-pink {
    background-color: #f7ebeb;
}

.profile-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.profile-bullets {
    list-style: none;
    margin-bottom: 30px;
}

.profile-bullets li {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-bullets li::before {
    content: "— ";
    color: var(--gold-ochre);
}

.profile-summary {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Volume layouts */
.editorial-volume-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.volume-title-yellow {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.2rem;
    color: var(--gold-ochre);
    font-weight: 800;
}

.volume-title-pink {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.2rem;
    color: var(--editorial-pink);
    font-weight: 800;
}

.volume-title-dark {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 800;
}

.volume-subtitle {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin: 5px 0 20px;
    text-transform: uppercase;
}

.img-placeholder-lg {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    filter: grayscale(15%);
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.volume-caption {
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.8;
}

/* PR Box style */
.pr-box-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pr-box-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.pr-box-mockup {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-gray);
}

.pr-box-details {
    font-size: 0.85rem;
    line-height: 1.6;
}

.pr-box-details ul {
    list-style-type: square;
    margin-left: 20px;
    margin-top: 10px;
}

/* Dark Theme (After Dark Page) */
.theme-dark {
    background-color: var(--dark-charcoal);
    color: #ffffff;
    border-color: #2c2c2c;
}

.theme-dark .page-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.theme-dark .page-footer {
    border-top-color: rgba(255,255,255,0.1);
}

/* RSVP / Back Cover Styling (New York Times inspired Layout) */
.rsvp-page-content {
    background-color: #ffffff;
    padding: 20px 15px;
}

.nyt-header {
    text-align: center;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.nyt-edition {
    font-size: 0.6rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.nyt-title {
    font-family: 'Bodoni Moda', serif;
    font-weight: 900;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0;
}

.nyt-date {
    font-size: 0.65rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.rsvp-article {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-headline {
    font-family: 'Bodoni Moda', serif;
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 5px;
}

.article-sub {
    font-size: 0.75rem;
    text-align: center;
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 10px;
}

.article-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(0,0,0,0.15);
    margin-bottom: 12px;
}

.article-text {
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: justify;
    margin-bottom: 10px;
}

.rsvp-details-card {
    width: 100%;
    background-color: #faf9f6;
    border: 1px solid #e2e2df;
    padding: 12px;
    margin: 10px 0 15px;
    font-size: 0.75rem;
    line-height: 1.5;
}

.rsvp-action-btn {
    display: inline-block;
    width: 100%;
    background-color: var(--editorial-black);
    color: #ffffff;
    border: none;
    text-align: center;
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rsvp-action-btn:hover {
    background-color: var(--gold-ochre);
}

/* Locked States Styling */
.is-locked {
    padding: 0 !important;
}

.locked-page {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--dark-charcoal);
    color: #ffffff;
    box-sizing: border-box;
    padding: 20px;
}

.locked-border {
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.lock-icon {
    font-size: 1.8rem;
    color: var(--gold-ochre);
    margin-bottom: 15px;
}

.locked-brand {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--editorial-pink);
    margin: 0;
}

.locked-heading {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px 0;
}

.locked-message {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.unlock-date-badge {
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 6px 12px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--gold-ochre);
}

.mini-countdown {
    margin-top: 15px;
    font-size: 0.75rem;
    font-family: monospace;
    opacity: 0.7;
}

/* Book Navigation Controls */
.book-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
    z-index: 10;
}

.nav-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-btn:hover {
    color: #ffffff;
}

.page-num-indicator {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Landscape / Desktop Spread view adjustments */
@media (min-width: 768px) {
    .viewport-wrapper {
        padding: 40px;
    }
}

/* Portrait / Mobile Single page viewport adjustments */
@media (max-width: 767px) {
    .header-nav {
        padding: 15px 20px;
    }
    .page {
        padding: 25px;
    }
    .magazine-title-huge {
        font-size: 4rem;
    }
    .magazine-title-large {
        font-size: 3rem;
    }
}