/* IJWI Public Site Stylesheet */
/* Aesthetic: Editorial / Academic — Playfair + Source Sans, deep navy + warm gold */

:root {
    --navy:   #0d2240;
    --navy2:  #1a3a5c;
    --gold:   #b8860b;
    --gold2:  #d4a017;
    --cream:  #faf8f4;
    --white:  #ffffff;
    --gray1:  #f5f4f0;
    --gray2:  #e8e6e0;
    --gray3:  #9a9590;
    --text:   #1a1815;
    --radius: 6px;
    --shadow: 0 2px 12px rgba(13,34,64,.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
}

a { color: var(--navy2); text-decoration: none; }
a:hover { color: var(--gold); }

/* ── Header ── */
.site-header {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.brand-link { display: flex; align-items: center; gap: 1rem; color: #fff; text-decoration: none; }
.brand-acronym {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold2);
    letter-spacing: .02em;
    line-height: 1;
    flex-shrink: 0;
}
.brand-full { display: flex; flex-direction: column; }
.brand-publisher { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #aac4e0; }
.brand-title { font-size: .9rem; font-weight: 500; line-height: 1.2; color: #fff; }
.brand-issn { font-size: .7rem; color: #8aaccc; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; flex-wrap: wrap; }
.main-nav a {
    display: block;
    padding: .4rem .75rem;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .03em;
    color: #c8d8ea;
    border-radius: var(--radius);
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.btn-subscribe {
    background: var(--gold) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: .4rem 1rem !important;
}
.btn-subscribe:hover { background: var(--gold2) !important; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    color: #fff;
    padding: 4rem 1.5rem 3.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}
.hero-label {
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold2);
    margin-bottom: .75rem;
    font-weight: 600;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: .5rem;
}
.hero-year { color: var(--gold2); }
.hero-sub { font-size: 1.05rem; color: #a8c4e0; margin-top: .5rem; }

/* ── Hero cover layout ── */
.hero-with-cover {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.hero-text { flex: 1; min-width: 0; }
.hero-cover {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.cover-img {
    width: 170px;
    height: auto;
    border-radius: 3px;
    box-shadow:
        0 4px 16px rgba(0,0,0,.4),
        0 1px 4px rgba(0,0,0,.2),
        3px 3px 0 rgba(0,0,0,.15);
    transform: rotate(1.5deg);
    transition: transform .3s ease, box-shadow .3s ease;
    display: block;
}
.cover-img:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow:
        0 8px 28px rgba(0,0,0,.45),
        0 2px 6px rgba(0,0,0,.2);
}

.hero--small { padding: 2.5rem 1.5rem 2rem; }
.hero--small .hero-title { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.back-link { display: inline-block; margin-top: 1rem; font-size: .875rem; color: var(--gold2); }
.back-link:hover { color: #fff; }

/* ── Container ── */
.container { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* ── Articles list ── */
.issue-section { padding-top: 2.5rem; }
.articles-list { display: flex; flex-direction: column; gap: 0; }

.article-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray2);
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: .25rem 1rem;
    align-items: start;
}
.article-card:last-child { border-bottom: none; }
.article-card.editorial { background: #f0f4fa; margin: 0 -1.5rem; padding: 1.25rem 1.5rem; border-bottom-color: #d0dcea; }

.article-meta { grid-column: 1; grid-row: 1 / 3; padding-top: .2rem; }
.tag-editorial, .tag-article {
    display: inline-block;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 3px;
    white-space: nowrap;
}
.tag-editorial { background: var(--navy); color: #fff; }
.tag-article   { background: var(--gray2); color: var(--navy2); }

.article-title {
    grid-column: 2;
    grid-row: 1;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy);
}
.article-title a { color: inherit; }
.article-title a:hover { color: var(--gold); }

.article-authors {
    grid-column: 2;
    grid-row: 2;
    font-size: .875rem;
    color: var(--gray3);
    font-style: italic;
}

.btn-pdf {
    grid-column: 3;
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--navy2);
    background: var(--gray1);
    border: 1px solid var(--gray2);
    border-radius: var(--radius);
    padding: .35rem .75rem;
    white-space: nowrap;
    align-self: center;
    transition: all .2s;
    text-decoration: none;
}
.btn-pdf:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Archive ── */
.archive-section { border-top: 2px solid var(--gray2); padding-top: 2rem; }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background: var(--gray2);
    border: 1px solid var(--gray2);
    border-radius: var(--radius);
    overflow: hidden;
}
.archive-vol {
    background: var(--white);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.archive-year { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray3); }
.archive-volnum { font-weight: 700; font-size: .95rem; color: var(--navy); }
.archive-issues { display: flex; gap: .5rem; flex-wrap: wrap; }
.archive-issue-link {
    font-size: .82rem;
    color: var(--navy2);
    background: var(--gray1);
    border: 1px solid var(--gray2);
    border-radius: 3px;
    padding: .15rem .5rem;
    transition: all .2s;
}
.archive-issue-link:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Static pages ── */
.page-content { line-height: 1.8; }
.page-content h2 { font-family: 'Playfair Display', serif; color: var(--navy); margin: 2rem 0 .75rem; font-size: 1.4rem; }
.page-content p  { margin-bottom: 1rem; }
.page-content ul, .page-content ol { margin: 1rem 0 1rem 1.5rem; }
.page-content li { margin-bottom: .4rem; }
.page-content a  { color: var(--gold); text-decoration: underline; }

/* ── Footer ── */
.site-footer {
    background: var(--navy);
    color: #8aaccc;
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    align-items: flex-start;
}
.footer-brand { color: #c8d8ea; font-size: .9rem; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-nav a { color: #8aaccc; font-size: .85rem; }
.footer-nav a:hover { color: var(--gold2); }
.footer-copy { font-size: .78rem; color: #567a99; width: 100%; }

/* ── Responsive ── */
@media (max-width: 700px) {
    .header-inner { flex-wrap: wrap; gap: .75rem; }
    .main-nav { display: none; width: 100%; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: .1rem; padding: .5rem 0; }
    .nav-toggle { display: block; margin-left: auto; }
    .cover-img { width: 75px; transform: none; }
    .article-card { grid-template-columns: 1fr; }
    .article-meta { grid-column: 1; grid-row: 1; }
    .article-title { grid-column: 1; grid-row: 2; }
    .article-authors { grid-column: 1; grid-row: 3; }
    .btn-pdf { grid-column: 1; grid-row: 4; justify-self: start; }
    .archive-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
