/* ŚWIT STUDIO — the studio site. The palette is GRVL at dawn:
   a plum sky, warm peach ink, near-black ground. Square 3 px borders,
   Space Mono, dithered bands between sections. */

@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #121014;
  --deep: #1e1826;
  --plum: #3f3048;
  --plum-2: #52394d;
  --mauve: #7a5268;
  --rose: #c57f7f;
  --apricot: #f0a98f;
  --peach: #ffd4bd;
  --cream: #fff0e4;
  --ink: var(--peach);
  --muted: #d9ab9c;
  --gutter: 16px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--plum);
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, Menlo, monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* one language at a time: <span data-l="pl"> / <span data-l="en"> */
html[data-lang="en"] [data-l="pl"],
html[data-lang="pl"] [data-l="en"] { display: none !important; }

a { color: var(--peach); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

img { max-width: 100%; display: block; }
.pixel { image-rendering: pixelated; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--apricot); margin-bottom: .8em; }

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--deep) 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--night);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: 17px; }
.logo svg { width: 26px; height: 26px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; font-size: 14px; }
.nav a:hover { text-decoration: underline; }
@media (max-width: 560px) { .nav .hide-s { display: none; } }

.lang { display: flex; border: 2px solid var(--peach); }
.lang button {
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  background: transparent; color: var(--peach); border: 0; padding: 3px 8px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--peach); color: var(--night); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 22px;
  border: 3px solid var(--peach); background: var(--night); color: var(--peach);
  font: inherit; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase;
  cursor: pointer; transition: transform .08s ease;
}
.btn:hover { background: var(--peach); color: var(--night); }
.btn:active { transform: translateY(2px); }
.btn.ghost { background: transparent; }
.btn.soon { opacity: .62; cursor: default; }
.btn.soon:hover { background: var(--night); color: var(--peach); }
.btn small { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .85; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; height: min(84vh, 760px); min-height: 520px; background: var(--deep); overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.hero .copy {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-bottom: 18vh;
}
.hero h1 {
  font-size: clamp(44px, 10vw, 112px); letter-spacing: .04em; margin: 0;
  color: var(--peach); text-shadow: 0 4px 0 var(--night);
}
.hero .tag { font-size: clamp(16px, 2.4vw, 22px); color: var(--cream); margin: .4em 0 1.4em; text-shadow: 0 2px 0 var(--night); max-width: 30ch; }

/* dithered band between two colours: --a above fades into --b below
   (three 2 px-pixel rows: 75 %, 50 %, 25 % of --a), like the game's dawn sweep */
.dither {
  height: 12px;
  background:
    conic-gradient(var(--a) 0 75%, var(--b) 0) 0 0 / 4px 4px repeat-x,
    repeating-conic-gradient(var(--a) 0 25%, var(--b) 0 50%) 0 4px / 4px 4px repeat-x,
    conic-gradient(var(--a) 0 25%, var(--b) 0) 0 8px / 4px 4px repeat-x;
  background-color: var(--b);
}

/* ------------------------------------------------------------ sections */
section { padding: 72px 0; }
section.deep { background: var(--deep); }
section.night { background: var(--night); }

.grid-2 { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

/* the game card */
.game {
  border: 3px solid var(--peach); background: var(--plum);
  display: grid; gap: 0; overflow: hidden;
}
@media (min-width: 860px) { .game { grid-template-columns: 330px 1fr; } }
.game .shot { background: var(--night); display: flex; justify-content: center; align-items: center; padding: 28px 20px; }
.game .body { padding: 28px 24px 32px; }
@media (min-width: 720px) { .game .body { padding: 40px 44px; } }
.game-title { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.game-title img { width: 64px; height: 64px; border: 3px solid var(--night); }
.game-title h3 { font-size: 34px; margin: 0; }
.game-title .sub { font-size: 14px; color: var(--apricot); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.tags li { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--mauve); padding: 2px 8px; }

.phone {
  width: 100%; max-width: 270px;
  border: 3px solid var(--peach); border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 10px 10px 0; background: var(--deep);
}
.phone img { border-radius: 16px 16px 0 0; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.phone.full { border-bottom: 3px solid var(--peach); border-radius: 26px; padding: 10px; }
.phone.full img { border-radius: 16px; }

.next {
  margin-top: 28px; border: 3px dashed var(--mauve); padding: 28px 24px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.next .q { font-size: 44px; font-weight: 700; color: var(--mauve); line-height: 1; }

/* principles */
.cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 3px solid var(--plum-2); background: var(--deep); padding: 24px; }
section.deep .card { background: var(--plum); border-color: var(--mauve); }
.card .ico { width: 40px; height: 40px; margin-bottom: 14px; }

/* screenshot strip */
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.strip figure { margin: 0; flex: 0 0 auto; width: min(62vw, 230px); scroll-snap-align: start; }
.strip figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

/* lists and tables */
.feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .feat { grid-template-columns: 1fr 1fr; } }
.feat li { padding-left: 26px; position: relative; }
.feat li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; background: var(--apricot); transform: rotate(45deg); }

table.controls { border-collapse: collapse; width: 100%; max-width: 560px; }
table.controls td { padding: 10px 12px; border-bottom: 2px solid var(--plum-2); vertical-align: top; }
table.controls td:first-child { font-weight: 700; white-space: nowrap; color: var(--cream); width: 40%; }

/* long text pages (privacy, support) */
.doc { max-width: 760px; }
.doc h2 { font-size: 24px; margin-top: 1.8em; }
.doc h3 { font-size: 18px; margin-top: 1.4em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.page-head { padding: 64px 0 36px; background: var(--deep); }
.page-head h1 { font-size: clamp(32px, 6vw, 56px); }
details { border: 3px solid var(--plum-2); background: var(--deep); padding: 14px 18px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 8px; }

/* footer */
footer { background: var(--night); padding: 40px 0 48px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 14px 22px; }
footer .copy { margin-left: auto; color: var(--muted); }
@media (max-width: 640px) { footer .copy { margin-left: 0; width: 100%; } }
