@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..700&family=IBM+Plex+Sans+Arabic:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap");
/* Night chart: the gallery's palette, shared by /brand, /licence, /404 and the /c/ and audience pages */
:root{
  --surface:#0B1018;
  --surface-2:#0E1420;
  --card:#121926;
  --tile-bg:#1A2332;
  --text:#F3F5F8;
  --text-2:#C9D1DD;
  --text-muted:#A6B0C0;
  --accent-teal:#E8B64A;
  --gold-accent:#E8B64A;
  --gold-hover:#F6CC6E;
  --on-accent:#0B1018;
  --border-subtle:#27334A;
  --border-strong:#3A4760;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  color:var(--text);
  font:16px/1.6 "Bricolage Grotesque","Helvetica Neue",Arial,sans-serif;
  background:var(--surface);
  -webkit-font-smoothing:antialiased;
}
html[lang="ar"] body{font-family:"IBM Plex Sans Arabic","Bricolage Grotesque",sans-serif}
header,main,footer{max-width:860px;margin:0 auto;padding:0 20px}
header{
  min-height:72px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  max-width:none;
  border-bottom:1px solid #1A2332;
  padding-inline:max(20px,calc(50% - 410px));
}
header a:not(.brand){
  font:500 15px/1 "Bricolage Grotesque",sans-serif;
  color:var(--text);
  text-decoration:none;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  padding:0 16px;
  border:1px solid var(--border-strong);
  border-radius:8px;
}
header a:not(.brand):hover{border-color:var(--gold-accent)}
html[lang="ar"] header a:not(.brand){font-family:"IBM Plex Sans Arabic",sans-serif}
.brand{
  display:inline-flex;
  align-items:center;
  gap:0;
  font:700 19px "Bricolage Grotesque",sans-serif;
  letter-spacing:-0.01em;
  color:var(--text);
  text-decoration:none;
}
.brand b{color:var(--gold-accent)}
a{color:var(--gold-accent)}
a:hover{color:var(--gold-hover)}
p,li{color:var(--text-2)}
li{margin:4px 0}
footer{
  padding-block:30px 50px;
  font:400 12px/1.7 "JetBrains Mono",ui-monospace,Menlo,monospace;
  font-variant-ligatures:none;
  color:var(--text-muted);
  border-top:1px solid #1A2332;
  margin-top:40px;
}
html[lang="ar"] footer{font-family:"IBM Plex Sans Arabic",sans-serif;font-size:13px}
footer a{color:var(--text);text-decoration:none}
footer a:hover{text-decoration:underline}

/* Shared components (used by licence, 404 pages) */
h1{font:700 clamp(36px,6vw,60px)/1 "Bricolage Grotesque",sans-serif;letter-spacing:-0.035em;margin:40px 0 12px}
h2{font:650 clamp(22px,2.6vw,28px)/1.15 "Bricolage Grotesque",sans-serif;letter-spacing:-0.02em;margin:32px 0 10px}
html[lang="ar"] h1,html[lang="ar"] h2,[lang="ar"] h2{font-family:"IBM Plex Sans Arabic",sans-serif;letter-spacing:0;line-height:1.2}
.card{background:var(--card);border:1px solid var(--border-subtle);border-radius:10px;padding:18px 20px;margin:14px 0}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:start;padding:8px 10px;border-bottom:1px solid var(--border-subtle);vertical-align:top;color:var(--text-2)}
th{color:var(--text-muted);font:500 11px "JetBrains Mono",ui-monospace,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase}
[lang="ar"] th{font-family:"IBM Plex Sans Arabic",sans-serif;font-size:13px;letter-spacing:0;text-transform:none}
.sw{display:flex;gap:12px;flex-wrap:wrap}
.sw div{flex:1 1 150px;border-radius:8px;padding:14px;color:#fff;font-size:14px}
.sw b{display:block;font-size:16px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;background:var(--gold-accent);color:var(--on-accent);padding:0 22px;border-radius:8px;text-decoration:none;font:650 16px "Bricolage Grotesque",sans-serif}
.btn:hover{background:var(--gold-hover);color:var(--on-accent)}
html[lang="ar"] .btn{font-family:"IBM Plex Sans Arabic",sans-serif}

::selection{background:var(--gold-accent);color:var(--on-accent)}
