/* CrtQ blog — minimal Dieter Rams styling matching the landing page */

:root {
    --navy: #0F3460;
    --navy-dark: #0a2444;
    --green: #7CB518;
    --green-dark: #5a8a0f;
    --green-pale: #f0f7e2;
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --mid-grey: #5D6D7E;
    --light-grey: #D0D0DD;
    --pale-grey: #F5F6FA;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green-dark); }

/* ─── Nav ─── */
.site-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--light-grey);
    z-index: 100;
}

.site-nav-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-nav-brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

/* ─── Hero (blog index) ─── */
.hero {
    padding: 100px 24px 60px;
    background: var(--white);
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: radial-gradient(var(--navy) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hero-eyebrow {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    background: var(--green-pale);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.05;
    color: var(--navy);
}

.hero-copy {
    margin-top: 24px;
    font-size: 17px;
    color: var(--mid-grey);
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Post list ─── */
.post-list {
    padding: 40px 24px 100px;
    background: var(--white);
}

.post-list-inner {
    max-width: 720px;
    margin: 0 auto;
}

.post-list-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-list-item {
    border-top: 1px solid var(--light-grey);
}

.post-list-item:last-child {
    border-bottom: 1px solid var(--light-grey);
}

.post-list-link {
    display: block;
    padding: 32px 0;
    transition: padding-left 0.25s ease;
}

.post-list-link:hover {
    padding-left: 12px;
}

.post-list-date {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.post-list-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.post-list-summary {
    font-size: 16px;
    color: var(--mid-grey);
    line-height: 1.65;
    margin-bottom: 12px;
}

.post-list-readmore {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

.post-list-link:hover .post-list-readmore { color: var(--green-dark); }

.post-list-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--mid-grey);
    font-style: italic;
}

/* ─── Single post ─── */
.post-header {
    padding: 80px 24px 40px;
    background: var(--pale-grey);
    border-bottom: 1px solid var(--light-grey);
}

.post-header-inner {
    max-width: 720px;
    margin: 0 auto;
}

.post-back {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--mid-grey);
    margin-bottom: 24px;
}

.post-back:hover { color: var(--navy); }

.post-date {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.post-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.post-author {
    font-size: 14px;
    color: var(--mid-grey);
    margin-bottom: 16px;
}

.post-summary {
    font-size: 18px;
    color: var(--navy);
    font-weight: 500;
    line-height: 1.6;
    margin-top: 8px;
}

.post-hero-image {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 0;
}

.post-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-body {
    padding: 60px 24px;
    background: var(--white);
}

.post-body-inner img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 24px auto;
}

.post-body-inner {
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
    color: #2a3b52;
    line-height: 1.75;
}

.post-body-inner h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin: 48px 0 16px;
    line-height: 1.2;
}

.post-body-inner h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 32px 0 12px;
}

.post-body-inner p {
    margin-bottom: 20px;
}

.post-body-inner ul,
.post-body-inner ol {
    margin: 0 0 24px 24px;
}

.post-body-inner li {
    margin-bottom: 10px;
}

.post-body-inner a {
    color: var(--green-dark);
    border-bottom: 1px solid var(--green-pale);
    transition: border-color 0.15s;
}

.post-body-inner a:hover {
    border-color: var(--green);
}

.post-body-inner strong {
    color: var(--navy);
    font-weight: 700;
}

.post-body-inner blockquote {
    border-left: 3px solid var(--green);
    padding: 4px 0 4px 24px;
    margin: 24px 0;
    color: var(--mid-grey);
    font-style: italic;
}

.post-body-inner code {
    font-family: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
    font-size: 0.92em;
    background: var(--pale-grey);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--navy);
}

.post-body-inner pre {
    background: var(--navy);
    color: #e5eefb;
    padding: 20px 24px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.55;
}

.post-body-inner pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.post-footer {
    padding: 40px 24px 80px;
    background: var(--white);
    border-top: 1px solid var(--light-grey);
}

.post-footer-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.post-cta {
    padding: 12px 24px;
    background: var(--green);
    color: var(--white);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s;
}

.post-cta:hover {
    background: var(--green-dark);
    color: var(--white);
}

/* ─── Footer ─── */
.site-footer {
    padding: 40px 24px;
    background: var(--pale-grey);
    border-top: 1px solid var(--light-grey);
    text-align: center;
}

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

.site-footer-brand {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.site-footer-tagline {
    font-size: 13px;
    color: var(--mid-grey);
    font-style: italic;
    margin-bottom: 16px;
}

.site-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.site-footer-links a {
    font-size: 13px;
    color: var(--mid-grey);
    font-weight: 600;
}

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

.site-footer-copy {
    font-size: 11px;
    color: var(--light-grey);
    margin-top: 8px;
}

/* ─── Responsive tweaks ─── */
@media (max-width: 600px) {
    .hero { padding: 60px 20px 40px; }
    .post-list { padding: 20px 20px 60px; }
    .post-header { padding: 60px 20px 32px; }
    .post-hero-image { padding: 24px 20px 0; }
    .post-body { padding: 40px 20px; }
    .post-footer-inner { flex-direction: column; align-items: flex-start; }
    .site-nav-inner { padding: 12px 20px; }
}
