/* ============================================================
   renai.reviews — styles.css
   Palette: Forest Ink #2A3520 | Amber Ocher #C8841A | Plum Rose #8B3A5C
            Ink Brown #3B2A1A | Dark Earth #2D2016 | Forest #3B5940
            Parchment #F5EDD8
   Fonts: Cormorant Garamond, IM Fell English, Inter
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --dark-earth: #2D2016;
    --forest-ink: #2A3520;
    --amber-ocher: #C8841A;
    --parchment: #F5EDD8;
    --ink-brown: #3B2A1A;
    --forest: #3B5940;
    --plum-rose: #8B3A5C;
    --parchment-mid: #EFE4C8;
    --parchment-dark: #E0D0AC;

    --col-width: 680px;
    --margin-width: 120px;
    --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    --font-date: 'IM Fell English', Georgia, serif;
    --font-ui: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

/* --- Body & Background --- */
body {
    background-color: var(--parchment);
    color: var(--ink-brown);
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.75;
    position: relative;
    overflow-x: hidden;
}

/* Subtle parchment texture via repeating gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(59,42,26,0.025) 29px,
            transparent 30px
        );
    pointer-events: none;
    z-index: 0;
}

/* --- Ink Progress Bar (left margin) --- */
.ink-progress {
    position: fixed;
    left: 0;
    top: 0;
    width: 4px;
    height: 100vh;
    background: rgba(59,42,26,0.08);
    z-index: 100;
}

.ink-fill {
    width: 100%;
    height: 0%;
    background: var(--amber-ocher);
    transition: height 0.1s linear;
    transform-origin: top;
}

/* --- Site Header / Letterhead --- */
.site-header {
    max-width: var(--col-width);
    margin: 0 auto;
    padding: 48px 0 24px;
    position: relative;
    z-index: 10;
}

.header-rule {
    width: 0%;
    height: 1.5px;
    background: var(--amber-ocher);
    margin-bottom: 32px;
    /* Animated by JS: 0 → 100% */
}

.header-inner {
    text-align: center;
}

.masthead-domain {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    font-variant: small-caps;
    letter-spacing: 0.06em;
    color: var(--ink-brown);
    opacity: 0;
    /* Animated by JS */
}

.masthead-tagline {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest-ink);
    opacity: 0;
    margin-top: 4px;
}

.masthead-date {
    font-family: var(--font-date);
    font-style: italic;
    font-size: 14px;
    color: var(--forest);
    opacity: 0;
    margin-top: 10px;
    transform: translateY(4px);
}

/* Header nav */
.header-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(59,42,26,0.12);
    opacity: 0;
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--amber-ocher);
}

/* --- Main Column --- */
.main-column {
    max-width: var(--col-width);
    margin: 0 auto;
    padding: 0 0 80px;
    position: relative;
    z-index: 5;
}

/* --- Margin Botanicals --- */
.margin-botanical {
    position: fixed;
    left: calc(50% - var(--col-width)/2 - var(--margin-width) - 20px);
    top: 30%;
    width: 80px;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.margin-botanical-right {
    left: auto;
    right: calc(50% - var(--col-width)/2 - var(--margin-width) - 20px);
    top: 55%;
}

.botanical-margin-svg {
    width: 100%;
    height: auto;
}

/* --- Review Article --- */
.review-article {
    padding: 48px 0 40px;
}

/* Review header */
.review-header {
    margin-bottom: 36px;
}

.review-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.review-genre {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--forest);
}

.review-season {
    font-family: var(--font-date);
    font-style: italic;
    font-size: 13px;
    color: var(--plum-rose);
}

.review-title {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--ink-brown);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.review-brief .review-title {
    font-size: 38px;
}

.review-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    font-weight: 300;
    color: var(--forest-ink);
    line-height: 1.5;
    margin-bottom: 16px;
}

.review-byline {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 16px;
}

.byline-by {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--amber-ocher);
    letter-spacing: 0.12em;
    text-transform: lowercase;
}

.byline-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-brown);
}

.byline-date {
    font-family: var(--font-date);
    font-style: italic;
    font-size: 13px;
    color: var(--forest);
    margin-left: 8px;
}

/* --- Specimen Plate (Rosette) --- */
.specimen-plate {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 36px auto 40px;
    padding: 28px;
    background: var(--parchment-mid);
    border: 1px solid rgba(200,132,26,0.25);
    max-width: 400px;
    position: relative;
}

.specimen-plate::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(200,132,26,0.12);
    pointer-events: none;
}

.specimen-small {
    max-width: 320px;
}

.rosette-svg {
    width: 220px;
    height: 220px;
}

.specimen-small .rosette-svg {
    width: 160px;
    height: 160px;
}

.specimen-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 16px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--ink-brown);
    letter-spacing: 0.04em;
}

