@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,600;1,300&family=EB+Garamond:ital,wght@0,400;0,700;1,400&family=IM+Fell+English:ital@0;1&family=Pinyon+Script&family=Special+Elite&display=swap');

/* Bleak & Grim Historical Archive Palette */
:root {
    --obsidian-ink: #111315;       /* Main Body Canvas (Near-Black) */
    --oxford-ivy: #1B1E22;         /* Main Container (Cold Mortar Slate) */
    --slate-archive: #252A2E;      /* Epoch Card Backgrounds (Winter Fog) */
    --mahogany: #382C2C;           /* System Logs Background (Cold Iron Oxide) */
    
    --aged-parchment: #E2E5E8;     /* High Contrast Text / Headers (Icy Vellum) */
    --literary-cream: #BDC2C6;     /* Primary Body Text (Chalkstone Dust) */
    --weathered-vellum: #9399A0;   /* Secondary Text / Captions (Leaden Ink) */
    
    --tarnished-brass: #768087;    /* Primary Accents & Active Borders (Pewter) */
    --oxblood-wax: #5A4545;        /* Callout Trim / Quote Border (Dried Blood) */
    --bookbinder-tan: #4B5454;     /* Framework Lines & Dividers (Lichen Crust) */
}

/* Global Reset & Base Structure */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--obsidian-ink);
    color: var(--literary-cream);
    font-family: 'EB Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.7;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

/* Main Scholarly Framework */
.container {
    max-width: 950px;
    width: 100%;
    border: 1px solid var(--bookbinder-tan);
    background-color: var(--oxford-ivy);
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    position: relative;
}

/* Stark Geometric Corner Accents */
.container::before, .container::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid var(--tarnished-brass);
}
.container::before { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.container::after { bottom: 12px; right: 12px; border-left: none; border-top: none; }

/* Header & Wordmark Navigation */
header {
    text-align: center;
    border-bottom: 1px solid var(--bookbinder-tan);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.logo {
    font-family: 'IM Fell English', serif;
    font-size: 2.6rem;
    color: var(--aged-parchment);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

nav a {
    color: var(--weathered-vellum);
    text-decoration: none;
    font-family: 'EB Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.88rem;
    margin: 0 16px;
    transition: color 0.3s ease, border-color 0.3s ease;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}

nav a:hover {
    color: var(--aged-parchment);
    border-bottom: 1px solid var(--tarnished-brass);
}

/* Project Introduction & Hero Layout */
.hero {
    margin-bottom: 4rem;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.9rem;
    font-weight: 300;
    color: var(--aged-parchment);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero p {
    max-width: 820px;
    margin-bottom: 2rem;
    color: var(--literary-cream);
}

/* The Solitary Cursive Blockquote */
.philosophy-quote {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.75rem;
    color: var(--weathered-vellum);
    background-color: rgba(17, 19, 21, 0.5); /* Semi-transparent carbon black */
    border-left: 2px solid var(--oxblood-wax);
    padding: 1.8rem 2.5rem;
    margin: 3rem 0;
    line-height: 1.5;
}

/* Multi-Epoch Structural Grid */
.epochs-section h2 {
    font-family: 'IM Fell English', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--aged-parchment);
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--bookbinder-tan);
    padding-bottom: 0.6rem;
    text-transform: uppercase;
}

.epochs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

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

.epoch-card {
    background-color: var(--slate-archive);
    border: 1px solid rgba(118, 128, 135, 0.15);
    padding: 2rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease, box-shadow 0.3s ease;
}

.epoch-card:hover {
    transform: translateY(-2px);
    border-color: var(--tarnished-brass);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.epoch-meta {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--tarnished-brass);
    margin-bottom: 0.6rem;
    display: block;
    font-weight: 700;
}

.epoch-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--aged-parchment);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.epoch-card p {
    font-size: 1.08rem;
    color: var(--literary-cream);
}

/* Technical System Logs (Mechanical Typewriter Style) */
.research-notes {
    background-color: var(--mahogany);
    border: 1px solid var(--oxblood-wax);
    padding: 2rem;
    font-family: 'Special Elite', monospace;
    font-size: 0.92rem;
    color: var(--literary-cream);
    margin-bottom: 3.5rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.research-notes h4 {
    color: var(--aged-parchment);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px dashed var(--oxblood-wax);
    padding-bottom: 0.4rem;
}

.research-notes ul {
    list-style-type: none;
}

.research-notes li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.8rem;
    letter-spacing: -0.02em;
}

.research-notes li::before {
    content: ">>";
    position: absolute;
    left: 0;
    color: var(--tarnished-brass);
}

/* Footer / Colophon */
footer {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--bookbinder-tan);
    font-size: 0.82rem;
    color: var(--weathered-vellum);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}