/* PWNR Games — studio site. Colours and type follow marketing/brand/pwnr-games.md:
   Ink and Stock only; Stamp red lives inside the logo files and nowhere in this CSS.
   The one loud thing is the hero headline, which you can cut. Everything else stays disciplined. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #131418;
  --stock: #EDEDEA;
  --ink-soft: #2A2C32;
  --ink-line: #34363D;
  --stock-soft: #DCDCD7;
  --muted-on-stock: #5C5F66;
  --muted-on-ink: #A3A5AB;
  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--stock); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Masthead ---------- */
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: block; margin-left: -12px; }
.brand img { width: 216px; }
.masthead nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.masthead nav a {
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.masthead nav a:hover { border-bottom-color: currentColor; }
.masthead--ink { background: var(--ink); color: var(--stock); position: relative; z-index: 2; }

/* ---------- Hero: the headline is the image, and you can cut it ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--stock);
  min-height: calc(100svh - 91px);
  display: flex; align-items: stretch;
  touch-action: pan-y; /* vertical scroll stays native; horizontal drags cut */
  user-select: none; -webkit-user-select: none;
  overflow: hidden;
}
.hero__trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero__inner {
  width: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding-top: clamp(40px, 9vh, 120px); padding-bottom: clamp(32px, 6vh, 64px);
}
.hero__title {
  position: relative; margin: 0; cursor: crosshair;
  font-size: clamp(2.7rem, 8.3vw, 7.4rem);
  white-space: nowrap;
  font-weight: 860;
  font-stretch: 125%;
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.slice__base { display: block; }
.slice__half {
  position: absolute; inset: 0; visibility: hidden;
  will-change: transform, clip-path;
}
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: end;
  gap: 32px; margin-top: clamp(40px, 8vh, 96px);
  padding-top: 24px; border-top: 2px solid var(--stock);
}
.hero__hint { margin: 0; color: var(--muted-on-ink); font-size: 0.9375rem; }
.hero__lead {
  margin: 0; justify-self: end; max-width: 30em;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5;
}

/* ---------- Games ---------- */
.games { background: var(--ink); color: var(--stock); padding-bottom: clamp(64px, 9vw, 128px); }

.feature { position: relative; }
.feature__art { width: 100%; height: min(88vh, 56.25vw); min-height: 420px; object-fit: cover; object-position: 60% 45%; }
.feature::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, var(--ink) 4%, rgba(19,20,24,.72) 40%, rgba(19,20,24,0));
  pointer-events: none;
}
.feature__caption { position: absolute; left: 0; right: 0; bottom: clamp(16px, 3vw, 40px); z-index: 1; }
.feature__status {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-weight: 600; font-size: 0.9375rem;
}
.feature__status img { width: 40px; height: 40px; border-radius: 10px; }
.feature__name {
  margin: 0; font-size: clamp(3rem, 10.5vw, 10rem);
  font-weight: 860; font-stretch: 125%; line-height: 0.86; letter-spacing: -0.04em;
}

.games__body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 6vw, 80px);
}
.games__kind { margin: 0 0 18px; font-size: 1.25rem; font-weight: 600; }
.games__intro > p:not(.games__kind) { margin: 0; color: var(--stock-soft); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-block; padding: 13px 22px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid currentColor;
}
.button:hover { background: var(--ink-soft); }
.button--solid { background: var(--stock); color: var(--ink); border-color: var(--stock); }
.button--solid:hover { background: var(--stock-soft); border-color: var(--stock-soft); }

.facts { margin: 36px 0 0; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--ink-line); }
.facts dt { color: var(--muted-on-ink); font-size: 0.9375rem; }
.facts dd { margin: 0; font-weight: 600; }

.trailer { margin: 0; align-self: start; }
.trailer__play, .trailer iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
  border-radius: 10px; overflow: hidden; background: #000;
}
.trailer__play { position: relative; cursor: pointer; }
.trailer__play img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.trailer__play:hover img { opacity: .82; }
.trailer__btn {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border-radius: 50%; background: var(--stock);
}
.trailer__btn::after {
  content: ""; position: absolute; left: 36px; top: 28px;
  border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--ink);
}
.trailer figcaption { margin-top: 10px; color: var(--muted-on-ink); font-size: 0.875rem; }

