/*
 Annie Rios - Journal Article Styles
 © 2025
*/

:root {
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f4f4f4;
    --gray-medium: #e0e0e0;
    --gray-dark: #666666;
    --text-color: #333333;
    --link-color: #780000;
    --transition: all 0.3s ease;
    --font-family-main: 'Host Grotesk', sans-serif;
    --font-family-serif: 'Nomada Didone', serif;
}

/* --- Base & Typography --- */
body {
    font-family: var(--font-family-main);
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-main);
    font-weight: 400;
    color: var(--black);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 400;
    border-bottom: 1px solid var(--gray-medium);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 400;
}

p, ul, ol {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    max-width: 720px; /* Optimal reading width */
}

ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

strong, b {
    font-weight: 500;
}

hr {
    border: 0;
    height: 1px;
    background-color: var(--gray-medium);
    margin: 3rem auto;
    max-width: 200px;
}

/* --- Header & Footer --- */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left a {
    text-decoration: none;
}

.header-left h1 {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--black);
    margin: 0;
}

.header-extras {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-option, .lang-option {
    font-size: 1rem;
    font-weight: 300;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    background-color: var(--gray-light);
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* --- Article Layout & Content --- */
.article-container {
    max-width: 900px;
    margin: 120px auto 0;
    padding: 0 2rem;
}

.article-header {
    margin-bottom: 3rem;
}

.article-body {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content like p, ul, etc. */
}

.article-body > * {
    width: 100%;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 2.5rem 0;
    border: 1px solid var(--gray-medium);
    padding: 8px;
    background: var(--white);
}

/* --- Related Articles Section --- */
.article-related {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-medium);
    text-align: center;
}

.article-related h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.article-related ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.article-related li {
    margin-bottom: 0.5rem;
}

.article-related a {
    font-size: 1.1rem;
    font-weight: 300;
}

.see-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- Fullscreen Menu --- */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

/* --- Journal Grid Layout --- */
.journal-container {
    max-width: 1200px;
    margin: 120px auto 0;
    padding: 0 2rem;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.journal-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid var(--gray-medium);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s ease;
    overflow: hidden;
}

.journal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.journal-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.journal-card:hover .journal-card-image {
    transform: scale(1.05);
}

.journal-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.journal-card-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.journal-card-excerpt {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.journal-card-link {
    font-weight: 500;
    color: var(--link-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    align-self: flex-start;
}


/* Add other menu styles as needed */