/* Bleakwater Games — studio stylesheet.
   The studio palette is cold and neutral (black water, slate, one pale light) so it can sit above any game.
   Each game page sets a theme class on <body> that re-tints the tokens to that game's palette. */
:root {
  --bg: #0b0b0e;
  --bg-2: #111116;
  --panel: #16161c;
  --line: #2a2a33;
  --accent: #c9a54a;
  --accent-2: #e6c96a;
  --text: #e2ddd3;
  --muted: #9a938a;
  --dim: #5f5a52;
  --hot: #b5432f;
  --max: 1120px;
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --display: "Cinzel", Georgia, serif;
  --hero-grad: linear-gradient(180deg, rgba(11,11,14,.10) 0%, rgba(11,11,14,.35) 55%, rgba(11,11,14,.98) 100%);
}
body.theme-dynasty {
  --bg: #15110c; --bg-2: #1c1710; --panel: #221b13; --line: #4a3a24;
  --accent: #d4a94a; --accent-2: #f0c95a; --text: #e8dcc4; --muted: #a89878; --dim: #6e6250;
  --hero-grad: linear-gradient(180deg, rgba(21,17,12,.15) 0%, rgba(21,17,12,.35) 55%, rgba(21,17,12,.98) 100%);
}
body.theme-grimfall {
  --bg: #0a0d0a; --bg-2: #10150f; --panel: #151c14; --line: #2b3a28;
  --accent: #8fbf6a; --accent-2: #b9e28f; --text: #d6dccb; --muted: #8b9a80; --dim: #55634e;
  --hero-grad: linear-gradient(180deg, rgba(10,13,10,.15) 0%, rgba(10,13,10,.40) 55%, rgba(10,13,10,.98) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--accent); letter-spacing: .04em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 54px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--display); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* nav: the studio bar stays cold on every page so the house is always visible above the game */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11,11,14,.94); backdrop-filter: blur(6px); border-bottom: 1px solid #23232b; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--display); font-size: 17px; letter-spacing: .18em; color: #e6c96a; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.brand img, .brand svg { width: 26px; height: 26px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.nav li a { font-family: var(--display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #e2ddd3; }
.nav li a:hover, .nav li a.on { color: #e6c96a; }

/* buttons */
.btn { display: inline-block; font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 14px 26px; border: 1px solid var(--accent); color: var(--accent-2); border-radius: 3px; transition: background .15s, color .15s; }
.btn:hover { background: var(--accent); color: var(--bg); }
.btn.solid { background: var(--accent); color: var(--bg); }
.btn.solid:hover { background: var(--accent-2); }
.btn.quiet { border-color: var(--line); color: var(--text); }
.btn.quiet:hover { background: var(--panel); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* hero */
.hero { position: relative; min-height: min(78vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; opacity: .95; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--hero-grad); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: 64px; padding-top: 120px; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.7); margin-bottom: 8px; }
.hero .lede { font-size: clamp(19px, 2.2vw, 24px); max-width: 640px; color: var(--text); text-shadow: 0 1px 10px rgba(0,0,0,.8); }
.hero.game { min-height: min(88vh, 960px); }
.hero.game img.bg { object-position: 60% 30%; }
.hero .wordmark { width: min(560px, 80vw); margin-bottom: 18px; filter: drop-shadow(0 4px 16px rgba(0,0,0,.8)); }
/* studio hero without a painting yet: still water, drawn in CSS */
.hero.studio img.bg { object-position: 50% 40%; }
.flourish { display: block; width: min(520px, 70vw); margin: 0 auto; opacity: .85; }
.divider { padding: 26px 0 0; }
.banner { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin: 0 0 32px; }
.banner img { width: 100%; height: 320px; object-fit: cover; }
.card .icon { width: 72px; height: 72px; }

/* grids */
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 26px; }
.card h3 { margin-top: 6px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 56px; height: 56px; margin-bottom: 8px; opacity: .9; }

/* game tiles on the studio home */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .games { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--bg-2); color: var(--text); min-height: 320px; }
.tile img { width: 100%; height: 320px; object-fit: cover; transition: transform .3s; }
.tile:hover img { transform: scale(1.03); }
.tile .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.88) 100%); }
.tile .meta { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.tile h3 { color: #fff; margin: 6px 0 4px; font-size: 24px; }
.tile p { margin: 0; color: #cfd6dc; font-size: 17px; }
.tile.dynasty { --accent: #d4a94a; }
.tile.grimfall { --accent: #8fbf6a; }
.tile.soon { display: flex; align-items: flex-end; background: radial-gradient(600px 300px at 30% 0%, rgba(201,165,74,.10), transparent 70%), var(--bg-2); }
.tile.soon .meta { position: static; padding: 22px; }
.tag { display: inline-block; font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--bg); background: var(--accent); padding: 4px 10px; border-radius: 2px; margin-bottom: 14px; }
.tag.red { background: var(--hot); color: #fff; }
.tag.dim { background: var(--line); color: var(--text); }

/* feature list with pips */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.features li { padding-left: 28px; position: relative; }
.features li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--accent); }

/* featured block */
.featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }
.featured .shot { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery a { display: block; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #000; }
.gallery img { transition: transform .25s, opacity .25s; aspect-ratio: 16/9; object-fit: cover; }
.gallery a:hover img { transform: scale(1.03); opacity: .92; }
.gallery figcaption { font-size: 15px; color: var(--muted); padding: 8px 10px; }
.pixel { image-rendering: pixelated; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.8); }

/* prose */
.prose { max-width: 720px; }
.prose h3 { margin-top: 28px; }
blockquote { margin: 0; padding: 18px 24px; border-left: 3px solid var(--accent); background: var(--bg-2); color: var(--text); font-size: 21px; font-style: italic; }

/* fact sheet */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); width: 180px; }

/* asset list */
.assets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.assets li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; }
.assets li span { color: var(--muted); font-size: 16px; white-space: nowrap; }

/* footer: cold on every page, like the nav */
.footer { border-top: 1px solid #23232b; background: #0b0b0e; padding: 40px 0; color: #9a938a; font-size: 16px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a { color: #9a938a; }
.footer a:hover { color: #e6c96a; }

/* small screens */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav .wrap { height: auto; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; padding-bottom: 12px; }
  .nav ul { gap: 14px; justify-content: flex-start; }
  .nav li a { font-size: 11px; letter-spacing: .12em; }
  .brand { font-size: 13px; letter-spacing: .12em; white-space: nowrap; }
  .hero { min-height: min(62vh, 620px); }
  .hero.game { min-height: min(70vh, 700px); }
  .hero .wordmark { width: min(420px, 88vw); }
  .hero .wrap { padding-top: 80px; padding-bottom: 40px; }
  .section { padding: 48px 0; }
  .tile img, .tile { min-height: 240px; height: auto; }
}
