:root {
    color-scheme: light only;
    --parchment-moss: #F5EEDF;
    --verdara-green: #143A2B;
    --ochre: #F2B233;
    --coral: #EC6A47;
    --mist: #9DC9E5;
    --sage: #C8D6B4;
    --dark-text: #143A2B;
    --light-text: #F5EEDF;
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', sans-serif;
}

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

html { color-scheme: light only; }

body {
    background-color: var(--parchment-moss);
    color: var(--dark-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
    html { color-scheme: light only; }
    body { background-color: var(--parchment-moss) !important; }
    a:not(footer a), nav ul li a, .logo { color: var(--dark-text) !important; }
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ═══ TICKER TAPE ═══ */
.ticker-wrap {
    width: 100%;
    background-color: var(--verdara-green);
    color: var(--parchment-moss);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(245, 238, 223, 0.1);
    font-size: 0.85rem;
    font-weight: 500;
}

.ticker {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: ticker-scroll var(--ticker-duration, 30s) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .ticker { animation: none; }
}

.ticker-item { display: inline-block; padding: 0 2rem; flex-shrink: 0; }
.ticker-item span.up { color: #81C784; }
.ticker-item span.down { color: #E57373; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══ HEADER / NAV ═══ */
header {
    border-bottom: 1px solid rgba(20, 58, 43, 0.1);
    padding: 1.5rem 2rem;
    background-color: var(--parchment-moss);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--verdara-green);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo span { color: var(--coral); margin-left: -2px; }

nav ul { display: flex; list-style: none; gap: 2rem; }
nav ul li a { font-size: 0.9rem; font-weight: 600; color: var(--dark-text); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.btn-subscribe {
    background-color: var(--verdara-green);
    color: var(--parchment-moss);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--verdara-green);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 110px;
}

.btn-subscribe:hover { background-color: transparent; color: var(--verdara-green); }

.btn-primary {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--verdara-green);
    color: var(--parchment-moss);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ═══ HERO ═══ */
.hero-banner {
    background-color: var(--verdara-green);
    color: var(--parchment-moss);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content { max-width: 650px; margin: 0 auto; position: relative; z-index: 2; }

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-content h1 span.italic-accent {
    font-style: italic;
    color: var(--ochre);
    font-weight: 400;
}

.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }

.signup-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 40px;
    border: 1px solid rgba(245, 238, 223, 0.2);
}

.signup-form input[type="email"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.8rem 1.5rem;
    color: var(--parchment-moss);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.signup-form input[type="email"]:focus-visible {
    outline: 2px solid var(--ochre);
    border-radius: 30px;
}

.signup-form input[type="email"]::placeholder { color: rgba(245, 238, 223, 0.6); }

.signup-form button {
    background-color: var(--ochre);
    color: var(--verdara-green);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.2s;
}

.signup-form button:hover { background-color: #e0a224; }

.hero-subtext { font-size: 0.75rem; margin-top: 1rem; opacity: 0.6; }

/* ═══ FEED LAYOUT ═══ */
.feed-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.feed-header {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--verdara-green);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--verdara-green);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.feed-header .count {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.6;
}

/* ═══ ARTICLE CARD ═══ */
.feed-article {
    padding: 1.8rem 0;
    border-bottom: 1px solid rgba(20, 58, 43, 0.1);
    display: block;
    transition: opacity 0.3s;
}

.feed-article:first-child { padding-top: 0; }
.feed-article:last-child { border-bottom: none; }

.feed-article:hover { opacity: 0.85; }

.feed-article .badge, .article-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.badge.ekonomie { background-color: var(--ochre); color: var(--verdara-green); }
.badge.markte { background-color: var(--coral); color: var(--parchment-moss); }
.badge.tegnologie { background-color: var(--mist); color: var(--verdara-green); }
.badge.eiendom { background-color: var(--sage); color: var(--verdara-green); }
.badge.nuus, .badge.beleggings, .badge.landbou, .badge.sake-leierskap {
    background-color: var(--verdara-green);
    color: var(--parchment-moss);
}

.feed-article .meta-line {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.4rem;
}

.feed-article h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--verdara-green);
    margin-bottom: 0.4rem;
}

.feed-article .subtitle {
    font-size: 1rem;
    color: rgba(20, 58, 43, 0.75);
    margin-bottom: 0.6rem;
    font-weight: 400;
    line-height: 1.5;
}

.feed-article .excerpt {
    font-size: 0.95rem;
    color: rgba(20, 58, 43, 0.85);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-article .tags, .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.feed-article .tag, .article-tags .tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(20, 58, 43, 0.06);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--verdara-green);
}

.feed-article .read-link {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--coral);
}

