﻿/*
 * InnKeeperWeb v0.2.0
 * Rustic Enchantment
 * Build: 2026-11-18
 */

/* Emerald plaster foundation */

body {
    background: #07170f;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(3, 13, 8, 0.75),
            rgba(5, 22, 13, 0.25) 50%,
            rgba(3, 13, 8, 0.65)
        ),
        url("/assets/images/rustic-background-master.png")
        center center / cover no-repeat;
}

/* Ambient lighting */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at 75% 30%,
            rgba(235, 171, 73, 0.10),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 20% 20%,
            rgba(67, 158, 89, 0.10),
            transparent 40%
        );
}

/* Rustic navigation architecture */

.site-header {
    isolation: isolate;
    min-height: 125px;
    padding: 24px 8%;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
        to bottom,
        rgba(4, 14, 9, 0.98),
        rgba(4, 14, 9, 0.5),
        transparent
    );
}

.site-header::after {
    content: "";
    position: absolute;
    inset: -65% 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        url("/assets/images/rustic-nav-beam.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 12px 10px rgba(0,0,0,0.65));
}

.brand {
    color: #ffe8b7;
    text-shadow: 0 3px 6px #000;
}

nav a {
    color: #f5dfad;
    text-shadow: 0 2px 5px #000;
}

.coming-soon {
    background: rgba(9, 24, 16, 0.85);
    border-color: #b88b42;
}

/* Independent architectural columns */

main::before,
main::after {
    content: "";
    position: absolute;
    top: 0;
    width: 230px;
    height: 790px;
    pointer-events: none;
    z-index: 3;
    background:
        url("/assets/images/rustic-timber-column.png")
        center top / auto 100% no-repeat;
    filter: drop-shadow(8px 12px 12px rgba(0,0,0,0.6));
}

main::before {
    left: -65px;
}

main::after {
    right: -65px;
    transform: scaleX(-1);
}

/* Interior space */

.hero {
    padding-left: 11%;
    padding-right: 11%;
}

.section {
    padding-left: 9%;
    padding-right: 9%;
}

/* Responsive architecture */

@media (max-width: 1100px) {
    main::before,
    main::after {
        width: 160px;
        height: 650px;
    }

    .site-header {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 760px) {
    main::before,
    main::after {
        display: none;
    }

    .site-header {
        min-height: 100px;
        background: rgba(5, 20, 12, 0.95);
        border-bottom: 2px solid #9b753b;
    }

    .site-header::after {
        display: none;
    }

    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }

    .section {
        padding-left: 6%;
        padding-right: 6%;
    }
}

/* =========================================
   INNKEEPER'S ENCHANTED WINDOW
   ========================================= */

body {
    isolation: isolate;
    overflow-x: hidden;
}

main {
    position: relative;
}

.site-header {
    position: relative;
    z-index: 10;
}

.hero {
    position: relative;
    background: transparent;
}

.hero-character {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 0;
    height: auto;
    align-self: center;
    overflow: visible;
}

/* Layer 1: Recessed window interior */

.hero-character::before {
    content: "";
    position: absolute;
    inset: 15% 15% 11%;
    z-index: 0;
    border-radius: 45% 45% 5% 5%;
    background:
        radial-gradient(
            ellipse at 50% 40%,
            #365e3c,
            #142b1d 55%,
            #06110b 100%
        );
    box-shadow:
        inset 0 15px 35px rgba(0,0,0,0.85),
        0 10px 35px rgba(0,0,0,0.45);
}

/* Layer 2: Warm interior illumination */

.hero-character .character-glow {
    position: absolute;
    inset: 15%;
    z-index: 1;
    background: radial-gradient(
        ellipse,
        rgba(230,171,77,0.24),
        transparent 70%
    );
    pointer-events: none;
}

/* Layer 3: InnKeeper herself */

.hero-character > img {
    position: absolute;
    z-index: 2;
    left: 18%;
    bottom: 11%;
    width: 64%;
    height: 77%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
    mask-image: none;
    -webkit-mask-image: none;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.5));
}

