/* ==========================================================================
   Back From Nothing — site.css
   Mobile-first: everything outside a media query is the phone layout.
   The single @media (min-width: 48em) block (= 768px) adds the desktop layout.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------
   Replace VALUES here when the band supplies final colors/fonts.
   Never rename a token; every rule below refers to these names. */
:root {
    --color-bg: #0f0f0f;
    --color-surface: #2b2b2b;
    --color-text: #ffffff;
    --color-muted: #b5b5b5;
    --color-accent: #9b5cff;
    --color-lime: #c8f04b;
    --font-display: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "Zilla Slab", Georgia, "Times New Roman", serif;
    --font-nav: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --measure: 65ch; /* max line length for running text */
    --content-max: 1100px; /* max width of the page column */
}

/* ---- Reset / base -------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box; /* width includes padding+border, like WinForms/WPF sizing */
}

html {
    color-scheme: dark; /* tells the browser its own UI (scrollbars, form controls) should be dark */
}

body {
    margin: 0; /* browsers add 8px of body margin by default; remove it */
    min-height: 100vh;
    background-color: var(--color-bg);
    /* SWAP POINT (background texture): to use images/bg-texture.jpg, replace the
     line above with:
     background: var(--color-bg) url("../images/bg-texture.jpg") center top / cover fixed;
     The path is relative to THIS css file, hence ../images/ not images/. */
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

    /* While the slide-in menu is open, the page behind it must not scroll. */
    body.nav-open {
        overflow: hidden;
    }

img {
    display: block; /* removes the small gap browsers leave under inline images */
    max-width: 100%; /* an image never overflows its container on a narrow screen */
    height: auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 400; /* only Raleway 400 is loaded; a bolder weight would be faked by the browser */
    line-height: 1.2;
    margin: 0 0 var(--space-3);
}

p {
    margin: 0 0 var(--space-3);
    max-width: var(--measure);
}

a {
    color: var(--color-accent);
}

    a:hover {
        color: var(--color-lime);
    }

/* Keyboard users need to see where focus is. :focus-visible shows the ring for
   keyboard focus but not for mouse clicks, so buttons don't flash a ring on tap. */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* The skip link sends focus to <main>; a ring around the whole page would be noise. */
main:focus {
    outline: none;
}

/* Inline SVG icons scale with these two lines; each icon has aria-hidden because
   the link or button around it carries the accessible name. */
.icon {
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
}

/* ---- Utilities ------------------------------------------------------------ */

/* Hides content from sighted users but keeps it for screen readers and the
   page outline. display:none would remove it from both. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto; /* centers the column once it hits max-width */
    padding-inline: var(--space-3);
}

/* ---- Skip link -------------------------------------------------------------
   First focusable thing on every page. Parked above the viewport until it
   receives keyboard focus, then drops into view. */
.skip-link {
    position: absolute;
    top: var(--space-2);
    left: var(--space-3);
    z-index: 100;
    padding: var(--space-2) var(--space-3);
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-nav);
    text-decoration: none;
    transform: translateY(-200%);
}

    .skip-link:focus {
        transform: none;
    }

/* ---- Header: top bar ------------------------------------------------------- */
.site-header__bar {
    background-color: var(--color-surface);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.5rem;
}

/* Empty for now. Reserves the left side of the bar (and a row in the panel). */
.social-slot {
    flex: 1 1 auto;
    min-height: 2.75rem;
}

/* Hidden until nav.js has loaded: a menu button that can't open anything is
   worse than no button. .js is added to <html> by nav.js. */
.nav-toggle,
.nav-close {
    display: none;
}

.js .nav-toggle,
.js .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
}

/* Desktop-only pieces; shown in the media query below. */
.nav-desktop,
.nav-bag {
    display: none;
}

/* ---- Header: wordmark (phone) ---------------------------------------------- */
.site-wordmark {
    width: min(100%, 36rem);
    margin: var(--space-4) auto;
}

/* ---- Header: purple quick row (phone) -------------------------------------- */
.quick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

    .quick-row a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--color-accent);
        color: var(--color-bg);
        text-decoration: none;
    }

        .quick-row a:hover {
            background-color: var(--color-lime);
            color: var(--color-bg);
        }

.quick-row__square {
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
}

.quick-row__pill {
    flex: 1 1 auto;
    max-width: 16rem;
    min-height: 3.5rem;
    gap: var(--space-3);
    padding-inline: var(--space-4);
    border: 2px solid var(--color-text);
    border-radius: 999px;
    font-family: var(--font-nav);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.3em;
    text-indent: 0.3em; /* letter-spacing adds space after the last letter; this re-centers the word */
}

