:root {
  color-scheme: dark;
  --bg-start: #b691db;
  --bg-end: #8fb4df;
  --terminal: #0b1017;
  --terminal-border: #364153;
  --text: #d8dee9;
  --muted: #9aa7bd;
  --key: #ffa657;
  --value: #d8dee9;
  --link: #8bd5ff;
  --green: #2ecc71;
  --yellow: #ffbd2e;
  --red: #ff5f57;
}

html[data-theme="nord"] {
  --bg-start: #b691db;
  --bg-end: #8fb4df;
  --terminal: #0b1017;
  --terminal-border: #364153;
  --text: #d8dee9;
  --muted: #9aa7bd;
  --key: #ffa657;
  --value: #d8dee9;
  --link: #8bd5ff;
}

html[data-theme="3024-night"] {
  --bg-start: #f7b32b;
  --bg-end: #090300;
  --terminal: #090300;
  --terminal-border: #4a4543;
  --text: #d6d5d4;
  --muted: #807d7c;
  --key: #f7b32b;
  --value: #d6d5d4;
  --link: #01a0e4;
}

html[data-theme="blackboard"] {
  --bg-start: #8da6ce;
  --bg-end: #0c1021;
  --terminal: #0c1021;
  --terminal-border: #25304a;
  --text: #f8f8f8;
  --muted: #a5b6d3;
  --key: #fbde2d;
  --value: #f8f8f8;
  --link: #8da6ce;
}

html[data-theme="cobalt"] {
  --bg-start: #00a8ff;
  --bg-end: #002240;
  --terminal: #002240;
  --terminal-border: #0b5a8a;
  --text: #ffffff;
  --muted: #a6c9e2;
  --key: #ffee80;
  --value: #ffffff;
  --link: #9effff;
}

html[data-theme="dracula"] {
  --bg-start: #7b5ea7;
  --bg-end: #2f355e;
  --terminal: #282a36;
  --terminal-border: #6272a4;
  --text: #f8f8f2;
  --muted: #b6b6cc;
  --key: #ffb86c;
  --value: #f8f8f2;
  --link: #8be9fd;
}

html[data-theme="duotone-dark"] {
  --bg-start: #8a79ff;
  --bg-end: #2a2734;
  --terminal: #2a2734;
  --terminal-border: #545167;
  --text: #b7a1ff;
  --muted: #8c84a7;
  --key: #ffcc99;
  --value: #e2d9ff;
  --link: #6c9ef8;
}

html[data-theme="hopscotch"] {
  --bg-start: #fd8b19;
  --bg-end: #322931;
  --terminal: #322931;
  --terminal-border: #5c545b;
  --text: #b9b5b8;
  --muted: #989498;
  --key: #fd8b19;
  --value: #d5d3d5;
  --link: #149b93;
}

html[data-theme="lucario"] {
  --bg-start: #66d9ef;
  --bg-end: #2b3e50;
  --terminal: #2b3e50;
  --terminal-border: #40596f;
  --text: #f8f8f2;
  --muted: #b5c6d6;
  --key: #ffb86c;
  --value: #f8f8f2;
  --link: #66d9ef;
}

html[data-theme="material"] {
  --bg-start: #80cbc4;
  --bg-end: #263238;
  --terminal: #263238;
  --terminal-border: #455a64;
  --text: #eeffff;
  --muted: #b0bec5;
  --key: #ffcb6b;
  --value: #eeffff;
  --link: #89ddff;
}

html[data-theme="monokai"] {
  --bg-start: #a6e22e;
  --bg-end: #272822;
  --terminal: #272822;
  --terminal-border: #49483e;
  --text: #f8f8f2;
  --muted: #cfcfc2;
  --key: #fd971f;
  --value: #f8f8f2;
  --link: #66d9ef;
}

html[data-theme="night-owl"] {
  --bg-start: #82aaff;
  --bg-end: #011627;
  --terminal: #011627;
  --terminal-border: #1d3b53;
  --text: #d6deeb;
  --muted: #637777;
  --key: #ffcb8b;
  --value: #d6deeb;
  --link: #82aaff;
}

html[data-theme="oceanic-next"] {
  --bg-start: #6699cc;
  --bg-end: #1b2b34;
  --terminal: #1b2b34;
  --terminal-border: #343d46;
  --text: #c0c5ce;
  --muted: #a7adba;
  --key: #f99157;
  --value: #c0c5ce;
  --link: #6699cc;
}

html[data-theme="one-dark"] {
  --bg-start: #61afef;
  --bg-end: #282c34;
  --terminal: #282c34;
  --terminal-border: #3e4451;
  --text: #abb2bf;
  --muted: #7f848e;
  --key: #d19a66;
  --value: #abb2bf;
  --link: #56b6c2;
}

html[data-theme="panda-syntax"] {
  --bg-start: #ff75b5;
  --bg-end: #292a2b;
  --terminal: #292a2b;
  --terminal-border: #4a4b4d;
  --text: #e6e6e6;
  --muted: #bbbbbb;
  --key: #ffb86c;
  --value: #e6e6e6;
  --link: #45a9f9;
}