/* Layer 4: Foreground oak and ivy arch */

.hero-character::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        url("/assets/images/rustic-arch-frame.png")
        center / 100% 100% no-repeat;
    filter: drop-shadow(0 12px 14px rgba(0,0,0,0.65));
}

/* Responsive window */

@media (max-width: 760px) {
    .hero-character {
        width: 100%;
        max-width: 650px;
        margin: 25px auto 0;
    }
}


/* =========================================
   RUSTIC CRAFTSMANSHIP
   ========================================= */

/* Ornamental sapphire section dividers */

.section {
    position: relative;
    border-top: none;
    padding-top: 115px;
}

.section::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    width: min(85%, 950px);
    height: 150px;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        url("/assets/images/rustic-section-divider.png")
        center / 100% 100% no-repeat;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.65));
}

.section-heading h2 {
    text-shadow: 0 3px 8px rgba(0,0,0,0.8);
}

.section-heading .eyebrow {
    color: #edc77d;
}

/* Handcrafted wooden feature plaques */

.feature-grid {
    gap: 20px;
    align-items: stretch;
}

.feature-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 340px;
    padding: 80px 16% 55px;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        url("/assets/images/rustic-feature-plaque.png")
        center / 100% 100% no-repeat;
    filter: drop-shadow(0 10px 12px rgba(0,0,0,0.65));
}

.feature-card:hover {
    transform: translateY(-7px);
    border: none;
    box-shadow: none;
    filter: brightness(1.12);
}

.feature-card .diamond {
    display: none;
}

.feature-card h3 {
    color: #ffe1a3;
    font-size: clamp(19px, 1.8vw, 27px);
    margin: 0 0 14px;
    text-shadow: 0 2px 5px #000;
}

.feature-card p {
    color: #f4e2c3;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 4px #000;
}

.feature-status {
    color: #e7bd70;
    margin-top: 16px;
    font-size: 10px;
    text-shadow: 0 2px 4px #000;
}

/* Smaller wooden plugin signs */

.plugin-grid {
    gap: 15px;
}

.plugin-grid article {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 175px;
    padding: 45px 16% 30px;
    background: none;
    border: none;
    border-radius: 0;
    color: #ffe1a3;
    font-family: Georgia, serif;
    font-size: 18px;
    text-shadow: 0 2px 5px #000;
    transition: transform 0.3s, filter 0.3s;
}

.plugin-grid article::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        url("/assets/images/rustic-feature-plaque.png")
        center / 100% 100% no-repeat;
    filter: drop-shadow(0 7px 9px rgba(0,0,0,0.6));
}

.plugin-grid article:hover {
    background: none;
    border: none;
    transform: translateY(-5px);
    filter: brightness(1.15);
}

/* Warm portrait detailing */

.about-section > img {
    border: 5px ridge #b18b4d;
    border-radius: 8px;
    box-shadow:
        0 15px 35px rgba(0,0,0,0.7),
        0 0 45px rgba(212,157,65,0.12);
}

/* Footer decoration */

.site-footer {
    position: relative;
    border-top: 1px solid #8d6937;
    background: rgba(5,15,9,0.85);
}

/* Responsive craftsmanship */

@media (min-width: 761px) and (max-width: 1100px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid > :last-child {
        grid-column: 1 / -1;
        width: 50%;
        justify-self: center;
    }
}

@media (max-width: 760px) {
    .section {
        padding-top: 80px;
    }

    .section::before {
        height: 90px;
        top: -35px;
        width: 95%;
    }

    .feature-card {
        width: 100%;
        max-width: 440px;
        min-height: 340px;
        margin: auto;
    }

    .plugin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plugin-grid article {
        min-height: 135px;
        font-size: 14px;
        padding: 35px 14% 25px;
    }
}

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

