body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    background-color: #0f172a;
    color: #e5e7eb;
    line-height: 1.7;
}

body[data-theme="light"] {
    background: #f8fafc;
    color: #0f172a;
}

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3 {
    color: #0f172a;
}

body[data-theme="light"] h2 {
    border-color: #0284c7;
}

body[data-theme="light"] section {
    background: #ffffff;
    box-shadow: 0 0 0 1px #cbd5e1;
}

body[data-theme="light"] article:hover h3 {
    color: #0f172a;
}

body[data-theme="light"] nav {
    background: #ffffff;
    border-bottom: 1px solid #d1d5db;
}

body[data-theme="light"] nav a {
    color: #0284c7;
}

body[data-theme="light"] nav a:hover {
    color: #0f172a;
}

body[data-theme="light"] .read-next {
    color: #0f172a;
    border-left: 3px solid #0284c7;
}

body[data-theme="light"] .pull-quote {
    color: #334155;
    border-left-color: #0284c7;
}

body[data-theme="light"] .resource-card a {
    background: white;
    box-shadow: 0 0 0 1px #94a3b8;
}

body[data-theme="light"] .resource-eyebrow {
    color: #0284c7;
}

body[data-theme="light"] .resource-title {
    color: #0f172a;
}

body[data-theme="light"] .resource-meta {
    color: #475569;
}

body[data-theme="light"] .resource-why {
    color: #0f172a;
}

body[data-theme="light"] section:hover {
    box-shadow: 0 0 0 1px #0ea5e9, 0 0 35px rgba(14,165,233,0.12);
}

body[data-theme="light"] figcaption {
    color: #475569;
}

body[data-theme="light"] .pulse-note {
    color: #0f172a;
}

body[data-theme="light"] .hero,
body[data-theme="dark"] .hero {
    background: radial-gradient(circle at 40% -20%, #38bdf8 0%, transparent 35%), linear-gradient(135deg, #020617 20%, #0ea5e9 140%);
    color: #e5e7eb;
}

body[data-theme="light"] .hero-title,
body[data-theme="dark"] .hero-title {
    background: linear-gradient(90deg, #e0f2fe, #7dd3fc, #a5f3fc);
    -webkit-background-clip: text;
    color: transparent;
}

body[data-theme="light"] .subtitle {
    color: #e0f2fe;
}

body[data-theme="light"] .hero-topline {
    color: #c7d2fe;
}

.hero {
    background: radial-gradient(circle at 40% -20%, #38bdf8 0%, transparent 35%), linear-gradient(135deg, #020617 20%, #0ea5e9 140%);
    border-bottom: 1px solid #1e293b;
    padding: 5rem 1.5rem 4rem;
}

.hero-content {
    max-width: 960px;
    margin: auto;
    text-align: center;
}

.hero-topline {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: #c7d2fe;
}

.hero-title {
    font-family: 'Unbounded', cursive;
    font-size: 3.4rem;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 1rem;
    background: linear-gradient(90deg, #e0f2fe, #7dd3fc, #a5f3fc);
    -webkit-background-clip: text;
    color: transparent;
}

.subtitle {
    max-width: 760px;
    margin: auto;
    font-size: 1.15rem;
    color: #e0f2fe;
    font-style: italic;
}

a {
    color: #38bdf8;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #0ea5e9;
}

@media (max-width: 700px) {
    .hero {
        padding: 3.5rem 1rem 3rem;
    }
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.15;
        overflow-wrap: break-word;
    }
    .subtitle {
        font-size: 1rem;
    }
}

nav {
    background: #020617;
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2.4rem;
    list-style: none;
    padding: 1.2rem;
    margin: 0;
    flex-wrap: wrap;
}

nav a {
    font-family: 'Unbounded', cursive;
    letter-spacing: 0.06em;
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: color 0.25s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 3px;
    background: #38bdf8;
    transition: width 0.25s ease;
}

nav a:hover {
    color: #e0f2fe;
}

nav a:hover::after {
    width: 100%;
}

.mode-toggle {
    background: transparent;
    border: 1px solid #38bdf8;
    border-radius: 10px;
    padding: 0.4rem 0.8rem;
    font-size: 1.1rem;
    cursor: pointer;
    color: #7dd3fc;
    transition: transform 0.3s ease, background 0.3s ease;
}

.mode-toggle:focus-visible {
    outline: 3px solid #38bdf8;
}

.mode-toggle:hover {
    transform: scale(1.05);
    background: rgba(56, 189, 248, 0.15);
}

main {
    max-width: 960px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

section {
    background: #020617;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 14px;
    box-shadow: 0 0 0 1px #1e293b;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

section:hover {
    box-shadow: 0 0 0 1px #38bdf8, 0 0 40px rgba(56, 189, 248, 0.12);
    transform: translateY(-2px);
}

h2 {
    color: #7dd3fc;
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
}

h3 {
    color: #bae6fd;
    margin-top: 2rem;
    transition: color 0.25s ease;
}

article:hover h3 {
    color: #e0f2fe;
}

figure {
    margin: 1.5rem auto;
    max-width: 520px;
    text-align: center;
}

figure img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
    filter: brightness(0.9) contrast(0.95);
    transition: filter 0.4s ease, transform 0.4s ease;
}

figure:hover img {
    filter: brightness(1) contrast(1);
    transform: scale(1.015);
}

figcaption {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.resource-card {
    margin: 1.5rem 0;
}

.resource-card a {
    display: block;
    padding: 1.4rem 1.6rem;
    border-radius: 14px;
    background: #020617;
    box-shadow: 0 0 0 1px #1e293b;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px #38bdf8, 0 12px 40px rgba(56, 189, 248, 0.15);
}

.resource-eyebrow {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7dd3fc;
    margin-bottom: 0.4rem;
}

.resource-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #e0f2fe;
    line-height: 1.4;
}

.resource-meta {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.resource-why {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #c7d2fe;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.resource-card a:hover .resource-why {
    opacity: 1;
    max-height: 80px;
}

.highlight a {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(2, 6, 23, 0.9));
}

.read-next {
    margin-top: 1.8rem;
    padding-left: 1rem;
    border-left: 3px solid #38bdf8;
    color: #e0f2fe;
    transition: background 0.3s ease;
}

.read-next:hover {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), transparent);
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
}

footer img {
    margin-top: 1rem;
    max-width: 170px;
    opacity: 0.85;
    transition: opacity 0.25s ease;
}

footer img:hover {
    opacity: 1;
}

.zotero-button {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 1rem 1.6rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #021021;
    font-weight: 800;
    font-family: 'Unbounded', cursive;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow: 0 0 0 2px #0c4a6e;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.zotero-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.25);
    color: #ffffff;
}

.pull-quote {
    font-style: italic;
    color: #c7d2fe;
    border-left: 4px solid #38bdf8;
    padding-left: 1rem;
    margin: 1.6rem 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.pull-quote:hover {
    opacity: 1;
}

.pulse-note {
    margin: 1.2rem 0;
    background: rgba(56, 189, 248, 0.08);
    border: 1px dashed #38bdf8;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: #e0f2fe;
}

.pulse-note .reveal {
    opacity: 0;
    display: block;
    margin-top: 0.4rem;
    transition: opacity 0.3s ease;
}

.pulse-note:hover .reveal {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 700px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0.4rem 1rem 0.8rem;
        gap: 0.4rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        padding: 0.4rem 0;
    }

    nav a {
        line-height: 1.3; 
    }

    .mode-toggle {
        margin-bottom: 0.4rem;
        align-self: center;
    }
}