@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --arc-bg: #0e0b07;
    --arc-surface: #1a1510;
    --arc-copper: #b87333;
    --arc-amber: #e09f3e;
    --arc-cream: #f4e8d1;
    --arc-text: #ede4d3;
    --arc-muted: #9a8b78;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--arc-bg);
    color: var(--arc-text);
    line-height: 1.8;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

a {
    color: var(--arc-copper);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--arc-amber);
}

/* Header */
.masthead {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--arc-bg) 0%, rgba(14,11,7,0.96) 100%);
    border-bottom: 2px solid var(--arc-copper);
}

.masthead-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.site-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--arc-copper);
    letter-spacing: 3px;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-menu a {
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--arc-muted);
}

.main-menu a:hover {
    color: var(--arc-cream);
}

.menu-trigger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-trigger span {
    width: 28px;
    height: 2px;
    background: var(--arc-copper);
    transition: 0.3s;
}

@media (max-width: 860px) {
    .menu-trigger {
        display: flex;
    }

    .main-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--arc-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: scaleY(0);
        transform-origin: top;
        transition: 0.3s;
        border-bottom: 2px solid var(--arc-copper);
    }

    .main-menu.active {
        transform: scaleY(1);
    }

    .menu-trigger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-trigger.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-trigger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

main {
    padding-top: 85px;
}

.banner {
    padding: 6rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(184,115,51,0.08) 0%, transparent 100%);
}

.banner h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--arc-copper);
    margin-bottom: 1.5rem;
    letter-spacing: 6px;
}

.banner p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--arc-muted);
    font-weight: 300;
}

/* Pillars */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pillar {
    padding: 2.5rem;
    background: var(--arc-surface);
    border: 1px solid rgba(184,115,51,0.3);
    text-align: center;
    transition: 0.4s;
}

.pillar:hover {
    border-color: var(--arc-copper);
    transform: translateY(-5px);
}

.pillar h3 {
    font-size: 1.4rem;
    color: var(--arc-copper);
    margin-bottom: 1rem;
}

.pillar p {
    color: var(--arc-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Game */
.game-altar {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-altar h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--arc-copper);
    margin-bottom: 2rem;
    letter-spacing: 4px;
}

.game-vessel {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 700px;
    border: 3px solid var(--arc-copper);
    background: var(--arc-surface);
}

.game-vessel iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Scrolls */
.scrolls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.scroll {
    padding: 2rem;
    border-top: 3px solid var(--arc-amber);
    background: rgba(184,115,51,0.05);
}

.scroll h3 {
    color: var(--arc-amber);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.scroll p {
    color: var(--arc-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Prose */
.prose {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.prose h2 {
    font-size: 2rem;
    color: var(--arc-copper);
    margin-bottom: 1.5rem;
}

.prose p {
    margin-bottom: 1.2rem;
    font-weight: 300;
}

/* Page Heading */
.page-heading {
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(184,115,51,0.06) 0%, transparent 100%);
}

.page-heading h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--arc-copper);
    letter-spacing: 4px;
}

/* Play */
.play-chamber {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.play-chamber > p {
    text-align: center;
    color: var(--arc-muted);
    margin-bottom: 2rem;
}

.guidance {
    background: var(--arc-surface);
    border: 1px solid rgba(184,115,51,0.3);
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.guidance h3 {
    color: var(--arc-copper);
    margin-bottom: 0.5rem;
}

.guidance p {
    color: var(--arc-muted);
    font-size: 0.9rem;
}

/* Legal */
.codex {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.codex h2 {
    font-size: 1.6rem;
    color: var(--arc-copper);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(184,115,51,0.3);
}

.codex h3 {
    font-size: 1.2rem;
    color: var(--arc-amber);
    margin: 1.5rem 0 0.7rem;
}

.codex p {
    margin-bottom: 1rem;
    font-weight: 300;
}

.codex ul {
    margin: 1rem 0 1rem 1.5rem;
}

.codex ul li {
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.inscription {
    color: var(--arc-muted);
    font-size: 0.85rem;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(184,115,51,0.2);
}

/* Footer */
.foundation {
    background: var(--arc-surface);
    border-top: 2px solid var(--arc-copper);
    padding: 3.5rem 2rem;
    margin-top: 5rem;
}

.foundation-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.foundation h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--arc-copper);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.foundation-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.foundation-links a {
    color: var(--arc-muted);
    font-size: 0.9rem;
}

.foundation-note {
    color: var(--arc-muted);
    font-size: 0.85rem;
}

/* Age Gate */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(14,11,7,0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate-content {
    background: var(--arc-surface);
    border: 3px solid var(--arc-copper);
    padding: 3.5rem;
    max-width: 520px;
    text-align: center;
}

.gate-content h2 {
    color: var(--arc-copper);
    font-size: 2rem;
    margin-bottom: 1.2rem;
    letter-spacing: 3px;
}

.gate-content p {
    margin-bottom: 1.2rem;
    font-weight: 300;
}

.gate-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.gate-btn {
    padding: 1rem 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    cursor: pointer;
    border: 2px solid var(--arc-copper);
    letter-spacing: 2px;
    transition: 0.3s;
}

.gate-btn.enter {
    background: var(--arc-copper);
    color: var(--arc-bg);
}

.gate-btn.enter:hover {
    background: var(--arc-amber);
}

.gate-btn.leave {
    background: transparent;
    color: var(--arc-copper);
}

.gate-btn.leave:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.hidden {
    display: none !important;
}
