/*
Theme Name:  EntoHub
Theme URI:   https://entohub.synology.me
Author:      EntoHub
Description: Custom theme for the EntoHub discovery platform.
Version:     1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License:     Proprietary
Text Domain: entohub
*/

/* ── Brand tokens ───────────────────────────────────────────────────────────────────────────── */

:root {
    --color-bg:         #E0E9EE;
    --color-bg-dark:    #1F2328;
    --color-text:       #2A2A2A;
    --color-text-light: #FFFCED;
    --color-cta:        #1A2E45;
    --font-heading:     'Petrona', serif;
    --font-body:        'Manrope', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────────────────────────── */

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

body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Site layout ───────────────────────────────────────────────────────────────────────── */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    width: 100%;
    overflow: visible;
    padding-bottom: 80px;
}

.entry-content {
    width: 100%;
}

/* ── Site header ──────────────────────────────────────────────────────────────────────── */

.site-header {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-wordmark {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text-light);
    text-decoration: none;
    letter-spacing: 0.02em;
}

/* ── Primary nav ──────────────────────────────────────────────────────────────────────── */

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.primary-nav a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.15s;
}

.primary-nav a:hover {
    opacity: 1;
}

/* ── Site footer ──────────────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 28px 40px;
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.site-footer p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 13px;
    opacity: 0.55;
}