/* Conjunction - the palette is not invented here. Every colour below is lifted from
   Assets/Scripts/Data/DarkFantasyColors.cs so that the site, the store listing and the
   game read as one thing. Change a value there, change it here. */

:root {
    --void: #080706;
    --bg-deep: #0e0c0a;
    --card: #1a1612;
    --slot: #1e1a16;

    --border-dim: #3d3628;
    --border-mid: #524838;
    --border-bright: #6a5a48;

    --gold: #c9a55a;
    --gold-dim: #8a7a52;

    --ink: #efe7d5;
    --ink-mid: #c6beae;
    --ink-dim: #6e6754;

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --gutter: clamp(20px, 5vw, 32px);
    --measure: 68ch;

    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    margin: 0;
    background: var(--void);
    color: var(--ink);
    font: 400 17px/1.65 var(--sans);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration-color: rgba(201, 165, 90, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--card);
    color: var(--gold);
    padding: 0.9rem 1.2rem;
    z-index: 10;
}
.skip:focus { left: 0; }

/* -- Hero ---------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: min(92svh, 820px);
    display: grid;
    place-items: end center;
    padding-block: 18vh 8vh;
    overflow: hidden;
    isolation: isolate;
}

.hero__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 32%;
    z-index: -2;
}

/* The gate art is busy exactly where the words sit. The veil is what keeps the claim
   legible without washing the painting out. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 70% at 50% 8%, rgba(8, 7, 6, 0) 0%, rgba(8, 7, 6, 0.55) 70%),
        linear-gradient(to bottom, rgba(8, 7, 6, 0.35) 0%, rgba(8, 7, 6, 0.1) 32%, rgba(8, 7, 6, 0.88) 78%, var(--void) 100%);
}

.hero__inner { text-align: center; max-width: 40rem; }

.hero__wordmark { width: min(420px, 78vw); margin-inline: auto; }

.hero__claim {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 4.2vw, 1.9rem);
    line-height: 1.3;
    color: var(--ink);
    margin: 1.4rem 0 0;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(8, 7, 6, 0.9);
}

.hero__sub {
    color: var(--ink-mid);
    font-size: 1rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin: 1rem 0 0;
}

/* -- Buttons ------------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 2rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;               /* mobile first: never below a 44pt target */
    padding: 0 1.6rem;
    border: 1px solid var(--border-bright);
    border-radius: 3px;
    background: linear-gradient(to bottom, #241f18, #14110d);
    color: var(--ink);
    font: 700 0.95rem/1 var(--sans);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.btn--primary { border-color: var(--gold-dim); background: linear-gradient(to bottom, #3a2f1c, #1d180f); color: var(--gold); }
.btn--primary:hover { border-color: var(--gold); color: var(--ink); }

.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* -- Sections ------------------------------------------------------------ */

section { padding-block: clamp(3.5rem, 9vw, 6rem); }

.section__title {
    font-size: clamp(1.6rem, 4.5vw, 2.3rem);
    color: var(--gold);
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
}

.rule { width: 72px; height: 1px; background: linear-gradient(to right, var(--gold-dim), transparent); margin-bottom: 1.8rem; }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15rem; color: var(--ink-mid); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }

.lede { font-family: var(--serif); font-size: clamp(1.2rem, 3.4vw, 1.55rem); line-height: 1.45; color: var(--ink); }

/* -- Feature cards ------------------------------------------------------- */

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2.5rem; }

.card {
    background: var(--card);
    border: 1px solid var(--border-dim);
    border-radius: 4px;
    padding: 1.5rem 1.4rem;
}

.card h3 { font-size: 1.3rem; color: var(--gold); margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--ink-mid); font-size: 0.97rem; }

/* -- Shots --------------------------------------------------------------- */

.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 2.5rem; }
.shots img { border: 1px solid var(--border-dim); border-radius: 4px; width: 100%; }

.band { background: var(--bg-deep); border-block: 1px solid var(--border-dim); }

/* -- Footer -------------------------------------------------------------- */

footer {
    background: var(--void);
    border-top: 1px solid var(--border-dim);
    padding-block: 3rem;
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
    color: var(--ink-dim);
    font-size: 0.9rem;
}

.footer__grid { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }

.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { color: var(--ink-mid); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer__nav a:hover { color: var(--gold); }

.footer__mark { display: flex; align-items: center; gap: 0.8rem; }
.footer__mark img { width: 38px; border-radius: 50%; }

/* -- Legal pages --------------------------------------------------------- */

.legal { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.legal h1 { font-size: clamp(1.9rem, 5.5vw, 2.6rem); color: var(--gold); }
.legal h2 { font-size: 1.35rem; color: var(--ink); margin: 2.4rem 0 0.7rem; }
.legal h2:first-of-type { margin-top: 1.8rem; }
.legal ul { color: var(--ink-mid); padding-left: 1.2rem; margin: 0 0 1.15rem; }
.legal li { margin-bottom: 0.45rem; }
.legal dl { margin: 0 0 1.3rem; color: var(--ink-mid); }
.legal dt { color: var(--ink); font-weight: 700; margin-top: 0.9rem; }
.legal dd { margin: 0.2rem 0 0; }

.stamp { color: var(--ink-dim); font-size: 0.88rem; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.6rem; }

.backlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-mid); text-decoration: none; font-size: 0.92rem; }
.backlink:hover { color: var(--gold); }

.note {
    background: var(--slot);
    border: 1px solid var(--border-dim);
    border-left: 3px solid var(--gold-dim);
    border-radius: 3px;
    padding: 1.1rem 1.3rem;
    color: var(--ink-mid);
    font-size: 0.95rem;
    margin: 1.6rem 0;
}
