/* GUNS INC. website
   Colours follow the game's menus: dark panels, white Oswald capitals, the HUD yellow (UiTheme.Yellow = #FAD145).
   Fonts are served from this site (assets/fonts), no external requests. */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #12141a;
  --bg-2: #171a21;
  --panel: #1c1f27;
  --panel-2: #232731;
  --line: #2f3440;
  --text: #eceef1;
  --muted: #a9afba;
  --yellow: #fad145;
  --yellow-2: #ffe07a;
  --ink: #12141a;
  --radius: 10px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  /* the 3D print layer lines */
  --layers: repeating-linear-gradient(180deg, rgba(255,255,255,.028) 0 1px, transparent 1px 6px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--yellow-2); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: #fff;
}
h1 { font-size: clamp(1.9rem, 5.5vw, 3.8rem); }
h1, h2, h3, p, li, address, figcaption { overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 6px;
  font-family: var(--head); text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 20, 26, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav-toggle {
  display: none;
  background: transparent; color: #fff; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem;
  padding: 7px 12px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 8px 12px;
  color: #fff; text-decoration: none;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--yellow); color: #fff; }
.site-nav .nav-cta a { background: var(--yellow); color: var(--ink); border-radius: 6px; border: 0; margin-left: 8px; }
.site-nav .nav-cta a:hover { background: var(--yellow-2); }

@media (max-width: 820px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; }
  .js .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .js .site-nav .nav-cta a { margin: 12px 0 0; text-align: center; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav ul { gap: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem;
  text-decoration: none; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-2); color: var(--ink); }
.btn-ghost { background: rgba(18,20,26,.5); color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn[aria-disabled="true"] { background: var(--panel-2); color: var(--muted); border-color: var(--line); cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- eyebrow with printed layers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem;
  color: var(--yellow); margin: 0 0 12px;
}
.eyebrow::before {
  content: ""; width: 14px; height: 18px; flex: none;
  background:
    linear-gradient(var(--yellow), var(--yellow)) 0 100% / 100% 4px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 0 calc(100% - 7px) / 100% 4px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 0 calc(100% - 14px) / 60% 4px no-repeat;
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    var(--layers),
    linear-gradient(90deg, rgba(18,20,26,.92) 0%, rgba(18,20,26,.72) 45%, rgba(18,20,26,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18,20,26,0) 30%);
}
.hero-logo { width: min(640px, 100%); margin: 0 0 28px; }
.hero-logo img { width: 100%; }
.hero-rule { width: 120px; height: 5px; background: var(--yellow); border-radius: 2px; margin: 0 0 24px; }
.hero .pitch { font-size: clamp(1.15rem, 2.3vw, 1.45rem); max-width: 620px; color: #fff; margin-bottom: 28px; }
.hero .status {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--muted);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(250,209,69,.18); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-alt { background: var(--bg-2); background-image: var(--layers); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.lead { font-size: 1.15rem; color: #fff; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.shot-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.shot-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.note { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--yellow); padding: 4px 0 4px 14px; margin-top: 20px; }

/* ---------- progression strip ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; margin-top: 8px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.step-body { padding: 16px 18px 20px; }
.step h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.step h3::before { counter-increment: step; content: "0" counter(step); color: var(--yellow); font-size: 1rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
/* the last card spans the whole row, picture beside the text */
.feature.feature-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; }
.feature.feature-wide img { height: 100%; aspect-ratio: 21 / 9; }
.feature.feature-wide .feature-body { border-top: 0; border-left: 3px solid var(--yellow); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 960px) { .feature.feature-wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feature.feature-wide { display: flex; } .feature.feature-wide .feature-body { border-left: 0; border-top: 3px solid var(--yellow); } }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.feature img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.feature-body { padding: 20px 22px 24px; border-top: 3px solid var(--yellow); flex: 1; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease, opacity .2s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr; gap: 8px; } .gallery .wide { grid-column: span 2; grid-row: auto; } }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 9, 12, .94); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 140px); width: auto; border-radius: 6px; }
.lightbox figcaption { color: var(--muted); margin-top: 12px; text-align: center; font-size: .95rem; max-width: 900px; }
.lb-btn {
  position: absolute; background: rgba(28,31,39,.9); color: #fff; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--head); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em;
  min-width: 48px; min-height: 48px; cursor: pointer;
}
.lb-btn:hover { background: var(--yellow); color: var(--ink); }
.lb-close { top: 12px; right: 12px; padding: 0 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- steam ---------- */
.steam-box {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: var(--panel); background-image: var(--layers);
  border: 1px solid var(--line); border-left: 6px solid var(--yellow); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.steam-box p { color: var(--muted); margin: 0; }
.steam-slot { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.steam-slot small { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .steam-box { grid-template-columns: 1fr; } }

/* ---------- devlog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.post-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color .2s, transform .2s; }
.post-card:hover, .post-card:focus-within { border-color: var(--yellow); transform: translateY(-2px); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.3rem; }
.post-card h3 a { color: #fff; text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.post-date { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--yellow); }
.more-link { margin-top: 28px; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.post-row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: border-color .2s; }
.post-row:hover, .post-row:focus-within { border-color: var(--yellow); }
.post-row img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-row .post-card-body { padding: 18px 20px 18px 0; }
.post-row h2 { font-size: 1.5rem; margin: 0; }
.post-row h2 a { color: #fff; text-decoration: none; }
.post-row h2 a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 680px) { .post-row { grid-template-columns: 1fr; gap: 0; } .post-row .post-card-body { padding: 16px 18px 20px; } }

/* ---------- article ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 32px; background-image: var(--layers); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 720px; }
.crumbs { font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.article { padding: 40px 0 72px; }
.article p, .article li { font-size: 1.06rem; }
.article h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article figure { margin: 32px 0; }
.article figure a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article figure img { width: 100%; }
.article figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .figure-pair { grid-template-columns: 1fr; } }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-decoration: none; color: #fff; }
.post-nav a:hover { border-color: var(--yellow); }
.post-nav span { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--yellow); }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; text-align: left; } }

/* ---------- legal ---------- */
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal address { font-style: normal; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 1em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.lang-switch { display: inline-flex; gap: 8px; margin: 8px 0 0; flex-wrap: wrap; }
.lang-switch a { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: #fff; }
.lang-switch a:hover { border-color: var(--yellow); }
.divider { border: 0; height: 1px; background: var(--line); margin: 56px 0; }
.updated { color: var(--muted); font-size: .92rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); background-image: var(--layers); padding: 40px 0 32px; font-size: .95rem; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 8px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.site-footer nav a { color: #fff; text-decoration: none; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; }
.site-footer nav a:hover { color: var(--yellow); }
.site-footer .fine { color: var(--muted); margin: 20px 0 0; font-size: .88rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; background-image: var(--layers); }
.notfound .code { font-family: var(--head); font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: var(--yellow); margin: 0; }

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