/* devoltz.party (27/10/2026): the one look of the three sites (the Doctor, DevoProtect, the releases), always dark, a
   terminal on a blueprint grid. Each page loads this first and its own stylesheet after it. */
:root {
  --bg: #0b0d10;
  --panel: #0e1116;
  --card: #0f1319;
  --card-2: #151b23;
  --line: #222a35;
  --text: #d6dde6;
  --muted: #8a97a8;
  --faint: #5f6d80;
  --accent: #7cc4ff;
  --accent-2: #4f9fe0;
  --good: #6fe0a0;
  --warn: #f2b84b;
  --bad: #ff7a72;
  --info: #9fd2ff;
  --violet: #c4a6ff;
  --radius: 3px;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  --sans: "Space Grotesk", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(#12161c 1px, transparent 1px), linear-gradient(90deg, #12161c 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font: 14px/1.45 var(--sans);
}
a { color: var(--info); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }

/* ------------------------------------------------------------------ the frame: the brand and the modes on the left */
#app { display: flex; }
.column { flex: 1; min-width: 0; }
aside.side { width: 260px; flex: none; display: flex; flex-direction: column; background: rgba(11, 13, 16, .96);
  border-right: 1px solid var(--line); }
.brand { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.brand h1 { margin: 0; font: 800 14px/1.3 var(--mono); letter-spacing: 1px; }
.brand h1 a { color: var(--text); text-decoration: none; }
.brand .ver { margin-top: 4px; font: 11px var(--mono); color: var(--faint); }
.brand select.lang { margin-top: 10px; width: 100%; background: #0b0f14; color: var(--muted); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 6px; font: 12px var(--sans); cursor: pointer; }
.brand select.lang:hover { border-color: #3f4d5e; color: var(--text); }
/* the sites (Home and the three), one line over the name: the one open in accent, the others a link */
.brand .sites { display: flex; gap: 0; margin: -6px 0 10px; font: 700 10px/1.6 var(--mono); letter-spacing: 1px;
  text-transform: uppercase; }
.brand .sites > * { color: var(--faint); text-decoration: none; padding: 0 5px; border-left: 1px solid var(--line); }
.brand .sites > :first-child { padding-left: 0; border-left: 0; }
.brand .sites a:hover { color: var(--text); }
.brand .sites [aria-current] { color: var(--accent); }
nav.modes { display: flex; flex-direction: column; overflow-y: auto; }
nav.modes button, nav.modes .mode { display: grid; grid-template-columns: 26px 1fr; column-gap: 6px;
  align-items: baseline; border: 0; border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent; background: transparent; color: #9aa6b5; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s; }
nav.modes button { text-align: left; }
nav.modes button:hover:not(:disabled), nav.modes .mode:hover { background: #121821; color: var(--text); }
nav.modes button.on, nav.modes .mode.on { border-left-color: var(--accent); background: #121821; color: #e9eef5; }
nav.modes .code { font: 11px var(--mono); color: var(--faint); }
nav.modes .hint { grid-column: 2; font-size: 12px; color: #7d8a9b; }

/* ------------------------------------------------------------------ the pieces */
.btn { border: 1px solid #2f3a48; background: var(--card-2); border-radius: var(--radius); padding: 7px 14px;
  white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #3f4d5e; background: #1b2330; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0b0d10;
  font: 800 12.5px var(--mono); letter-spacing: 1px; text-transform: uppercase; padding: 10px 20px; }
.btn.primary:hover { background: #a8d8ff; border-color: #a8d8ff; }
.btn.small { padding: 4px 10px; font-size: 12.5px; }

.card { background: rgba(15, 19, 25, .94); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; }
.card + .card { margin-top: 14px; }
.card .lead { color: var(--muted); margin: 0 0 12px; }

/* a narrow window: the modes become a strip on top */
@media (max-width: 760px) {
  #app { flex-direction: column; }
  aside.side { width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  nav.modes { flex-direction: row; overflow-x: auto; }
  nav.modes button, nav.modes .mode { flex: none; border-bottom: 0; border-left: 0;
    border-top: 3px solid transparent; padding: 8px 14px; }
  nav.modes button.on, nav.modes .mode.on { border-top-color: var(--accent); }
  nav.modes .hint, nav.modes .code { display: none; }
}
