/* Baru — site styles. Dark, quiet, cinematic. No external fonts or libraries. */

/* Kurdish words only: a 5 KB subset of Vazirmatn (SIL OFL 1.1, see fonts/OFL.txt) */
@font-face {
  font-family: "Vazirmatn Kurdish";
  src: url("../fonts/vazirmatn-kurdish-subset.woff") format("woff");
  font-display: swap;
  unicode-range: U+0600-06FF, U+0020;
}
[lang="ckb"] { font-family: "Vazirmatn Kurdish", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }

:root {
  --soot: #131211;
  --night: #0c0b0a;
  --panel: #181614;
  --rule: #2b2724;
  --lime: #e7e0d3;      /* limestone: primary text */
  --smoke: #8d877d;     /* secondary text */
  --ochre: #a9864f;     /* the year ring: studio accent */
  --rust: #b0654a;      /* the game's single warm note */
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; color-scheme: dark; }
body {
  margin: 0;
  background: var(--soot);
  color: var(--lime);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-decoration-color: var(--ochre); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--lime); color: var(--soot); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* ---- type ---- */
h1, h2, h3, .eyebrow, nav a, .btn, .meta {
  font-family: var(--sans);
  font-weight: 400;
}
h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; margin: 0 0 .6em; font-weight: 300; }
h2 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; margin: 0 0 .9em; font-weight: 300; }
h3 { font-size: 17px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .5em; }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--smoke); margin: 0 0 14px; }
.lede { font-size: 1.12em; color: var(--lime); max-width: 38em; }
p { margin: 0 0 1.1em; max-width: 40em; }
.muted { color: var(--smoke); }
.meta { font-size: 13px; letter-spacing: .1em; color: var(--smoke); text-transform: uppercase; }

/* ---- layout ---- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 9vw, 112px) 0; }
section + section { border-top: 1px solid var(--rule); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(19, 18, 17, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand img { height: 36px; width: auto; }
nav ul { list-style: none; display: flex; gap: clamp(16px, 3vw, 36px); margin: 0; padding: 0; }
nav a { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--smoke); padding: 8px 0; }
nav a[aria-current="page"] { color: var(--lime); }
nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ochre); }
.menu-btn { display: none; background: none; border: 1px solid var(--rule); color: var(--lime); font: 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 0 14px; min-height: 44px; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: transform 160ms var(--ease-out), border-color 160ms ease; }
.menu-btn:active { transform: scale(.97); }
.menu-btn[aria-expanded="true"] { border-color: var(--ochre); }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 820px);
  min-height: min(88svh, 820px);
  display: grid; place-items: center; text-align: center;
  padding: 96px 0 72px;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(141, 135, 125, .10), transparent 60%),
    linear-gradient(180deg, #0c0b0a 0%, #131211 100%);
  border-bottom: 1px solid var(--rule);
}
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,10,.55) 0%, rgba(12,11,10,.35) 45%, rgba(19,18,17,1) 100%); }
.hero .inner { position: relative; width: 100%; }
.hero .title { width: min(900px, 92vw); margin: 0 auto 28px; }
.hero .tag { font-family: var(--sans); letter-spacing: .32em; text-transform: uppercase; font-size: 12px; color: var(--smoke); margin: 0 auto 34px; max-width: none; }

/* ---- studio hero (home) ---- */
.hero.studio { min-height: min(80vh, 760px); min-height: min(80svh, 760px); }
.hero.studio .logo { width: min(520px, 82vw); margin: 0 auto 26px; }
.hero.studio .lede { margin: 0 auto 32px; color: var(--lime); text-align: center; }