html[data-theme="paraiso-dark"] {
  --bg-start: #ef6155;
  --bg-end: #2f1e2e;
  --terminal: #2f1e2e;
  --terminal-border: #5b4059;
  --text: #a39e9b;
  --muted: #8d8687;
  --key: #f99b15;
  --value: #e7e9db;
  --link: #06b6ef;
}

html[data-theme="seti"] {
  --bg-start: #55b5db;
  --bg-end: #151718;
  --terminal: #151718;
  --terminal-border: #3b4042;
  --text: #d6d6d6;
  --muted: #9aa0a3;
  --key: #e6cd69;
  --value: #d6d6d6;
  --link: #55b5db;
}

html[data-theme="shades-of-purple"] {
  --bg-start: #9effff;
  --bg-end: #2d2b55;
  --terminal: #2d2b55;
  --terminal-border: #6c6783;
  --text: #ffffff;
  --muted: #b8b8d1;
  --key: #fad000;
  --value: #ffffff;
  --link: #9effff;
}

html[data-theme="solarized-dark"] {
  --bg-start: #268bd2;
  --bg-end: #002b36;
  --terminal: #002b36;
  --terminal-border: #073642;
  --text: #839496;
  --muted: #657b83;
  --key: #cb4b16;
  --value: #93a1a1;
  --link: #268bd2;
}

html[data-theme="synthwave-84"] {
  --bg-start: #ff7edb;
  --bg-end: #2a2139;
  --terminal: #2a2139;
  --terminal-border: #6d4f86;
  --text: #f92aad;
  --muted: #b6a6d9;
  --key: #fede5d;
  --value: #ffffff;
  --link: #36f9f6;
}

html[data-theme="twilight"] {
  --bg-start: #cda869;
  --bg-end: #141414;
  --terminal: #141414;
  --terminal-border: #3b3b3b;
  --text: #f7f7f7;
  --muted: #9b9b9b;
  --key: #cda869;
  --value: #f7f7f7;
  --link: #8f9d6a;
}

html[data-theme="verminal"] {
  --bg-start: #00e676;
  --bg-end: #1f1f1f;
  --terminal: #1f1f1f;
  --terminal-border: #404040;
  --text: #f8f8f8;
  --muted: #b0b0b0;
  --key: #f2c55c;
  --value: #f8f8f8;
  --link: #5ccfe6;
}

html[data-theme="vscode"] {
  --bg-start: #007acc;
  --bg-end: #1e1e1e;
  --terminal: #1e1e1e;
  --terminal-border: #3c3c3c;
  --text: #d4d4d4;
  --muted: #9cdcfe;
  --key: #d7ba7d;
  --value: #d4d4d4;
  --link: #4fc1ff;
}

html[data-theme="zenburn"] {
  --bg-start: #8cd0d3;
  --bg-end: #3f3f3f;
  --terminal: #3f3f3f;
  --terminal-border: #5f5f5f;
  --text: #dcdccc;
  --muted: #b2b2a0;
  --key: #dfaf8f;
  --value: #dcdccc;
  --link: #8cd0d3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 255, 255, 0.24), transparent 25rem),
    linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--text);
  font-family: Hack, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 4rem);
}

.terminal {
  width: min(100%, 860px);
  max-height: calc(100vh - clamp(2rem, 8vw, 8rem));
  overflow: hidden;
  background: var(--terminal);
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(11, 16, 23, 0.34), 0 8px 20px rgba(11, 16, 23, 0.28);
}

.terminal-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.15rem;
  background: color-mix(in srgb, var(--terminal) 92%, black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.window-controls {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.control {
  width: 0.78rem;
  aspect-ratio: 1;
  border-radius: 50%;
  display: block;
}

.close {
  background: var(--red);
}

.minimize {
  background: var(--yellow);
}

.maximize {
  background: var(--green);
}

.quick-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.35rem);
  color: var(--muted);
  font-size: clamp(0.76rem, 1.8vw, 0.88rem);
}

.quick-nav a {
  color: var(--muted);
}

.terminal-body {
  max-height: calc(100vh - clamp(4.85rem, 10vw, 10.5rem));
  overflow: auto;
  scroll-padding-top: 1rem;
  padding: clamp(1.35rem, 4vw, 2.15rem) clamp(1.2rem, 5vw, 2.35rem) clamp(1.5rem, 5vw, 2.5rem);
}

.command {
  margin: 0 0 1.45rem;
  color: var(--text);
  font-size: clamp(0.88rem, 2vw, 1rem);
  line-height: 1.55;
}

.prompt {
  color: var(--muted);
  margin-right: 0.6rem;
}

.yaml {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--value);
  font-size: clamp(0.82rem, 1.9vw, 0.98rem);
  line-height: 1.47;
}

.key {
  color: var(--key);
  font-weight: 700;
}

.punctuation,
.multiline {
  color: var(--link);
}

.string,
.value {
  color: var(--value);
}

#home,
#links,
#kontakt {
  scroll-margin-top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .site-shell {
    place-items: stretch;
    padding: 0;
  }

  .terminal {
    min-height: 100vh;
    width: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .terminal-bar {
    padding: 0 0.95rem;
  }

  .terminal-body {
    max-height: none;
    padding: 1.15rem 1rem 2rem;
  }
}
