:root {
    --c-earth: #e8dcc8;
    --c-paper: #f4ede0;
    --c-forest: #3a6a3e;
    --c-moss: #2a4a2e;
    --c-bark: #5a3e28;
    --c-gold: #b89840;
    --c-clay: #a87060;
    --f-head: "Libre Baskerville", "Iowan Old Style", Georgia, serif;
    --f-body: "Source Serif 4", Georgia, serif;
    --f-note: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--f-body);
    background: var(--c-earth);
    color: var(--c-bark);
    line-height: 1.85;
    overflow-x: hidden;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--c-earth);
    overflow: hidden;
    padding: clamp(36px, 5vw, 72px) clamp(20px, 5vw, 80px);
    display: flex;
    align-items: center;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-pattern svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-plant {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 96%);
    height: 92%;
    z-index: 1;
    pointer-events: none;
}

.plant-stem {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: stem-grow 3.2s ease-out forwards;
}

.stem-main { animation-delay: 0.2s; animation-duration: 3.4s; }
.stem-2 { animation-delay: 0.9s; }
.stem-3 { animation-delay: 1.0s; }
.stem-4 { animation-delay: 1.3s; }
.stem-5 { animation-delay: 1.5s; }
.stem-6 { animation-delay: 1.8s; }
.stem-7 { animation-delay: 2.0s; }
.stem-8 { animation-delay: 1.1s; }

@keyframes stem-grow {
    to { stroke-dashoffset: 0; }
}

.plant-leaves .leaf {
    opacity: 0;
    transform-origin: 50% 100%;
    animation: leaf-unfurl 1.4s ease-out forwards;
}

.leaf-1 { animation-delay: 1.5s; }
.leaf-2 { animation-delay: 1.7s; }
.leaf-3 { animation-delay: 2.0s; }
.leaf-4 { animation-delay: 2.2s; }
.leaf-5 { animation-delay: 2.5s; }
.leaf-6 { animation-delay: 2.7s; }
.leaf-7 { animation-delay: 1.9s; }

@keyframes leaf-unfurl {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.plant-blooms circle {
    opacity: 0;
    animation: bloom-open 1s ease-out forwards;
    animation-delay: 3.2s;
    transform-origin: center;
}

.plant-blooms .bloom-small { animation-delay: 3s; }

@keyframes bloom-open {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin-right: auto;
    background: rgba(244, 237, 224, 0.78);
    padding: clamp(28px, 4vw, 56px);
    border: 1px solid rgba(90, 62, 40, 0.16);
    box-shadow: 0 30px 60px rgba(58, 42, 28, 0.1);
    transform: rotate(-0.3deg);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hero-frontispiece {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--c-bark);
    padding-bottom: 10px;
    margin-bottom: 22px;
    font-family: var(--f-note);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-bark);
    opacity: 0;
    animation: fade-in 1s ease-out forwards;
    animation-delay: 0.6s;
}

.folio-num { color: var(--c-gold); font-weight: 600; }
.folio-date { color: var(--c-bark); font-style: italic; letter-spacing: 0.14em; }

.hero-title {
    text-align: center;
    margin-bottom: 28px;
}

.title-line {
    display: block;
    font-family: var(--f-head);
    color: var(--c-bark);
    line-height: 1;
    letter-spacing: -0.005em;
    overflow: hidden;
}

