: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;
}

* {
  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: #0a0f15;
  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;
  }
}
