@charset "UTF-8";
/* ============================================================================
 * HEXZEN - PRESS KIT · STYLES
 * ============================================================================
 * Design borrowed from Milou (github.com/Tsukumogami-Software/milou): a light,
 * monospace, two-column press kit with a sticky sidebar nav and a factsheet
 * grid. Adapted for Hexzen: self-hosted fonts (no CDN), AA-contrast colours,
 * full logical-property RTL so the Arabic build mirrors for free, and styles
 * for the widgets + one-click .zip downloads.
 *
 * Fully static (no JS). Fonts are self-hosted (see @font-face below); the only
 * external embed is the optional Steam widget iframe in the Widgets section.
 * ==========================================================================*/

/* ---- Self-hosted fonts (OFL - see fonts/LICENSES.md) -------------------- */
/* JetBrains Mono: body + headings for every left-to-right language. */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic-400.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-700.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext-700.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic-700.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* Vazirmatn: the Arabic (RTL) build - a real Arabic face, plus Latin for the
 * URLs / numbers / brand that appear inside Arabic text. */
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/vazirmatn-arabic-400.woff2) format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/vazirmatn-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/vazirmatn-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/vazirmatn-arabic-700.woff2) format("woff2");
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/vazirmatn-latin-700.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/vazirmatn-latin-ext-700.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---- Design tokens ----------------------------------------------------- */
:root {
  --ink: #262626;               /* body text (AA on white) */
  --ink-strong: #141414;        /* headings */
  --ink-dim: #5c5c5c;           /* captions, footnotes */
  --bg: #ffffff;
  --rule: #dcdcdc;              /* section separators */
  --accent: #215f9a;           /* links / actions - AA on white */
  --accent-strong: #17456f;    /* hover / active */
  --hover-bg: #f4f6f8;
  --sel-bg: #3d7fc4;
  --radius: 4px;
  --maxw: 1180px;
  --font-body: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}