.feed-article .read-link:hover { color: var(--verdara-green); }

/* ═══ ARTICLE PAGE (pre-rendered) ═══ */
.article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--verdara-green);
    opacity: 0.7;
}

.back-link:hover { opacity: 1; }

.article-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.12;
    color: var(--verdara-green);
    margin-bottom: 1.2rem;
}

.article-subtitle {
    font-size: 1.25rem;
    color: rgba(20, 58, 43, 0.75);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(20, 58, 43, 0.1);
}

.article-hero-img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 2.5rem;
    display: block;
}

.article-body { font-size: 1.1rem; line-height: 1.8; color: rgba(20, 58, 43, 0.9); }
.article-body p { margin-bottom: 1.4rem; }

.article-tags {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(20, 58, 43, 0.1);
}

.article-src {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 58, 43, 0.1);
    font-size: 0.9rem;
}

.article-src a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.article-src a:hover { color: var(--verdara-green); }

/* ═══ FOOTER ═══ */
footer {
    background-color: var(--verdara-green);
    color: var(--parchment-moss);
    padding: 4rem 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--parchment-moss);
    margin-bottom: 1rem;
}

.footer-logo span { color: var(--coral); }

.footer-col h5 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    color: var(--ochre);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { opacity: 0.8; }
.footer-col ul li a:hover { opacity: 1; }

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 238, 223, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .hero-content h1 { font-size: 2rem; }
    .article-title { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    nav ul { gap: 1.25rem; }
}

@media (max-width: 600px) {
    nav { display: none; }
    .feed-article h2 { font-size: 1.3rem; }
    .article-title { font-size: 1.8rem; }
    .article-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .back-link { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    .signup-form { flex-direction: column; border-radius: 16px; }
    .signup-form input[type="email"] { padding: 0.8rem 1rem; }
    .signup-form button { border-radius: 12px; width: 100%; }
}

/* ═══ VOORBLAD (featured) ═══ */
.featured-section { max-width: 900px; margin: 0 auto; padding: 0 2rem 1rem; }
.featured-header { font-family: var(--font-serif); font-size: 1.5rem; color: var(--verdara-green); margin-bottom: 1rem; border-bottom: 2px solid var(--verdara-green); padding-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: flex-end; }
.featured-subhead { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; opacity: 0.6; }
.featured-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; margin-bottom: 1rem; }
@media (max-width: 768px) { .featured-grid { grid-template-columns: 1fr; } }
.featured-card { display: block; background: var(--ivory); border: 1.5px solid #E5E0D0; border-radius: 14px; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; color: inherit; text-decoration: none; }
.featured-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20, 58, 43, 0.10); }
.featured-img { width: 100%; height: 200px; background-size: cover; background-position: center; background-color: #C3CCA1; }
.featured-large .featured-img { height: 320px; }
.featured-content { padding: 1.1rem 1.25rem 1.4rem; }
.featured-content h2 { font-family: var(--font-serif); font-size: 1.45rem; color: var(--verdara-green); margin: 0.4rem 0 0.5rem; line-height: 1.25; }
.featured-content h3 { font-family: var(--font-serif); font-size: 1.05rem; color: var(--verdara-green); margin: 0.3rem 0 0; line-height: 1.3; }
.featured-content p { font-size: 0.88rem; opacity: 0.75; margin: 0; line-height: 1.5; }
.featured-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.featured-small .featured-img { height: 110px; }
