/* Games Mag Tycoon website. Colors, type and shapes follow docs/design-system (tokens.json). */

@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url("../fonts/BigShouldersDisplay-Black.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/Barlow-Regular.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/Barlow-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/BarlowCondensed-Bold.ttf") format("truetype"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/BarlowSemiCondensed-Bold.ttf") format("truetype"); }

:root {
  --paper-50: #fffaf0;
  --paper-100: #fbf5e6;
  --paper-200: #f4ecd8;
  --paper-300: #e6d9b8;
  --paper-400: #cdbb92;
  --ink-900: #1b1622;
  --ink-600: #5e5062;
  --ink-300: #a99aa6;
  --red-500: #d8342c;
  --red-700: #9c2019;
  --yellow-400: #f7c325;
  --yellow-600: #c9951a;
  --teal-500: #2a9d9f;
  --teal-700: #1d6f73;
  --purple-600: #7a3fa0;
  --green-700: #2a6e27;
  --night-900: #1e1830;
  --night-700: #2e2548;
  --night-500: #45396a;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-ui: "Barlow", "Segoe UI", Arial, sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-numeric: "Barlow Semi Condensed", "Arial Narrow", sans-serif;

  --shadow-md: 0 4px 0 var(--ink-900), 0 10px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 3px 0 var(--ink-900), 0 5px 10px rgba(0, 0, 0, 0.3);
  --content: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--night-900);
  color: var(--ink-900);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

h2, h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: 1; margin: 0; }
h2 { text-wrap: balance; font-size: clamp(34px, 5vw, 52px); margin-bottom: 20px; }
h3 { font-size: 26px; margin-bottom: 8px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--red-700); }

.on-night { color: var(--paper-100); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5); }

/* Top bar: the HUD of the game */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  height: 56px; padding: 0 20px;
  background: rgba(46, 37, 72, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink-900);
}
.topbar__brand { font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: 0.5px; color: var(--paper-100); text-decoration: none; white-space: nowrap; }
.topbar__brand span { color: var(--yellow-400); }
.topbar__nav { display: flex; gap: 22px; margin-left: auto; }
.topbar__nav a { font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; color: var(--paper-300); }
.topbar__nav a:hover, .topbar__lang:hover { color: var(--yellow-400); }
.topbar__lang { font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; color: var(--paper-100); padding: 3px 9px; border: 2px solid var(--night-500); border-radius: 3px; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px;
  font-family: var(--font-label); font-weight: 700; font-size: 19px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
  color: var(--ink-900);
  border: 2px solid var(--ink-900); border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), var(--shadow-sm);
  transition: transform 100ms, filter 100ms;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3); }
.btn:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 3px; }
.btn--primary { background: linear-gradient(var(--yellow-400), var(--yellow-600)); }
.btn--paper { background: linear-gradient(var(--paper-100), var(--paper-300)); }
.btn--ghost { background: rgba(30, 24, 48, 0.6); color: var(--paper-100); border-color: var(--paper-100); box-shadow: var(--shadow-sm); }
.btn--small { padding: 6px 14px; font-size: 15px; }

/* Until the Steam page is public: a stamp across the Steam buttons.
   To switch it off, remove the stamp elements and the class is-soon in both index.html. */
.is-soon { position: relative; }
.is-soon .btn, .btn.is-soon { pointer-events: none; filter: saturate(0.45) brightness(0.8); }
.stamp { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-7deg); padding: 4px 18px 2px; white-space: nowrap; font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 44px; text-transform: uppercase; color: var(--paper-100); background: linear-gradient(var(--red-500), var(--red-700)); border: 3px solid var(--ink-900); border-radius: 6px; box-shadow: var(--shadow-sm); pointer-events: none; }

/* Hero: night sky and skyline of the Steam page */
.hero {
  background: var(--night-900) url("../img/hero.jpg") center bottom / cover no-repeat;
  border-bottom: 2px solid var(--ink-900);
}
.hero__inner { max-width: 760px; margin: 0 auto; padding: 40px 20px 150px; text-align: center; }
.hero__logo { margin: 0 auto; max-width: 620px; }
.hero__claim { text-wrap: balance; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.05; color: var(--paper-100); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6), 0 0 24px rgba(30, 24, 48, 0.9); margin: 4px 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* Rubric strip under the hero, like the spine of a magazine */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; padding: 10px 20px; background: linear-gradient(var(--red-500), var(--red-700)); border-bottom: 2px solid var(--ink-900); }
.strip span { font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 2px; color: var(--paper-100); }