.legend-item em {
    font-style: normal;
    font-weight: 500;
    color: var(--forest-ink);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.specimen-caption {
    margin-top: 14px;
    font-family: var(--font-date);
    font-style: italic;
    font-size: 12px;
    color: var(--forest);
    text-align: center;
}

/* --- Review Body --- */
.review-body {
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.8;
    color: var(--ink-brown);
}

.review-body p {
    margin-bottom: 24px;
    text-align: justify;
    hyphens: auto;
}

/* Drop cap for first paragraph */
.review-dropcap::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 600;
    line-height: 0.75;
    margin-right: 8px;
    margin-top: 8px;
    color: var(--plum-rose);
}

/* Blockquote */
.review-quote {
    margin: 36px 0;
    padding: 24px 32px;
    border-left: 3px solid var(--amber-ocher);
    background: var(--parchment-dark);
}

.review-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    line-height: 1.65;
    color: var(--forest-ink);
    margin-bottom: 8px;
}

.review-quote cite {
    font-family: var(--font-date);
    font-style: italic;
    font-size: 13px;
    color: var(--forest);
    display: block;
    text-align: right;
}

/* --- Morphing Dividers --- */
.morph-divider {
    position: relative;
    margin: 28px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.morph-svg {
    width: 100%;
    height: 40px;
    display: block;
}

.morph-path {
    /* Animated by JS */
}

.divider-ornament {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--amber-ocher);
    background: var(--parchment);
    padding: 0 8px;
    pointer-events: none;
}

.section-divider {
    margin: 0;
    padding: 8px 0;
}

/* --- Review Footer --- */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(59,42,26,0.1);
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest);
    border: 1px solid var(--forest);
    padding: 3px 8px;
}

.review-rating-final {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.rating-label {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest-ink);
}

.rating-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--amber-ocher);
}

/* --- Archive / Phenological Wheel --- */
.archive-section {
    padding: 48px 0 40px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    color: var(--ink-brown);
    margin-bottom: 12px;
    letter-spacing: -0.005em;
}

.section-subhead {
    font-family: var(--font-date);
    font-style: italic;
    font-size: 15px;
    color: var(--forest);
    margin-bottom: 40px;
    line-height: 1.6;
}

.phenological-wheel-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 420px;
}

.phenological-wheel {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 2px 12px rgba(59,42,26,0.08));
}

.wheel-season-label {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wheel-month-label {
    font-family: var(--font-date);
    font-style: italic;
    font-size: 9px;
    fill: var(--ink-brown);
    opacity: 0.6;
}

.wheel-dot {
    cursor: pointer;
    transition: r 0.2s ease;
}

.wheel-dot:hover {
    r: 10;
}

.wheel-dot-label {
    font-family: var(--font-ui);
    font-size: 8px;
    fill: var(--ink-brown);
    opacity: 0.7;
}

.wheel-center-label {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
}

.wheel-center-label-sub {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 300;
    opacity: 0.6;
}

/* --- About Section --- */
.about-section {
    padding: 16px 0 48px;
}

.about-body {
    margin-bottom: 28px;
}

.about-body p {
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink-brown);
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
}

.about-colophon {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(59,42,26,0.1);
}

.about-colophon span {
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--forest);
    text-transform: uppercase;
}

/* --- Site Footer --- */
.site-footer {
    max-width: var(--col-width);
    margin: 0 auto;
    padding: 0 0 40px;
    position: relative;
    z-index: 5;
}

.footer-rule {
    width: 100%;
    height: 1px;
    background: var(--amber-ocher);
    opacity: 0.4;
    margin-bottom: 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-domain {
    font-family: var(--font-display);
    font-variant: small-caps;
    font-size: 16px;
    color: var(--ink-brown);
    letter-spacing: 0.04em;
}

.footer-rights {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--forest-ink);
    opacity: 0.7;
}

.footer-season {
    font-family: var(--font-date);
    font-style: italic;
    font-size: 13px;
    color: var(--forest);
}

/* --- Animations --- */

/* Header entrance transitions */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Petal bloom */
@keyframes petalBloom {
    0% { opacity: 0; transform: scale(0.1); }
    60% { opacity: 0.85; transform: scale(1.05); }
    100% { opacity: 0.85; transform: scale(1); }
}

/* Wheel entrance */
@keyframes wheelFadeIn {
    from { opacity: 0; transform: rotate(-5deg) scale(0.95); }
    to { opacity: 1; transform: rotate(0deg) scale(1); }
}

.phenological-wheel.visible {
    animation: wheelFadeIn 1s ease forwards;
}

/* Botanical path drawing (via JS: stroke-dashoffset → 0) */
.botanical-path {
    transition: stroke-dashoffset 2s ease, opacity 0.8s ease;
}

/* Morph divider path animation */
.morph-path {
    transition: d 1s ease;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .margin-botanical {
        display: none;
    }
}

@media (max-width: 720px) {
    :root {
        --col-width: 100%;
    }

    .site-header,
    .main-column,
    .site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .review-title {
        font-size: 36px;
    }

    .review-brief .review-title {
        font-size: 28px;
    }

    .masthead-domain {
        font-size: 30px;
    }

    .header-nav {
        gap: 20px;
    }

    .review-quote {
        padding: 16px 20px;
    }

    .review-dropcap::first-letter {
        font-size: 56px;
    }
}
