/* ==========================================================================
   OhmyNeuro — consolidated stylesheet for all public pages
   Dusty pink, cream, Georgia serif — calm academic editorial feel
   ========================================================================== */

:root {
    --primary: #d4a5a5;
    --primary-dark: #c9a2a2;
    --primary-soft: #f3e6e6;
    --bg: #faf7f7;
    --surface: #ffffff;
    --text: #4a4444;
    --text-soft: #948a8a;
    --border: #eddfdf;
    --shadow: 0 8px 24px rgba(180, 140, 140, 0.14);
    --shadow-sm: 0 2px 10px rgba(180, 140, 140, 0.10);
    --shadow-lg: 0 14px 34px rgba(180, 140, 140, 0.20);
    --radius: 12px;
    --radius-sm: 8px;
    --font: Georgia, 'Times New Roman', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 28px;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text);
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.logo-icon {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--primary-dark);
    opacity: 0.8;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 26px;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav a {
    display: inline-block;
    color: var(--text);
    font-size: 15px;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
    position: relative;
    text-align: center;
    padding: 72px 0 56px;
    overflow: hidden;
}

.hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
}

/* Follow the settings-driven primary color (overrides SVG attributes) */
.hero-deco line {
    stroke: var(--primary);
}

.hero-deco circle {
    fill: var(--primary);
}

.author-byline {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 22px;
    position: relative;
}

.hero h1 {
    font-size: clamp(28px, 4.5vw, 40px);
    font-weight: 400;
    letter-spacing: 0.3px;
    color: var(--text);
    margin-bottom: 26px;
    position: relative;
}

.hero-text {
    max-width: 620px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
    position: relative;
}

.hero-note {
    margin-top: 18px;
    font-style: italic;
    color: var(--text-soft);
    position: relative;
}

/* ==========================================================================
   "Here, you'll find" section (home)
   ========================================================================== */

.findings {
    background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(243, 230, 230, 0.35) 100%);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 36px 40px;
    margin: 0 0 56px;
    box-shadow: var(--shadow-sm);
}

.findings h2 {
    font-size: 19px;
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.findings ul {
    list-style: none;
}

.findings li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 15.5px;
}

.findings li:last-child {
    margin-bottom: 0;
}

.findings li::before {
    content: "\2022";
    position: absolute;
    left: 8px;
    color: var(--primary-dark);
    font-size: 18px;
    line-height: 1.5;
}

/* ==========================================================================
   Section cards (home: Monograph / Research)
   ========================================================================== */

.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-bottom: 80px;
}

.section-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 36px 32px 34px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.section-card .card-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    opacity: 0.85;
}

.section-card h2 {
    font-size: 21px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--text);
}

.section-card p {
    font-size: 15px;
    color: var(--text-soft);
    margin-bottom: 24px;
}

.btn {
    display: inline-block;
    font-family: var(--font);
    font-size: 14.5px;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 28px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(180, 140, 140, 0.3);
}

/* ==========================================================================
   Generic page shell (About / list pages / article)
   ========================================================================== */

.page {
    padding-top: 56px;
    padding-bottom: 72px;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.page-header .subtitle {
    color: var(--text-soft);
    font-size: 16px;
    font-style: italic;
}

/* ==========================================================================
   About page prose
   ========================================================================== */

.prose {
    max-width: 720px;
}

.prose p {
    margin-bottom: 20px;
    font-size: 16.5px;
}

.prose h2 {
    font-size: 21px;
    font-weight: 400;
    color: var(--primary-dark);
    margin: 38px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.prose ul {
    list-style: none;
    margin-bottom: 20px;
}

.prose li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
}

.prose li::before {
    content: "\2022";
    position: absolute;
    left: 8px;
    color: var(--primary-dark);
    font-size: 18px;
}

.prose strong {
    color: var(--text);
}

/* ==========================================================================
   Item lists (Research / Monograph)
   ========================================================================== */

.item-list {
    display: grid;
    gap: 24px;
}

.item-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.item-card h2 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
}