/* Sections and paper pages */
.section { max-width: var(--content); margin: 0 auto; padding: 56px 20px 0; }
.section--split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.page {
  background: linear-gradient(var(--paper-50), var(--paper-100) 30%, var(--paper-200));
  border: 2px solid var(--ink-900); border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 32px 36px 36px;
}
.page__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.kicker { font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--red-500); margin-bottom: 6px; }
.kicker--light { color: var(--yellow-400); }
.kicker--teal { color: var(--teal-700); }

.initial::first-letter { float: left; font-family: var(--font-display); font-weight: 900; font-size: 84px; line-height: 0.82; padding: 4px 10px 0 0; color: var(--red-500); }

.byline { font-family: var(--font-label); font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; font-size: 15px; color: var(--ink-600); border-bottom: 2px dotted var(--ink-300); padding-bottom: 12px; margin-bottom: 20px; }

/* Long personal letter: one column with a comfortable line length */
.letter { max-width: 760px; }
.letter h3 { margin-top: 26px; }
.signature { font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1.1; text-transform: uppercase; color: var(--red-500); margin-top: 20px; }

.note { margin-top: 24px; padding-top: 14px; border-top: 2px dotted var(--ink-300); color: var(--ink-600); font-size: 16px; }

.rules { list-style: none; margin: 0; padding: 0; }
.rules li { padding: 10px 0; border-bottom: 2px dotted var(--ink-300); }
.rules li:last-child { border-bottom: 0; }

/* Score boxes, the 100-point rating of the game */
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.score { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--ink-900); border: 2px solid var(--ink-900); border-radius: 6px; box-shadow: var(--shadow-sm); }
.score__value { flex: none; min-width: 74px; white-space: nowrap; padding: 4px 8px; text-align: center; font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--ink-900); background: var(--paper-100); border-radius: 3px; }
.score__label { font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 1px; line-height: 1.2; text-transform: uppercase; color: var(--paper-200); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: linear-gradient(var(--paper-50), var(--paper-200)); border: 2px solid var(--ink-900); border-radius: 6px; box-shadow: var(--shadow-sm); padding: 22px 22px 24px; font-size: 17px; }
.feature h3 { margin-top: 14px; }

.tag { display: inline-block; padding: 3px 10px; font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--paper-100); border: 2px solid var(--ink-900); border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.tag--test { background: linear-gradient(var(--red-500), var(--red-700)); }
.tag--preview { background: var(--purple-600); }
.tag--report { background: var(--ink-900); }
.tag--money { background: var(--green-700); }
.tag--news { background: var(--teal-500); color: var(--ink-900); }
.tag--letters { background: var(--paper-300); color: var(--ink-900); }