.title-line-1 {
    font-weight: 700;
    font-size: clamp(38px, 7vw, 78px);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.title-line-1 {
    opacity: 0;
    animation: fade-up 1s ease-out forwards;
    animation-delay: 1.2s;
}

.title-line-2 {
    font-weight: 400;
    font-style: italic;
    font-size: clamp(40px, 8vw, 88px);
    color: var(--c-forest);
    margin-top: -6px;
    opacity: 0;
    animation: fade-up 1s ease-out forwards;
    animation-delay: 1.6s;
}

.title-ornament {
    display: block;
    width: clamp(160px, 26vw, 280px);
    margin: 8px auto 12px;
    opacity: 0;
    animation: fade-in 1s ease-out forwards;
    animation-delay: 1.4s;
}

.title-ornament svg {
    width: 100%;
    height: 20px;
    display: block;
}

.hero-epigraph {
    font-family: var(--f-head);
    font-style: italic;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
    color: var(--c-moss);
    border-top: 1px solid rgba(90, 62, 40, 0.2);
    border-bottom: 1px solid rgba(90, 62, 40, 0.2);
    padding: 18px 0;
    margin-bottom: 22px;
    text-align: center;
    opacity: 0;
    animation: fade-up 1s ease-out forwards;
    animation-delay: 2s;
}

.hero-stamp {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
    opacity: 0;
    animation: fade-up 1s ease-out forwards;
    animation-delay: 2.3s;
}

.stamp-label {
    font-family: var(--f-note);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--c-clay);
}

.stamp-value {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--c-bark);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border-bottom: 2px solid var(--c-gold);
    padding-bottom: 4px;
}

.stamp-meta {
    font-family: var(--f-head);
    font-style: italic;
    font-size: 13px;
    color: var(--c-bark);
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    to { opacity: 1; }
}

@media (max-width: 900px) {
    .hero-content {
        margin: 0 auto;
        max-width: 600px;
    }
    .hero-plant { opacity: 0.5; }
}

/* === journal === */
.journal {
    background: var(--c-earth);
    padding-top: 0;
    position: relative;
}

.journal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 8% 20%, rgba(58, 106, 62, 0.04) 0%, transparent 35%),
        radial-gradient(ellipse at 92% 75%, rgba(184, 152, 64, 0.04) 0%, transparent 38%);
    pointer-events: none;
}

.journal-section {
    padding: clamp(60px, 9vw, 140px) clamp(20px, 5vw, 80px);
    position: relative;
}

.journal-section + .journal-section {
    border-top: 1px solid rgba(90, 62, 40, 0.12);
}

.section-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 72px);
    position: relative;
    z-index: 1;
}

@media (min-width: 920px) {
    .section-grid {
        grid-template-columns: 0.8fr 2.2fr;
    }
    .section-grid-flipped {
        grid-template-columns: 2.2fr 0.8fr;
    }
}

.margin-col {
    align-self: start;
    padding-top: 60px;
}

.ornament {
    display: block;
    width: 60px;
    height: 80px;
    margin-bottom: 14px;
}

.ornament svg { width: 100%; height: 100%; display: block; }

.grow-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.8s ease-out;
}

.ornament.grown .grow-path,
.cat-illus.grown .grow-path {
    stroke-dashoffset: 0;
}

.margin-num {
    display: block;
    font-family: var(--f-head);
    font-style: italic;
    font-size: 18px;
    color: var(--c-gold);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(184, 152, 64, 0.4);
    padding-bottom: 6px;
}

.margin-note {
    font-family: var(--f-note);
    font-size: 13px;
    color: var(--c-bark);
    line-height: 1.65;
    margin-bottom: 14px;
}

.margin-foot {
    font-family: var(--f-note);
    font-size: 11px;
    color: var(--c-clay);
    line-height: 1.6;
    font-style: italic;
}

.article-col {
    position: relative;
}

.section-num {
    display: inline-block;
    font-family: var(--f-head);
    font-style: italic;
    font-size: clamp(20px, 2vw, 26px);
    color: var(--c-gold);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--c-gold);
}

.section-title {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(28px, 4.2vw, 50px);
    line-height: 1.16;
    color: var(--c-bark);
    margin-bottom: 22px;
    letter-spacing: -0.005em;
}

.epigraph {
    font-family: var(--f-head);
    font-style: italic;
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--c-moss);
    border-left: 2px solid var(--c-gold);
    padding-left: 16px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.dropcap-p {
    margin-bottom: 22px;
}

.dropcap {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 5em;
    line-height: 0.85;
    float: left;
    margin: 6px 14px 0 0;
    color: var(--c-forest);
}

