/* Paleozoic Games — press kit
   Hand-written, no framework. Matches the dark theme already used across
   paleozoic.com. Light mode is supported because some journalists print
   press kits and a black page wastes toner. */

:root {
    --bg: #0e0e0e;
    --panel: #161616;
    --panel-2: #1c1c1c;
    --line: #2a2a2a;
    --text: #c9c9c9;
    --dim: #8a8a8a;
    --heading: #fff;
    --accent: #6cb4ee;
    --accent-ink: #06121e;
    /* the bone of the company mark, sampled from the logo artwork */
    --bone: #cec8b8;
    --radius: 10px;
    --wrap: 1080px;
}

@media print {
    :root {
        --bg: #fff; --panel: #fff; --panel-2: #f4f4f4; --line: #ddd;
        --text: #222; --dim: #666; --heading: #000; --accent: #0b5ed7;
        /* bone on white is unreadable — the mark prints as ink instead */
        --bone: #1a1a1a;
    }
    .topbar, .sectionnav, .cta-row { display: none !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.dim { color: var(--dim); font-size: .92rem; }

/* ---------- top bar ---------- */
.topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(14,14,14,.9);
    backdrop-filter: saturate(1.4) blur(8px);
    position: sticky; top: 0; z-index: 20;
}
.topbar-inner {
    display: flex; align-items: center; gap: 1.5rem;
    min-height: 60px; flex-wrap: wrap;
}
.brand {
    color: var(--heading); font-weight: 700; letter-spacing: .02em;
    font-size: 1rem; white-space: nowrap;
    display: inline-flex; align-items: center; gap: .6rem;
}
.brand:hover { text-decoration: none; }
.brandmark { height: 22px; }
.topnav { display: flex; gap: .35rem; flex-wrap: wrap; margin-left: auto; }
.topnav a {
    color: var(--text); font-size: .9rem; padding: .35rem .7rem;
    border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.topnav a:hover { background: var(--panel-2); text-decoration: none; }
.topnav a.active { background: var(--panel-2); border-color: var(--line); color: var(--heading); }

/* ---------- company mark ---------- */
/* Defined once per page as a <symbol> and pulled in with <use>. Width follows
   the 3:2 artwork from the height, so only the height is ever set. */
.markdefs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mark {
    display: block; flex: none;
    width: auto; height: 1em; aspect-ratio: 708 / 472;
    color: var(--bone); fill: currentColor;
}

/* ---------- masthead ---------- */
.masthead { padding: 3rem 0 1.5rem; }
/* company page: mark beside the name, stacking on narrow screens */
/* padding-bottom carries the gap the tagline's own margin used to provide, so
   everything below the masthead keeps the rhythm it had before the mark */
.masthead.lockup {
    display: flex; align-items: center; gap: 1.6rem;
    padding-bottom: 1.5rem;
}
.masthead.lockup .lockup-text { min-width: 0; }
.masthead.lockup .tagline { margin-bottom: 0; }
.heromark { height: 78px; }
@media (max-width: 620px) {
    .masthead.lockup { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
    .heromark { height: 58px; }
}
.masthead-cta { padding-bottom: 1.5rem; }
h1 {
    color: var(--heading); font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1; margin: 0 0 .5rem; letter-spacing: -.02em;
}
.tagline { color: var(--dim); font-size: 1.1rem; margin: 0 0 1.5rem; max-width: 60ch; }
.cta-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: 0; }
.btn {
    display: inline-block; padding: .6rem 1.1rem; border-radius: 8px;
    border: 1px solid var(--line); background: var(--panel);
    color: var(--text); font-size: .93rem; font-weight: 600;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.subtle { background: transparent; color: var(--dim); font-weight: 500; }

/* ---------- section nav ---------- */
.sectionnav {
    display: flex; gap: .4rem; flex-wrap: wrap;
    padding: 1.25rem 0; border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); margin-bottom: 2.5rem;
}
.sectionnav a {
    font-size: .85rem; color: var(--text); padding: .3rem .7rem;
    border: 1px solid var(--line); border-radius: 999px;
}
.sectionnav a:hover { background: var(--panel-2); text-decoration: none; }

/* ---------- layout ---------- */
.cols { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; gap: 0; } }
.col-side { position: sticky; top: 80px; }
@media (max-width: 820px) { .col-side { position: static; } }

section { margin: 0 0 3rem; scroll-margin-top: 80px; }
h2 {
    color: var(--heading); font-size: 1.25rem; margin: 0 0 1.1rem;
    padding-bottom: .55rem; border-bottom: 1px solid var(--line); letter-spacing: -.01em;
}
h3 { color: var(--heading); font-size: 1.02rem; margin: 1.75rem 0 .5rem; }
p { margin: 0 0 1rem; }

/* ---------- fact sheet ---------- */
.facts { margin: 0; }
.facts dt {
    color: var(--dim); font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em; margin-top: 1.15rem;
}
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: .15rem 0 0; color: var(--text); overflow-wrap: anywhere; }