/* Arabic: a proper Arabic face for both headings and body. */
html[dir="rtl"] {
  --font-body: "Vazirmatn", "JetBrains Mono", ui-monospace, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-block: 20px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { color: #fff; background: var(--sel-bg); }

img { max-width: 100%; height: auto; }
p { margin-block: 0.9em; }
p:last-child { margin-block-end: 0; }

h1, h2, h3 { color: var(--ink-strong); font-family: var(--font-body); font-weight: 400; line-height: 1.2; }
h2 { margin-block: 1.2em 0.7em; font-size: 1.7rem; }
h3 { margin-block: 1em 0.4em; font-size: 1.05rem; font-weight: 700; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

ul, ol { margin-block: 0.9em; padding-inline-start: 1.8em; }
ul { list-style-type: square; }
li { margin-block-end: 0.35em; }
dl { margin: 0; }
dt { font-weight: 700; color: var(--ink-strong); }
dd { margin: 0; }

/* ---- Skip link + focus (never remove outlines) ------------------------- */
.skip-link {
  position: fixed; inset-block-start: -120px; inset-inline-start: 12px; z-index: 50;
  background: var(--ink-strong); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; transition: inset-block-start 0.18s ease;
}
.skip-link:focus { inset-block-start: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout: two columns, sticky sidebar (Milou breakpoints) ----------- */
/* Base = a flex row: sidebar and content sit side by side and stay that way
 * down to 600px (like Milou), instead of stacking early. */
.page {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 25px;
  display: flex;
  justify-content: space-between;
  gap: 2em;
}
.page-nav { flex: 0 1 auto; }
.page-wrapper { min-width: 0; flex: 0 1 auto; }

/* Phones: content first, nav (table of contents) after it - Milou's
 * column-reverse. The title is redundant here, so it's hidden. */
@media (max-width: 600px) {
  .page { flex-direction: column-reverse; gap: 1.5em; padding-inline: 18px; }
  .page-nav, .page-wrapper { flex: 1 1 auto; }
  .nav__title { display: none; }
  .nav__list { margin-block-start: 0.6em; }
}

/* Desktop: sticky sidebar at 25% / content at 75%; factsheet becomes a grid. */
@media (min-width: 800px) {
  .page-nav {
    min-width: 25%; max-width: 25%;
    position: sticky; inset-block-start: 20px; align-self: flex-start;
  }
  .page-wrapper { max-width: 75%; display: flex; flex-direction: column; }
  .factsheet dl { display: grid; gap: 0.6em 1.5em; grid-template-columns: minmax(9em, 12em) 1fr; }
}

/* ---- Sidebar nav ------------------------------------------------------- */
.nav__title { margin: 0; font-size: 2.2rem; line-height: 1.05; }
.nav__title a { color: var(--ink-strong); }
.nav__title a:hover { text-decoration: none; }
.nav__subtitle { margin-block: 0.4em 0; color: var(--accent); }
.nav__subtitle a { color: var(--accent); }

.nav__list { margin-block: .7em 0; padding: 0; list-style: none; }
.nav__item {
  display: block; padding: 0.4rem 0.6rem; color: var(--ink); border-radius: .4rem;
}
.nav__item:hover { color: var(--ink-strong); background: var(--hover-bg); text-decoration: none; }
.nav__item[aria-current="true"] { color: var(--ink-strong); background: var(--hover-bg); font-weight: 700; }

/* Language switcher inside the sidebar */
.langbar { margin-block: 1.1em 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 0.82rem; }
.langbar a { color: var(--ink-dim); padding: 2px 7px; border-radius: 5px; }
.langbar a:hover { color: var(--ink-strong); background: var(--hover-bg); text-decoration: none; }
.langbar a[aria-current="page"] { color: var(--ink-strong); background: var(--hover-bg);
  border: 1px solid var(--rule); }

/* ---- Header banner (key art) ------------------------------------------- */
.page-header { margin-block-end: 0.5em; }
.page-header img { display: block; width: 100%; border-radius: var(--radius); }
.masthead-note { color: var(--ink-dim); font-size: 0.85rem; margin-block: 0.6em 0; }

/* ---- Section blocks ---------------------------------------------------- */
.block { margin-block-end: 1.2em; padding-block-end: 1.2em; border-block-end: 1px solid var(--rule); }
.block:last-child { border-block-end: 0; }
main strong { color: var(--ink-strong); }

/* ---- Factsheet --------------------------------------------------------- */
.factsheet dl { margin: 0; }
.factsheet dt { margin-block-start: 0.6em; }
.factsheet dt:first-child { margin-block-start: 0; }
.factsheet dd { margin: 0 0 0.2em; }
.factsheet ul { list-style: none; margin: 0; padding: 0; }
.factsheet li { margin: 0; }
@media (min-width: 800px) {
  .factsheet dt { margin-block-start: 0; }
}

/* ---- Images gallery (masonry columns, like Milou) ---------------------- */
.gallery { margin-block-start: 1.2em; padding: 0; list-style: none; column-gap: 18px; column-count: 1; }
@media (min-width: 800px) { .gallery { column-count: 2; } }
.gallery > li { display: inline-block; width: 100%; margin-block-end: 18px; break-inside: avoid; }
.gallery figure { margin: 0; }
.gallery a { display: block; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.gallery img { display: block; width: 100%; }
.gallery figcaption { color: var(--ink-dim); font-size: 0.85rem; margin-block-start: 0.5em; }

/* ---- Downloads (key art / logo) grid ----------------------------------- */
.downloads ul { margin-block-start: 1em; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.downloads figure { margin: 0; }
.downloads a.thumb { display: block; border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; background: #f6f7f9; }
.downloads img { display: block; width: 100%; }
.downloads figcaption { color: var(--ink-dim); font-size: 0.85rem; margin-block-start: 0.5em; }

/* ---- Video player ------------------------------------------------------ */
.clip { margin-block-end: 18px; }
.clip video, .clip iframe { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); background: #000; aspect-ratio: 16/9; display: block; }
.clip-desc { color: var(--ink-dim); font-size: 0.9rem; }

/* ---- Widgets ----------------------------------------------------------- */
.widget { width: 100%; border: 0; }
.widget--steam { height: 190px; }
.widget-note { color: var(--ink-dim); font-size: 0.85rem; }

/* ---- Buttons: .zip downloads + store links ----------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 0.4em 0.2em; }
.button {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.6em 1.05em; border: 1px solid var(--accent); border-radius: var(--radius);
  color: var(--accent); background: var(--bg); font-weight: 700; text-decoration: none;
}
.button:hover { color: #fff; background: var(--accent); text-decoration: none; }
.button:active { background: var(--accent-strong); border-color: var(--accent-strong); }
.button svg { width: 1.05em; height: 1.05em; flex: none; }
.button--ghost { border-color: var(--rule); color: var(--ink); font-weight: 400; }
.button--ghost:hover { background: var(--ink-strong); border-color: var(--ink-strong); color: #fff; }

/* ---- Quotes / awards --------------------------------------------------- */
.quote { list-style: none; }
.quote__content { margin: 0; }
.quote__content::before { content: open-quote; }
.quote__content::after { content: close-quote; }
.quote__author { display: block; color: var(--ink-dim); }
.quote__author::before { content: "- "; }

/* ---- Contact ----------------------------------------------------------- */
.contact dt { margin-block-start: 0.6em; }
.contact dt:first-child { margin-block-start: 0; }
.contact dd { margin: 0 0 0.2em; }

/* ---- Footer ------------------------------------------------------------ */
footer { max-width: var(--maxw); margin: 2.5em auto 0; padding: 1.2em 25px 0;
  border-block-start: 1px solid var(--rule); color: var(--ink-dim); font-size: 0.85rem; }
footer a { color: var(--accent); }

/* ---- Sidebar Button & Video Download Link ---- */
.nav__btn-container { margin-block: 0.8em; }
.nav__btn-container .button { display: flex; justify-content: center; }
@media (max-width: 600px) {
  .nav__btn-container { display: none; }
}
.clip-download { font-size: 0.85rem; margin-block: 0.4em 0.8em; color: var(--ink-dim); }
.clip-download a { color: var(--accent); font-weight: 700; text-decoration: none; }
.clip-download a:hover { text-decoration: underline; }

/* ---- Preferences ------------------------------------------------------- */
@media (prefers-contrast: more) {
  :root { --ink: #000; --ink-dim: #333; --rule: #767676; --accent: #0b3d73; --accent-strong: #08294d; }
  a { text-decoration: underline; text-decoration-thickness: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