/* Screenshot reel: full-bleed, sideways, snapping */
.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 880px);
  gap: clamp(12px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-top: clamp(56px, 8vw, 104px);
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 18px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-color: var(--ink-line) transparent;
}
.reel figure { margin: 0; scroll-snap-align: start; }
.reel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.reel figcaption { margin-top: 12px; max-width: 34em; color: var(--stock-soft); font-size: 0.9375rem; }

/* ---------- How we make games ---------- */
.studio { padding: clamp(72px, 10vw, 144px) 0; }
.studio__head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px);
  align-items: end; margin-bottom: clamp(40px, 6vw, 72px);
}
.studio__head h2 {
  margin: 0; font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 820; font-stretch: 115%; line-height: 1; letter-spacing: -0.025em;
}
.studio__head p { margin: 0; max-width: 32em; font-size: 1.1875rem; color: var(--muted-on-stock); }

.tenets { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.tenets li {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 5vw, 80px);
  align-items: baseline; padding: clamp(20px, 3vw, 36px) 0; border-top: 2px solid var(--ink);
}
.tenet__say {
  margin: 0; font-size: clamp(2.5rem, 7.4vw, 7rem);
  font-weight: 860; font-stretch: 125%; line-height: 0.92; letter-spacing: -0.04em;
}
.tenets li:nth-child(2) .tenet__say { font-stretch: 75%; font-weight: 800; letter-spacing: -0.02em; }
.tenets li:nth-child(3) .tenet__say { font-stretch: 100%; font-weight: 300; letter-spacing: -0.035em; }
.tenet__mean { margin: 0; max-width: 26em; font-size: 1.125rem; }

/* ---------- Contact: the address is the graphic ---------- */
.contact { background: var(--ink); color: var(--stock); padding: clamp(72px, 10vw, 144px) 0 clamp(56px, 8vw, 104px); }
.contact h2 { margin: 0 0 clamp(12px, 2vw, 24px); font-size: 1.125rem; font-weight: 600; color: var(--muted-on-ink); }
.contact__mail {
  display: inline-block; text-decoration: none;
  font-size: clamp(1.6rem, 7vw, 6.1rem);
  font-weight: 820; font-stretch: 100%; line-height: 1; letter-spacing: -0.035em;
  white-space: nowrap;
  padding-bottom: 0.08em; border-bottom: 0.06em solid var(--ink-line);
  transition: border-color .2s;
}
.contact__mail:hover { border-bottom-color: var(--stock); }
.contact__more { margin: clamp(28px, 4vw, 48px) 0 0; color: var(--muted-on-ink); }
.contact__more a { color: var(--stock); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-on-ink); font-size: 0.9375rem; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--ink-line);
}
.footer__inner img { width: 104px; margin-left: -6px; }
.footer p { margin: 0; flex: 1 1 auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { color: var(--stock); text-decoration: none; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */
.page { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.page h1 {
  margin: 0 0 8px; font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800; font-stretch: 115%; line-height: 1; letter-spacing: -0.025em;
}
.page .updated { margin: 0 0 40px; color: var(--muted-on-stock); }
.page h2 { margin: 40px 0 8px; font-size: 1.25rem; font-weight: 700; }
.page p, .page li { max-width: 40em; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .games__body, .studio__head, .tenets li { grid-template-columns: 1fr; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__lead { justify-self: start; }
  .hero__hint { order: 2; }
}
@media (max-width: 560px) {
  .brand img { width: 168px; }
  .masthead nav { gap: 16px; }
  .masthead nav a { font-size: 0.875rem; }
  .hero { min-height: 0; }
  .hero__inner { padding-top: 56px; }
  .hero__title { font-size: 11.6vw; font-stretch: 100%; line-height: 0.92; letter-spacing: -0.035em; }
  .hero__foot { margin-top: 48px; }
  .feature__art { height: 72vh; min-height: 0; object-position: 52% 50%; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .contact__mail { white-space: normal; font-size: clamp(1.6rem, 10vw, 3rem); }
}
