/* riron.xyz - Botanical Magazine Design Language */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Josefin Sans (substitute for Futura), Inter, Playfair Display */

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

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--warm-white);
    color: var(--deep-base);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== NAVIGATION ==================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    z-index: 100;
    background: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background-color: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(12px);
}

.nav-logo {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 8px;
    color: var(--deep-base);
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted-gray);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.4s ease;
}

.nav-link:hover {
    color: var(--deep-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-issue {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--muted-gray);
    text-transform: uppercase;
}

/* ==================== HERO SECTION ==================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--warm-white);
}

.hero-botanical-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-plant {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 40px;
}

.hero-tag {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.hero-title-line {
    font-family: 'Josefin Sans', sans-serif;
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title-line-1 {
    font-weight: 300;
    font-size: 28px;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--muted-gray);
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-title-line-2 {
    font-weight: 700;
    font-size: 96px;
    letter-spacing: 4px;
    color: var(--deep-base);
    line-height: 1;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-title-line-3 {
    font-weight: 300;
    font-size: 48px;
    letter-spacing: 16px;
    text-transform: uppercase;
    color: var(--primary-blue);
    animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--muted-gray);
    max-width: 500px;
    margin: 0 auto 60px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 1.1s forwards;
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 1s ease 1.4s forwards;
}

.scroll-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted-gray);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero-border-frame {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    pointer-events: none;
    z-index: 1;
}

.border-svg {
    width: 100%;
    height: 100%;
}

.border-animate-rect {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: borderDraw 3s ease 0.5s forwards;
}

/* ==================== EDITORIAL SECTION ==================== */

.editorial {
    padding: 120px 0;
    background-color: var(--warm-white);
}

.spread-text-dominant {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    align-items: start;
}

.editorial-number {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 72px;
    color: var(--accent-gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--deep-base);
    margin-bottom: 24px;
}

.section-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--muted-gray);
    margin-bottom: 48px;
}

.editorial-divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent-gold);
    margin-bottom: 40px;
}

.editorial-lead {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.8;
    color: var(--deep-base);
    margin-bottom: 24px;
}

.editorial-body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted-gray);
    margin-bottom: 40px;
}

.editorial-pullquote-container {
    position: relative;
    padding: 40px;
    background-color: var(--deep-base);
    margin-top: 40px;
}

.editorial-pullquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.7;
    color: var(--warm-white);
    margin-bottom: 16px;
}

.pullquote-cite {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-style: normal;
}

.spread-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.editorial-image-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.botanical-illustration svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== BORDER ANIMATE CARDS ==================== */

.border-animate-card {
    position: relative;
}

.border-animate-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--accent-gold);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.border-animate-card.visible::before {
    animation: borderReveal 1.2s ease forwards;
}

/* ==================== SPECIMENS SECTION ==================== */

.specimens {
    padding: 120px 0;
    background-color: var(--deep-base);
}

.spread-photo-dominant {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.specimens .editorial-number {
    color: var(--accent-gold);
    opacity: 0.2;
}

.specimens .section-title {
    color: var(--warm-white);
}

.specimens .section-subtitle {
    color: var(--muted-gray);
}

.specimens-header {
    margin-bottom: 80px;
    text-align: center;
}

.specimens-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.specimen-card {
    background-color: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
}

.specimen-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.specimen-visual {
    position: relative;
    overflow: hidden;
}

.specimen-visual svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.specimen-card:hover .specimen-visual svg {
    transform: scale(1.05);
}

.specimen-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.specimen-name {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--warm-white);
}

.specimen-latin {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--primary-blue);
}

.specimen-origin {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted-gray);
    margin-top: 4px;
}

/* ==================== CULTURE SECTION ==================== */

.culture {
    padding: 120px 0;
    background-color: var(--warm-white);
}

.spread-mixed-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    align-items: center;
}

.culture-left {
    position: relative;
}

.culture-pattern-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    pointer-events: none;
    z-index: 0;
}

.culture-pattern-svg {
    width: 100%;
    height: 100%;
}

.culture-featured-image {
    position: relative;
    z-index: 1;
}

.culture-featured-image svg {
    width: 100%;
    height: auto;
    display: block;
}

.culture-right {
    padding: 40px 0;
}

.culture-article-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--deep-base);
    margin-bottom: 32px;
}

.culture-article-body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted-gray);
    margin-bottom: 24px;
}

.culture-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(232, 184, 75, 0.3);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: var(--accent-gold);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted-gray);
}

/* ==================== JOURNAL SECTION ==================== */

.journal {
    padding: 120px 0;
    background-color: #f0ebe3;
}

.journal .spread-text-dominant {
    display: block;
}

.journal-header {
    text-align: center;
    margin-bottom: 80px;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.journal-entry {
    background-color: var(--warm-white);
    padding: 48px 40px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.journal-entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
}

.journal-entry-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.journal-date {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: var(--muted-gray);
    letter-spacing: 1px;
}

.journal-category {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    padding: 4px 12px;
    border: 1px solid var(--accent-gold);
}

.journal-entry-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.4;
    color: var(--deep-base);
    margin-bottom: 16px;
}

.journal-entry-excerpt {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted-gray);
    margin-bottom: 24px;
}

.journal-read-more {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.journal-entry:hover .journal-read-more {
    color: var(--accent-gold);
}

/* ==================== FOOTER ==================== */

.footer {
    padding: 80px 0;
    background-color: var(--deep-base);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    text-align: center;
}

.footer-brand {
    margin-bottom: 32px;
}

.footer-logo {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 12px;
    color: var(--warm-white);
    margin-bottom: 12px;
}

.footer-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 16px;
    color: var(--muted-gray);
}

.footer-ornament {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.footer-ornament-svg {
    width: 200px;
    height: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-link {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-gold);
}

.footer-copy {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: var(--muted-gray);
    opacity: 0.6;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.4;
        transform: scaleY(0.6);
        transform-origin: top;
    }
}

@keyframes borderReveal {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 100% 0);
    }
    50% {
        opacity: 1;
        clip-path: inset(0 0 100% 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* ==================== SCROLL REVEAL ==================== */

.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .spread-text-dominant {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 48px;
    }

    .spread-mixed-media {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 48px;
    }

    .specimens-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .journal-grid {
        grid-template-columns: 1fr;
        padding: 0 48px;
    }

    .hero-title-line-2 {
        font-size: 64px;
    }

    .hero-title-line-3 {
        font-size: 32px;
        letter-spacing: 10px;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-issue {
        display: none;
    }

    .hero-title-line-1 {
        font-size: 18px;
    }

    .hero-title-line-2 {
        font-size: 48px;
    }

    .hero-title-line-3 {
        font-size: 24px;
        letter-spacing: 6px;
    }

    .hero-border-frame {
        top: 16px;
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .editorial-number {
        font-size: 48px;
    }

    .specimens-grid {
        grid-template-columns: 1fr;
    }

    .culture-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .spread-text-dominant,
    .spread-mixed-media,
    .footer-content {
        padding: 0 24px;
    }

    .journal-grid {
        padding: 0 24px;
    }

    .journal-entry {
        padding: 32px 24px;
    }
}
