/* ======================================================
   VISIT THE RABBIT HOLE & COME BACK
   The Front Gate of Curio City
   ====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --gold-dark: #8a6d2b;
    --amber: rgba(201, 168, 76, .12);
    --ink: #060504;
    --parchment: #f0e6d0;
    --rust: #8b3a1a;
    --deep: #0a0806;
    --warm-gray: #9a8e7a;
    --font-display: 'Cinzel', serif;
    --font-body: 'Crimson Text', serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

html {
    scroll-behavior: smooth
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--parchment);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7
}

/* Film grain */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 100px
}

/* ============ NAVIGATION ============ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background 0.5s ease
}

.site-nav.scrolled {
    background: rgba(6, 5, 4, .95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(201, 168, 76, .15)
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none
}

.nav-seal {
    width: 42px;
    height: 42px;
    background: url('seal.png') no-repeat center;
    background-size: contain;
    mix-blend-mode: screen;
    filter: contrast(1.5) drop-shadow(0 0 3px rgba(201, 168, 76, .3));
    border-radius: 6px;
    transition: filter 0.3s
}

.nav-brand:hover .nav-seal {
    filter: contrast(1.5) drop-shadow(0 0 10px rgba(201, 168, 76, .6))
}

.nav-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--warm-gray);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative
}

.nav-links a:hover {
    color: var(--gold)
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s
}

.nav-links a:hover::after {
    width: 100%
}

.nav-links a.active {
    color: var(--gold-light)
}

.nav-links a.active::after {
    width: 100%
}

/* ============ THE FOYER (HOMEPAGE HERO) ============ */
.foyer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 40px 20px;
    overflow: hidden
}

.foyer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(201, 168, 76, .06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 58, 26, .05) 0%, transparent 50%),
        var(--ink)
}

.foyer-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .7) 100%)
}

.foyer-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: float-up var(--dur) ease-in-out infinite;
    animation-delay: var(--delay)
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0)
    }

    20% {
        opacity: .4
    }

    80% {
        opacity: .15
    }

    100% {
        opacity: 0;
        transform: translateY(-300px) scale(1.5)
    }
}

.foyer-content {
    position: relative;
    z-index: 10;
    max-width: 800px
}

.foyer-seal {
    width: 160px;
    height: 160px;
    margin: 0 auto 40px;
    background: url('seal.png') no-repeat center;
    background-size: contain;
    mix-blend-mode: screen;
    filter: contrast(1.5) drop-shadow(0 0 20px rgba(201, 168, 76, .2));
    border-radius: 10px;
    animation: pulse-glow 6s ease-in-out infinite
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: contrast(1.5) drop-shadow(0 0 20px rgba(201, 168, 76, .15))
    }

    50% {
        filter: contrast(1.5) drop-shadow(0 0 40px rgba(201, 168, 76, .3))
    }
}

.foyer-welcome {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--gold-dark);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    animation: fade-in 1.5s ease forwards .5s
}

.foyer-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--parchment);
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    animation: fade-in 1.5s ease forwards .8s
}

.foyer-subtitle {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--warm-gray);
    font-style: italic;
    margin-bottom: 50px;
    opacity: 0;
    animation: fade-in 1.5s ease forwards 1.1s
}

@keyframes fade-in {
    to {
        opacity: 1
    }
}

.cta-primary {
    display: inline-block;
    padding: 18px 55px;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 30px rgba(201, 168, 76, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
    transition: all 0.4s ease;
    opacity: 0;
    animation: fade-in 1.5s ease forwards 1.4s
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(201, 168, 76, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
    background: linear-gradient(135deg, var(--gold-light), var(--gold))
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--gold-dark);
    font-size: .7rem;
    letter-spacing: 3px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    opacity: 0;
    animation: fade-in 2s ease forwards 2.5s
}

.scroll-hint span {
    display: block;
    margin-top: 8px;
    animation: bob 2s ease-in-out infinite
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(8px)
    }
}

/* ============ SECTION STYLES ============ */
.section {
    padding: 120px 40px;
    position: relative
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto
}

