/* ============================================================
   FONT FACES
   ============================================================ */

@font-face {
    font-display: swap;
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/archivo-v25-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/archivo-v25-latin-700.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/nunito-v32-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/nunito-v32-latin-700.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/ibm-plex-mono-v20-latin-300.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Redacted';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/redacted-v11-latin-regular.woff2') format('woff2');
}

/* ============================================================
   CSS VARIABLES
   ============================================================ */

:root {
    --color-bg:     #0D0A28;
    --color-text:   #D7DCE4;
    --color-muted:  #9AA3B2;
    --color-accent: #FF1F31;
}

/* ============================================================
   BASE — applies to all pages
   ============================================================ */

body {
    font-family: Nunito, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
}

header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-muted);
    padding: 8px 0;
    z-index: 100;
    background-color: var(--color-bg);
}

.menu {
    max-width: 48px;
    max-height: 48px;
    position: absolute;
    left: 8px;
}

main h1 {
    font-family: Nunito, sans-serif;
    font-size: 3.25rem;
    font-weight: 500;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h1 em {
    color: var(--color-accent);
    font-style: normal;
}

main p {
    font-family: Nunito, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 1rem;
}

main hr {
    border: none;
    border-top: 1px solid var(--color-muted);
    margin: 1.5rem 0;
}

a {
    text-decoration: none;
    color: var(--color-text);
    font-style: italic;
}

a:hover {
    letter-spacing: 0.1em;
}

footer {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    color: var(--color-muted);
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(154, 163, 178, 0.25);
    margin-top: 0;
}

/* ============================================================
   SPLASH PAGE — index.html
   ============================================================ */

.page-splash main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 65px);
}

.page-splash .terminal-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url('../img/ConsoleOverlay.png');
    background-size: contain;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.page-splash main > *:not(.terminal-bg) {
    position: relative;
    z-index: 1;
}

.page-splash .logo-title {
    color: var(--color-accent);
    font-family: Archivo, sans-serif;
    text-align: center;
    font-size: 4rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

.page-splash .logo-subtitle {
    color: var(--color-text);
    font-family: Archivo, sans-serif;
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.page-splash .logo-img {
    max-width: 80%;
    max-height: 50vh;
    display: block;
    margin: 0 auto;
}

.page-splash .entry-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    text-align: center;
    font-style: italic;
    margin-top: 3rem;
    cursor: pointer;
    transition: color 0.2s, letter-spacing 0.2s;
    text-decoration: none;
    color: var(--color-text);
}

.page-splash .entry-link:hover {
    letter-spacing: 0.1em;
}

#warning-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-accent);
    text-shadow: 0 0 6px var(--color-accent), 0 0 20px var(--color-accent), 0 0 40px var(--color-accent);
    text-align: center;
    padding: 1rem 1.5rem;
    margin-top: auto;
    animation: flicker 5s steps(1) 1;
}

@keyframes flicker {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    11%  { opacity: 0; }
    14%  { opacity: 1; }
    15%  { opacity: 0; }
    25%  { opacity: 1; }
    35%  { opacity: 0; }
    40%  { opacity: 0; }
    41%  { opacity: 1; }
    42%  { opacity: 0; }
    43%  { opacity: 1; }
    100% { opacity: 1; }
}

/* ============================================================
   ABOUT PAGE — menu.html
   ============================================================ */

.page-about main {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-about main p {
    margin-bottom: 1.25rem;
}

.page-about .section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-text);
    letter-spacing: 0.05em;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.page-about .entry-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.page-about .entry-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
}

.page-about .entry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) saturate(0.8);
    transition: filter 0.3s ease;
    z-index: 0;
}

.page-about .entry-card:hover::before {
    filter: brightness(0.6) saturate(1);
}

.page-about .entry-card.card-histoire::before { background-image: url('../img/Documents.png'); }
.page-about .entry-card.card-entites::before  { background-image: url('../img/Pandemonium.png'); }
.page-about .entry-card.card-chrome::before   { background-image: url('../img/Cyberskeleton.png'); }

.page-about .entry-card .card-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    text-align: center;
}

.page-about .entry-card h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--color-text);
    margin: 0 0 0.25rem 0;
}

.page-about .entry-card .small {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin: 0;
    letter-spacing: 0.03em;
    background-color: rgba(13, 10, 40, 0.3);
    padding: 3px 0;
    border-radius: 10px;
    width: 100%;
    text-align: center;
}

.page-about .entry-card:hover h2 {
    color: var(--color-accent);
    transition: color 0.2s ease;
}

/* ============================================================
   HISTOIRE PAGE — histoire.html
   ============================================================ */

.page-histoire main {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-histoire main h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 3.25rem;
    font-weight: 300;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.page-histoire .annexes {
    display: flex;
    flex-direction: column;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 2rem;
    gap: 0.25rem;
}

.page-histoire .annexes p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
}

.page-histoire .annexes a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-muted);
    font-style: normal;
    text-decoration: none;
}

.page-histoire .annexes a:hover {
    color: var(--color-text);
}

/* ============================================================
   ENTITES PAGE — entites.html
   ============================================================ */

.page-entites main {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-entites main h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 2.3rem;
    color: var(--color-text);
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.15;
}

.page-entites .intro {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.page-entites main h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 1.75rem;
    color: var(--color-text);
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-entites .small {
    font-family: Archivo, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.page-entites main a {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--color-muted);
    font-style: normal;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.page-entites main a:hover {
    color: var(--color-text);
}

/* ============================================================
   CHROME PAGE — chrome.html
   ============================================================ */

.page-chrome main {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}