.item-card h2 a {
    color: var(--text);
    transition: color 0.2s ease;
}

.item-card h2 a:hover {
    color: var(--primary-dark);
}

.item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-soft);
    font-style: italic;
    margin-bottom: 14px;
}

.badge {
    display: inline-block;
    font-style: normal;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 3px 12px;
    border-radius: 999px;
    background-color: var(--primary-soft);
    color: var(--primary-dark);
    border: 1px solid var(--border);
}

.badge.badge-progress {
    background-color: #f7f1e6;
    color: #a98d5f;
    border-color: #eee3cd;
}

.badge.badge-draft {
    background-color: #f0eeee;
    color: #8a8383;
    border-color: #e2dede;
}

.badge.badge-pdf {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary-dark);
}

.item-excerpt {
    font-size: 15px;
    color: var(--text-soft);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Long unbroken strings (DOIs, URLs) must never cause horizontal scroll */
.item-excerpt,
.item-card h2,
.article-body p,
.article-header h1,
.prose,
.prose p {
    overflow-wrap: anywhere;
}

.item-card .btn {
    padding: 8px 22px;
    font-size: 14px;
}

/* Loading / error / empty states */

.state-note {
    text-align: center;
    color: var(--text-soft);
    font-style: italic;
    padding: 40px 0;
}

.empty-state {
    text-align: center;
    padding: 72px 24px;
    background-color: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.empty-state .empty-icon {
    font-size: 44px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.85;
}

.empty-state p {
    color: var(--text-soft);
    font-size: 16.5px;
    font-style: italic;
}

/* ==========================================================================
   Article page
   ========================================================================== */

.article-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    font-size: 14.5px;
    color: var(--text-soft);
    margin-bottom: 30px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-3px);
}

.article-header {
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 14px;
}

.article-body p {
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.9;
}

/* Prominent PDF download button (article page) */
.pdf-download {
    display: inline-block;
    margin-top: 14px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-size: 15px;
    padding: 11px 28px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(180, 140, 140, 0.3);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    overflow-wrap: anywhere;
}

.pdf-download:hover {
    color: #ffffff;
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(180, 140, 140, 0.4);
}

.article-notfound {
    text-align: center;
    padding: 80px 24px;
}

.article-notfound .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 18px;
}

.article-notfound h1 {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 10px;
}

.article-notfound p {
    color: var(--text-soft);
    font-style: italic;
    margin-bottom: 26px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    flex-shrink: 0;
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 40px 0 26px;
    text-align: center;
    font-size: 14px;
    color: var(--text-soft);
}

.site-footer .footer-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.site-footer .footer-about {
    max-width: 520px;
    margin: 0 auto 18px;
    line-height: 1.7;
}

.site-footer .footer-contact {
    margin-bottom: 26px;
}

.site-footer .footer-contact a {
    display: inline-block;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary);
    border-radius: 999px;
    padding: 8px 24px;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-footer .footer-contact a:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.site-footer a {
    color: var(--primary-dark);
}

.site-footer a:hover {
    color: var(--text);
}

.site-footer .footer-copy {
    font-size: 12.5px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin: 0 auto;
    color: var(--text-soft);
    opacity: 0.85;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 700px) {
    .container {
        padding: 0 18px;
    }

    .header-inner {
        flex-direction: column;
        gap: 10px;
        padding-top: 14px;
        padding-bottom: 12px;
    }

    /* Settings-driven title may be long — let it wrap instead of
       pushing the header wider than the viewport */
    .logo {
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }

    .site-nav ul {
        gap: 18px;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .findings {
        padding: 28px 24px;
    }

    .section-cards {
        grid-template-columns: 1fr;
        margin-bottom: 56px;
    }

    .item-card {
        padding: 24px 20px;
    }

    .page {
        padding-top: 40px;
        padding-bottom: 56px;
    }
}