.section-label {
    font-family: var(--font-mono);
    font-size: .65rem;
    color: var(--gold-dark);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 15px
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--parchment);
    letter-spacing: 1px;
    margin-bottom: 25px;
    line-height: 1.2
}

.section-body {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 700px;
    line-height: 1.8
}

.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 80px auto
}

/* ============ FEATURED ATTRACTIONS ============ */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px
}

.attraction-card {
    background: rgba(10, 8, 6, .8);
    border: 1px solid rgba(201, 168, 76, .1);
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative
}

.attraction-card:hover {
    border-color: rgba(201, 168, 76, .3);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5)
}

.attraction-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(180deg, rgba(201, 168, 76, .08), rgba(139, 58, 26, .05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid rgba(201, 168, 76, .1)
}

.attraction-body {
    padding: 30px
}

.attraction-tag {
    font-family: var(--font-mono);
    font-size: .6rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px
}

.attraction-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--parchment);
    margin-bottom: 10px
}

.attraction-desc {
    font-size: .95rem;
    color: var(--warm-gray);
    line-height: 1.6
}

.attraction-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    color: var(--gold-dark);
    font-size: 1.2rem;
    transition: all 0.3s
}

.attraction-card:hover .attraction-arrow {
    color: var(--gold);
    transform: translateX(5px)
}

/* ============ ALICE WHISPER (Homepage Widget) ============ */
.alice-whisper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 30px;
    border: 1px solid rgba(201, 168, 76, .1);
    background: rgba(6, 5, 4, .6);
    position: relative
}

.alice-whisper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent)
}

.alice-label {
    font-family: var(--font-mono);
    font-size: .6rem;
    color: var(--gold-dark);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px
}

.alice-quote {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--parchment);
    font-style: italic;
    line-height: 1.6;
    transition: opacity 0.8s ease
}

.alice-sig {
    font-family: var(--font-mono);
    font-size: .6rem;
    color: #555;
    margin-top: 20px;
    letter-spacing: 2px
}

/* ============ PLAN YOUR VISIT ============ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px
}

.info-card {
    background: rgba(10, 8, 6, .7);
    border: 1px solid rgba(201, 168, 76, .08);
    padding: 35px;
    border-top: 2px solid var(--gold-dark)
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--parchment);
    margin-bottom: 15px;
    letter-spacing: 1px
}

.info-card p,
.info-card li {
    font-size: .95rem;
    color: var(--warm-gray);
    line-height: 1.7
}

.info-card a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s
}

.info-card a:hover {
    border-color: var(--gold)
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px
}

.hours-table th,
.hours-table td {
    padding: 10px 0;
    text-align: left;
    font-size: .9rem;
    border-bottom: 1px solid rgba(201, 168, 76, .06)
}

.hours-table th {
    color: var(--gold-dark);
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase
}

.hours-table td {
    color: var(--warm-gray)
}

.hours-table td:last-child {
    text-align: right;
    color: var(--parchment)
}

/* ============ POINTS OF INTEREST ============ */
.poi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    margin-top: 50px
}

.poi-card {
    background: rgba(10, 8, 6, .8);
    border: 1px solid rgba(201, 168, 76, .08);
    overflow: hidden;
    transition: all 0.4s;
    text-decoration: none;
    display: block
}

.poi-card:hover {
    border-color: rgba(201, 168, 76, .25);
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, .4)
}

.poi-header {
    padding: 30px 30px 0;
    display: flex;
    align-items: center;
    gap: 15px
}

.poi-icon {
    font-size: 2.5rem
}

.poi-meta {
    flex: 1
}

.poi-district {
    font-family: var(--font-mono);
    font-size: .6rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase
}

.poi-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--parchment);
    margin-top: 4px
}

.poi-body {
    padding: 20px 30px 30px
}

.poi-body p {
    font-size: .95rem;
    color: var(--warm-gray);
    line-height: 1.6
}

.poi-features {
    list-style: none;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.poi-features li {
    font-family: var(--font-mono);
    font-size: .65rem;
    color: var(--gold-dark);
    letter-spacing: 1px;
    padding: 4px 10px;
    border: 1px solid rgba(201, 168, 76, .15);
    text-transform: uppercase
}

/* ============ LAWS / ORDINANCES ============ */
.decree {
    max-width: 750px;
    margin: 0 auto 60px;
    background: rgba(240, 230, 208, .02);
    border: 1px solid rgba(201, 168, 76, .15);
    padding: 45px;
    position: relative
}

.decree::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent)
}

