/* ============================================================
   FeFilings — Steampunk theme
   Brushed copper + earthy tones on a parchment/brass backdrop.
   ============================================================ */

:root {
    /* earthy / brass palette */
    --copper:        #b87333;
    --copper-dark:   #8a5230;
    --brass:         #c9a227;
    --bronze:        #a9712d;
    --leather:       #5a4632;
    --earth:         #6b5138;
    --parchment:     #f3e8cf;
    --parchment-dim: #e5d7b6;
    --ink:           #3b2f25;
    --rivet:         #7a5c3a;
}

html, body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--ink);
    background-color: var(--parchment);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(201,162,39,0.12), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(184,115,51,0.12), transparent 40%),
        linear-gradient(180deg, #f5ecd8 0%, #eadfc4 100%);
    min-height: 100vh;
}

/* ————— Brushed copper heading text ————— */
h1, h2, h3, h4, h5 {
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.02em;
    color: var(--copper-dark);
}

h1.display-4 {
    background: linear-gradient(120deg, #c9a227 0%, #b87333 45%, #7a2518 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}

/* ————— Hero panel ————— */
.hero {
    background:
        linear-gradient(180deg, rgba(245,236,216,0.0), rgba(255,255,255,0)),
        #eadfc4;
    border: 3px double var(--copper);
    border-radius: 12px;
    box-shadow: inset 0 0 0 2px #dccba4, 0 8px 24px rgba(90,70,50,0.18);
    padding: 1.6rem 2.2rem;
    margin-bottom: 1.6rem;
}

.hero .lead {
    color: var(--earth);
}

/* ————— Card panels = aged brass plates ————— */
.card {
    border: 1px solid var(--copper);
    border-radius: 10px;
    background: linear-gradient(180deg, #f1e8d0, #e6d8b8);
    box-shadow: inset 0 0 0 1px #efe3c6, 0 4px 14px rgba(90,70,50,0.15);
}

.card-title {
    color: var(--copper-dark);
    font-weight: 700;
}

.card-text {
    color: var(--earth);
}

/* ————— Riveted list (project links) ————— */
.list-group-item {
    background: rgba(245,236,216,0.6);
    border: 1px solid var(--rivet);
    color: var(--ink);
    border-left: 4px solid var(--copper);
}

.list-group-item a {
    color: var(--copper-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--bronze);
}

.list-group-item a:hover {
    color: var(--bronze);
}

/* ————— Alert (Minecraft teaser) ————— */
.alert-secondary {
    background: #55432f;
    color: #f3e8cf;
    border: 1px solid var(--bronze);
    border-radius: 10px;
}

.alert-secondary .alert-heading {
    color: var(--brass);
}

/* ————— Navbar = riveted brass bar ————— */
.navbar-dark.bg-dark {
    background: linear-gradient(180deg, #6b5138 0%, #4a3a2a 100%) !important;
    border-bottom: 3px double var(--copper);
    box-shadow: 0 2px 10px rgba(59,47,37,0.35);
}

.navbar-brand {
    font-weight: 700;
    color: var(--brass) !important;
    letter-spacing: 0.04em;
}

.navbar-nav .nav-link {
    color: #ecd9ae !important;
}
.navbar-nav .nav-link:hover {
    color: var(--brass) !important;
}

/* ————— Links ————— */
a {
    color: var(--copper-dark);
}
a:hover {
    color: var(--bronze);
}

/* ————— Footer = stamped metal ————— */
footer {
    color: var(--earth) !important;
    border-top-color: var(--copper) !important;
}

.btn {
    border-radius: 6px;
    font-family: 'Georgia', serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--copper), var(--copper-dark));
    border: 1px solid var(--bronze);
}

/* ————— Policy page polish ————— */
code {
    background: #e2d3b0;
    color: var(--copper-dark);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

/* ============================================================
   Animations — added 2026-09-08
   Slow-shifting brass/copper hero, staggered card reveal on
   scroll (IntersectionObserver), hover lift/glow, hero text
   entrance. Pure CSS + a ~10 line observer in App.razor.
   ============================================================ */

/* Slow drift of the brass/copper washes behind the hero. */
@keyframes heroDrift {
    0%   { background-position: 0% 0%, 100% 0%, 0% 0%; }
    50%  { background-position: 100% 100%, 0% 100%, 100% 100%; }
    100% { background-position: 0% 0%, 100% 0%, 0% 0%; }
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(201,162,39,0.20), transparent 45%),
        radial-gradient(circle at 80% 15%, rgba(184,115,51,0.18), transparent 42%),
        radial-gradient(circle at 50% 100%, rgba(169,113,45,0.14), transparent 55%),
        #eadfc4;
    background-size: 180% 180%, 180% 180%, 180% 180%, auto;
    animation: heroDrift 16s ease-in-out infinite;
}

/* Hero text entrance — fade + rise on load. */
@keyframes heroIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1 { animation: heroIn .8s ease-out both; }
.hero .lead { animation: heroIn .8s ease-out .15s both; }

/* Card reveal — starts hidden, fades in with class added by observer. */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger the three cards. */
.reveal:nth-of-type(2) { transition-delay: .1s; }
.reveal:nth-of-type(3) { transition-delay: .2s; }

/* Card hover — lift + warm glow. */
.card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--brass);
    box-shadow: inset 0 0 0 1px #efe3c6, 0 10px 26px rgba(90,70,50,0.28),
                0 0 0 1px rgba(201,162,39,0.35), 0 0 18px rgba(201,162,39,0.22);
}

@media (prefers-reduced-motion: reduce) {
    .hero, .reveal, .card, .hero h1, .hero .lead {
        animation: none;
        transition: none;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ————— FAQ page = riveted brass panels (collapse via native <details>) ————— */
.faq-item {
    border: 1px solid var(--copper);
    border-radius: 8px;
    background: linear-gradient(180deg, #f1e8d0, #e6d8b8);
    box-shadow: inset 0 0 0 1px #efe3c6, 0 3px 10px rgba(90,70,50,0.12);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    color: var(--copper-dark);
    font-variant-caps: small-caps;
    letter-spacing: 0.02em;
    list-style: none;
}

/* A small brass "gear/plus" toggle marker before the question. */
.faq-item summary::before {
    content: "+";
    display: inline-block;
    width: 1.15em;
    color: var(--brass);
    font-weight: 700;
}
.faq-item[open] summary::before {
    content: "–";
}

.faq-item .faq-body {
    padding: 0.75rem 1.1rem 1rem 1.1rem;
    color: var(--earth);
    border-top: 1px dashed var(--rivet);
}

.faq-item .faq-body p:last-child { margin-bottom: 0; }