/* --- 1. FONTS --- */
@font-face { font-family: 'SidebarFont';   src: url('fonts/Basalte-Fond.ttf')    format('truetype'); }
@font-face { font-family: 'MyTitleFont';    src: url('fonts/Lineal-Light.ttf')     format('truetype'); }
@font-face { font-family: 'MySubtitleFont'; src: url('fonts/Equateur-Regular.ttf') format('truetype'); }
@font-face { font-family: 'MyBodyFont';     src: url('fonts/Karrik-Regular.ttf')   format('truetype'); }
@font-face { font-family: 'MyLogoFont';     src: url('fonts/Lineal-Black.ttf')     format('truetype'); }
/* Writings-section title face */
@font-face { font-family: 'Latitude';       src: url('fonts/Latitude-Regular.ttf') format('truetype'); }

/* --- 2. VARIABLES --- */
:root {
    --white:  #FFF8F0;
    --carbon: #1D1D1D;

    /* Committed dark theme */
    --bg:      #1E1722;
    --bg-soft: #2A2130;
    --header-bg: #000000;
    --text:    #FFF8F0;
    --muted:   rgba(255, 248, 240, 0.55);
    --line:    rgba(255, 248, 240, 0.14);

    /* Per-project accents (original band palette) */
    --red:    #E27D79;
    --blue:   #68C4E8;
    --orange: #F9C784;
    --green:  rgb(48, 177, 106);

    /* Set per-project via inline style; falls back to white */
    --accent: var(--white);

    --font-logo:     'MyLogoFont', sans-serif;
    --font-title:    'MyTitleFont', serif;
    /* Writings-section titles only (Games/About keep --font-title) */
    --font-writing-title: 'Latitude', serif;
    --font-subtitle: 'MySubtitleFont', serif;
    --font-body:     'MyBodyFont', sans-serif;
    --font-sidebar:  'SidebarFont', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }

/* --- 3. STICKY HEADER (name + swapping subtitle) --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 300px;
    padding: 22px 40px;
}

.profile-section { display: flex; align-items: baseline; gap: 12px; }
.profile-link { text-decoration: none; }
.profile-name  { font-family: var(--font-logo); font-size: 1.9rem; line-height: 0.9; letter-spacing: -0.5px; }
.profile-title { font-family: var(--font-subtitle); font-size: 0.85rem; font-style: italic; color: var(--muted); }

.top-nav { display: flex; gap: 26px; font-family: var(--font-sidebar); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; }
.top-nav a { text-decoration: none; color: var(--muted); transition: color 0.25s ease; }
.top-nav a:hover, .top-nav a.current { color: var(--text); }

/* --- 4. INTRO / ABOUT (about page) --- */
.intro {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16vh 40px 14vh;
}
.intro-text {
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1.25;
    letter-spacing: -1px;
    max-width: 20ch;
}
.intro-body {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 60ch;
    margin-top: 36px;
}
.intro-body strong { color: var(--text); font-weight: normal; }

/* --- 5. FOOTER --- */
.site-footer {
    padding: 9vh 40px 6vh;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.footer-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--muted);
}
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta a.back-to-top { font-family: var(--font-sidebar); text-transform: uppercase; letter-spacing: 2px; text-decoration: none; }

/* --- 6. WRITINGS — the menu --- */
.menu { max-width: 720px; margin: 0 auto; padding: 12vh 40px 8vh; }
.menu-head { text-align: center; margin-bottom: 7vh; }
.menu-title { font-family: var(--font-writing-title); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -1px; }

.menu-list { display: flex; flex-direction: column; gap: 6px; }
.menu-item { display: block; text-decoration: none; color: inherit; padding: 24px 26px; border-radius: 16px; transition: background 0.25s ease, transform 0.25s ease; }
.menu-item:hover { background: var(--bg-soft); transform: translateY(-2px); }
.menu-item-name { font-family: var(--font-writing-title); font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.5px; }
.menu-item-ingredients { font-size: 0.98rem; line-height: 1.65; color: var(--muted); margin-top: 12px; max-width: 58ch; }
.menu-item-price { display: block; margin-top: 18px; text-align: right; font-family: var(--font-sidebar); text-transform: uppercase; letter-spacing: 2px; font-size: 0.72rem; color: var(--text); opacity: 0.75; }

/* --- 7. WRITING — a single piece --- */
.writing { max-width: 680px; margin: 0 auto; padding: 9vh 40px 5vh; }
.writing-back { font-family: var(--font-sidebar); text-transform: uppercase; letter-spacing: 2px; font-size: 0.72rem; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 6vh; }
.writing-back:hover { color: var(--text); }
.writing-title { font-family: var(--font-writing-title); font-size: clamp(2rem, 5.5vw, 3.3rem); line-height: 1.1; letter-spacing: -1.5px; }
.writing-meta { margin-top: 20px; display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; font-family: var(--font-sidebar); text-transform: uppercase; letter-spacing: 2px; font-size: 0.7rem; color: var(--muted); }
.writing-meta a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.writing-meta a:hover { color: var(--text); }
.writing-body { margin-top: 6vh; font-size: 1.16rem; line-height: 1.8; color: rgba(255, 248, 240, 0.86); }
.writing-body p { margin-bottom: 1.5em; }
.writing-body p:last-child { margin-bottom: 0; }
.writing-body em { font-style: italic; }

/* --- 8. MOBILE --- */
@media (max-width: 850px) {
    .topbar-inner { justify-content: space-between; gap: 20px; padding: 16px 20px; }
    .top-nav { gap: 16px; font-size: 0.7rem; letter-spacing: 1px; }
    .profile-section { flex-direction: column; align-items: flex-start; gap: 2px; }
    .profile-name { font-size: 1.5rem; }
    .intro { padding: 12vh 20px 10vh; }
    .site-footer { padding: 8vh 20px 6vh; }
    .menu { padding: 9vh 20px 7vh; }
    .menu-item { padding: 20px; }
    .writing { padding: 7vh 20px 5vh; }
    .writing-body { font-size: 1.08rem; line-height: 1.75; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