.decree-number {
    font-family: var(--font-mono);
    font-size: .65rem;
    color: var(--gold-dark);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px
}

.decree-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--parchment);
    margin-bottom: 20px
}

.decree-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--warm-gray);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 10px
}

.decree-sig {
    text-align: right;
    margin-top: 25px;
    font-style: italic;
    color: #666;
    font-size: .9rem
}

/* ============ ASK ALICE (Fortune Teller) ============ */
.alice-chamber {
    max-width: 650px;
    margin: 60px auto;
    text-align: center;
    background: rgba(6, 5, 4, .9);
    border: 1px solid rgba(201, 168, 76, .1);
    padding: 60px 40px;
    position: relative;
    overflow: hidden
}

.alice-chamber::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, .04) 0%, transparent 60%);
    pointer-events: none
}

.alice-orb {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(201, 168, 76, .2), rgba(201, 168, 76, .02));
    border: 1px solid rgba(201, 168, 76, .15);
    box-shadow: 0 0 40px rgba(201, 168, 76, .1), inset 0 0 30px rgba(201, 168, 76, .05);
    animation: orb-pulse 4s ease-in-out infinite;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.4s
}

.alice-orb:hover {
    box-shadow: 0 0 60px rgba(201, 168, 76, .25), inset 0 0 40px rgba(201, 168, 76, .1);
    transform: scale(1.05)
}

@keyframes orb-pulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(201, 168, 76, .1), inset 0 0 30px rgba(201, 168, 76, .05)
    }

    50% {
        box-shadow: 0 0 60px rgba(201, 168, 76, .2), inset 0 0 40px rgba(201, 168, 76, .1)
    }
}

.alice-prompt {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--gold-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px
}

.alice-response {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--parchment);
    font-style: italic;
    line-height: 1.6;
    min-height: 80px;
    transition: opacity 0.6s ease
}

.alice-response.fading {
    opacity: 0
}

.alice-instruction {
    font-family: var(--font-mono);
    font-size: .6rem;
    color: #555;
    margin-top: 30px;
    letter-spacing: 2px
}

/* ============ FOOTER ============ */
.site-footer {
    padding: 80px 40px 40px;
    text-align: center;
    border-top: 1px solid rgba(201, 168, 76, .08);
    background: linear-gradient(180deg, transparent, rgba(6, 5, 4, .5))
}

.footer-seal {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: url('seal.png') no-repeat center;
    background-size: contain;
    mix-blend-mode: screen;
    filter: contrast(1.5);
    opacity: .6;
    border-radius: 8px
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px
}

.footer-address {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: #555;
    letter-spacing: 1px;
    margin-bottom: 5px
}

.footer-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: .65rem;
    color: #555;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s
}

.footer-links a:hover {
    color: var(--gold)
}

.footer-copy {
    font-size: .7rem;
    color: #333;
    margin-top: 30px
}

/* ============ RESPONSIVE ============ */
@media(max-width:768px) {
    .site-nav {
        padding: 15px 20px
    }

    .nav-title {
        display: none
    }

    .nav-links {
        gap: 15px
    }

    .nav-links a {
        font-size: .6rem;
        letter-spacing: 1px
    }

    .section {
        padding: 80px 20px
    }

    .foyer-title {
        letter-spacing: 0
    }

    .attractions-grid,
    .info-grid,
    .poi-grid {
        grid-template-columns: 1fr
    }

    .cta-primary {
        padding: 15px 40px;
        font-size: .85rem
    }
}

/* ============ MOBILE NAVIGATION ============ */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    padding: 0;
    position: relative;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold);
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.menu-toggle span:last-child {
    margin-bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .site-nav {
        padding: 15px 20px;
    }

    .nav-brand {
        z-index: 200;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(6, 5, 4, .98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        gap: 40px;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 150;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        letter-spacing: 4px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease 0.2s;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .foyer-seal {
        width: 100px;
        height: 100px;
    }
}