/* ---------- features / lists ---------- */
.features, .plain { padding-left: 1.15rem; margin: 0 0 1rem; }
.features li, .plain li { margin-bottom: .55rem; }
.plain { list-style: none; padding-left: 0; }
.plain li { padding-bottom: .55rem; border-bottom: 1px solid var(--line); }

blockquote {
    margin: 0 0 1.25rem; padding: 1rem 1.25rem;
    background: var(--panel); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { margin: 0 0 .5rem; }
cite { color: var(--dim); font-style: normal; font-size: .9rem; }

.credits { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.5rem; margin: 0; }
.credits dt { color: var(--heading); font-weight: 650; }
.credits dd { margin: 0; color: var(--dim); }
@media (max-width: 560px) {
    .credits { grid-template-columns: 1fr; gap: 0; }
    .credits dd { margin-bottom: .75rem; }
}

/* ---------- games grid (company page) ---------- */
.gamegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.gamecard {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--text);
    transition: border-color .15s ease, transform .15s ease;
}
.gamecard:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.gamecard .thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--panel-2); }
.gamecard .thumb img { width: 100%; height: 100%; object-fit: cover; }
/* a logo standing in for a missing screenshot must not be cropped */
.gamecard .thumb.islogo { display: grid; place-items: center; padding: 1.5rem; }
.gamecard .thumb.islogo img { width: auto; max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }
.gamecard .meta { display: block; padding: 1rem 1.15rem 1.25rem; }
.gamecard .name { display: block; color: var(--heading); font-weight: 700; font-size: 1.05rem; }
.gamecard .tag { display: block; color: var(--dim); font-size: .9rem; margin-top: .2rem; }
.gamecard .date { display: block; color: var(--dim); font-size: .8rem; margin-top: .5rem; }
/* the flagship gets the full width and a bigger image */
.gamecard.hero { grid-column: 1 / -1; }
.gamecard.hero .thumb { aspect-ratio: 21/9; }
.gamecard.hero .name { font-size: 1.5rem; }
.gamecard.hero .tag { font-size: 1rem; }

/* ---------- media grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.shot { margin: 0; }
.shot img {
    width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel-2); transition: border-color .15s ease;
}
.shot a:hover img { border-color: var(--accent); }
.shot figcaption { color: var(--dim); font-size: .8rem; margin-top: .4rem; display: flex; gap: .75rem; }
.shot .anchor { color: var(--dim); }
.grid.logos .shot img { object-fit: contain; padding: 1rem; }

.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.video { margin: 0; }
.embed {
    position: relative; aspect-ratio: 16/9; background: #000;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { color: var(--dim); font-size: .85rem; margin-top: .45rem; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 1.5rem 3rem; color: var(--dim); font-size: .88rem; }
footer a { color: var(--dim); }
footer a:hover { color: var(--accent); }