/* ---- featured game band ---- */
.feature { position: relative; overflow: hidden; text-align: center; padding: clamp(72px, 11vw, 140px) 0; }
.feature .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.feature .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,18,17,1) 0%, rgba(12,11,10,.45) 30%, rgba(12,11,10,.55) 70%, rgba(19,18,17,1) 100%); }
.feature .inner { position: relative; }
.feature .eyebrow { margin-left: auto; margin-right: auto; }
.feature .title { width: min(860px, 92vw); margin: 0 auto 22px; }
.feature .note { font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--smoke); margin: 0 auto 30px; max-width: none; }

/* ---- game cards ---- */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game { background: var(--panel); border: 1px solid var(--rule); display: flex; flex-direction: column; text-decoration: none; color: var(--lime); }
.game .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); display: grid; place-items: center; }
.game .thumb img { width: 100%; height: 100%; object-fit: cover; }
.game .body { padding: 20px 22px 24px; }
.game h3 { margin: 6px 0 8px; }
.game p { font-size: .95em; color: var(--smoke); margin: 0; }
.game.tba { border-style: dashed; cursor: default; }
.games.pair { grid-template-columns: 1fr 1fr; }
.game.tba.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 220px 1fr; align-items: center; }
.game.tba.wide .thumb { aspect-ratio: auto; height: 100%; min-height: 120px; }
.game.tba .thumb img { width: 64px; height: auto; opacity: .25; }
.game.featured { grid-column: span 3; display: grid; grid-template-columns: 1.4fr 1fr; }
.game.featured .thumb { aspect-ratio: auto; min-height: 100%; position: relative; }
.game.featured .thumb .logo-over { position: absolute; inset: auto 6% 10% 6%; width: 88%; height: auto; object-fit: contain; }
.game.featured .body { padding: clamp(24px, 4vw, 44px); align-self: center; }

/* ---- buttons ---- */
.btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; padding: 14px 22px; border: 1px solid var(--lime); color: var(--soot); background: var(--lime); text-align: center; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--lime); border-color: #4a443e; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---- media slots ---- */
.frame { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--rule); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .soon {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--smoke);
  background: radial-gradient(90% 80% at 50% 110%, rgba(169,134,79,.10), transparent 60%);
}
.frame img + .soon { background: rgba(12, 11, 10, .55); color: var(--lime); }
.caption { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; color: var(--smoke); margin-top: 10px; }

/* ---- memorial ---- */
.memorial { text-align: center; background: var(--night); }
.memorial p { margin-left: auto; margin-right: auto; }
.memorial .date { font-family: var(--sans); letter-spacing: .4em; font-size: 14px; color: var(--lime); margin: 0 auto 28px; padding-left: .4em; }
.marks { height: 14px; max-width: 760px; margin: 0 auto 28px; opacity: .8;
  background:
    repeating-linear-gradient(90deg, var(--smoke) 0 1px, transparent 1px 3px) 0 0 / 100% 2.6px no-repeat,
    repeating-linear-gradient(90deg, var(--smoke) 0 1px, transparent 1px 3px) 1px 3.9px / 100% 2.6px no-repeat,
    repeating-linear-gradient(90deg, var(--smoke) 0 1px, transparent 1px 3px) 0 7.8px / 100% 2.6px no-repeat,
    repeating-linear-gradient(90deg, var(--smoke) 0 1px, transparent 1px 3px) 1px 11.7px / 100% 2.6px no-repeat; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.legend { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; max-width: 760px; margin: 0 auto; text-align: left; }
.legend dt { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.legend dd { margin: 0; color: var(--smoke); }

/* ---- BARU acrostic (about) ---- */
.acrostic { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 760px; border-top: 1px solid var(--rule); }
.acrostic li { padding: 18px 16px 6px 0; display: flex; flex-direction: column; gap: 4px; }
.acrostic .k { font-family: var(--sans); font-size: 18px; letter-spacing: .04em; color: var(--smoke); }
.acrostic .k b { font-weight: 400; font-size: 34px; letter-spacing: 0; color: var(--lime); margin-right: 1px; }
.acrostic .e { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ochre); }
@media (max-width: 560px) { .acrostic { grid-template-columns: 1fr 1fr; } }

/* ---- cards (devlog) ---- */
.card { background: var(--panel); border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; }
.card h3 { margin-top: 6px; }
.card p { font-size: .95em; color: var(--smoke); }
.card a.more { margin-top: auto; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--lime); }
article.post { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--rule); }
article.post:first-of-type { border-top: 0; }

