/* Mighty Vitosha Games - the website's one stylesheet: the game's paper, ink and brick red, its two typefaces. */

@font-face {
  font-family: "Luckiest Guy";
  src: url("/fonts/LuckiestGuy.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Kaushan Script";
  src: url("/fonts/KaushanScript.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f4ead2;
  --paper: #ece0c2;
  --paper-edge: #d9c8a0;
  --ink: #1f140d;
  --ink-soft: rgba(31, 20, 13, 0.74);
  --ink-faint: rgba(31, 20, 13, 0.14);
  --brick: #992b1f;
  --brick-dark: #7a2018;
  --trunk: #2a1a11;
  --trunk-2: #3b261a;
  --gold: #d1a457;
  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --wide: 1140px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 18px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }

.wrap { width: min(var(--wide), 100% - 32px); margin-inline: auto; }

/* ---- the bar on top ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(42, 26, 17, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #120b07;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; }
.brand:hover { color: #fff; }
.brand svg { width: 46px; height: 30px; flex: none; }
.brand span { font: 20px/1 var(--display); letter-spacing: 0.04em; padding-top: 4px; }
.nav nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a {
  color: var(--cream); text-decoration: none; font: 15px/1 var(--display); letter-spacing: 0.06em;
  padding: 10px 12px 8px; border-radius: 8px;
}
.nav nav a:hover, .nav nav a[aria-current="page"] { background: rgba(244, 234, 210, 0.12); color: #fff; }

/* ---- buttons: the game's tickets ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 18px/1 var(--display); letter-spacing: 0.05em; text-decoration: none;
  padding: 16px 26px 13px; border-radius: 10px; border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-red { background: var(--brick); color: var(--cream); }
.btn-red:hover { color: #fff; }
.btn-paper { background: var(--cream); color: var(--ink); }
.btn-paper:hover { color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fine { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; }
.mail { font-size: 17px; margin: 14px 0 0; color: var(--ink-soft); }

/* ---- headings ---- */
h1, h2, h3, .brand span, .nav nav a, .btn, .tags li, .route li, .eyebrow, .num, .cat-card strong {
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--display); font-weight: normal; letter-spacing: 0.02em; line-height: 1.05; margin: 0 0 0.4em; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(32px, 4.6vw, 48px); }
h3 { font-size: 26px; }
.eyebrow { font: 16px/1 var(--display); letter-spacing: 0.14em; color: var(--brick); margin: 0 0 14px; text-transform: uppercase; }
.script { font: clamp(24px, 3vw, 32px)/1.25 var(--script); color: var(--brick); margin: 0 0 16px; }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--ink-soft); max-width: 40em; }

section { padding: clamp(56px, 8vw, 96px) 0; }
.band { background: var(--paper); border-block: 1px solid var(--paper-edge); }
.dark { background: var(--trunk); color: var(--cream); }
.dark .lead, .dark .fine { color: rgba(244, 234, 210, 0.78); }
.dark .script, .dark .eyebrow { color: var(--gold); }
.center { text-align: center; }
.center .lead, .center .actions { margin-inline: auto; justify-content: center; }

/* ---- the studio's home ---- */
.studio-hero {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(209, 164, 87, 0.18), transparent 60%),
    linear-gradient(180deg, var(--trunk-2), var(--trunk));
  color: var(--cream);
  padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 9vw, 112px);
  overflow: hidden;
}
.studio-hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.studio-hero .lead { color: rgba(244, 234, 210, 0.82); }
.studio-hero .mark { width: 100%; max-width: 380px; justify-self: center; opacity: 0.95; }

