/* Bloodhull Games. Colours match brand/build.js */
:root {
  --soot: #0f0e0d;
  --iron: #24201d;
  --rust: #5a2a1c;
  --blood: #b4271f;
  --ember: #e06a2c;
  --bone: #e9e0ce;
  --muted: #a39b8c;
  --line: #2e2925;
  --display: Bahnschrift, "DIN Alternate", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--soot); color: var(--bone);
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  /* a faint grain over everything */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .87 0 0 0 0 .8 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
section { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); }
section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.sub { color: var(--muted); margin-top: -.3rem; }

/* riveted plate seam between sections */
.games, .jams, .about, .press, .contact {
  border-top: 6px solid var(--rust);
  background-image: radial-gradient(circle, var(--soot) 2px, transparent 2.5px);
  background-size: 28px 6px; background-repeat: repeat-x; background-position: 0 -6px;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(15,14,13,.88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 34px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 1.5rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--bone); }
@media (max-width: 700px) { .nav nav a:not(.btn) { display: none; } .brand img { height: 26px; } }

/* buttons */
.btn {
  display: inline-block; padding: .75rem 1.4rem; background: var(--blood); color: var(--bone) !important;
  text-decoration: none; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em;
  border: 2px solid var(--blood); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .15s;
}
.btn:hover { background: #cf3026; }
.btn.ghost { background: transparent; border-color: #4a423b; }
.btn.ghost:hover { border-color: var(--bone); }
.btn.small { padding: .4rem .9rem; font-size: .85rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.5rem; }

/* hero */
.hero { position: relative; min-height: 86vh; display: grid; place-items: center; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, var(--iron) 0%, var(--soot) 65%); }
.hero-inner { position: relative; z-index: 1; }
.hero-logo { width: clamp(260px, 38vw, 460px); height: auto; margin: 0 auto 2.2rem; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3.4rem); text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--blood); }
.lead { font-size: 1.15rem; color: #cfc6b5; max-width: 52ch; margin: 0 auto 2rem; }
.waterline { position: absolute; left: 0; right: 0; bottom: 0; height: 18%;
  background: linear-gradient(180deg, rgba(180,39,31,.5) 0, rgba(180,39,31,.5) 3px, rgba(180,39,31,.14) 3px, rgba(15,14,13,0) 100%); }

/* games */
.games { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.game { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; width: 100%; }
.game.sg .game-art { order: 2; }
.game-art { display: block; border: 1px solid var(--line); overflow: hidden; }
.game-art img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s; }
.game.gv .game-art img { filter: brightness(1.2); }
.game-art:hover img { transform: scale(1.03); }
.game-logo { width: min(380px, 100%); height: auto; margin-bottom: 1rem; }
.game p { color: #d3cab9; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-size: .75rem; padding: .25rem .65rem; border: 1px solid #4a423b; color: #c9c0ae; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; }
.tag.status { border-color: var(--blood); color: #e2574d; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 1.4rem; }
.shots img { aspect-ratio: 16/10; object-fit: cover; width: 100%; cursor: zoom-in; filter: brightness(1.15); opacity: .85; transition: opacity .2s; }
.shots img:hover { opacity: 1; }
@media (max-width: 860px) { .game { grid-template-columns: 1fr; } .game.sg .game-art { order: 0; } }

/* jams */
.jam-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-top: 1.5rem; }
.jam-row a { text-decoration: none; position: relative; overflow: hidden; border: 1px solid var(--line); }
.jam-row img { aspect-ratio: 4/3; object-fit: cover; width: 100%; filter: grayscale(.6) brightness(.8); transition: filter .3s; }
.jam-row a:hover img { filter: none; }
.jam-row span { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .6rem; font-family: var(--display); text-transform: uppercase; font-size: .8rem; letter-spacing: .06em;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); }
@media (max-width: 860px) { .jam-row { grid-template-columns: repeat(2, 1fr); } }

/* about */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
.about > * { margin: 0; max-width: none; }
.about { max-width: calc(var(--max) + 5rem); margin: 0 auto; }
.about p { color: #d3cab9; }
.facts { background: var(--iron); padding: 1.5rem; border-left: 4px solid var(--blood); align-self: start; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.facts dt { color: var(--muted); font-family: var(--display); text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; padding-top: .15rem; }
.facts dd { margin: 0; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* press */
.press-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.press-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; background: var(--iron); border: 1px solid var(--line); text-decoration: none; }
.press-card:hover { border-color: var(--blood); }
.press-card img { width: auto; max-width: 110px; }
.press-card span { color: var(--muted); font-size: .9rem; }
.press-card strong { color: var(--bone); font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }

/* contact */
.contact { text-align: center; background-color: transparent;
  background-image: radial-gradient(circle, var(--soot) 2px, transparent 2.5px), radial-gradient(ellipse at 50% 120%, rgba(180,39,31,.25), transparent 60%); }
.contact p { color: var(--muted); }

footer { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.5rem 1rem 3rem; color: #6f675c; font-size: .85rem; border-top: 1px solid var(--line); }
footer a { color: #8e8576; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.93); display: grid; place-items: center; padding: 2rem; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; }
.lightbox button { position: absolute; top: 1rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; }
.legal h1 { font-size: 2.4rem; text-transform: uppercase; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; text-transform: none; }
.legal p, .legal li { color: #d3cab9; }
.legal .todo { background: rgba(224,106,44,.15); border: 1px dashed var(--ember); padding: 0 .3rem; }

/* game pages */
.page-hero { padding: 0 0 4.5rem; text-align: center; }
.page-hero > * { max-width: none; }
.page-hero .hero-art { width: 100%; aspect-ratio: 3840 / 1240; object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.page-hero .hero-text { position: relative; max-width: var(--max); margin: clamp(-7rem, -7vw, -2rem) auto 0; padding: 0 1.5rem; }
.page-hero .big-logo { width: clamp(280px, 48vw, 640px); height: auto; margin: 0 auto 1.6rem; }
.page-hero .lead { margin-bottom: 1.2rem; }
.page-hero .tags { justify-content: center; }
.back { display: inline-block; margin-bottom: 1rem; color: var(--muted); text-decoration: none; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.back:hover { color: var(--bone); }
.features { display: grid; gap: clamp(3rem, 6vw, 5rem); border-top: 6px solid var(--rust); }
.feature { max-width: 980px; }
.feature .banner { width: 100%; max-width: 720px; height: auto; margin-bottom: 1.2rem; }
.feature p { color: #d3cab9; max-width: 62ch; }
.pics { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin-top: 1.4rem; }
.pics img { width: 100%; aspect-ratio: 16/9; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line); }
.pics img.full { aspect-ratio: auto; object-fit: contain; grid-column: 1 / -1; }
.game-facts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; border-top: 6px solid var(--rust); max-width: calc(var(--max) + 5rem); margin: 0 auto; }
.game-facts > * { margin: 0; max-width: none; }

/* Trailers and gameplay clips */
.trailers { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; justify-content: center; padding-top: 0; max-width: calc(var(--max) + 5rem); margin: 0 auto; }
.trailers.single { grid-template-columns: minmax(0, 1fr); max-width: calc(980px + 5rem); }
.trailers figure, .clip { margin: 0; }
.trailers video, .clip video { width: 100%; height: auto; display: block; background: #000; border: 1px solid var(--line); }
.trailers figcaption, .clip figcaption { margin-top: .5rem; text-align: center; color: var(--muted); font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.clip { margin: 1.4rem auto 0; max-width: 720px; }
.pics.ships { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .pics.ships { grid-template-columns: repeat(2, 1fr); } }
.pics figure { margin: 0; position: relative; }
.pics figure figcaption { position: absolute; left: 1px; bottom: 1px; padding: .3rem .55rem; background: rgba(0,0,0,.65); font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: #c6d0dc; pointer-events: none; }
.pics img.contain { object-fit: contain; aspect-ratio: auto; background: #000; }
@media (max-width: 760px) { .trailers { grid-template-columns: 1fr; } .trailers .vertical { max-width: 360px; margin: 0 auto; } }
.game-facts ul { padding-left: 1.1rem; color: #d3cab9; }
.game-facts li { margin: .3rem 0; }
.game-facts .cta { justify-content: flex-start; }
@media (max-width: 760px) { .game-facts { grid-template-columns: 1fr; } }

/* Grim Void page: cold blue instead of rust brown */
.gv-page { --soot: #0a0e14; --iron: #121a24; --line: #1e2a38; --rust: #1d3a52; --muted: #8e9bab; }
.gv-page .nav { background: rgba(10,14,20,.88); }
.gv-page .feature p, .gv-page .game-facts ul { color: #c6d0dc; }
.gv-page .facts { border-left-color: #3fb6d6; }
.gv-page .tag:not(.status) { border-color: #2b3a4b; color: #b4c1cf; }
.gv-page .feature .banner { border: 1px solid var(--line); }
.gv-head { position: relative; padding-left: 1.3rem; margin-bottom: 1.2rem; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: .06em;
  text-shadow: 0 0 18px rgba(63,182,214,.25); }
.gv-head::before { content: ""; position: absolute; left: 0; top: .1em; height: 1.7em; width: 5px; background: #3fd0f0; box-shadow: 0 0 12px #3fd0f0; }
.gv-head small { display: block; margin-top: .45rem; font-size: .8rem; letter-spacing: .25em; color: #f0a83a; text-shadow: none; }
.feeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 1.4rem; }
.feeds figure { margin: 0; }
.feeds video { width: 100%; height: auto; display: block; background: #000; border: 1px solid var(--line); }
.feeds figcaption { margin-top: .4rem; text-align: center; color: var(--muted); font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
@media (max-width: 760px) { .feeds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Saltgrave page */
.sg-page .page-hero .cta { margin-top: 1.6rem; }
.sg-trailer { padding-top: 0; }
.sg-trailer figure { margin: 0 auto; max-width: 1100px; }
.sg-trailer video { width: 100%; height: auto; display: block; background: #000; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(180,39,31,.25); }
.sg-trailer figcaption { margin-top: .6rem; text-align: center; color: var(--muted); font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.5rem); padding-top: 0; max-width: calc(var(--max) + 5rem); margin: 0 auto; }
.pillars > * { margin: 0; max-width: none; }
.pillar { border-left: 3px solid var(--blood); padding: .3rem 0 .3rem 1.2rem; }
.pillar h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .14em; color: var(--bone); margin-bottom: .35rem; }
.pillar p { margin: 0; color: var(--muted); }
.sg-rows { gap: clamp(3.5rem, 7vw, 6rem); }
.row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.row.flip .row-media { order: 2; }
.row-media { margin: 0; }
.row-media video, .row-media img { width: 100%; height: auto; display: block; background: #000; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.row-text .banner { width: 100%; height: auto; margin-bottom: 1rem; }
.row-text p { color: #d3cab9; margin: 0; }
.sg-head { font-size: clamp(1.7rem, 3.5vw, 2.4rem); border-left: 3px solid var(--blood); padding-left: .9rem; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 1.2rem; }
.thumbs img { width: 100%; aspect-ratio: 16/9; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line); opacity: .9; transition: opacity .2s; }
.thumbs img:hover { opacity: 1; }
.pics.roster { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: calc(-1 * clamp(2rem, 4vw, 3.5rem)); }
.feature.wide { max-width: var(--max); }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; }
  .row.flip .row-media { order: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pics.roster { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
}
.pics.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row.achv { grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); }
@media (max-width: 860px) { .pics.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row.achv { grid-template-columns: 1fr; } }
.about .facts { text-align: center; }
.about .facts dl { grid-template-columns: 1fr; gap: 0; }
.about .facts dt { padding-top: .9rem; }
.about .facts dt:first-child { padding-top: 0; }
