/* ============================================================
   Video Games Magazine — ported from the live reference site
   (videogamesmagazine.com) so the CMS chrome is pixel-identical.
   Base type system, masthead, language switcher, mobile sheet,
   footer, scroll progress bar and the shared .reveal utility.
   ============================================================ */

@font-face {
  font-family: "URW Geometric Ext";
  src: url("../fonts/URWGeometricExt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "URW Geometric Ext";
  src: url("../fonts/URWGeometricExt-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-soft: #8a8a8a;
  --rule: #e0e0e0;
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "URW Geometric Ext", Arial, Helvetica, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
.mono {
  font-family: "URW Geometric Ext", Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
  font-weight: 900;
}
.display {
  font-family: "URW Geometric Ext", Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}

/* ===== REVEAL ON SCROLL (shared utility) ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLL PROGRESS ===== */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  background: var(--ink);
  width: 0%;
  z-index: 200;
  transition: height 0.3s ease;
}
body.scrolled .progress {
  height: 3px;
}

/* ===== MASTHEAD ===== */
.site-header.masthead {
  display: flex;
  flex-wrap: wrap;
  row-gap: 16px;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 72px 72px 52px;
  position: sticky;
  top: 0;
  left: auto;
  width: auto;
  background: var(--paper);
  z-index: 100;
  transition:
    padding 0.35s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.3s;
}
.site-header.masthead.scrolled {
  box-shadow: 0 1px 0 var(--rule);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* the old fixed header pushed page content down with a fixed padding-top;
   the sticky masthead reserves its own space, so that compensation goes away */
.homepage main,
.innerpage main {
  padding-top: 0;
}

/* ------- LOGO (position1 is now a static logo, not CMS content) ------- */
.site-header.masthead .logo {
  font-weight: 900;
  line-height: 0.94;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5em 0.6em 0.55em;
  font-size: 34px;
  text-decoration: none;
  transition:
    font-size 0.35s cubic-bezier(0.2, 0.7, 0.3, 1),
    background 0.25s ease,
    color 0.25s ease;
}
.site-header.masthead .logo span {
  display: inline-block;
  transition: margin-right 0.35s ease;
}
.site-header.masthead .logo .cur {
  display: inline-block;
  background: var(--paper);
  margin-left: 0.28em;
  vertical-align: -0.06em;
  width: 0.62em;
  height: 0.72em;
}
.site-header.masthead .logo:hover {
  background: var(--paper);
  color: var(--ink);
}
.site-header.masthead .logo:hover .cur {
  background: var(--ink);
}
.site-header.masthead.scrolled .logo {
  font-size: 17px;
}
.site-header.masthead.scrolled .logo br {
  display: none;
}
.site-header.masthead.scrolled .logo span {
  margin-right: 0.3em;
}
.site-header.masthead.scrolled .logo .cur {
  margin-right: 0;
}

/* ------- NAV (position2 — untouched menu() output, just restyled) -------
   menu() renders <ul class="center"><li><a>...</a></li></ul>; collapsing
   the ul/li to display:contents lets the reference's plain "nav a" rules
   apply as if the links were direct flex children of <nav>, with no
   markup changes to the shared menu() helper. */
.site-header.masthead nav {
  display: flex;
  gap: 30px;
  font-size: 12px;
  order: 1;
}
.site-header.masthead nav ul.center,
.site-header.masthead nav ul.center li {
  display: contents;
}
.site-header.masthead nav a {
  position: relative;
  padding-bottom: 6px;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}
.site-header.masthead nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--ink);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.site-header.masthead nav a:hover::after {
  width: 100%;
}
@media screen and (max-width: 1200px) {
  .site-header.masthead {
    gap: 14px;
  }

  .site-header.masthead nav {
    gap: 20px;
  }
}
@media screen and (max-width: 1100px) {
  .site-header.masthead nav {
    gap: 22px;
  }
}
@media screen and (max-width: 980px) {
  .site-header.masthead nav {
    gap: 16px;
    font-size: 11px;
  }
}
@media screen and (max-width: 820px) {
  .site-header.masthead nav {
    display: none;
  }
}

/* ------- LANGUAGE SWITCHER (position3 — languages() now outputs .lang) ------- */
.lang-slot {
  order: 2;
  margin-left: 14px;
  align-self: flex-end;
}
.lang {
  display: flex;
  gap: 0;
  align-items: flex-end;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.lang a {
  color: var(--ink-soft);
  padding: 0 6px 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: normal;
  text-decoration: none;
  transition: color 0.2s;
}
.lang a.on,
.lang a:hover {
  color: var(--ink);
}
.lang span {
  color: var(--rule);
  padding-bottom: 6px;
}

/* ------- NEWSPAPER MODE TOGGLE ------- */
.site-header.masthead .paper-btn {
  order: 3;
  align-self: flex-end;
  margin-left: 4px;
}

/* ------- MOBILE MENU BUTTON + FULL-SCREEN SHEET ------- */
.site-header.masthead .menu-btn {
  display: none;
  order: 4;
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  width: 34px;
  flex-direction: column;
  gap: 6px;
}
.site-header.masthead .menu-btn i {
  display: block;
  height: 4px;
  background: var(--ink);
}
@media screen and (max-width: 820px) {
  .site-header.masthead .menu-btn {
    display: flex;
  }
}

.sheet {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 300;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 32px 26px;
}
.sheet.open {
  display: flex;
}
.sheet .close {
  position: absolute;
  top: 26px;
  right: 26px;
  background: none;
  border: none;
  color: var(--paper);
  font-family: "URW Geometric Ext", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.sheet ul.center {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sheet ul.center a {
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(30px, 10vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.sheet .lang {
  margin-top: 28px;
}
.sheet .lang a {
  color: #8a8a8a;
  padding-left: 0;
  font-size: 13px;
}
.sheet .lang a.on {
  color: var(--paper);
}

/* ------- FOOTER ------- */
footer.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 32px 72px 56px;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
footer.site-footer .site-footer__domain {
  text-align: right;
}

@media screen and (max-width: 600px) {
  .site-header.masthead,
  footer.site-footer {
    padding-left: 26px;
    padding-right: 26px;
  }
  footer.site-footer .site-footer__domain {
    text-align: left;
  }
}
@media screen and (max-width: 640px) {
  footer.site-footer {
		padding-top: 16px;
		padding-bottom: 20px;
		font-size: 10px;
	}
	.site-header.masthead {
		padding-top: 20px;
		padding-bottom: 16px;
		gap: 10px;
		row-gap: 8px;
	}
	.site-header.masthead .logo {
		font-size: 17px;

/* ------- NEWSPAPER MODE: re-skin the CMS chrome too ------- */
html.paper .site-header.masthead {
  box-shadow: none;
  border-bottom: 3px double var(--ink);
}
