/* Kedi GNU/Linux website: plain, small, old-school. */

:root {
  --bg: #1b1d1e;
  --panel: #232627;
  --panel-head: #2c3032;
  --line: #3b4043;
  --text: #c8c8c8;
  --muted: #8a8f92;
  --accent: #0099ff;
  --link: #79b8e6;
}

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  font: 13px/1.5 Verdana, Tahoma, "DejaVu Sans", sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono { font-family: "DejaVu Sans Mono", Consolas, monospace; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 12px; }

/* Top bar */
#top {
  background: #141617;
  border-bottom: 2px solid var(--accent);
}
#top .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
}
#brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
#brand:hover { text-decoration: none; }
#brand pre {
  margin: 0;
  font-size: 14px;
  line-height: 1;
  color: var(--accent);
  font-weight: bold;
}
#brand span { font-size: 17px; font-weight: bold; letter-spacing: 0.5px; }
#nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
#nav a {
  padding: 4px 10px;
  color: var(--text);
  border: 1px solid transparent;
}
#nav a:hover, #nav a.here {
  color: var(--accent);
  border-color: var(--line);
  background: var(--panel);
  text-decoration: none;
}
#lang {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  font: inherit;
  padding: 2px 4px;
}

/* Layout */
#main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  margin: 16px auto;
}
@media (max-width: 760px) {
  #main { grid-template-columns: 1fr; }
  #top .wrap { flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
  #nav { margin-left: 0; }
}

.box {
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.box h2 {
  margin: 0;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--accent);
  background: var(--panel-head);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.box .body { padding: 8px 12px; }
.box p { margin: 6px 0; }
.box ul { margin: 6px 0; padding-left: 18px; }

.fpr { word-break: break-all; font-size: 12px; color: var(--text); }
.small { font-size: 11px; color: var(--muted); }

.btn {
  display: inline-block;
  margin: 4px 0;
  padding: 3px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: #2a2620;
}
.btn:hover { background: var(--accent); color: #1b1d1e; text-decoration: none; }

#foot {
  border-top: 1px solid var(--line);
  padding: 10px 0 24px;
  color: var(--muted);
  font-size: 11px;
}

/* Wiki page */
/* Let long command lines scroll inside their box instead of widening the column. */
#main > div { min-width: 0; }
.toc ol { margin: 4px 0; padding-left: 20px; }
.toc ol ol { margin: 2px 0 4px; padding-left: 16px; font-size: 12px; }
.doc h3 { color: var(--accent); font-size: 13px; margin: 18px 0 4px; }
.doc code {
  font-size: 12px;
  background: var(--panel-head);
  border: 1px solid var(--line);
  padding: 0 3px;
}
.doc pre.cmd {
  margin: 6px 0 10px;
  padding: 6px 10px;
  background: #141617;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  color: #e6e6e6;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  scrollbar-color: var(--line) #141617;
}
/* The prompt is shown but not copied with the command. */
.doc pre.cmd .p { color: var(--muted); user-select: none; -webkit-user-select: none; }
.doc .for {
  margin: 10px 0 2px;
  font-size: 11px;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 1px;
}
.doc .note, .doc .warn {
  margin: 8px 0;
  padding: 5px 10px;
  background: var(--panel-head);
  border: 1px solid var(--line);
}
.doc .note { border-left: 3px solid var(--link); }
.doc .warn { border-left: 3px solid #d9534f; }
.doc ul.cmds { padding-left: 18px; }
.doc ul.cmds li { margin: 4px 0; }

/* Wiki pages: with JavaScript, only the main page or the chosen article is shown. */
.wiki-pages .doc > .box { display: none; }
.wiki-pages .doc > .box.shown { display: block; }

/* Home page hero: screenshot with a very slight blur and the tagline centred on it. */
#hero { position: relative; height: 460px; overflow: hidden; background: #141617; border-bottom: 1px solid var(--line); }
#hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: blur(1.5px); transform: scale(1.03); }
#hero::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 13, 0.4); }
#hero .hero-text { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 12px; text-align: center; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); }
#hero h1 { margin: 0; font: bold 28px/1.25 Verdana, Tahoma, "DejaVu Sans", sans-serif; letter-spacing: 0.5px; color: #e6e6e6; }
#hero p { margin: 8px 0 0; font-size: 14px; color: #a9aeb1; }
@media (max-width: 760px) {
  #hero { height: 240px; }
  #hero h1 { font-size: 20px; }
  #hero p { font-size: 12px; }
}

/* Language switching: only the chosen language is shown. */
html[lang="en"] [lang="tr"],
html[lang="tr"] [lang="en"] { display: none !important; }