.article-col p {
    font-family: var(--f-body);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.85;
    color: var(--c-bark);
    margin-bottom: 22px;
}

.article-col em { color: var(--c-moss); }

sup {
    font-family: var(--f-note);
    font-size: 0.7em;
    color: var(--c-gold);
    font-weight: 600;
    vertical-align: super;
    line-height: 0;
}

.footnote-line {
    font-family: var(--f-note) !important;
    font-size: 12px !important;
    color: var(--c-clay) !important;
    border-top: 1px solid rgba(90, 62, 40, 0.18);
    padding-top: 14px;
    margin-top: 24px;
    line-height: 1.6 !important;
}

/* pull quote */
.section-quote {
    background: var(--c-moss);
    color: var(--c-paper);
    padding: clamp(60px, 9vw, 140px) clamp(20px, 5vw, 80px);
}

.pullquote {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.pullquote-mark {
    font-family: var(--f-head);
    font-size: clamp(80px, 12vw, 160px);
    line-height: 0.6;
    color: var(--c-gold);
    display: block;
    margin-bottom: -30px;
}

.pullquote p {
    font-family: var(--f-head);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(22px, 3vw, 36px);
    line-height: 1.4;
    color: var(--c-paper);
    margin-bottom: 22px;
}

.pullquote-cite {
    display: inline-block;
    font-family: var(--f-note);
    font-size: 13px;
    color: var(--c-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* catalogue */
.catalogue-list {
    list-style: none;
    counter-reset: cat;
    margin-top: 32px;
}

.catalogue-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px dashed rgba(90, 62, 40, 0.25);
    counter-increment: cat;
}

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

.cat-illus {
    width: 80px;
    height: 80px;
    background: var(--c-paper);
    border: 1px solid rgba(90, 62, 40, 0.18);
    padding: 8px;
    border-radius: 2px;
    transition: transform 0.4s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.cat-illus:hover { transform: rotate(-3deg) scale(1.04); }

.cat-illus svg { width: 100%; height: 100%; display: block; }

.cat-body { padding-top: 4px; }

.cat-name {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--c-bark);
    margin-bottom: 10px;
}

.cat-name em { color: var(--c-forest); font-style: italic; }

.cat-body p {
    font-family: var(--f-body);
    font-style: italic;
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.75;
    color: var(--c-bark);
}

/* bibliography */
.biblio {
    list-style: none;
    margin-top: 24px;
    border-top: 1px solid rgba(90, 62, 40, 0.18);
    padding-top: 18px;
}

.biblio li {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(90, 62, 40, 0.18);
    align-items: baseline;
}

.biblio-num {
    font-family: var(--f-head);
    font-style: italic;
    font-size: 16px;
    color: var(--c-gold);
}

.biblio-text {
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--c-bark);
}

.biblio-text em { color: var(--c-moss); }

.closing-line {
    margin-top: 32px;
    text-align: right;
    font-family: var(--f-head) !important;
    font-style: italic;
    font-size: 16px !important;
    color: var(--c-clay) !important;
}

/* footer */
.journal-footer {
    background: var(--c-paper);
    border-top: 2px solid var(--c-bark);
    padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 80px);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 800px) {
    .footer-inner {
        grid-template-columns: 2fr 2fr 1fr;
    }
}

.foot-stamp {
    display: inline-block;
    font-family: var(--f-note);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--c-gold);
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--c-gold);
}

.foot-block p {
    font-family: var(--f-body);
    font-size: 14px;
    line-height: 1.75;
    color: var(--c-bark);
}

@media (max-width: 720px) {
    .title-line-1, .title-line-2 { font-size: clamp(34px, 9vw, 56px); }
    .section-title { font-size: clamp(26px, 7vw, 38px); }
    .pullquote p { font-size: clamp(20px, 6vw, 28px); }
    .catalogue-item { grid-template-columns: 60px 1fr; gap: 16px; }
    .cat-illus { width: 60px; height: 60px; }
}
