
/*
 * MaxFlinker.com — homepage stylesheet
 * Loaded after /assets/flinker-age.css
 */

@font-face {
    font-family: Inter;
    src: url("/assets/fonts/Inter-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    src: url("/assets/fonts/Manrope-Variable.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/assets/fonts/JetBrainsMono-Variable.woff2") format("woff2");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;

    --background: #111111;
    --surface: #3C3C31;
    --surface-raised: #47473B;
    --accent: #47473B;
    --accent-hover: #60604D;

    --text: #496146;
    --heading: hsla(60, 100%, 50%, 0.342);
    --link: hsla(60, 100%, 50%, 0.342);
;
    --muted: #2e2d2d;
    --gray: #80808002;
    --border: #20201c;

    --font-body: "Inter", Arial, Helvetica, sans-serif;
    --font-heading: "Manrope", Arial, Helvetica, sans-serif;
    --font-code: "JetBrains Mono", Consolas, monospace;

    --content-width: 1100px;
    --radius: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(var(--content-width), calc(100% - 40px));
    margin-inline: auto;
}

/* Header */
.site-header,
.site-footer {
    background: var(--background);
}

.brand,
.brand h1,
h2,
h3,
.eyebrow {
    color: var(--heading);
}

.site-nav a,
.footer-links a,
a {
    color: var(--link);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-block: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    color: var(--heading);
    text-decoration: none;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand h1 {
    margin: 0;
    color: var(--heading);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    color: var(--link);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Main content */
main {
    padding-block: 48px 72px;
}

.hero {
    margin-bottom: 32px;
    padding: 48px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

h2,
h3 {
    color: var(--heading);
    font-family: var(--font-heading);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
}

.hero p {
    max-width: 720px;
    margin: 0 0 14px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .construction {
    color: var(--muted);
    font-size: 0.94rem;
    font-style: italic;
}

/* Sections */
.section {
    padding: 34px 0;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: 0;
}

.section > h2 {
    margin: 0 0 22px;
    font-size: 1.75rem;
    font-weight: 650;
}

.section-intro {
    max-width: 760px;
    margin: -8px 0 24px;
    color: var(--muted);
}

/* Changelog cards — preserve olive panels */
.news-list {
    display: grid;
    gap: 24px;
}

.news-card {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.news-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    font-weight: 650;
}

.news-card p {
    margin: 0 0 14px;
}

.news-card p:last-child {
    margin-bottom: 0;
}

.news-date {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.news-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
    font-size: 0.94rem;
}

.personal-message {
    background: var(--surface-raised);
    border-left: 3px solid var(--accent-hover);
}

.personal-message h3 {
    margin-top: 0;
}

/* TreeLifeLingo article and sidebar */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
    gap: 32px;
    width: min(var(--content-width), calc(100% - 40px));
    margin-inline: auto;
}

.page-content {
    min-width: 0;
}

.page-sidebar {
    min-width: 0;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.page-sidebar a {
    color: #111111;
}

.page-sidebar ul {
    padding-left: 20px;
}


.tll-tree {
    width: 100%;
}

.tll-tree h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.tree-branch {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.tree-branch summary {
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-weight: 650;
    list-style: revert;
}

.tree-branch summary span {
    opacity: 0.7;
    font-size: 0.85em;
}

.tree-branch ul {
    margin: 0;
    padding: 0 1rem 1rem 2.25rem;
}

.tree-branch li {
    margin: 0.4rem 0;
}

.tree-branch a {
    overflow-wrap: anywhere;
}

.tree-branch a[aria-current="page"] {
    font-weight: 700;
    text-decoration: underline;
}


@media (max-width: 800px) {
    .page-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}/* Typography and links */
p,
li,
label {
    color: var(--text);
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

a:hover,
a:focus-visible {
    color: #FFFFFF;
    text-decoration-color: #FFFFFF;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--heading);
    outline-offset: 4px;
    border-radius: 2px;
}

small,
.text-muted {
    color: var(--muted);
}


/* TreeLifeLingo: inherit the site's global design tokens */
#site-sidebar,
#site-sidebar * {
    font-family: var(--font-body);
}

#site-sidebar {
    color: var(--text);
}

#site-sidebar h1,
#site-sidebar h2,
#site-sidebar h3,
#site-sidebar summary {
    color: var(--heading);
    font-family: var(--font-heading);
}

#site-sidebar a,
#site-sidebar a:visited {
    color: var(--link);
}

#site-sidebar a:hover,
#site-sidebar a:focus-visible {
    color: #fff;
}


/* Code */
code,
pre {
    color: var(--heading);
    background: #1B1B19;
    border: 1px solid var(--border);
    font-family: var(--font-code);
    font-size: 0.88em;
}

code {
    padding: 2px 5px;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

pre {
    max-width: 100%;
    padding: 16px;
    overflow-x: auto;
    border-radius: var(--radius);
}

/* Footer */
.site-footer {
    padding-block: 28px;
    background: var(--background);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.footer-links a {
    color: var(--link);
    text-decoration: none;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-copyright {
    margin: 0;
    color: var(--muted);
}

/* Responsive layout */
@media (max-width: 800px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav ul {
        justify-content: flex-start;
        gap: 12px 20px;
    }

    .hero {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .container {
        width: calc(100% - 32px);
    }

    main {
        padding-block: 24px 44px;
    }

    .hero {
        padding: 26px 20px;
    }

    .news-card {
        padding: 20px;
    }

    .section {
        padding-block: 26px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
.page-sidebar {
    flex: 0 0 250px;
}