/* Hero Banner */

.journal-page-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-top: var(--navbar-height);
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.9s var(--transition-smooth) forwards;
    animation-delay: 0.3s;
}

.journal-page-banner {
    width: 100%;
    object-fit: cover;
    opacity: 0.94;
}

.journal-page {
    width: 100%;
}

body:not(:has(.journal-page-hero)) .journal-page {
    margin-top: var(--navbar-height);
}

/* Header */

.journal-page-header {
    padding: clamp(24px, 5vw, 48px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.9s var(--transition-smooth) forwards;
    animation-delay: 0.5s;
}

.journal-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
}

.journal-page-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: rgba(255,255,255,0.18);
}

.journal-page h1 {
    margin-top: 18px;
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 650;
    max-width: 12ch;
    text-wrap: balance;
}

.journal-page-description {
    margin-top: 24px;
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.95;
    color: rgba(255,255,255,0.68);
}

/* Content */

.journal-page-content {
    padding: clamp(24px, 5vw, 48px);
    background: var(--bg-primary);
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.9s var(--transition-smooth) forwards;
    animation-delay: 0.7s;
}

.journal-page-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 650;
    max-width: 1000px;
}

.journal-page-content h2:first-child {
    margin-top: 0;
}

.journal-page-content p {
    max-width: 1000px;
    font-size: 1.05rem;
    line-height: 2;
    color: rgba(255,255,255,0.72);
}

.journal-page-content p + p {
    margin-top: 28px;
}

.journal-page-content img {
    width: 100%;
    max-width: 600px;
    margin: clamp(36px, 6vw, 56px) 0;
    border-radius: 12px;
    opacity: 0.96;
}

.journal-video {
    width: 100%;
    max-width: 600px;
    margin: clamp(36px, 6vw, 56px) 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    opacity: 0.96;
}

.journal-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.journal-page-content ol,
.journal-page-content ul {
    margin-top: 28px;
    max-width: 1000px;
    color: var(--text-secondary);
}

.journal-page-content li {
    margin-top: 14px;
    padding-left: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.9;
}

.journal-page-content a {
    color: rgba(255,255,255,0.88);
    text-decoration-color: rgba(255,255,255,0.22);
    text-underline-offset: 0.16em;
    transition: opacity 0.2s ease;
}

.journal-page-content a:hover {
    opacity: 0.72;
}

.journal-references {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.journal-reference {
    padding: 28px;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.journal-reference:not(:first-child) {
    margin-top: 32px;
}

.journal-reference-type {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
}

.journal-reference h4 {
    margin-top: 14px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.04em;
}

.journal-reference p {
    margin-top: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.68);
}

.journal-reference-video {
    margin-top: 24px;
    aspect-ratio: 16 / 9;
}

.journal-reference-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.journal-reference-link {
    display: inline-flex;
    margin-top: 22px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.2s ease;
}

.journal-reference-link:hover {
    border-color: rgba(255,255,255,0.7);
}

.journal-signoff {
    padding: clamp(24px, 5vw, 48px);
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    background: var(--bg-primary);
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.9s var(--transition-smooth) forwards;
    animation-delay: 0.9s;
}