/* ---- Slide-in panel (phone) --------------------------------------------------
   Base rules = no-JS fallback: the panel is an ordinary block under the header,
   so every page is reachable even if the script never runs. */
.nav-panel {
    padding: var(--space-4) var(--space-3);
    background-color: var(--color-surface);
}

.nav-panel__top {
    display: flex;
    justify-content: flex-end;
    min-height: 2.75rem;
}

.nav-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-panel__list a {
        display: block;
        padding: var(--space-3) 0;
        font-family: var(--font-body);
        font-size: 1.5rem;
        color: var(--color-text);
        text-decoration: none;
    }

        .nav-panel__list a:hover {
            color: var(--color-lime);
        }

        .nav-panel__list a[aria-current="page"] {
            text-decoration: underline;
            text-decoration-color: var(--color-accent);
            text-decoration-thickness: 2px;
            text-underline-offset: 0.3em;
        }

.nav-panel__bag {
    display: inline-flex;
    margin-top: var(--space-4);
    color: var(--color-accent);
}

    .nav-panel__bag .icon {
        width: 2.5rem;
        height: 2.5rem;
    }

.nav-panel .social-slot {
    margin-top: var(--space-4);
}

/* With JS: the same panel becomes a drawer parked off the right edge.
   visibility:hidden keeps its links out of the Tab order while closed. */
.js .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    width: 80%;
    max-width: 22rem;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

    .js .nav-panel.is-open {
        transform: none;
        visibility: visible;
        transition: transform 0.25s ease, visibility 0s;
    }

.nav-backdrop,
.js .nav-backdrop {
    display: none;
}

    .js .nav-backdrop.is-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10;
        background-color: rgba(0, 0, 0, 0.6);
    }

@media (prefers-reduced-motion: reduce) {
    .js .nav-panel {
        transition: none;
    }
}

/* ---- Page content ------------------------------------------------------------ */
.page-title {
    margin-block: var(--space-6) var(--space-4);
    font-size: clamp(1.75rem, 6vw, 2.5rem); /* scales with viewport between the two limits */
    letter-spacing: 0.05em;
    text-align: center;
}

.page-intro {
    margin-inline: auto;
    color: var(--color-muted);
    text-align: center;
}

/* ---- Home: hero (desktop) ------------------------------------------------------ */
.home-hero {
    display: none; /* phone: hidden; shown in the desktop block below */
}

/* ---- Divider: thin white rule with the wolf logo centered on it --------------- */
.divider {
    position: relative;
    margin-block: var(--space-6);
}

    .divider::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background-color: var(--color-text);
        /* SWAP POINT (divider image): to use images/divider.png instead of the 1px
     CSS line, replace the two lines above (height + background-color) with:
     height: 24px;
     background: url("../images/divider.png") center / auto 100% no-repeat;
     and adjust height to the image's rendered height. */
    }

.divider__logo {
    position: relative; /* stacks the logo above the ::before line */
    width: 6rem;
    margin-inline: auto;
}

/* ==========================================================================
   Desktop and up (768px at the default 16px font size)
   ========================================================================== */
@media (min-width: 48em) {
    /* Phone-only header pieces go away. The .js variants are listed too so these
     rules outrank the phone rules of the same specificity above. */
    .site-wordmark,
    .quick-row,
    .social-slot,
    .nav-toggle,
    .js .nav-toggle,
    .nav-panel,
    .js .nav-panel,
    .js .nav-panel.is-open,
    .js .nav-backdrop.is-open {
        display: none;
    }

    /* Three columns: empty | nav | bag — keeps the nav centered on the page. */
    .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        min-height: 4rem;
    }

    .nav-desktop {
        display: block;
        grid-column: 2;
    }

    .nav-desktop__list {
        display: flex;
        gap: var(--space-6);
        list-style: none;
        margin: 0;
        padding: 0;
    }

        .nav-desktop__list a {
            display: inline-block;
            padding: var(--space-2) 0;
            font-family: var(--font-nav);
            font-weight: 300;
            font-size: 1.125rem;
            color: var(--color-muted);
            text-decoration: none;
        }

            .nav-desktop__list a:hover {
                color: var(--color-text);
            }

            .nav-desktop__list a[aria-current="page"] {
                font-weight: 400;
                color: var(--color-text);
            }

    .nav-bag {
        display: inline-flex;
        grid-column: 3;
        justify-self: end;
        color: var(--color-accent);
    }

        .nav-bag:hover {
            color: var(--color-lime);
        }

        .nav-bag .icon {
            width: 2rem;
            height: 2rem;
        }

    .home-hero {
        display: block;
        width: 100%;
        margin-top: var(--space-4);
    }

    .divider__logo {
        width: 10rem;
    }
}