/* ---- post pages ---- */
.post-page { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.post-page h1 { margin-top: 10px; }
.post-page .meta a { color: var(--smoke); }
.pager { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 56px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; letter-spacing: .08em; }
.pager a { color: var(--smoke); text-decoration: none; }

/* ---- newsletter ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.nl-form input { flex: 1 1 240px; background: var(--night); border: 1px solid #4a443e; color: var(--lime); font: 16px var(--sans); padding: 13px 14px; }
.nl-form input:focus { outline: 2px solid var(--ochre); outline-offset: 1px; }

/* ---- header call to action (when a store link exists) ---- */
nav a.nav-cta { color: var(--soot); padding: 10px 14px; box-shadow: none; }

/* ---- content note ---- */
.content-note { border: 1px solid var(--rule); border-left: 3px solid var(--rust); background: var(--panel); padding: 16px 20px; font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--smoke); max-width: 760px; margin: 0 auto; text-align: left; }
.content-note strong { color: var(--lime); font-weight: 600; letter-spacing: .04em; }

/* ---- FAQ ---- */
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-family: var(--sans); font-size: 15px; letter-spacing: .06em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ochre); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--smoke); }

/* ---- media + press ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { display: block; border: 1px solid var(--rule); aspect-ratio: 16 / 9; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease; }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.download { display: block; background: var(--panel); border: 1px solid var(--rule); padding: 18px 20px; text-decoration: none; color: var(--lime); touch-action: manipulation; transition: transform 160ms var(--ease-out), border-color 160ms ease; }
.download:active, .game:not(.tba):active { transform: scale(.985); }
.game { transition: transform 160ms var(--ease-out), border-color 160ms ease; }
.download .size { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: var(--smoke); margin-top: 4px; }
.facts { width: 100%; border-collapse: collapse; font-size: .95em; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 0; border-top: 1px solid var(--rule); }
.facts th { font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); width: 34%; padding-right: 16px; }
.tbd { color: var(--smoke); font-style: italic; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 40px; font-family: var(--sans); font-size: 13px; color: var(--smoke); }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.site-footer img { width: 54px; }
.site-footer .tagline { letter-spacing: .28em; text-transform: uppercase; font-size: 11px; }
.site-footer ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; flex-wrap: wrap; }
.site-footer a { color: var(--smoke); text-decoration: none; }
.site-footer .social { display: block; margin-top: 22px; }
.site-footer .social ul { gap: 18px; }

/* ---- small screens ---- */
@media (max-width: 860px) {
  .grid-2, .grid-3, .games, .games.pair { grid-template-columns: 1fr; }
  .game.featured { grid-column: auto; grid-template-columns: 1fr; }
  .game.featured .thumb { aspect-ratio: 16 / 9; }
  .game.tba.wide { grid-template-columns: 1fr; }
  .game.tba.wide .thumb { min-height: 0; aspect-ratio: 16 / 9; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .facts th { width: 40%; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 720px) {
  .menu-btn { display: inline-block; }
  nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--soot); border-bottom: 1px solid var(--rule); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  nav a { display: block; padding: 14px 0; border-top: 1px solid var(--rule); }
  .brand img { height: 30px; }
  .legend { grid-template-columns: 1fr; gap: 2px 0; }
  .legend dd { margin-bottom: 12px; }
}

/* ---- studio motto ---- */
.motto { font-family: var(--sans); font-size: clamp(13px, 1.2vw, 16px); letter-spacing: .42em; text-transform: uppercase; color: var(--lime); margin: -6px auto 22px; max-width: none; text-align: center; padding-left: .42em; }

.memory-logo, .memorial-logo { width: min(760px, 100%); margin: 8px auto 30px; }

/* About: founder note */
.founder-note { text-align: center; }
.founder-note blockquote { margin: 0 auto; max-width: 34em; }
.founder-note blockquote p { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.5; font-style: italic; color: var(--lime); margin: 0 auto; max-width: none; }
.founder-note .eyebrow { max-width: none; margin-left: auto; margin-right: auto; text-align: center; }

.nw { white-space: nowrap; }
.hero, .feature { grid-template-columns: minmax(0, 1fr); }

/* ---- wallpaper download buttons ---- */
.btn.small { font-size: 11px; letter-spacing: .16em; padding: 11px 14px; }
.wall-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
@media (max-width: 560px) { .wall-links .btn { flex: 1 1 140px; } }

/* ---- hover only where a real pointer can hover (no sticky hover on phones) ---- */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: #fff; }
  nav a:hover { color: var(--lime); }
  .game:not(.tba):hover { border-color: #4a443e; color: var(--lime); }
  .btn:hover { background: #fff; color: var(--soot); }
  .btn.ghost:hover { background: transparent; border-color: var(--lime); color: #fff; }
  nav a.nav-cta:hover { color: var(--soot); }
  .pager a:hover { color: var(--lime); }
  .gallery a:hover img { opacity: .85; }
  .download:hover { border-color: #4a443e; color: #fff; }
  .site-footer a:hover { color: var(--lime); }
}

/* ---- menu opens with a short fade, not a jump ---- */
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 720px) {
  nav.open { animation: menu-in 200ms var(--ease-out); }
}

/* ---- landscape phones with a notch ---- */
@supports (padding: max(0px)) {
  .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .site-footer { padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
}

/* ---- phones ---- */
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .hero { padding: 64px 0 56px; }
  .hero.studio { min-height: 0; }
  .hero.studio .logo { width: min(300px, 72vw); margin-bottom: 20px; }
  .motto { letter-spacing: .32em; padding-left: .32em; font-size: 13px; }
  .hero .tag, .feature .note { letter-spacing: .2em; line-height: 1.9; }
  .feature { padding: 64px 0; }

  /* buttons: full width, same size, stacked */
  .btns { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; gap: 12px; }
  .btns .btn { padding: 16px 18px; }

  /* game cards */
  .game .body { padding: 18px 18px 22px; }
  .game.featured .body { padding: 22px 18px 26px; }

  /* about: the big logo repeats the header, keep it small */
  .grid-2 > div > img[src*="baru_primary"] { width: min(220px, 60vw); margin: 4px auto 0; }

  /* gallery: first picture wide, then pairs (no orphan at the end) */
  .gallery { gap: 10px; }
  .gallery a:first-child { grid-column: 1 / -1; }

  /* wallpaper + caption links: easy to tap */
  .caption { font-size: 13px; line-height: 2.2; }
  .caption a { display: inline-block; padding: 4px 0; }

  .facts th { width: 38%; font-size: 11px; letter-spacing: .12em; }
  .facts th, .facts td { padding: 12px 0; }
  .faq summary { padding: 6px 0; }

  /* footer: centred, links big enough to tap */
  .site-footer { padding-top: 40px; text-align: center; }
  .site-footer .wrap { justify-items: center; gap: 18px; }
  .site-footer img { width: 48px; }
  .site-footer ul { justify-content: center; gap: 0 4px; }
  .site-footer ul a { display: inline-block; padding: 10px 10px; font-size: 14px; }
}

/* ---- calmer motion for people who ask for it ---- */
@media (prefers-reduced-motion: reduce) {
  .btn, .menu-btn, .download, .game { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
  .btn:active, .menu-btn:active, .download:active, .game:active { transform: none; }
  nav.open { animation: none; }
}