/* =========================================
   INNKEEPER'S PERSONAL PARCHMENT
   ========================================= */

.innkeeper-note {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    z-index: 4;
    width: min(100%, 440px);
    margin: -45px auto 35px;
    transform: rotate(-2deg);
}

.hero-character {
    grid-column: 2;
    grid-row: 1 / 3;
}

.parchment-button {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 260px;
    padding: 45px 18% 55px;
    border: none;
    background: transparent;
    color: #4b2917;
    cursor: pointer;
    font-family: Georgia, serif;
    transition: transform 0.3s ease;
}

.parchment-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        url("/assets/images/innkeeper-parchment.png")
        center / 100% 100% no-repeat;
    filter: drop-shadow(0 12px 12px rgba(0,0,0,0.55));
}

.parchment-button:hover {
    transform: rotate(2deg) translateY(-4px);
}

.parchment-button:focus-visible {
    outline: 2px solid #f5dfad;
    outline-offset: 3px;
}

.note-heading {
    font-size: 12px;
    font-style: italic;
    margin-bottom: 10px;
}

.note-message {
    font-size: clamp(15px, 1.5vw, 19px);
    font-style: italic;
    font-weight: 600;
    line-height: 1.5;
}

.note-signature {
    margin-top: 15px;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 15px;
}

.note-hint {
    font-size: 9px;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

@media (max-width: 760px) {
    .hero-character {
        grid-column: 1;
        grid-row: 2;
    }

    .innkeeper-note {
        grid-column: 1;
        grid-row: 3;
        margin: 10px auto 35px;
    }
}


/* =========================================
   LIVING HEARTFIRE - LIGHT AND DEPTH
   ========================================= */

:root {
    --parallax-x: 0px;
    --parallax-y: 0px;
}

/* Atmospheric wall lighting */

body::before {
    inset: -15px;
    transform: translate(
        calc(var(--parallax-x) * -0.5),
        calc(var(--parallax-y) * -0.5)
    );
    transition: transform 0.5s ease-out;
}

/* Independent window movement */

.hero-character > img {
    transform: translate(
        var(--parallax-x),
        var(--parallax-y)
    );
    transition: transform 0.4s ease-out;
}

.hero-character::after {
    transform: translate(
        calc(var(--parallax-x) * -0.25),
        calc(var(--parallax-y) * -0.25)
    );
    transition: transform 0.4s ease-out;
}

/* Living Heartfire illumination */

.hero-character .character-glow {
    animation: rustic-heartfire-glow 7s ease-in-out infinite;
}

@keyframes rustic-heartfire-glow {
    0%, 100% {
        opacity: 0.65;
    }

    50% {
        opacity: 1;
    }
}

.heartfire-lantern {
    filter:
        drop-shadow(0 0 12px rgba(255, 71, 25, 0.55))
        drop-shadow(0 0 35px rgba(255, 126, 42, 0.22));
}

/* Architectural depth */

.hero-content h1 {
    text-shadow:
        0 4px 8px rgba(0,0,0,0.65),
        0 0 35px rgba(225,184,105,0.08);
}

.hero-content .button {
    box-shadow:
        0 5px 12px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.hero-content .button:hover {
    box-shadow:
        0 8px 18px rgba(0,0,0,0.55),
        0 0 20px rgba(219,174,94,0.15);
}

/* Parchment finishing touches */

.note-message {
    text-shadow: none;
    overflow-wrap: break-word;
}

.parchment-button:active {
    transform: scale(0.98);
}

/* Accessibility and motion preferences */

@media (prefers-reduced-motion: reduce) {
    body::before,
    .hero-character > img,
    .hero-character::after {
        transform: none;
        transition: none;
    }

    .hero-character .character-glow {
        animation: none;
    }

    .feature-card,
    .plugin-grid article,
    .parchment-button {
        transition: none;
    }

    .feature-card:hover,
    .plugin-grid article:hover,
    .parchment-button:hover {
        transform: none;
    }
}

