/* ===========================================================================
   Bunker Down's own look, for Bunker Down's own page.

   Every other page on this site is Ornge: navy, one orange accent, soft glass
   and round corners. This game is none of those things, and a page that sells
   it in the house style sells the wrong thing.

   The colours are sampled out of the game's own renders rather than read from
   its source: the night sky is #1f1f3f going to #352b48, which is purple and
   not the blue a palette file reading "deep night" suggests, and the ground
   under it is #130d0e. The page is built the way the picture is -- sky, a hard
   ground line, and dark below it.

   The art direction is "blocks of colour with a shadow down one side and a
   line of light along the top, a dark line round each thing, nothing soft".
   So: square corners, hard 1px outlines, offset shadows with no blur, no
   gradients on anything that is not sky.

   Scoped to main, deliberately. The navbar and footer are the site's furniture
   and stay Ornge -- this is a page about a game, not a game pretending to be a
   website. The seam between the two is the point at which you have arrived
   somewhere.
   =========================================================================== */

.theme-bunker main {
    /* sampled from the hero screenshot itself, images/bunkerdown-hero.png */
    --sky-top:    #403460;   /* straight up, at dusk */
    --sky-mid:    #573d5c;
    --sky-low:    #422c43;   /* down at the rooftops, gone dusty rose */
    --ground:     #130d0e;   /* the street, and everything under it */
    --room:       #8a7f6a;   /* a lit room seen through its wall */
    --room-dim:   #2c1e31;
    --lamp:       #ffd38a;   /* the pool a standing lamp throws */
    --lamp-warm:  #ffe9b0;
    --fire:       #ff9030;
    --bone:       #f2eee8;
    --bone-dim:   #b9a6c4;   /* the moonlight edge on a thing out in the dark */

    /* the site's tokens, answered in the game's terms */
    --bg-void: var(--ground);
    --bg-elevated: var(--room-dim);
    --bg-hover: var(--room);
    --glass-bg: rgba(53, 43, 72, .38);
    --glass-border: #2a2438;
    --glass-border-hover: var(--lamp);
    --accent: var(--lamp);
    --accent-light: var(--lamp-warm);
    --text-primary: var(--bone);
    --text-secondary: #c3bdd4;
    --text-muted: #8b84a2;
    --gradient-orange: var(--lamp);
    --radius: 0px;
    --shadow-lg: 4px 4px 0 #0a0709;
    --shadow-glow: none;

    background: var(--ground);
    color: var(--bone);
}

/* --- the hero is the picture ------------------------------------------------
   The signature view is the surface and the bunker in one frame, which is the
   one thing that makes this game recognisable at a glance. It goes first, at
   full width, and the words sit on the dark half of it rather than beside it. */
.theme-bunker .bd-hero {
    position: relative;
    background: var(--sky-top);
    overflow: hidden;
}
.theme-bunker .bd-shot {
    display: block;
    width: 100%;
    height: auto;
    /* On a very wide window the shot would stretch and the camp become a
       stripe; capped, and anchored on the camp rather than the sky. */
    max-height: 70vh;
    object-fit: cover;
    object-position: 50% 62%;
    /* Pixel art scaled by a browser is mush unless it is told not to filter. */
    image-rendering: pixelated;
}
/* Over the picture on a wide screen, under it on a narrow one -- at phone width
   the shot is short and the text would cover the thing it is there to show.

   The gradient starts well down, so the lit bunker rooms stay clear of it: they
   are the whole reason the picture is here, and the first version of this laid
   the headline straight across them. */
.theme-bunker .bd-hero-text {
    padding-block: 30px 44px;
    background: var(--ground);
}
@media (min-width: 900px) {
    .theme-bunker .bd-hero-text {
        position: absolute;
        inset: auto 0 0 0;
        padding-block: 120px 46px;
        background: linear-gradient(180deg,
            rgba(19,13,14,0) 0%, rgba(19,13,14,.55) 34%, rgba(19,13,14,.93) 66%, var(--ground) 100%);
    }
    .theme-bunker .bd-hero-text .lede { max-width: 34rem; }
}
.theme-bunker .bd-plat {
    margin-left: 12px;
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--text-muted);
}

/* --- nothing here is round and nothing is soft ------------------------------ */
.theme-bunker main .card,
.theme-bunker main .btn,
.theme-bunker main .pill { border-radius: 0; box-shadow: none; }

/* A line of light along the top and a shadow down one side: the whole art
   direction in two borders and a shadow with no blur. */
.theme-bunker main .card {
    background: rgba(19, 13, 14, .62);
    border: 1px solid var(--glass-border);
    border-top-color: #4a4160;
    box-shadow: 3px 3px 0 #0a0709;
}
.theme-bunker main .card:hover {
    border-color: var(--lamp);
    transform: none;          /* the house style lifts cards; pixels do not float */
}

.theme-bunker main .btn-primary {
    background: var(--lamp);
    color: var(--ground);
    border: 1px solid #0a0709;
    box-shadow: 3px 3px 0 #0a0709;
}
.theme-bunker main .btn-primary:hover { background: var(--lamp-warm); }
.theme-bunker main .btn-secondary {
    background: transparent;
    border: 1px solid var(--bone-dim);
    color: var(--bone);
}
.theme-bunker main .btn-secondary:hover { border-color: var(--lamp); color: var(--lamp); }

/* Silkscreen on the things that are labels. Not on body copy: a pixel face at
   paragraph length is a wall, and the page still has to be read. */
.theme-bunker main .eyebrow,
.theme-bunker main .pill,
.theme-bunker main h1,
.theme-bunker main h2,
.theme-bunker main h3 {
    font-family: 'Silkscreen', var(--font-display), monospace;
    letter-spacing: 0;
    text-transform: none;
}
.theme-bunker main h1 { line-height: 1.15; }
.theme-bunker main .eyebrow { color: var(--lamp); letter-spacing: .08em; }

/* The surface and what is under it: a hard edge, like the one in the picture. */
.theme-bunker main .section-tint {
    background: #0d0809;
    border-block: 1px solid #2a2438;
}

.theme-bunker main .pill-dev {
    background: var(--fire);
    color: var(--ground);
    border: 1px solid #0a0709;
}

.theme-bunker main code {
    background: #0a0709;
    border: 1px solid var(--glass-border);
    border-radius: 0;
    color: var(--lamp-warm);
}
.theme-bunker main a:not(.btn) { color: var(--lamp); }
.theme-bunker main .spec li::marker { color: var(--fire); }

@media (prefers-reduced-motion: no-preference) {
    .theme-bunker main .btn-primary { transition: background 120ms steps(2, end); }
}
