/*
Theme Name: Thomas Van Gompel
Theme URI: https://example.com
Author: Thomas Van Gompel
Author URI: https://example.com
Description: Een custom WordPress thema
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thomas
*/

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:         #0c0c0c;
    --bg-card:    #141414;
    --bg-section: #111111;
    --border:     #1f1f1f;
    --text:       #e8e8e8;
    --text-muted: #888;
    --text-dim:   #555;
    --accent:     #e8e8e8;
    --radius:     6px;
    --max-width:  1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* === Layout === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container--narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding .site-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.02em;
}

.site-branding .site-title a {
    color: var(--text);
    display: inline-flex;
    align-items: baseline;
    gap: 0.25em;
}

.site-branding .site-title a:hover .site-title__first,
.site-branding .site-title a:hover .site-title__last {
    color: #fff;
}

.site-title__first {
    font-weight: 700;
    color: #fff;
    transition: color 0.2s;
}

.site-title__last {
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    transition: color 0.2s;
}

/* === Navigation === */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--text);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn--primary {
    background-color: var(--text);
    color: var(--bg);
    border: 1px solid var(--text);
}

.btn--primary:hover {
    background-color: #fff;
    border-color: #fff;
}

.btn--ghost {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

/* === Section labels === */
.section-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

/* ======================================
   HOMEPAGE SECTIONS
====================================== */

/* === Hero === */
.hero {
    padding: 8rem 0 7rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.hero__label {
    margin-bottom: 2rem;
}

.hero__title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero__title em {
    font-style: italic;
    color: var(--text-muted);
}

.hero__sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

.hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__count {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* === Resources === */
.resources {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-section);
}

.resources__header {
    margin-bottom: 3rem;
}

.resources__title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    border-color: var(--text-dim);
}

.resource-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.resource-card__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    flex: 1;
}

/* === Blog grid === */
.blog-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-section__header {
    margin-bottom: 3rem;
}

.blog-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.blog-section__sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    transition: opacity 0.2s;
}

.blog-card:hover {
    opacity: 0.8;
}

.blog-card__image {
    margin: -1.5rem -1.5rem 1.2rem -1.5rem;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 200px;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    line-height: 1.35;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    flex: 1;
}

.blog-card__meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === About === */
.about-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-section);
}

.about-section__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.about-section__label {
    margin-bottom: 1.5rem;
}

.about-section__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.about-section__text {
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.about-section__socials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.about-section__socials a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    transition: all 0.2s;
}

.about-section__socials a:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.about-section__tagline {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* === Newsletter CTA === */
.newsletter-cta {
    padding: 6rem 0;
    text-align: center;
}

.newsletter-cta__label {
    margin-bottom: 1rem;
}

.newsletter-cta__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.2;
}

.newsletter-cta__sub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.newsletter-form__input {
    width: min(360px, 90vw);
    padding: 0.72rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: #141414;
    color: #1b1010;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    -webkit-appearance: none;
    appearance: none;
    color-scheme: dark;
}

.newsletter-form__input::placeholder {
    color: #555;
}

.newsletter-form__input:focus {
    outline: none;
    border-color: #888;
    background-color: #141414;
    color: #e8e8e8;
}

.newsletter-form__honeypot {
    display: none !important;
}

.newsletter-message {
    margin: 0 auto 1rem;
    max-width: 480px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.92rem;
}

.newsletter-message--success {
    color: #b8e0c6;
}

.newsletter-message--error {
    color: #f3b3b3;
}

/* ======================================
   SINGLE / PAGE TEMPLATES
====================================== */

.single-post {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.single-post .entry-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.single-post .entry-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.single-post .entry-meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    color: var(--text-dim);
}

.single-post .entry-content {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.85;
}

.single-post .entry-content p,
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-bottom: 1.5rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.single-post .entry-content h2 { font-size: 1.6rem; }
.single-post .entry-content h3 { font-size: 1.3rem; }

.single-post .entry-content blockquote {
    border-left: 3px solid var(--text-dim);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.single-post .entry-content a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-post .entry-content a:hover {
    color: #fff;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    padding-left: 1.5rem;
}

.single-post .entry-content li {
    margin-bottom: 0.5rem;
}

/* === Standard page === */
.page-content-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.page-content-wrap .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.page-content-wrap .entry-content {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.85;
}

/* === 404 === */
.error-404 {
    padding: 8rem 2rem;
    text-align: center;
}

.error-404 .page-title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--text-dim);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404 p {
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 2rem;
}

/* === Footer === */
.site-footer {
    background-color: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__copy {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.site-footer__copy a {
    color: var(--text-muted);
}

.site-footer__copy a:hover {
    color: var(--text);
}

/* === Blog index (non-homepage) === */
.blog-index {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.blog-index__header {
    margin-bottom: 2.5rem;
}

.blog-index__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 0.7rem;
}

.blog-index__sub {
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

.blog-index .post {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.post__featured-image {
    margin: 0 0 1.5rem 0;
    overflow: hidden;
    border-radius: var(--radius);
    height: 280px;
    margin-bottom: 1.5rem;
}

.post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-index .entry-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.blog-index .entry-title a {
    color: #fff;
}

.blog-index .entry-title a:hover {
    color: var(--text-muted);
}

.blog-index .entry-meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.blog-index .entry-excerpt {
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.blog-index .read-more {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--text-dim);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.blog-index .read-more:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 900px) {
    .about-section__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 4rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .resources__grid {
        grid-template-columns: 1fr;
    }

    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-navigation ul {
        gap: 1.2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: min(360px, 90vw);
    }
}
