:root {
    /* Primary */
    --Primary-1: #FBFBFF; /* Card backgrounds / surfaces / light sections */
    --Primary-2: #D1D3FA; /* Main page background */
    --Primary-3: #A6AAEE; /* Header background / section separators */
    --Primary-4: #7E83DC; /* Body text / hover states / borders */
    --Primary-5: #5A60C3; /* Headings / primary buttons / focus rings */

    /* Secondary 1 */
    --Secondary1-1: #FDFBFF; /* Alternate light surface (cards, modals) */
    --Secondary1-2: #E0CEF9; /* Soft highlight panels */
    --Secondary1-3: #C0A1ED; /* Accent blocks / subtle backgrounds */
    --Secondary1-4: #A078DA; /* Accent text / badge backgrounds */
    --Secondary1-5: #7F53C0; /* Secondary buttons / strong accents */

    /* Secondary 2 */
    --Secondary2-1: #FBFDFF; /* Neutral light surface alternative */
    --Secondary2-2: #CCE7F9; /* Soft info backgrounds */
    --Secondary2-3: #9DCCEB; /* Soft borders / dividers */
    --Secondary2-4: #72AFD6; /* Info tags / info buttons */
    --Secondary2-5: #4C8DB8; /* Muted text / cool secondary buttons */


    /* Complement */
    --Complement-1: #FFFEFB; /* Warm light surface */
    --Complement-2: #FFF2CE; /* Subtle warm highlight backgrounds */
    --Complement-3: #FFE8A5; /* Warm sections / gentle emphasis */
    --Complement-4: #FFDE80; /* Strong accents / call-to-action highlights */
    --Complement-5: #DDD560; /* Muted warm text / warning borders */

    /* Semantic tokens */

    /* Backgrounds */
    --color-bg: var(--Primary-2);           /* Main background */
    --color-surface: var(--Primary-1);      /* Cards, sections */
    --color-surface-alt: var(--Secondary1-1);

    /* Text */
    --color-text: var(--Primary-4);         /* Body text */
    --color-heading: var(--Primary-5);      /* Headings */
    --color-text-muted: var(--Secondary2-5);

    /* Borders */
    --color-border: var(--Secondary2-3);    /* Soft border */

    /* Buttons */
    --color-button-primary-bg: var(--Primary-5);
    --color-button-primary-text: #ffffff;

    --color-button-secondary-bg: var(--Secondary1-5);
    --color-button-secondary-text: #ffffff;

    /* State / Accent Colors */
    --color-accent: var(--Secondary1-4);    /* Links, highlights */
    --color-accent-hover: var(--Secondary1-3);

    --color-info: var(--Secondary2-4);
    --color-warning: var(--Complement-4);

    /* Shadows */
    --shadow-1: 0 2px 8px rgba(0,0,0,0.05);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: sans-serif;
    line-height: 1.6;
}

body {
    min-height: 100%;
}

header {
    flex: 0 0 auto;
}

.footer {
    flex: 0 0 auto;
    background: var(--Primary-3);
    color: var(--color-heading);
    text-align: center;
    padding: 1rem;
}

.flex-main {
    flex: 1 0 auto;
}

.container {
    max-width: 768px;
    margin: 0 auto;
    padding: 0;
}

.site-header {
    width: 100%;
    background: var(--Primary-3);
    color: var(--color-heading);
    box-shadow: var(--shadow-1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920dvw;
    padding: 0.5rem 1rem;
}

.site-header .logo-header img {
    width: 256px;
    height: auto;
    image-rendering: pixelated;
}

.navigation-bar a {
    text-decoration: none;
    color: var(--color-heading);
    font-weight: bold;
    transition: color 0.2s ease;
}

.navigation-bar li {
    list-style: none;
    display: inline-block;
    font-size: 1.6rem;
    padding: 0 1rem;
}

.navigation-bar a:hover {
    color: var(--color-accent-hover);
}

.footer-bar a {
    text-decoration: none;
    color: var(--color-accent);
    font-weight: bold;
    transition: color 0.2s ease;
}

.footer-bar li {
    list-style: none;
    display: inline-block;
    font-size: 1.2rem;
    padding: 0 1rem;
}

.footer-bar a:hover {
    color: var(--color-accent-hover);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, 512px);
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.card {
    position:relative;
    width: 512px;
    height: 480px;
    background: var(--Primary-3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow-1);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
}

.card-cover {
    display: block;
    height: 75%;
    width: 100%;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1rem;
}

.card-title {
    margin: 0;
    font-size: 1.6rem;
    color: var(--color-heading);
}

.card-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin: 0.3rem 0 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
}

.platform-icons {
    bottom: 0;
    font-size: 1.2rem;
    margin-left: 0.4rem;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.platform-icons i.fa-windows:hover { var(--color-text-muted) }
.platform-icons i.fa-apple:hover { var(--color-bg) }
.platform-icons i.fa-linux:hover { var(--color-warning) }

.post-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: center;
}

.post-list li {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.post-list a {
    font-size: 1.2rem;
    text-decoration: none;
    color: #222;
}

.post-item a {
    font-size: 1.5rem;
}

.post-container {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.post-meta {
    font-size: 1.1rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}

.post-content {
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.6;
}

.work-container {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.work-content {
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-page {
    text-align: left;
    justify-content: left;
    font-size: 1.5rem;
}

.legalpolicy {
    font-size: 1.2rem;
    text-align: left;
    max-width: 768px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

