:root {
    --bg-dark: #0a0a0c;
    --text-white: #f5f5f7;
    --accent-gold: #c5a059;
    --accent-gold-bright: #e2c07d;
    --border-warm: rgba(197, 160, 89, 0.2);
    --flux-sepia: rgba(197, 160, 89, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Monocle Overlay Layer */
.monocle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    background-image:
        linear-gradient(rgba(197, 160, 89, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.4) 1px, transparent 1px);
    background-size: 50px 50px;
    mix-blend-mode: overlay;
    clip-path: circle(0% at center);
    transition: clip-path 0.1s linear;
}

.site-wrapper {
    position: relative;
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.4), var(--bg-dark)), url('hero.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.05);
    transition: transform 0.8s ease-out;
}

.hero:hover .hero-background {
    transform: scale(1);
}

/* Navigation */
.top-nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.studio-logo {
    letter-spacing: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    opacity: 0.6;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    margin-left: 3rem;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

/* Hero Content */
.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    z-index: 10;
}

.eyebrow {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.main-title {
    font-family: 'Crimson Pro', serif;
    font-size: 5.5rem;
    font-weight: 200;
    line-height: 0.95;
    margin-bottom: 2.5rem;
}

.main-title span.the,
.main-title span.of {
    font-size: 0.4em;
    vertical-align: middle;
    margin: 0 0.2em;
    font-style: italic;
    font-weight: 400;
}

/* Codex Page Styles */
.codex-page {
    background-color: var(--bg-dark);
}

.codex-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10rem 2rem;
}

.codex-header {
    margin-bottom: 6rem;
    max-width: 800px;
}

.codex-title {
    font-family: 'Crimson Pro', serif;
    font-size: 4rem;
    font-weight: 200;
    margin-bottom: 2rem;
}

.codex-intro {
    font-size: 1.2rem;
    opacity: 0.6;
    font-weight: 300;
}

.codex-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.codex-record {
    border: 1px solid var(--border-warm);
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    position: relative;
    transition: all 0.4s ease;
}

.codex-record:hover {
    border-color: var(--accent-gold);
    background: rgba(197, 160, 89, 0.03);
}

.record-header {
    margin-bottom: 2rem;
}

.record-id {
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    color: var(--accent-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.record-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 400;
}

.record-body p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.codex-footer {
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0.4;
}

@media (max-width: 900px) {
    .codex-grid {
        grid-template-columns: 1fr;
    }

    .codex-title {
        font-size: 3rem;
    }
}

.highlight {
    font-weight: 600;
    color: var(--accent-gold);
    text-shadow: 0 0 40px rgba(197, 160, 89, 0.2);
}

.summary {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn.primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    transition: all 0.4s ease;
}

.btn.primary:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

.hint {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    opacity: 0.4;
    font-style: italic;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.4;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.3rem;
}

/* Fragments Section */
.fragments {
    padding: 10rem 2rem;
    background: var(--bg-dark);
}

.fragment-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.fragment-card {
    border: 1px solid var(--border-warm);
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.fragment-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.f-num {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.fragment-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.fragment-card p {
    opacity: 0.6;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .main-title {
        font-size: 3.5rem;
    }

    .top-nav {
        padding: 2rem;
    }

    .fragment-container {
        grid-template-columns: 1fr;
    }
}

/* Chronicle Page Styles */
.chronicle-page {
    background-color: var(--bg-dark);
}

.chronicle-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 10rem 2rem;
}

.chronicle-header {
    margin-bottom: 6rem;
}

.chronicle-title {
    font-family: 'Crimson Pro', serif;
    font-size: 4rem;
    font-weight: 200;
    margin-bottom: 2rem;
}

.chronicle-intro {
    font-size: 1.2rem;
    opacity: 0.6;
    font-weight: 300;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.blog-entry {
    border-left: 1px solid var(--border-warm);
    padding-left: 3rem;
    padding-bottom: 4rem;
    position: relative;
}

.blog-entry::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 9px;
    height: 9px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-date {
    font-size: 0.7rem;
    letter-spacing: 0.15rem;
    opacity: 0.4;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.entry-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.2rem;
    font-weight: 400;
}

.entry-excerpt p {
    opacity: 0.7;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

.read-more {
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.read-more:hover {
    border-color: var(--accent-gold);
    padding-left: 5px;
}