.game-card {
  display: grid; grid-template-columns: 1fr;
  background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink); overflow: hidden;
}
.game-card > a { display: block; background: var(--trunk); }
.game-card > a img { width: 100%; }
.game-card .body { padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 12px 48px; align-items: center; }
.game-card .body .side { display: grid; gap: 14px; }
.game-card .body p { margin: 0 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.tags li { font: 13px/1 var(--display); letter-spacing: 0.08em; padding: 8px 10px 6px; border: 2px solid var(--ink); border-radius: 999px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

/* ---- the game's page ---- */
.game-hero {
  position: relative; min-height: min(86vh, 820px);
  display: grid; align-items: end;
  background: url("/img/quay.webp") center 35% / cover no-repeat, var(--trunk);
  overflow: hidden; isolation: isolate;
}
.game-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 12, 8, 0) 35%, rgba(20, 12, 8, 0.55) 72%, rgba(20, 12, 8, 0.85) 100%);
}
.game-hero .wrap { position: relative; padding: 40px 0 56px; display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: end; gap: 24px; }
.game-hero .cat { width: clamp(180px, 24vw, 330px); justify-self: center; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35)); }
.game-hero .pitch { color: var(--cream); text-align: center; }
.game-hero .logo { width: min(560px, 100%); margin: 0 auto 6px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45)); }
.game-hero .script { color: var(--cream); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.game-hero .actions { justify-content: center; }
.game-hero .fine { color: rgba(244, 234, 210, 0.85); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }

.video {
  border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 8px 0 var(--ink); aspect-ratio: 16 / 9;
}
.video video { width: 100%; height: 100%; object-fit: cover; }

.shot { border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 0 var(--ink); background: var(--trunk); }
.shot img { width: 100%; height: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.feature {
  background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px 24px 22px;
  box-shadow: 0 5px 0 var(--ink);
}
.feature h3 { font-size: 22px; margin-bottom: 10px; }
.feature p { margin: 0; font-size: 17px; color: var(--ink-soft); }
.feature .num { font: 15px/1 var(--display); color: var(--brick); letter-spacing: 0.12em; display: block; margin-bottom: 12px; }

.route { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; list-style: none; }
.route li {
  font: 14px/1 var(--display); letter-spacing: 0.06em; padding: 9px 12px 7px; border-radius: 8px;
  background: var(--trunk); color: var(--cream);
}
.route li.us { background: var(--brick); }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; align-items: start; }
.cat-card { text-align: center; }
.cat-card img { height: clamp(150px, 19vw, 230px); width: auto; margin: 0 auto 12px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)); }
.cat-card strong { display: block; font: 20px/1 var(--display); letter-spacing: 0.05em; padding-top: 4px; }
.cat-card span { display: block; font: 18px/1.3 var(--script); color: var(--gold); margin-top: 6px; }
.cat-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: rgba(244, 234, 210, 0.75); }

.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; transform: rotate(-1.5deg); }
.stamps img { width: 100%; height: auto; filter: drop-shadow(0 5px 6px rgba(31, 20, 13, 0.3)); }
.stamps img:nth-child(2n) { transform: rotate(3deg); }
.stamps img:nth-child(3n) { transform: rotate(-2deg); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.gallery a { display: block; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 0 var(--ink); transition: transform 0.15s ease; }
.gallery a:hover { transform: translateY(-3px); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.cta { text-align: center; }
.cta .actions { justify-content: center; }
.dark a:not(.btn) { color: var(--gold); }
.cta img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; border: 3px solid #120b07; }

/* ---- the foot ---- */
.foot { background: #160e09; color: rgba(244, 234, 210, 0.72); padding: 44px 0 36px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; align-items: center; }
.foot a { color: var(--cream); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot .brand span { font-size: 16px; }

/* ---- the page that was not found ---- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 16px; }
.lost img { width: 200px; margin: 0 auto 18px; }

@media (max-width: 900px) {
  .studio-hero .wrap, .game-card, .game-card .body, .two { grid-template-columns: 1fr; }
  .studio-hero .mark { max-width: 240px; order: -1; justify-self: start; }
  .features { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .game-hero .wrap { grid-template-columns: 1fr; }
  .game-hero .cat { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav .brand span { font-size: 16px; white-space: nowrap; }
  .nav nav { display: none; }
  .features { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .game-hero { min-height: 640px; }
  .game-hero .logo { width: min(300px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery a { transition: none; }
}
