/* ============================================================
   BRUMOUS STUDIOS — Global Stylesheet v2
   Studio-coded. Cool, neutral, brand-aligned.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Design tokens ── */
:root {
  --black:        #060606;
  --dark:         #0c0c0c;
  --surface:      #141414;
  --surface-2:    #1a1a1a;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);

  /* Cool neutral palette — no amber, matches Brumous brand */
  --text-primary:   #cdd0d4;   /* cool off-white, slightly blue-grey */
  --text-secondary: #9198a0;   /* muted cool grey */
  --text-faint:     #6d7277;

  /* Brand accent — cold steel white, matches the logo mark */
  --accent:       #b8bfc7;
  --accent-dim:   rgba(184, 191, 199, 0.10);
  --accent-glow:  rgba(184, 191, 199, 0.04);

  /* Subtle frost line — used for active states and underlines */
  --frost:        #8a9aa8;

  --nav-height:   100px;
  --max-width:    840px;
  --font-display: 'Cinzel', 'Palatino Linotype', serif;
  --font-body:    'EB Garamond', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll;}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--black);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.1rem, 3vw, 1.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(0.95rem, 2.5vw, 1.2rem); }
p  { margin-bottom: 1.2em; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Scrollbar style */

::-webkit-scrollbar{
  background: rgba(47, 47, 48, 0.089);
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(40, 40, 41, 0.900);
  border-radius: 10px;
  width: 0,5rem;
}


/* Modern browsers with `scrollbar-*` support */
@supports (scrollbar-width: auto) {
    .scroller {
        scrollbar-color: var(--scrollbar-color-thumb) var(--scrollbar-color-track);
        scrollbar-width: var(--scrollbar-width);
    }
}

/* Legacy browsers with `::-webkit-scrollbar-*` support */
@supports selector(::-webkit-scrollbar) {
    .scroller::-webkit-scrollbar-thumb {
        background: var(--scrollbar-color-thumb);
    }
    .scroller::-webkit-scrollbar-track {
        background: var(--scrollbar-color-track);
    }
    .scroller::-webkit-scrollbar {
        max-width: var(--scrollbar-width-legacy);
        max-height: var(--scrollbar-width-legacy);
    }
}


/* ── Navigation — shared across all inner pages ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(6, 6, 6, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  color: var(--text-faint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--frost);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-secondary);
  transition: all 0.3s;
}

/* ── Page wrapper ── */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  animation: pageFade 0.4s ease forwards;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page header ── */
.page-header {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { margin-bottom: 0.4rem; }

.page-header .subtitle {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Cards ── */
.card-grid { display: grid; gap: 1px; }

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  color: inherit;
}

.card-meta {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--frost);
  margin-bottom: 0.5rem;
}

.card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── Blog post content ── */
.post-content h2 { margin: 2.5rem 0 1rem; }
.post-content h3 { margin: 2rem 0 0.75rem; color: var(--text-secondary); }
.post-content p  { font-size: 1.1rem; line-height: 1.85; }

.post-content img {
  width: 100%;
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.post-content blockquote {
  border-left: 2px solid var(--frost);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ── Renascent page image ── */
.game-image {
  width: 100%;
  border: 1px solid var(--border);
  margin: 2rem 0;
  display: block;
}

.game-hook {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-style: italic;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}

.gallery-item {
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.8) saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

.gallery-item-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-caption { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--text-primary); }

/* ── Contact ── */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.contact-link:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  color: var(--text-primary);
}

.contact-link-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--frost);
  min-width: 80px;
}

.contact-link-value {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Back link ── */
.back-link {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text-primary); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(6,6,6,0.97);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav { position: relative; }

  .gallery-grid { grid-template-columns: 1fr; }
}
