:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --text-primary: #f0f0f0;
    --text-secondary: #888888;
    --accent-color: #d4af37; /* Muted Gold */
    --nav-height: 72px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow: hidden; /* Handled by scroll container */
    height: 100vh;
    height: 100dvh;
}

h1, h2, h3, .logo {
    font-family: 'Cinzel', serif;
    font-weight: 400;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 100;
    text-align: center;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(5,5,5,0.8) 0%, rgba(5,5,5,0) 100%);
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: var(--text-primary);
}

/* Scroll Container */
.scroll-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    padding-bottom: var(--nav-height);
}

/* Hide scrollbar */
.scroll-container::-webkit-scrollbar {
    display: none;
}
.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.page-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-section {
    padding: 80px 24px var(--nav-height);
    justify-content: flex-start;
}

/* Hero Section */
.hero-image {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes whirlPulse {
    0%, 100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.1)); }
    50% { transform: scale(1.03) translateY(-8px); filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5)); }
}

.hero-image img {
    height: 55%;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    opacity: 0.85;
    animation: whirlPulse 3s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,5,1) 0%, rgba(5,5,5,0.1) 40%, rgba(5,5,5,0.9) 100%);
    pointer-events: none;
}

.hero-content {
    padding: 0 32px;
    margin-top: auto;
    margin-bottom: 120px;
}

.hero-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Section Shared */
.section-header {
    margin-bottom: 32px;
    margin-top: 40px;
}

.section-header h2 {
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.divider {
    height: 1px;
    width: 60px;
    background-color: var(--accent-color);
}

/* Journal List */
.journal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.journal-item {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.journal-item:active {
    background: #1a1a1a;
}

.j-meta {
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.j-title {
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    padding-right: 24px;
}

.j-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
}

/* Contact Section */
.contact-card {
    background: var(--surface-color);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
}

.contact-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: var(--text-primary);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-icon {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.social-icon:active {
    color: var(--accent-color);
}

.footer-spacer {
    height: 120px;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 90;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    width: 60px;
    height: 100%;
    transition: color 0.3s ease;
}

.nav-item i {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 400;
}

.nav-item.active {
    color: var(--accent-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay & Bottom Sheet */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80vh;
    background: var(--surface-color);
    border-radius: 24px 24px 0 0;
    z-index: 101;
    transition: bottom 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active {
    bottom: 0;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 12px auto;
}

.close-sheet {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 40px;
}

/* Sheet Internal Formatting */
.sheet-image {
    width: 100%;
    border-radius: 12px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.sheet-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.sheet-meta {
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.sheet-body {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}
.sheet-body p {
    margin-bottom: 16px;
}