/* =========================================================
   PERMANENT PRE-ASTRO / HUGO-ERA STYLE
   ---------------------------------------------------------
   This is now the only website layout.
   Light/Dark colours come from _theme.scss.
   ========================================================= */

body {
    font-family:
        "PT Sans",
        "Segoe UI",
        Arial,
        sans-serif;
}


.nav-container {
    max-width: 1140px;
    min-height: 64px;
}


.site-header {
    backdrop-filter: none;
}


.site-logo {
    font-size: 1.12rem;
    letter-spacing: 0;
}


.main-nav {
    gap: 17px;
}


.main-nav > a {
    font-size: 0.9rem;
    font-weight: 700;
}


.main-nav > a::after {
    bottom: -6px;
}


.header-search-button,
.theme-toggle {
    border-radius: 3px;
}


/* Traditional hero */

.hero {
    min-height: auto;
    padding: 84px 24px 92px;
    text-align: center;
}


.hero-glow {
    display: none;
}


.hero h1 {
    margin-bottom: 22px;

    font-family:
        "PT Sans",
        Arial,
        sans-serif;

    font-size:
        clamp(
            3rem,
            7vw,
            5.6rem
        );

    line-height: 1;
    letter-spacing: -0.045em;
}


.hero-description {
    max-width: 720px;
}


.button {
    border-radius: 3px;
}


/* Traditional section proportions */

.home-section {
    padding: 64px 0;
}


.section-heading {
    padding-bottom: 14px;
    border-bottom:
        1px solid
        var(--gec-border);
}


.section-heading h2,
.page-hero h1,
.article-header h1,
.article-content h2,
.article-content h3,
.project-header-content h1,
.software-info h1 {
    font-family:
        "PT Sans",
        Arial,
        sans-serif;
}


/* Traditional cards */

.content-grid {
    gap: 22px;
}


.content-card,
.project-list-card,
.download-card,
.project-sidebar-card {
    border-radius: 4px;
    box-shadow:
        0
        8px
        22px
        var(--gec-shadow);
}


.content-card:hover,
.project-list-card:hover,
.download-card:hover {
    transform: none;
}


.card-category,
.article-category,
.project-status,
.download-status,
.software-status,
.technology-badge,
.platform-badge,
.tag {
    border-radius: 3px;
}


.feature-banner {
    border-radius: 4px;
}


/* Page/article presentation */

.page-hero {
    padding: 72px 0 48px;
    text-align: center;
}


.article-header {
    padding-top: 72px;
    text-align: center;
}


.article-meta {
    justify-content: center;
}


.article-featured-image,
.project-hero-image,
.software-image {
    border-radius: 4px;
}


/* Old-style helper classes used by the homepage */

.old-container {
    width: calc(100% - 48px);
    max-width: 1140px;
    margin: 0 auto;
}


.old-hero {
    padding: 84px 0 92px;
    text-align: center;

    background:
        linear-gradient(
            135deg,
            var(--gec-hero-start) 0%,
            var(--gec-hero-mid) 56%,
            var(--gec-hero-end) 100%
        );

    border-bottom:
        1px solid
        var(--gec-border);
}


.old-eyebrow {
    margin: 0 0 12px;

    color: var(--gec-muted);

    font-size: 0.75rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.11em;
}


.old-hero h1 {
    margin: 0 0 22px;

    color: var(--gec-text);

    font-size:
        clamp(
            3rem,
            7vw,
            5.6rem
        );

    line-height: 1;
    letter-spacing: -0.045em;
}


.old-hero > .old-container > p:not(.old-eyebrow) {
    max-width: 720px;

    margin:
        0
        auto
        31px;

    color: var(--gec-text-soft);

    font-size: 1.08rem;
    line-height: 1.65;
}


.old-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}


.old-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 10px 18px;

    border:
        1px solid
        var(--gec-border-strong);

    border-radius: 3px;

    text-decoration: none;
    font-weight: 750;
}


.old-button-primary {
    background: var(--gec-accent);
    color: var(--gec-accent-text);
}


.old-button-secondary {
    background: transparent;
    color: var(--gec-text);
}


.old-section {
    padding: 66px 0;
}


.old-section-alt {
    background: var(--gec-surface-2);

    border-top:
        1px solid
        var(--gec-border);

    border-bottom:
        1px solid
        var(--gec-border);
}


.old-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 28px;
    padding-bottom: 14px;

    border-bottom:
        1px solid
        var(--gec-border);
}


.old-section-title h2 {
    margin: 0;
    font-size: 2.05rem;
}


.old-section-title > a {
    color: var(--gec-link);
    text-decoration: none;
    font-weight: 700;
}


.old-post-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 22px;
}


.old-card {
    overflow: hidden;

    background: var(--gec-surface);

    border:
        1px solid
        var(--gec-border);

    border-radius: 4px;

    box-shadow:
        0
        9px
        24px
        var(--gec-shadow);
}


.old-card-image {
    display: block;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--gec-surface-2);
}


.old-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.old-card-body {
    padding: 22px;
}


.old-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-bottom: 12px;

    color: var(--gec-muted);

    font-size: 0.75rem;
}


.old-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    line-height: 1.25;
}


.old-card h3 a,
.old-wide-card h3 a,
.old-download-row h3 a {
    color: var(--gec-text);
    text-decoration: none;
}


.old-card p,
.old-wide-card p,
.old-download-row p {
    color: var(--gec-text-soft);
    line-height: 1.6;
}


.old-read-more {
    color: var(--gec-link);
    font-weight: 800;
    text-decoration: none;
}


.old-project-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 22px;
}


.old-wide-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 240px;

    padding: 28px;

    background: var(--gec-surface);

    border:
        1px solid
        var(--gec-border);

    border-radius: 4px;
}


.old-wide-card h3 {
    margin: 0 0 12px;
    font-size: 1.65rem;
}


.old-wide-card .old-button {
    margin-top: auto;
}


.old-download-list {
    border:
        1px solid
        var(--gec-border);

    border-radius: 4px;

    overflow: hidden;
}


.old-download-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 30px;

    padding: 24px;

    background: var(--gec-surface);

    border-bottom:
        1px solid
        var(--gec-border);
}


.old-download-row:last-child {
    border-bottom: 0;
}


.old-download-row h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}


.old-download-row p {
    margin: 0;
}


/* Responsive */

@media (max-width: 900px) {

    .old-post-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 700px) {

    .old-container {
        width: calc(100% - 32px);
    }


    .old-post-grid,
    .old-project-grid {
        grid-template-columns: 1fr;
    }


    .old-section-title {
        align-items: flex-start;
        flex-direction: column;
    }


    .old-download-row {
        grid-template-columns: 1fr;
    }


    .old-download-row .old-button {
        justify-self: start;
    }

}
