:root {
    --ink: #2b251e;
    --ink-soft: #4a4235;
    --ink-faint: #817765;
    --paper: #e1d3ba;
    --paper-warm: #d1bfa3;
    --paper-dark: #bba483;
    --accent: #8b3a20;
    --accent-soft: #c8a48c;
    --cream: #ebdcc4;
    --shadow-1: 2px 3px 0 var(--paper-dark);
    --shadow-2: 4px 6px 0 var(--paper-warm);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--paper);
    background-image: radial-gradient(circle at center, transparent 20%, rgba(60, 45, 30, 0.12) 100%);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.12;
    mix-blend-mode: multiply;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ruled-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: linear-gradient(rgba(187, 164, 131, 0.5) 1px, transparent 1px);
    background-size: 100% 32px;
    z-index: -1;
    opacity: 0.25;
}

header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    z-index: 10;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--ink);
    transition: all 0.3s ease;
}

.logo {
    font-family: 'Tangerine', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    color: #4a3b2c;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4), -1px -1px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.logo::first-letter {
    color: #8b1c1c; /* Deep historical crimson */
    font-size: 1.3em;
    padding-right: 2px;
}

.ghost-id-display {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--ink-faint);
    letter-spacing: 0.05em;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
}

.screen {
    display: none;
    width: 100%;
}

.screen.active {
    display: block;
}

.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--ink);
}

h1, h2, h3 {
    font-family: 'Lora', serif;
    font-style: italic;
    margin-bottom: 1rem;
}

.faint { color: var(--ink-faint); font-size: 0.8rem; }
