/* =========================================
   Base site styles
   Palette ties into the badge colors already
   used in pub-cards.css / citation-stats.css
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --color-primary: #264653;   /* dark navy - headings, header bg */
    --color-accent: #e76f51;    /* warm orange - links, highlights */
    --color-text: #333;
    --color-muted: #666;
    --color-border: #e2e2e2;
    --color-bg: #fdfdfc;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --max-width: 860px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.4rem;
    margin-top: 0;
}

h3 {
    font-size: 1.15rem;
}

a {
    color: var(--color-accent);
}

a:hover {
    text-decoration: none;
}

/* =========================
   HEADER
   ========================= */
header {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 2.2rem 1rem;
}

header h1 {
    color: #fff;
    margin: 0 0 0.3rem 0;
    font-size: 2rem;
}

header p {
    margin: 0.15rem 0;
    color: #dfe7ea;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

/* =========================
   NAVIGATION
   ========================= */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.6rem;
    background: #1d3540;
    padding: 0.8rem 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease;
}

nav a:hover {
    border-bottom-color: var(--color-accent);
}

/* =========================
   MAIN CONTENT
   ========================= */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.2rem;
}

section {
    margin-bottom: 2.8rem;
}

section:last-child {
    margin-bottom: 0;
}

p {
    margin: 0 0 1rem 0;
    text-align: justify;
    text-justify: inter-word;
}

ul {
    margin: 0 0 1rem 0;
    padding-left: 1.3rem;
}

li {
    margin-bottom: 0.4rem;
}

/* =========================
   NEWS & MEDIA
   ========================= */
.media-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.media-item h3 {
    margin: 0 0 0.4rem 0;
}

.media-item p {
    margin-bottom: 0.7rem;
}

.media-embed {
    margin-top: 0.9rem;
    width: 100%;
    overflow: hidden;
}

.media-embed iframe {
    display: block;
    width: 100%;
    border: none;
}

.media-link {
    font-weight: 600;
    text-decoration: none;
}

.media-link:hover {
    text-decoration: underline;
}

/* =========================
   FOOTER
   ========================= */
footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.6rem;
    }
    nav {
        gap: 1rem;
    }
    main {
        padding: 1.8rem 1rem;
    }
}