/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terracotta: #c47a5a;
    --coral: #e8785a;
    --burnt-orange: #d4603a;
    --deep-umber: #4a2a1a;
    --parchment: #f5e6d3;
    --dark-brown: #8b4a2f;
    --neon-peach: #ff9e7a;
    --darkest: #3d1c11;
    --shadow-brown: #2c1208;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--deep-umber);
    color: var(--parchment);
    font-family: 'Lora', Georgia, serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* === Bookmark Ribbon Navigation === */
#bookmark-ribbon {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    background: var(--darkest);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    z-index: 100;
    border-radius: 8px 0 0 8px;
}

.ribbon-marker {
    cursor: pointer;
    padding: 4px;
}

.marker-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-brown);
    transition: all 0.3s ease;
    box-shadow: none;
}

.ribbon-marker:hover .marker-dot,
.ribbon-marker.active .marker-dot {
    background: var(--neon-peach);
    box-shadow: 0 0 10px rgba(255, 158, 122, 0.6), 0 0 20px rgba(255, 158, 122, 0.3);
}

/* === Folio (Section) Base === */
.folio {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px;
}

.folio-inner {
    max-width: 720px;
    width: 100%;
    position: relative;
}

/* === Hero === */
.folio-hero {
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 60%, rgba(196, 122, 90, 0.15) 0%, transparent 70%);
}

.neon-sign {
    text-align: center;
    margin-bottom: 40px;
}

.neon-text {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--parchment);
    text-shadow:
        0 0 10px rgba(255, 158, 122, 0.4),
        0 0 30px rgba(255, 158, 122, 0.2),
        0 0 60px rgba(255, 158, 122, 0.1);
}

.neon-dot {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    color: var(--neon-peach);
    text-shadow:
        0 0 10px rgba(255, 158, 122, 0.8),
        0 0 30px rgba(255, 158, 122, 0.5),
        0 0 60px rgba(255, 158, 122, 0.3);
}

.hero-subtitle {
    text-align: center;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--terracotta);
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto 60px;
}

.scroll-cue {
    text-align: center;
    animation: floatCue 3s ease-in-out infinite;
}

.scroll-cue .open-book-icon {
    filter: drop-shadow(0 0 8px rgba(255, 158, 122, 0.4));
    display: block;
    margin: 0 auto 12px;
}

.scroll-text {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: var(--terracotta);
    opacity: 0.6;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

@keyframes floatCue {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* === Margin Annotations === */
.margin-annotation {
    position: absolute;
    font-family: 'Caveat', cursive;
    font-size: 0.85rem;
    color: var(--terracotta);
    opacity: 0.4;
    transform: rotate(-3deg);
    pointer-events: none;
    white-space: nowrap;
}

/* === Book Divider === */
.book-divider {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.book-divider svg {
    filter: drop-shadow(0 0 8px rgba(255, 158, 122, 0.35));
    opacity: 0.6;
}

/* === Review Cards === */
.review-card {
    background: rgba(61, 28, 17, 0.5);
    border: 1px solid rgba(196, 122, 90, 0.2);
    border-radius: 4px;
    padding: clamp(32px, 5vw, 56px);
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.review-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(255, 158, 122, 0.1), transparent 50%);
    pointer-events: none;
}

/* === Star Rating === */
.star-rating {
    margin-bottom: 16px;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
}

.star {
    color: rgba(196, 122, 90, 0.25);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.star.filled {
    color: var(--neon-peach);
    text-shadow: 0 0 8px rgba(255, 158, 122, 0.5);
}

/* === Review Typography === */
.review-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--parchment);
    margin-bottom: 8px;
}

.review-author {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--terracotta);
    margin-bottom: 28px;
    opacity: 0.8;
}

.review-body p {
    font-family: 'Lora', serif;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.8;
    color: var(--parchment);
    opacity: 0.9;
    text-indent: 1.5em;
}

/* === Review Meta === */
.review-meta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.meta-tag {
    font-family: 'Lora', serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--terracotta);
    border: 1px solid rgba(196, 122, 90, 0.3);
    padding: 4px 12px;
    border-radius: 2px;
}

.meta-date {
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    color: var(--terracotta);
    opacity: 0.5;
    margin-left: auto;
}

/* === Page Number === */
.page-number {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--terracotta);
    opacity: 0.3;
}

/* === Colophon === */
.folio-colophon {
    min-height: 60vh;
}

.colophon-content {
    text-align: center;
}

.colophon-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 20px;
}

.colophon-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--parchment);
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.8;
}

.colophon-ornament {
    margin: 24px auto;
    opacity: 0.5;
}

.colophon-sign-off {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--neon-peach);
    text-shadow: 0 0 12px rgba(255, 158, 122, 0.3);
}

/* === Background texture (CSS noise) === */
/* Shadow brown accent for deepest shadows */
.folio-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--shadow-brown), transparent);
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === Responsive === */
@media (max-width: 600px) {
    #bookmark-ribbon {
        width: 28px;
        gap: 16px;
    }

    .marker-dot {
        width: 8px;
        height: 8px;
    }

    .review-card {
        padding: 24px;
    }

    .margin-annotation {
        display: none;
    }
}