/* Walkable tour of the building (js/tour.js) */
.tour { position: relative; border: 2px solid var(--ink-900); border-radius: 6px; box-shadow: var(--shadow-md); background: linear-gradient(var(--night-900), var(--night-700)); }
.tour__world { display: block; width: 100%; height: auto; border-radius: 4px; }
.tour__mark { position: absolute; z-index: 1; top: -14px; right: -10px; transform: rotate(4deg); padding: 2px 12px 1px; font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 24px; text-transform: uppercase; color: var(--paper-100); background: linear-gradient(var(--red-500), var(--red-700)); border: 2px solid var(--ink-900); border-radius: 3px; box-shadow: 0 2px 0 var(--ink-900); pointer-events: none; }
.tour__sound { position: absolute; z-index: 1; right: 12px; bottom: 12px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--ink-900); background: linear-gradient(var(--paper-100), var(--paper-300)); border: 2px solid var(--ink-900); border-radius: 6px; box-shadow: var(--shadow-sm); cursor: pointer; }
.tour__sound:hover { filter: brightness(1.06); }
.tour__sound:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 2px; }
.tour__sound[aria-pressed="true"] { background: linear-gradient(var(--yellow-400), var(--yellow-600)); }
.tour__sound-on, .tour__sound[aria-pressed="true"] .tour__sound-off { display: none; }
.tour__sound[aria-pressed="true"] .tour__sound-on { display: inline; }
.tour__card { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 32px)); padding: 18px 22px 20px; background: linear-gradient(var(--paper-50), var(--paper-200)); border: 2px solid var(--ink-900); border-radius: 10px; box-shadow: var(--shadow-md); }
.tour__card[hidden], .tour__shot[hidden] { display: none; }
.tour__title { font-size: 28px; }
.tour__body { font-size: 16px; line-height: 1.45; margin-bottom: 12px; }
.tour__shot { cursor: zoom-in; width: 100%; border: 2px solid var(--ink-900); border-radius: 3px; margin-bottom: 14px; }
.tour__rooms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tour__room { font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-900); padding: 4px 12px; background: linear-gradient(#f0d08a, #a87a2e); border: 2px solid var(--ink-900); border-radius: 3px; cursor: pointer; }
.tour__room:hover, .tour__room:focus-visible { background: linear-gradient(var(--yellow-400), var(--yellow-600)); outline: none; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery a { position: relative; display: block; background: var(--paper-100); border: 2px solid var(--ink-900); border-radius: 6px; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform 100ms; }
.gallery a:hover { transform: translateY(-2px) rotate(-0.4deg); }
.gallery img { width: 100%; border-bottom: 2px solid var(--ink-900); border-radius: 4px 4px 0 0; }
/* Red mark across the corner of every screenshot; the word comes from --mark on the body. */
.gallery a::after { content: var(--mark); position: absolute; top: 14px; right: -6px; transform: rotate(4deg); padding: 2px 12px 1px; font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 24px; text-transform: uppercase; color: var(--paper-100); background: linear-gradient(var(--red-500), var(--red-700)); border: 2px solid var(--ink-900); border-radius: 3px; box-shadow: 0 2px 0 var(--ink-900); }
.gallery span { display: block; padding: 8px 12px; font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-900); }

.lightbox { padding: 0; border: 2px solid var(--ink-900); border-radius: 6px; background: var(--ink-900); max-width: min(96vw, 1920px); cursor: zoom-out; }
.lightbox::after { content: var(--mark); position: absolute; top: 24px; right: 24px; transform: rotate(4deg); padding: 4px 20px 2px; font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 44px; text-transform: uppercase; color: var(--paper-100); background: linear-gradient(var(--red-500), var(--red-700)); border: 3px solid var(--ink-900); border-radius: 6px; box-shadow: var(--shadow-sm); }
.lightbox::backdrop { background: rgba(30, 24, 48, 0.88); }
.lightbox img { display: block; }
/* Arrows to the previous and next image of the gallery, and the position in it. */
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; padding: 0 0 4px; font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1; color: var(--ink-900); background: var(--paper-100); border: 2px solid var(--ink-900); border-radius: 50%; box-shadow: var(--shadow-sm); cursor: pointer; }
.lightbox__nav:hover { background: var(--yellow-400); }
.lightbox__nav:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 2px; }
.lightbox__nav.lightbox__close { top: 12px; right: 12px; transform: none; width: 44px; height: 44px; font-size: 36px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__count { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 3px 12px 2px; font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 1.3px; color: var(--paper-100); background: var(--night-900); border: 2px solid var(--ink-900); border-radius: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .lightbox__nav { width: 40px; height: 40px; font-size: 32px; } .lightbox__nav--prev { left: 6px; } .lightbox__nav--next { right: 6px; } }

/* Info box and contact */
.infobox { margin-top: 28px; padding: 18px 22px; background: var(--paper-300); border: 2px solid var(--ink-900); border-radius: 6px; border-left: 10px solid var(--teal-700); }
.page--contact { text-align: center; }
.mail { display: inline-block; font-family: var(--font-numeric); font-weight: 700; font-size: clamp(24px, 4.4vw, 40px); color: var(--ink-900); text-decoration: none; background: linear-gradient(transparent 55%, var(--yellow-400) 55%); padding: 0 6px; margin: 6px 0 22px; }
.mail:hover { color: var(--red-700); }

/* Footer */
.footer { max-width: var(--content); margin: 64px auto 0; padding: 28px 20px 40px; border-top: 2px dotted var(--night-500); color: var(--ink-300); font-size: 14px; text-align: center; }
.footer__disclaimer { max-width: 860px; margin: 0 auto 18px; }
.footer__links { display: flex; justify-content: center; gap: 24px; }
.footer__links a { font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; color: var(--paper-300); }
.footer__links a:hover { color: var(--yellow-400); }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 40px 20px 0; }
.legal h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 6vw, 56px); line-height: 1; margin: 0 0 24px; }
.legal h2 { font-size: 26px; margin: 28px 0 8px; }

@media (max-width: 900px) {
  .topbar__nav { display: none; }
  .topbar__lang { margin-left: auto; }
  .section--split, .page__columns, .scores { grid-template-columns: 1fr; }
  .page__columns { gap: 16px; }
  .features, .gallery { grid-template-columns: 1fr 1fr; }
  .hero__inner { padding-bottom: 110px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .topbar { padding: 0 12px; gap: 12px; }
  .topbar__brand { font-size: 21px; }
  .topbar .btn { display: none; }
  .section { padding: 40px 14px 0; }
  .page { padding: 24px 20px 26px; }
  .features, .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .btn--small { width: auto; }
  .hero__inner { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery a { transition: none; }
}
